Comments (5)
@borisovg Since I'm not getting this error it would be very helpful if you had libimobiledevice installed compiled with debug info so we can see where the violating call to plist_new_string() comes from.
from libplist.
Here is the backtrace:
Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) bt full
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1 0x00007ffff69d3b5e in __GI___strdup (s=0x0) at strdup.c:41
len = <optimized out>
new = <optimized out>
#2 0x00007ffff7778c4b in plist_new_string (val=0x0) at plist.c:118
data = 0x606ba0
#3 0x00007ffff798a03a in pair_record_generate (client=0x607130, pair_record=0x7fffffffe1d8) at lockdown.c:747
ret = 0
public_key = {
data = 0x60b630 "-----BEGIN RSA PUBLIC KEY-----\nMIGJAoGBANttJvV8Tag/[... snipped due to paranoia ...]\n7+0VdKAjQz9WJQp4dmbem3bm1vR4PmB8vNL0yZl"..., size = 251}
host_id = 0x0
system_buid = 0x0
uret = 0
#4 0x00007ffff798a19b in lockdownd_do_pair (client=0x607130, pair_record=0x0, verb=0x7ffff7999748 "Pair") at lockdown.c:804
ret = -256
dict = 0x0
pair_record_plist = 0x60c5d0
wifi_node = 0x0
pairing_mode = 0
request_pair_record = 0x7ffff6cf5640 <main_arena+32>
options = 0x60b3a0
#5 0x00007ffff798a699 in lockdownd_pair (client=0x607130, pair_record=0x0) at lockdown.c:956
No locals.
#6 0x00007ffff7989d69 in lockdownd_client_new_with_handshake (device=0x607190, client=0x604b30 <control>, label=0x40379c "ifuse") at lockdown.c:640
ret = -16
client_loc = 0x607130
host_id = 0x0
type = 0x608b20 ""
pair_record = 0x0
#7 0x0000000000402ee2 in main (argc=2, argv=0x7fffffffe468) at ifuse.c:754
res = 1
args = {argc = 2, argv = 0x606af0, allocated = 1}
mst = {st_dev = 65024, st_ino = 655488, st_nlink = 2, st_mode = 16877, st_uid = 1000, st_gid = 1000, __pad0 = 0, st_rdev = 0, st_size = 4096, st_blksize = 4096, st_blocks = 8,
st_atim = {tv_sec = 1357837666, tv_nsec = 180116579}, st_mtim = {tv_sec = 1345467094, tv_nsec = 0}, st_ctim = {tv_sec = 1345634544, tv_nsec = 61450939}, __glibc_reserved = {
0, 0, 0}}
ret = 0
I compiled libplist, libimobiledevice and ifuse using:
make clean
CFLAGS='-ggdb -O0' CXXFLAGS='-ggdb -O0' ./configure
make
Let me know if this was not the right way to do it.
from libplist.
Thanks, that helped! I pushed a fix to git master. However, the behavior is weird since apparently ifuse tries to trigger a device pair which should be handled by usbmuxd now. Do you have the latest version of usbmuxd installed?
from libplist.
I have that installed from Debian packages:
ii libusbmuxd-dev:amd64 1.0.9-1
ii libusbmuxd2:amd64 1.0.9-1
ii usbmuxd 1.0.8-5
It is somewhat strange that the usbmuxd
package is of a different version, but looking at the upstream git repo that appears to be correct.
from libplist.
P.S. Fixed appears to have worked - no more crash. :-)
Thanks!
from libplist.
Related Issues (20)
- Static building multiple undefined reference errors (since 91c0aa8) HOT 2
- Error while loading shared libraries HOT 2
- About the conversion of plist and Objective-C object HOT 3
- Assertion failed: ((node->children->count % 2) == 0), function node_to_xml, file xplist.c, line 365. HOT 1
- `make check -j16` fails due to .out file collisions HOT 3
- Failed to build
- ERROR: Input file is too small to contain valid plist data. HOT 1
- Cython crash when referencing objects after free() is called
- OOB access in `plist_from_memory` HOT 3
- Debian/Ubuntu `libplist-dev` package is outdated HOT 1
- Linker error: ld: archive member '/' not a mach-o file when trying to link libcnary.a HOT 1
- m4/ax_python_devel.m4 is outdated and fails with python 3.12 due to no longer present distutils
- Mistaken issue submission
- Cannot find python in your system PATH
- No autogen.sh in release file HOT 8
- FromBin parse bplist failed!
- ERROR: Input plist data is not compatible with output format.
- [Bug] plistutil cannot read from stdin - ERROR: Could not parse plist data (-3)
- About SIGSEGV (Address boundary error) when using C++ PList::Array
- I found a SEGV on unknown address crash by using AFL++
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libplist.