[Pkg-opt-media-team] Bug#558609: Bug#558609: cdparanoia no longer works, should retire

Tong Sun suntong at cpan.org
Mon Nov 30 04:27:28 UTC 2009


2009/11/29 Rogério Brito <rbrito at ime.usp.br>:

>> > * What is the driver that your kernel uses for the drive?

$ dmesg | grep -ie 'ide\|ata' || echo no found
no found

$ uptime
 22:36:47 up 34 days,  4:10, 14 users,  load average: 0.31, 0.27, 0.24

% grep -ie 'ide\|ata' /var/log/dmesg
. . .
[    1.556957] pata_amd 0000:00:06.0: version 0.3.10
[    1.556996] pata_amd 0000:00:06.0: setting latency timer to 64
[    1.557102] scsi2 : pata_amd
[    1.557260] scsi3 : pata_amd
[    1.558078] ata3: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14
[    1.558118] ata4: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15
[    1.723616] ata3.00: ATAPI: SONY    CD-RW  CRX195E1, ZYS5, max UDMA/33
[    1.723679] ata3.01: ATAPI: PIONEER DVD-RW  DVR-110D, 1.17, max UDMA/66
[    1.723735] ata3: nv_mode_filter: 0x739f&0x701f->0x701f,
BIOS=0x7000 (0xc0c50000) ACPI=0x701f (60:30:0x1f)
[    1.723740] ata3: nv_mode_filter: 0x1f39f&0x1f01f->0x1f01f,
BIOS=0x1f000 (0xc0c50000) ACPI=0x1f01f (60:30:0x1f)
[    1.736897] ata3.00: configured for UDMA/33
[    1.750282] ata3.01: configured for UDMA/66
[    1.773375] ata4: port disabled. ignoring.
. . .

>> > * If you use an IDE/PATA drive, have you tried using Linux's IDE layer?
>> >  And the SATA "fake" layer (via libata)?
>
> The output from lsmod would help here.

Looked but don't know which is relevant, thus posting all:

$ lsmod
Module                  Size  Used by
loop                   19340  0
usb_storage            81184  0
libusual               29224  1 usb_storage
wmi                    11072  0
video                  24980  0
output                  7296  1 video
sbs                    18064  0
sbshc                   9856  1 sbs
pci_slot                9352  0
container               8192  0
battery                16904  0
ac                      9224  0
kvm_amd                34316  0
kvm                   148848  1 kvm_amd
ppdev                  11656  0
lp                     15332  0
powernow_k8            17284  1
cpufreq_userspace       7684  0
cpufreq_ondemand       11792  1
cpufreq_powersave       5888  0
cpufreq_stats           9604  0
freq_table              8064  3 powernow_k8,cpufreq_ondemand,cpufreq_stats
cpufreq_conservative    11272  0
ipv6                  290304  27
af_packet              22912  2
nls_iso8859_1           9344  1
nls_cp437              11008  1
fuse                   56000  1
snd_hda_intel         498724  1
snd_pcm_oss            41472  0
snd_mixer_oss          18816  2 snd_pcm_oss
snd_pcm                76040  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy           7300  0
snd_seq_oss            33728  0
snd_seq_midi           11264  0
snd_rawmidi            25088  1 snd_seq_midi
snd_seq_midi_event     10880  2 snd_seq_oss,snd_seq_midi
snd_seq                53904  6
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              24720  2 snd_pcm,snd_seq
snd_seq_device         10900  5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
i2c_nforce2            11528  0
k8temp                  9088  0
usblp                  16896  0
i2c_core               25760  1 i2c_nforce2
hwmon                   6968  1 k8temp
snd                    60536  9
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore              11152  2 snd
snd_page_alloc         13072  2 snd_hda_intel,snd_pcm
rtc_cmos               15320  0
rtc_core               21428  1 rtc_cmos
pcspkr                  6912  0
rtc_lib                 6912  1 rtc_core
evdev                  14992  3
parport_pc             41800  1
parport                38560  3 ppdev,lp,parport_pc
button                 11680  0
ohci_hcd               27164  0
forcedeth              58640  0
ehci_hcd               37900  0
sg                     33872  0
usbcore               145776  6 usb_storage,libusual,usblp,ohci_hcd,ehci_hcd
thermal                23200  0
processor              50232  2 powernow_k8,thermal
fan                     9480  0

