idevicebackup2 fails when backing up an jailbroken iphone 4 with ios 5.0.1
Reported by persmule | November 22nd, 2012 @ 04:03 AM | in 1.2.0 Release
When backing up an jailbroken iphone 4 with ios 5.0.1,
idevicebackup2 fails with:
Receiving files
[= ] 0% (72 Bytes/28.3 MB) [= ] 0% (200 Bytes/28.3 MB) [= ] 0% (653
Bytes/28.3 MB) [= ] 0% (993 Bytes/28.3 MB) [= ] 0% (22.4 kB/28.3
MB) ERROR: mb2_handle_receive_files: too long device filename
(16777216)!
Discarding current data hunk.
then the backup procedure cannot be recovered.
I traced the codes back to the 843rd line of idevicebackup2.c, in which "mobilebackup2_receive_raw(mobilebackup2, (char*)&nlen, 4, &r);nlen = be32toh(nlen);" wrote nlen as 16777216.
Here is the core.
Comments and changes to this ticket
-
Martin S. November 22nd, 2012 @ 11:06 AM
- State changed from new to open
- Tag set to endianess, idevicebackup2
- Assigned user set to Nikias Bassen
- Milestone set to 1.2.0 Release
- Milestone order changed from 190990 to 0
Please verify if idevicebackup2 of revision c366b98bc7c7e414ba03471720af6acbdd399dcf from git fixes the issue.
-
persmule November 23rd, 2012 @ 02:54 AM
It does not work either:
Receiving files
[= ] 0% (683 Bytes/29.2 MB) [= ] 1% (270.1 kB/29.2 MB) [= ] 2% (532.3 kB/29.2 MB) [== ] 2% (663.4 kB/29.2 MB) [== ] 2% (663.4 kB/29.2 MB) [== ] 2% (663.6 kB/29.2 MB) [== ] 2% (664.6 kB/29.2 MB) [== ] 2% (667.6 kB/29.2 MB) [== ] 2% (667.7 kB/29.2 MB) [== ] 2% (667.9 kB/29.2 MB) [== ] 2% (668.0 kB/29.2 MB) [== ] 2% (668.4 kB/29.2 MB) [== ] 2% (668.7 kB/29.2 MB) [== ] 2% (730.1 kB/29.2 MB) [== ] 3% (731.4 kB/29.2 MB) [== ] 3% (731.7 kB/29.2 MB) [== ] 3% (736.7 kB/29.2 MB) [== ] 3% (736.9 kB/29.2 MB) [== ] 3% (737.2 kB/29.2 MB) [== ] 3% (741.3 kB/29.2 MB) [== ] 3% (746.6 kB/29.2 MB) [== ] 3% (746.6 kB/29.2 MB) [== ] 3% (746.7 kB/29.2 MB) [== ] 3% (746.8 kB/29.2 MB) [== ] 3% (756.4 kB/29.2 MB) [== ] 3% (759.1 kB/29.2 MB) [== ] 3% (759.4 kB/29.2 MB) [== ] 3% (762.9 kB/29.2 MB) ERROR: mb2_handle_receive_files: too long device filename (16777216)!Discarding current data hunk.
Here is the new core
-
persmule November 23rd, 2012 @ 05:48 AM
The last revision seems working fine on Cygwin with apple's usbmuxd on windows(AppleMobileDeviceService.exe, introduced by iTunes for windows), so the last failure may be due to usbmuxd.
-
persmule November 23rd, 2012 @ 06:38 AM
Now it seems working fine on my GNU/Linux box while I managed to get the core of usbmuxd. Maybe there are some light bugs within usbmuxd.
-
Martin S. November 23rd, 2012 @ 12:25 PM
Sometimes you might have linked with an old version of some library and didn't really test on the latest code.
So, you say with current git head of libimobiledevice the backup works fine with idevicebackup2?
-
persmule November 26th, 2012 @ 02:28 AM
Is it true that file Manifest.mbdx will never be generated when backing up an idevice running ios 5? idevicebackup2 replies "Could not remove './22ac16cb585a3c8d49068f405dcd21589a8d8430/Manifest.mbdx': No such file or directory (2)" and returns 0.
-
Martin S. January 7th, 2013 @ 10:33 PM
- State changed from open to resolved
- Assigned user changed from Nikias Bassen to Martin S.
This bug was fixed in revision 9dcab806cc3c136c37e165b03bf2d29c4afaeaa6 of git master.
It was actually a nasty code issue.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A project around supporting the iPhone in Linux.
See http://libimobiledevice.org