+++ This bug was initially created as a clone of Bug #187602 +++ gnome-cd works correctly if the device name is exactly /dev/cdrom. However is segfaults on any other device name, that point to the the same device. /dev/cdrom is linked to hdd, so is /dev/cdwriter gnome-cd crashes on /dev/hdd and /dev/cdwriter, but not on /dev/cdrom. When clicking on the audio cd icon that appears when an audio cd is inserted, gnome-cd is started as: gnome-cd --unique --play --device /dev/hdd therefore it crashes. In cdparanoia source in file scan_devices.c in function sgio_cdda_identify_scsi is this test: if (check_fd_sgio(d->cdda_fd)) sgio_init_sg_info(d); else sg2_init_sg_info(d); Function check_fd_sgio returns value < 0, on error or argement if ok. For some unknown reason when device other as /dev/cdrom is used (/dev/hdc /dev/hdd) cdda_fd = 0 is opened (this is valid fd, but zero) and check fails and s2_init_sg_info is used (which is wrong). Check should be changed to: if (check_fd_sgio(d->cdda_fd) == d->cdda_fd) sgio_init_sg_info(d); else sg2_init_sg_info(d);
Created attachment 345402 [details] patch
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?".
This problem has been addressed upstream. The version of cdparanoia that ships with RHEL-6 no longer exhibits this problem.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Created attachment 515536 [details] Revised patch Previous patch is buggy in that it handles the case where fd is *already* an error condition incorrectly. This patch should work correctly.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
This bug has been tested SanityOnly. Sanity was tested by playing and ripping audio-cd using several names for the device (/dev/cdrom,/dev/hda, /dev/my_simlink).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0208.html