Comment 1 for bug 534459

Revision history for this message
StefanPotyra (sistpoty) wrote :

backtrace of on bus error (recreated the test-case by hand and ran within gdb):

Starting program: /tmp/patch/patch-2.6/src/patch -f --merge c < ab.diff
patching file c

Program received signal SIGBUS, Bus error.
0x00016cb4 in bestmatch (xoff=-7, xlim=5, yoff=-26610410486401528, ylim=8, min=1, max=2, py=0xffa177a0) at src/bestmatch.h:153
153 *py = ymax;
(gdb) bt
#0 0x00016cb4 in bestmatch (xoff=-7, xlim=5, yoff=-26610410486401528, ylim=8, min=1, max=2, py=0xffa177a0) at src/bestmatch.h:153
#1 0x00018568 in locate_merge (hunk=1, outstate=<value optimized out>, where=5, somefailed=<value optimized out>) at src/merge.c:105
#2 merge_hunk (hunk=1, outstate=<value optimized out>, where=5, somefailed=<value optimized out>) at src/merge.c:229
#3 0x0001ebb0 in main (argc=<value optimized out>, argv=<value optimized out>) at src/patch.c:289