Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178876 - app-cdr/cdrtools-2.01.01_alpha25 - cdda2wav from dumps core when started with -paranoia
Summary: app-cdr/cdrtools-2.01.01_alpha25 - cdda2wav from dumps core when started with...
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 13:30 UTC by Thomas
Modified: 2007-12-11 22:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2007-05-17 13:30:14 UTC
$ ../cdda2wav/OBJ/x86-linux-cc/cdda2wav -D1000,1,0 -x -S8 -B -L0

yields
Type: ROM, Vendor 'TSSTcorp' Model 'CD/DVDW TS-L632C' Revision 'AS06' MMC+CDDA
569344 bytes buffer memory requested, transfer size 131072 bytes, 4 buffers, 55 sectors
#Cdda2wav version 2.01.01a25_linux_2.6.20-gentoo-r8_i686_intel-r--pentium-r--m-processor-1.73ghz, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 3           no              no     audio    2
...
samplefile size will be 758708204 bytes.
recording 4301.0666 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
Speicherzugriffsfehler (core dumped)

gdb ../cdda2wav/OBJ/x86-linux-cc/cdda2wav core
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Core was generated by `../cdda2wav/OBJ/x86-linux-cc/cdda2wav -D1000,1,0 -x -paranoia -S8 -B -L0'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x0806e2fa in i_paranoia_firstlast (p=0x809d4e0) at p_block.c:518
#2  0x0806e6c9 in paranoia_init (d=0x8089038, nsectors=55, d_read=0x804ef10 <cdda_read>, 
    d_disc_firstsector=0x8052370 <cdda_disc_firstsector>, 
    d_disc_lastsector=0x80523f0 <cdda_disc_lastsector>, 
    d_tracks=0x8052390 <cdda_tracks>, 
    d_track_firstsector=0x80523d0 <cdda_track_firstsector>, 
    d_track_lastsector=0x80523e0 <cdda_track_lastsector>, 
    d_sector_gettrack=0x8052410 <cdda_sector_gettrack>, 
    d_track_audiop=0x80523b0 <cdda_track_audiop>) at p_block.c:585
#3  0x0804e154 in main (argc=7, argv=0xbff9f9f4) at cdda2wav.c:3248
(gdb) up
#1  0x0806e2fa in i_paranoia_firstlast (p=0x809d4e0) at p_block.c:518
518                     if (!p->d_track_audiop(d, i))
(gdb) p p
$1 = (cdrom_paranoia *) 0x809d4e0
(gdb) p *p
$2 = {d = 0x8089038, d_read = 0x804ef10 <cdda_read>, 
  d_disc_firstsector = 0x8052370 <cdda_disc_firstsector>, 
  d_disc_lastsector = 0x80523f0 <cdda_disc_lastsector>, 
  d_tracks = 0x8052390 <cdda_tracks>, 
  d_track_firstsector = 0x80523d0 <cdda_track_firstsector>, 
  d_track_lastsector = 0x80523e0 <cdda_track_lastsector>, 
  d_sector_gettrack = 0x8052410 <cdda_sector_gettrack>, d_track_audiop = 0, 
  nsectors = 55, root = {returnedlimit = 0, lastsector = 0, p = 0x0, vector = 0x0, 
    silenceflag = 0, silencebegin = 0}, cache = 0x809d590, cache_limit = 15, 
  fragments = 0x809d5b0, sortcache = 0x809d5d0, readahead = 150, jitter = 0, 
  lastread = -1000000, enable = 255, cursor = 0, current_lastsector = -1, 
  current_firstsector = 0, stage1 = {offpoints = 0, newpoints = 0, offaccum = 0, 
    offdiff = 0, offmin = 0, offmax = 0}, stage2 = {offpoints = 0, newpoints = 0, 
    offaccum = 0, offdiff = 0, offmin = 0, offmax = 0}, mindynoverlap = 128, 
  maxdynoverlap = 63504, dynoverlap = 37632, dyndrift = 0}
(gdb) q

Please note that d_track_audiop is NULL yielding a segmentation fault.

CFLAGS="-O2 -fno-strict-aliasing -march=pentium-m"

(same result with "-O")



Reproducible: Always

Steps to Reproduce:
start cdda2wav with -paranoia
Actual Results:  
core dump

Expected Results:  
correctly written wav files
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-17 14:09:04 UTC
Not here... emerge --info please.
Comment 2 Thomas 2007-05-17 14:57:59 UTC
Portage 2.1.2.2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 15 May 2007 00:00:10 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -fno-strict-aliasing -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/mnt/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE"
LINGUAS="de de_DE en en_GB en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/home"
PORTDIR="/usr/portage"
SYNC="rsync://knob-creek/gentoo-portage"
USE="X a52 aac alsa berkdb bitmap-fonts bluetooth boost bzip2 cairo cdda cddb cli cracklib crypt cups curl dbus dri dts dvd emacs flac gdbm gif gimpprint gnome gnutls graphviz gs gtk iconv icu imlib isdnlog jpeg jpeg2k lcms libg++ logrotate mad midi mikmod mmx mng mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pango pcre perl png pppd python readline reflection sdl session spl sse sse2 ssl tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis wxwindows x264 x86 xml xorg xpm xprint xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Thomas 2007-05-17 15:01:36 UTC
The problem does not occur with 2.01.01_alpha10.
The problem also occurs with the vanilla sources of 2.01.01_alpha25.
The problem occurs independently whether the ATA or ATAPI interface is used.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-12-11 11:28:09 UTC
Reopen if you can reproduce w/ 2.01.01_alpha34 or newer, thanks.
Comment 5 Thomas 2007-12-11 22:13:21 UTC
cdrtools-2.01.01_alpha36 work just fine.