linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO)
@ 2006-10-29 19:20 Gregor Jasny
  2006-10-29 21:31 ` Ken Moffat
  2006-10-30 11:45 ` Jens Axboe
  0 siblings, 2 replies; 28+ messages in thread
From: Gregor Jasny @ 2006-10-29 19:20 UTC (permalink / raw)
  To: Linux Kernel, Jeff Garzik, linux-ide

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

Hi,

Today I tried the new cdparanoia from Debian Sid (3.10+debian~pre0-2).
When I started ripping with "cdparanoia -d /dev/scd0 1" my system
freezes after some seconds. There is no oops and even the console
cursor stops blinking.

If I start cdparanoia with -g /dev/scd0 it starts ripping and but the
kernel prints many "program cdparanoia not setting count and/or
reply_len properly" warnings. But this seems to be a cdparanoia bug.

My CDROM:
Vendor:                    PIONEER
Product:                   DVD-ROM DVD-106
Revision level:            1.22





http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=391901

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain; name=backtrace.txt; charset=ANSI_X3.4-1968, Size: 3879 bytes --]

(gdb) bt full
#0  0xb7ed1600 in ioctl () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#1  0x08050dea in sgio_handle_scsi_cmd (d=0x806b0a8, cmd=0xbf974812 "\022", cmd_len=6, in_size=0, out_size=56, bytefill=255 'ÿ', bytecheck=1,
    sense=0xbf974818 "") at scsi_interface.c:352
        status = 0
        hdr = {interface_id = 83, dxfer_direction = -4, cmd_len = 6 '\006', mx_sb_len = 16 '\020', iovec_count = 0, dxfer_len = 56, dxferp = 0x806b4d8,
  cmdp = 0xbf974812 "\022", sbp = 0xbf974818 "", timeout = 50000, flags = 1, pack_id = 0, usr_ptr = 0x0, status = 0 '\0', masked_status = 0 '\0',
  msg_status = 0 '\0', sb_len_wr = 0 '\0', host_status = 0, driver_status = 0, resid = 0, duration = 0, info = 0}
#2  0x08050ef4 in handle_scsi_cmd (d=0x806b0a8, cmd=0xbf974812 "\022", cmd_len=6, in_size=0, out_size=56, bytefill=255 'ÿ', bytecheck=1, sense=0xbf974818 "")
    at scsi_interface.c:391
No locals.
#3  0x08053ff6 in scsi_inquiry (d=0x806b0a8) at scsi_interface.c:1535
        sense = "\000\000\000\000\001\000\000\000\000\000\000\001\002\000\000"
        cmd = "\022\000\000\0008"
#4  0x0804e146 in cdda_identify_scsi (generic_device=0x0, specialized_device=0x806b098 "/dev/scd0", messagedest=0, messages=0x0) at scan_devices.c:703
        d = (cdrom_drive *) 0x806b0a8
        i_st = {st_dev = 14, __pad1 = 0, st_ino = 2028, st_mode = 25008, st_nlink = 1, st_uid = 0, st_gid = 24, st_rdev = 2816, __pad2 = 0, st_size = 0,
  st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1162150314, tv_nsec = 324927620}, st_mtim = {tv_sec = 1162150314, tv_nsec = 324927620}, st_ctim = {
    tv_sec = 1162150314, tv_nsec = 324927620}, __unused4 = 0, __unused5 = 0}
        g_st = {st_dev = 141136301929769700, __pad1 = 0, st_ino = 48, st_mode = 3070230528, st_nlink = 0, st_uid = 0, st_gid = 9914656, st_rdev = 8589934641,
  __pad2 = 65535, st_size = -1208806156, st_blksize = -1209204882, st_blocks = -1208766476, st_atim = {tv_sec = 3, tv_nsec = -1080600960}, st_mtim = {
    tv_sec = -1080604384, tv_nsec = -1209230685}, st_ctim = {tv_sec = 3, tv_nsec = -1080604488}, __unused4 = 3214362972, __unused5 = 14}
        use_sgio = 1
        i_fd = 6
        i = -1080604360
        g_fd = 7
        version = 3
        type = 11
        p = 0xbf97495c "\016"
#5  0x0804cd4e in cdda_identify (device=0x806b008 "/dev/scd0", messagedest=0, messages=0x0) at scan_devices.c:123
        st = {st_dev = 14, __pad1 = 0, st_ino = 2028, st_mode = 25008, st_nlink = 1, st_uid = 0, st_gid = 24, st_rdev = 2816, __pad2 = 0, st_size = 0,
  st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1162150314, tv_nsec = 324927620}, st_mtim = {tv_sec = 1162150314, tv_nsec = 324927620}, st_ctim = {
    tv_sec = 1162150314, tv_nsec = 324927620}, __unused4 = 0, __unused5 = 0}
        d = (cdrom_drive *) 0x0
#6  0x0804a485 in main (argc=4, argv=0xbf9756f4) at main.c:794
        toc_bias = 0
        toc_offset = 0
        sample_offset = 0
        force_cdrom_endian = -1
        force_cdrom_sectors = -1
        force_cdrom_overlap = -1
        force_cdrom_device = 0x806b008 "/dev/scd0"
        force_generic_device = 0x0
        force_cdrom_speed = -1
        max_retries = 20
        span = 0x806b018 "1"
        output_type = 1
        output_endian = 0
        query_only = 0
        batch = 0
        i = 0
        paranoia_mode = 223
        info_file = 0x0
        out = 0
        search = 0
        c = -1
        long_option_index = 0
(gdb) list scsi_interface.c:1535
1530    /* request vendor brand and model */
1531    unsigned char *scsi_inquiry(cdrom_drive *d){
1532      unsigned char sense[SG_MAX_SENSE];
1533      unsigned char cmd[6]={ 0x12,0,0,0,56,0 };
1534
1535      if(handle_scsi_cmd(d,cmd,6, 0, 56,'\377',1,sense)) {
1536        cderror(d,"008: Unable to identify CDROM model\n");
1537        return(NULL);
1538      }
1539      return (d->sg_buffer);



^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2006-11-14 22:52 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-29 19:20 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO) Gregor Jasny
2006-10-29 21:31 ` Ken Moffat
2006-10-29 22:05   ` Brice Goglin
2006-10-30 11:45 ` Jens Axboe
2006-10-30 13:14   ` Gregor Jasny
2006-10-30 13:17   ` Gregor Jasny
2006-10-30 13:27     ` Jens Axboe
2006-11-09  9:46       ` Brice Goglin
2006-11-09 14:00         ` Tejun Heo
2006-11-09 14:14           ` Jeff Garzik
2006-11-09 20:13             ` Monty Montgomery
2006-11-09 15:50           ` Douglas Gilbert
2006-11-10 10:36             ` Luben Tuikov
2006-11-10 12:58               ` Douglas Gilbert
2006-11-10 20:08                 ` Luben Tuikov
2006-11-11 10:46                   ` Christoph Hellwig
2006-11-11 16:39                     ` Douglas Gilbert
2006-11-11 19:09                     ` Luben Tuikov
2006-11-14 22:52                       ` Monty Montgomery
2006-11-09 20:09           ` Monty Montgomery
2006-11-09 22:47             ` Tejun Heo
2006-11-10 16:15             ` Jens Axboe
2006-11-10 16:19               ` Brice Goglin
2006-11-10 16:23                 ` Jens Axboe
2006-11-14 12:24                   ` Brice Goglin
2006-11-14 12:29                     ` Jens Axboe
2006-11-14 12:40                       ` Brice Goglin
2006-11-14 12:50                         ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).