Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

idevicebackup2 fails when backing up an jailbroken iphone 4 with ios 5.0.1

#305

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.

Reported by persmule · November 22nd, 2012 @ 04:03 AM

State: resolved
Milestone: 1.2.0 Release
Assigned to: Martin S. Martin S.

Activity

  1. Martin S.
    Martin S.
    • 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.

    November 22nd, 2012 @ 11:06 AM

  2. persmule
    persmule

    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

    November 23rd, 2012 @ 02:54 AM

  3. persmule
    persmule

    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.

    November 23rd, 2012 @ 05:48 AM

  4. persmule
    persmule

    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.

    November 23rd, 2012 @ 06:38 AM

  5. Martin S.
    Martin S.

    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?

    November 23rd, 2012 @ 12:25 PM

  6. persmule
    persmule

    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.

    November 26th, 2012 @ 02:28 AM

  7. Martin S.
    Martin S.
    • 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.

    January 7th, 2013 @ 10:33 PM

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.