kern/140156: [linux] cdparanoia fails to read drive data
Alexander Best
alexbestms at math.uni-muenster.de
Sun Nov 1 01:40:02 UTC 2009
>Number: 140156
>Category: kern
>Synopsis: [linux] cdparanoia fails to read drive data
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 01 01:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Alexander Best
>Release: 9.0-CURRENT
>Organization:
>Environment:
FreeBSD otaku 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r198677: Fri Oct 30 18:27:50 CET 2009 root at otaku:/usr/obj/usr/src/sys/ARUNDEL i386
>Description:
issuing the following command with the native version of cdparanoia:
`cdparanoia -vsQ -d /dev/cd0` returns the following data:
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty at xiph.org> and Xiphophorus
FreeBSD porting (c) 2003
Simon 'corecode' Schubert <corecode at corecode.ath.cx>
Report bugs to paranoia at xiph.org
http://www.xiph.org/paranoia/
Checking /dev/cd0 for cdrom...
CDROM model sensed: HL-DT-ST DVDRAM GSA-H10N JL12
Checking for ATAPICAM...
Drive is ATAPI (using ATAPICAM)
Checking for MMC style command set...
Drive is MMC style
Setting default read size to 26 sectors (61152 bytes).
Verifying CDDA command set...
Could not find any audio tracks on this disk.
Unable to open disc.
doing the same with the linux version returns this output:
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty at xiph.org> and Xiphophorus
Report bugs to paranoia at xiph.org
http://www.xiph.org/paranoia/
Checking /dev/cd0 for cdrom...
Testing /dev/cd0 for cooked ioctl() interface
/dev/cd0 is not a cooked ioctl CDROM.
Testing /dev/cd0 for SCSI interface
/dev/cd0 is not a SCSI device
attached you'll find a linux_kdump.
alex
>How-To-Repeat:
1. download cdparanoia III 9.8 from this site: http://www.xiph.org/paranoia/down.html
2. run `./cdparanoia-III-alpha9.8.i386-linux-elf -vsQ -d /dev/cd0`
3. install audio/cdparanoia
4. run `cdparanoia -vsQ -d /dev/cd0`
5. compare both outputs
>Fix:
Patch attached with submission follows:
80996 ktrace RET linux_brk 0
80996 ktrace CALL linux_olduname(0xbfbfed3f,0xbfbfec0c,0xbfbfec20)
80996 ktrace NAMI "./cdparanoia-III-alpha9.8.i386-linux-elf"
80996 cdparanoia-III-alph RET linux_olduname 0
80996 cdparanoia-III-alph CALL linux_fcntl64(0,0x1,0)
80996 cdparanoia-III-alph RET linux_fcntl64 0
80996 cdparanoia-III-alph CALL linux_fcntl64(0x1,0x1,0xbfbfebc8)
80996 cdparanoia-III-alph RET linux_fcntl64 0
80996 cdparanoia-III-alph CALL linux_fcntl64(0x2,0x1,0)
80996 cdparanoia-III-alph RET linux_fcntl64 0
80996 cdparanoia-III-alph CALL linux_newuname(0xbfbfe9f0)
80996 cdparanoia-III-alph RET linux_newuname 0
80996 cdparanoia-III-alph CALL geteuid
80996 cdparanoia-III-alph RET geteuid 0
80996 cdparanoia-III-alph CALL linux_getuid
80996 cdparanoia-III-alph RET linux_getuid 0
80996 cdparanoia-III-alph CALL getegid
80996 cdparanoia-III-alph RET getegid 0
80996 cdparanoia-III-alph CALL linux_getgid
80996 cdparanoia-III-alph RET linux_getgid 0
80996 cdparanoia-III-alph CALL linux_brk(0)
80996 cdparanoia-III-alph RET linux_brk 135028736/0x80c6000
80996 cdparanoia-III-alph CALL linux_brk(0x80c6020)
80996 cdparanoia-III-alph RET linux_brk 135028768/0x80c6020
80996 cdparanoia-III-alph CALL linux_brk(0x80c7000)
80996 cdparanoia-III-alph RET linux_brk 135032832/0x80c7000
80996 cdparanoia-III-alph CALL linux_getpid
80996 cdparanoia-III-alph RET linux_getpid 80996/0x13c64
80996 cdparanoia-III-alph CALL write(0x2,0xbfbfb85c,0x9c)
80996 cdparanoia-III-alph GIO fd 2 wrote 156 bytes
"cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty at xiph.org> and Xiphophorus
Report bugs to paranoia at xiph.org
http://www.xiph.org/paranoia/
"
80996 cdparanoia-III-alph RET write 156/0x9c
80996 cdparanoia-III-alph CALL write(0x2,0x80ba5e7,0x1)
80996 cdparanoia-III-alph GIO fd 2 wrote 1 byte
"
"
80996 cdparanoia-III-alph RET write 1
80996 cdparanoia-III-alph CALL write(0x2,0x80c62c0,0x1f)
80996 cdparanoia-III-alph GIO fd 2 wrote 31 bytes
"Checking /dev/cd0 for cdrom...
"
80996 cdparanoia-III-alph RET write 31/0x1f
80996 cdparanoia-III-alph CALL linux_stat64(0x80c62b0,0xbfbfdd4c,0xd49)
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph NAMI "/compat/linux"
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph UNKNOWN(8) 80996 cdparanoia-III-alph RET linux_stat64 0
80996 cdparanoia-III-alph CALL write(0x2,0x80c62c0,0x2f)
80996 cdparanoia-III-alph GIO fd 2 wrote 47 bytes
" Testing /dev/cd0 for cooked ioctl() interface
"
80996 cdparanoia-III-alph RET write 47/0x2f
80996 cdparanoia-III-alph CALL linux_lstat64(0x80c62b0,0xbfbfcc0c,0xd49)
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph NAMI "/compat/linux"
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph UNKNOWN(8) 80996 cdparanoia-III-alph RET linux_lstat64 0
80996 cdparanoia-III-alph CALL linux_lstat64(0xbfbfbbf4,0xbfbfcc2c,0x80c4ae4)
80996 cdparanoia-III-alph NAMI "/compat/linux/dev"
80996 cdparanoia-III-alph NAMI "/compat/linux"
80996 cdparanoia-III-alph NAMI "/compat/linux/dev"
80996 cdparanoia-III-alph UNKNOWN(8) 80996 cdparanoia-III-alph RET linux_lstat64 0
80996 cdparanoia-III-alph CALL linux_lstat64(0xbfbfbbf4,0xbfbfcc2c,0x80c4ae4)
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph NAMI "/compat/linux"
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph UNKNOWN(8) 80996 cdparanoia-III-alph RET linux_lstat64 0
80996 cdparanoia-III-alph CALL linux_stat64(0x80c62c0,0xbfbfdcac,0x80c62c0)
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph NAMI "/compat/linux"
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph UNKNOWN(8) 80996 cdparanoia-III-alph RET linux_stat64 0
80996 cdparanoia-III-alph CALL write(0x2,0x80c62d0,0x28)
80996 cdparanoia-III-alph GIO fd 2 wrote 40 bytes
" /dev/cd0 is not a cooked ioctl CDROM.
"
80996 cdparanoia-III-alph RET write 40/0x28
80996 cdparanoia-III-alph CALL write(0x2,0x80c62c0,0x25)
80996 cdparanoia-III-alph GIO fd 2 wrote 37 bytes
" Testing /dev/cd0 for SCSI interface
"
80996 cdparanoia-III-alph RET write 37/0x25
80996 cdparanoia-III-alph CALL linux_stat64(0x80c62b0,0xbfbfdb4c,0xd49)
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph NAMI "/compat/linux"
80996 cdparanoia-III-alph NAMI "/compat/linux/dev/cd0"
80996 cdparanoia-III-alph UNKNOWN(8) 80996 cdparanoia-III-alph RET linux_stat64 0
80996 cdparanoia-III-alph CALL write(0x2,0x80c62c0,0x20)
80996 cdparanoia-III-alph GIO fd 2 wrote 32 bytes
" /dev/cd0 is not a SCSI device
"
80996 cdparanoia-III-alph RET write 32/0x20
80996 cdparanoia-III-alph CALL exit(0x1)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list