On Sun, Sep 28, 2008 at 12:59 PM, Bram Senders <[EMAIL PROTECTED]> wrote: > On Sun, Sep 21, 2008 at 5:21 PM, Bram Senders <[EMAIL PROTECTED]> wrote: >> Sound-juicer also crashes in the cdda_read_timed method. I'll try to see >> whether I can get debug symbols enabled (there doesn't seem to be a -dbg >> package for libcdparanoia0), and whether downgrading helps. > > Some more gdb stuff, now with debug symbols: [snip]
And also some valgrind stuff, showing that it tries to follow the null pointer: === 8< === | [EMAIL PROTECTED] LD_LIBRARY_PATH=./paranoia:./interface valgrind ./cdparanoia -B | ==13155== Memcheck, a memory error detector. | ==13155== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. | ==13155== Using LibVEX rev 1854, a library for dynamic binary translation. | ==13155== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. | ==13155== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. | ==13155== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. | ==13155== For more details, rerun with: -v | ==13155== | ==13155== Conditional jump or move depends on uninitialised value(s) | ==13155== at 0x400263C: _dl_start (in /lib/ld-2.7.so) | ==13155== by 0x4016CE4: _start (in /lib/ld-2.7.so) | ==13155== | ==13155== Conditional jump or move depends on uninitialised value(s) | ==13155== at 0x4002674: _dl_start (in /lib/ld-2.7.so) | ==13155== by 0x4016CE4: _start (in /lib/ld-2.7.so) | cdparanoia III release 10.2 (September 11, 2008) | | | Ripping from sector 0 (track 1 [0:00.00]) | to sector 310734 (track 9 [2:09.06]) | | outputting to track01.cdda.wav | | ==13155== | ==13155== Invalid read of size 2 | ==13155== at 0xFF8C730: cdda_read_timed (interface.c:126) | ==13155== by 0xFF5E620: i_read_c_block (paranoia.c:2272) | ==13155== by 0xFF60110: paranoia_read_limited (paranoia.c:2632) | ==13155== by 0x10004D9C: main (main.c:1353) | ==13155== Address 0x0 is not stack'd, malloc'd or (recently) free'd | ==13155== | ==13155== Process terminating with default action of signal 11 (SIGSEGV) | ==13155== Access not within mapped region at address 0x0 | ==13155== at 0xFF8C730: cdda_read_timed (interface.c:126) | ==13155== by 0xFF5E620: i_read_c_block (paranoia.c:2272) | ==13155== by 0xFF60110: paranoia_read_limited (paranoia.c:2632) | ==13155== by 0x10004D9C: main (main.c:1353) | ==13155== | ==13155== ERROR SUMMARY: 5 errors from 3 contexts (suppressed: 1 from 1) | ==13155== malloc/free: in use at exit: 10,467,814 bytes in 18 blocks. | ==13155== malloc/free: 24 allocs, 6 frees, 10,535,905 bytes allocated. | ==13155== For counts of detected errors, rerun with: -v | ==13155== searching for pointers to 18 not-freed blocks. | ==13155== checked 6,028,964 bytes. | ==13155== | ==13155== LEAK SUMMARY: | ==13155== definitely lost: 1,411,245 bytes in 3 blocks. | ==13155== possibly lost: 2,822,400 bytes in 1 blocks. | ==13155== still reachable: 6,234,169 bytes in 14 blocks. | ==13155== suppressed: 0 bytes in 0 blocks. | ==13155== Rerun with --leak-check=full to see details of leaked memory. | zsh: segmentation fault LD_LIBRARY_PATH=./paranoia:./interface valgrind ./cdparanoia -B | [EMAIL PROTECTED] === >8 === So I guess d->read_audio() (which is scsi_read_mmc2B() here) for some reason doesn't fill the buffer, and this result is not checked. And now I really don't know what to do any further ;-) Bram -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]