> cdparanoia -A generates a file called cdparanoia.log, doesn't it? If it
> doesn, please attach it too.

Same as reported, see attachment.

>> Error trying to open /dev/sg0 exclusively (Permission denied)... retrying in
>> 1 second.
>
> This may indicate some problems with hal. What are the permissions on
> /dev/sg0? Where do /dev/cdrom* link to?

$ dir /dev/sg?
crw-rw---- 1 root root 21, 0 2009-10-26 19:32 /dev/sg0
crw-rw----+ 1 root cdrom 21, 1 2009-10-26 19:32 /dev/sg1
crw-rw----+ 1 root cdrom 21, 2 2009-10-26 19:32 /dev/sg2

$ dir /dev/cdrom*
lrwxrwxrwx 1 root root 3 2009-10-26 19:32 /dev/cdrom -> sr0
lrwxrwxrwx 1 root root 3 2009-10-26 19:32 /dev/cdrom1 -> sr1

$ dir /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 2009-10-26 19:32 /dev/sr0

>> $ cdrecord -scanbus | grep -i1 sony
>> Linux sg driver version: 3.5.34
>> scsibus2:
>>         2,0,0   200) 'SONY    ' 'CD-RW  CRX195E1 ' 'ZYS5' Removable CD-ROM
>>         2,1,0   201) 'PIONEER ' 'DVD-RW  DVR-110D' '1.17' Removable CD-ROM
>
> What happens if you try with the other drive?

>> export CDR_DEVICE=/dev/scd0
>
> What happens if you try to use something like "cdparanoia -d /dev/scd0 ..."?

> Oh, just one thing: do you happen to have hal running? Getting hal
> stopped would help for the purposes of the test. I had problems with hal
> interfering with wodim before (from the same package as icedax).

$ cdparanoia -d /dev/scd0 -A
 Checking /dev/scd0 for cdrom...
        Testing /dev/scd0 for SCSI/MMC interface
                SG_IO device: /dev/sr0
CDROM model sensed sensed: SONY CD-RW  CRX195E1 ZYS5
 . . .
       No audio on disc; Cannot determine timing behavior...

And as root, with CD disk in DVD drive:

% cdparanoia -d /dev/sg1 -vsQ
Checking /dev/sg1 for cdrom...
        Testing /dev/sg1 for SCSI/MMC interface
                SG_IO device: /dev/sg1
CDROM model sensed sensed: SONY CD-RW  CRX195E1 ZYS5
Unable to open disc.  Is there an audio CD in the drive?

$ cdparanoia -d /dev/sg2 -vsQ
Checking /dev/sg2 for cdrom...
        Testing /dev/sg2 for SCSI/MMC interface
                SG_IO device: /dev/sg2
CDROM model sensed sensed: PIONEER DVD-RW  DVR-110D 1.17
 . . .
TOTAL       0 [00:00.00]    (audio only)

% cdparanoia -d /dev/sr1 -vsQ
Checking /dev/sr1 for cdrom...
        Testing /dev/sr1 for SCSI/MMC interface
                SG_IO device: /dev/sr1
CDROM model sensed sensed: PIONEER DVD-RW  DVR-110D 1.17
 . . .
TOTAL       0 [00:00.00]    (audio only)

% /etc/init.d/hal stop
Stopping Hardware abstraction layer: hald.

Rerun

cdparanoia -d /dev/sg2 -vsQ
cdparanoia -d /dev/sr1 -vsQ

Got the same result as before.

