Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #7

Open
palz opened this issue Aug 31, 2010 · 8 comments
Open

Segmentation fault #7

palz opened this issue Aug 31, 2010 · 8 comments

Comments

@palz
Copy link

palz commented Aug 31, 2010

While trying to activate my (yes, I know its better to use itunes) iPod touch (4.1 ipt2.5g), I keep getting:

Creating activation request
Segmentation fault

on 4.1 and 4.0. and any other firmware. Whats up? And I tried all the flags.

@boxingsquirrel
Copy link
Contributor

What arch? And this was never tested with beta firmwares...

@rryder
Copy link

rryder commented Sep 3, 2010

I'm seeing this as well on iPhone 3G, iOS 4.0.2

Core was generated by `./ideviceactivate'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000401cfa in activate_fetch_record (client=0xee4100, record=0x7fff38a1e3a8, cust_imei=0x0, cust_imsi=0x0, cust_iccid=0x0,
cust_serial_num=0x0) at activate.c:86
86 ainfo->iccid=(char*)lockdownd_get_string_value(client, "IntegratedCircuitCardIdentity");

This is on F13 x86_64

@palz
Copy link
Author

palz commented Sep 3, 2010

32 bit. and its not just with betas.

@boxingsquirrel
Copy link
Contributor

Can you try the new version in my fork?

@rryder
Copy link

rryder commented Sep 7, 2010

With the latest from boxing squirrel:

Starting program: /home/rryder/git/ideviceactivate-boxingsquirrel/ideviceactivate/src/ideviceactivate -d
[Thread debugging using libthread_db enabled]
Creating activation request

Program received signal SIGSEGV, Segmentation fault.
0x0000003975a02548 in plist_get_type_and_value (node=, type=, value=, length=)
at /usr/src/debug/libplist-1.3/src/plist.c:477
477 ((char *) value) = strdup(data->strval);

@rryder
Copy link

rryder commented Sep 7, 2010

After grabbing the latest plist and rebuilding libimobildevice and both versions of ideviceactivate it shows this:

Creating activation request
Entity: line 8: parser error : PCDATA invalid Char value 1
Internationa�
^
Segmentation fault (core dumped)

Backtrace from gdb:
Thread 1 (Thread 0xb7fe0730 (LWP 11618)):
#0 0x00cd91c0 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#1 0x00cd9309 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#2 0x00cd9309 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#3 0x00cd9309 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#4 0x00cd9063 in xmlFreeDoc () from /usr/lib/libxml2.so.2
#5 0x00cd44bb in xmlSAXParseMemoryWithData () from /usr/lib/libxml2.so.2
#6 0x00cd44ff in xmlSAXParseMemory () from /usr/lib/libxml2.so.2
#7 0x00cd4569 in xmlParseMemory () from /usr/lib/libxml2.so.2
#8 0x00131742 in plist_from_xml () from /usr/local/lib/libplist.so.1
#9 0x00117eb9 in internal_plist_receive_timeout (
client=, plist=0xbffff48c, timeout=10000)
at property_list_service.c:248
#10 0x0011914e in lockdownd_receive (client=0x804d098, plist=0xbffff48c)
at lockdown.c:255
#11 0x001195ff in lockdownd_get_value (client=0x804d098, domain=0x0, key=
0x804addc "InternationalMobileEquipmentIdentity", value=0xbffff500)
at lockdown.c:379
#12 0x0804976b in activate_fetch_record (client=0x804d098, record=0xbffff598,
cust_imei=0x0, cust_imsi=0x0, cust_iccid=0x0, cust_serial_num=0x0)
at activate.c:112
#13 0x0804933a in main (argc=0, argv=0xbffff678) at ideviceactivate.c:161

@rryder
Copy link

rryder commented Sep 7, 2010

The last letter of "International" in the string is represented by a unicode symbol (box with 0 0 0 1 in it)

@boxingsquirrel
Copy link
Contributor

hmmm...try @p0sixninja's original commit. I'm trying to figure out if it always had this problem or if it's something I did...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants