Bug 166141 - cdparanoia crashes when invoked from a daemon
Summary: cdparanoia crashes when invoked from a daemon
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cdparanoia
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-08-17 10:59 UTC by Ville Skyttä
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-01-22 19:22:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
gdb backtrace (4.90 KB, text/plain)
2005-08-17 10:59 UTC, Ville Skyttä
no flags Details

Description Ville Skyttä 2005-08-17 10:59:11 UTC
Duh, hard to set up a minimal reproducer for this, but here goes anyway: 
 
I'm running vdr (from rpm.livna.org), and try to set up an OSD command using 
abcde (from Fedora Extras) for ripping audio CD's.  The vdr daemon is started 
as root, and at startup it switches to the dedicated vdr user, dropping all 
privileges except setting the system time, using libcap. 
 
vdr runs abcde as the vdr user, and abcde runs cdparanoia like 
 
  nice -n 10 cdparanoia -d /dev/cdrom 01 /tmp/music/abcde.8509ca0a/track01.wav 
 
When running on the console as the dedicated vdr user, everything works fine.  
But from within the vdr daemon, cdparanoia crashes.  Output from abcde's debug 
log: 
 
--- 
 
+ nice -n 10 cdparanoia -d /dev/cdrom 01 /tmp/music/abcde.8509ca0a/track01.wav 
cdparanoia III release 9.8 (March 23, 2001) 
(C) 2001 Monty <monty> and Xiphophorus 
 
Report bugs to paranoia 
http://www.xiph.org/paranoia/ 
 
Checking /dev/cdrom for cdrom... 
        DMA scatter/gather table entries: 1 
        table entry size: 131072 bytes 
        maximum theoretical transfer: 55 sectors 
        Setting default read size to 13 sectors (30576 bytes). 
 
        Couldn't disable command queue!  Continuing anyway... 
 
Checking for SCSI emulation... 
        Drive is ATAPI (using SCSI host adaptor emulation) 
 
Checking for MMC style command set... 
/usr/bin/abcde: line 1592: 10713 Segmentation fault      (core dumped) nice 
$READNICE $CDROMREADER -d $CDROM $UTRACKNUM "$WAVDATA" 1>&2 
 
--- 
 
When running on the console, the "Couldn't disable command queue" message 
doesn't appear, and as said, things work fine.  (Side note: abcde has support 
for cdda2wav too, and it crashes as well; but that's maybe a separate bug 
report later.) 
 
gdb backtrace attached.  This is cdparanoia-alpha9.8-25 on FC4, i386.

Comment 1 Ville Skyttä 2005-08-17 10:59:11 UTC
Created attachment 117829 [details]
gdb backtrace

Comment 2 Ville Skyttä 2005-08-23 20:02:53 UTC
I've excluded the capabilities stuff from the equation and changed a few 
things, cdda2wav no longer crashes.  Also, setting CDDA_TRANSPORT=cooked in 
the environment before invoking abcde avoids the crash with cdparanoia.  
Without it set, I still get the same crash. 

Comment 3 Christian Iseli 2007-01-22 11:33:03 UTC
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Thanks.

Comment 4 Ville Skyttä 2007-01-22 19:22:16 UTC
Can't reproduce any more on FC6's cdparanoia-alpha9.8-27.2, assuming fixed
somewhere along the way.


Note You need to log in before you can comment on or make changes to this bug.