>> - The kernel that I'm using, although fails cdparanoia, works fine with VCD
>> ripping, CD burning, and even audio extraction with icedax.
>
> This is quite interesting. Perhaps an strace of cdparanoia running an
> extraction would be nice to have.

OK, but since a toc of track 0 with 00:00:00 length is abnormal to me
too, so I just listed toc, and had some interesting discovery:

$ strace -f -o /tmp/strace.out cdparanoia -Q
cdparanoia III release 10.2 (September 11, 2008)


*** glibc detected *** strace: malloc(): memory corruption (fast):
0x0000000000d82da0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fcbe20031b8]
/lib/libc.so.6[0x7fcbe2005ff9]
/lib/libc.so.6(__libc_malloc+0x98)[0x7fcbe20078d8]
strace[0x416e51]
strace[0x417101]
strace[0x40c478]
strace[0x4058de]
strace[0x404616]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fcbe1faf5a6]
strace[0x401f69]
======= Memory map: ========
00400000-00447000 r-xp 00000000 08:05 100976
  /usr/bin/strace
00647000-00648000 rw-p 00047000 08:05 100976
  /usr/bin/strace
00648000-00656000 rw-p 00648000 00:00 0
00d82000-00da3000 rw-p 00d82000 00:00 0                                  [heap]
7fcbdc000000-7fcbdc021000 rw-p 7fcbdc000000 00:00 0
7fcbdc021000-7fcbe0000000 ---p 7fcbdc021000 00:00 0
7fcbe1d7a000-7fcbe1d90000 r-xp 00000000 08:05 16376
  /lib/libgcc_s.so.1
7fcbe1d90000-7fcbe1f90000 ---p 00016000 08:05 16376
  /lib/libgcc_s.so.1
7fcbe1f90000-7fcbe1f91000 rw-p 00016000 08:05 16376
  /lib/libgcc_s.so.1
7fcbe1f91000-7fcbe20da000 r-xp 00000000 08:05 16388
  /lib/libc-2.9.so
7fcbe20da000-7fcbe22da000 ---p 00149000 08:05 16388
  /lib/libc-2.9.so
7fcbe22da000-7fcbe22de000 r--p 00149000 08:05 16388
  /lib/libc-2.9.so
7fcbe22de000-7fcbe22df000 rw-p 0014d000 08:05 16388
  /lib/libc-2.9.so
7fcbe22df000-7fcbe22e4000 rw-p 7fcbe22df000 00:00 0
7fcbe22e4000-7fcbe2301000 r-xp 00000000 08:05 16387
  /lib/ld-2.9.so
7fcbe24e8000-7fcbe24ea000 rw-p 7fcbe24e8000 00:00 0
7fcbe24fc000-7fcbe2500000 rw-p 7fcbe24fc000 00:00 0
7fcbe2500000-7fcbe2501000 r--p 0001c000 08:05 16387
  /lib/ld-2.9.so
7fcbe2501000-7fcbe2502000 rw-p 0001d000 08:05 16387
  /lib/ld-2.9.so
7fffea4ea000-7fffea501000 rw-p 7ffffffe8000 00:00 0                      [stack]
7fffea5f0000-7fffea5f1000 r-xp 7fffea5f0000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
  [vsyscall]
Aborted

see attachment for /tmp/strace.out.

Versions of packages cdparanoia depends on:
ii  libc6                    2.9-4           GNU C Library: Shared libraries
ii  libcdparanoia0           3.10.2+debian-5 audio extraction tool for sampling

>> - This is the only kernel that I use for audio extraction. This is the only
>> time that I try it as well. So I can't provide info for other kernels.
>
> Couldn't you try a newer kernel, please?

Ok, will do at some later time.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdparanoia.log
Type: application/octet-stream
Size: 344 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opt-media-team/attachments/20091129/9bf0f9f2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.out
Type: application/octet-stream
Size: 7904 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opt-media-team/attachments/20091129/9bf0f9f2/attachment-0003.obj>


More information about the Pkg-opt-media-team mailing list