DenVdmj / xdelta

Automatically exported from code.google.com/p/xdelta (actual: https://github.com/jmacd/xdelta-devel/)
0 stars 0 forks source link

Bus error in Mac OS 10.6 #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Checked out r304, compiled it and tried to apply a patch. It outputs a file
with exactly 64M and then exits with a Bus Error.

Here's the backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000000010000fbc7
0x00000001000116b0 in main_getblk_func ()
(gdb) bt
#0  0x00000001000116b0 in main_getblk_func ()
#1  0x0000000100006df9 in xd3_decode_output_halfinst ()
#2  0x0000000100009fc5 in xd3_decode_input ()
#3  0x000000010002689d in main_input ()
#4  0x00000001000293a9 in main ()

Compiling a 32 bit version outputs the same 64M file and then does this:
xdelta3: input read failed: nodame_finale_04_Edit.mkv: Invalid argument

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000014
0x00009be4 in xd3_decode_input (stream=Cannot access memory at address 0x28
) at xdelta3-decode.h:1103
1103          if ((ret = xd3_decode_emit (stream)) == XD3_OUTPUT)
(gdb) bt full
#0  0x00009be4 in xd3_decode_input (stream=Cannot access memory at address 0x28
) at xdelta3-decode.h:1103
    ret = Cannot access memory at address 0x14

Original issue reported on code.google.com by miguelpontes on 6 Feb 2010 at 10:33

GoogleCodeExporter commented 9 years ago
VERY interesting.  I'm developing on Mac OS X right now so I may be able to 
reproduce 
it.  I just submitted SVN 305 which may fix a performance issue in 3.0w but 
I'll see if I 
can look at this soon.  Thanks.

Original comment by josh.mac...@gmail.com on 7 Feb 2010 at 3:01

GoogleCodeExporter commented 9 years ago
It should be reproducible with any file over 64MB, I believe. I created this 
with
wine and the xdelta3.0w Windows release, tried to uncompress it on Snow 
Leopard; same
behavior.

Original comment by miguelpontes on 7 Feb 2010 at 3:52

Attachments:

GoogleCodeExporter commented 9 years ago
SVN 310 has the fix.  This was not an OS X-specific issue, it had been 
introduced in 
3.0w when I added streaming-source support.

Original comment by josh.mac...@gmail.com on 16 Feb 2010 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by josh.mac...@gmail.com on 16 Feb 2010 at 5:43

GoogleCodeExporter commented 9 years ago
3.0x is released

Original comment by josh.mac...@gmail.com on 16 Feb 2010 at 6:48