#83 Misbehavior on exit

Bug
open
nobody
None
5
2002-03-13
2002-03-13
Urpo Lankinen
No

My CD drive is a Samsung CD-R/RW SW-208B (used via SCSI
emulation).

Grip works wonderfully with the drive, except that I
need to use external cdparanoia due to permissions.
(Which is convinient anyway, because cdparanoia has a
tendency to get "stuck" to the ends of the tracks
sometimes, and a simple killall -ABRT cdparanoia fixes
that.)

However, in order to use grip, I need to first insert
CD to drive, start Grip, do my ripping, exit Grip, and
then eject CD. Ejecting the CD while grip is running,
either via drive button or the eject button in the
program, confuses the hell out of it, and attempt to
start or exit the program when the disc was ejected
likewise makes it confused.
(By "confused" i mean "stuck there, window completely
unresponsive and not refreshing, and ocassionally
freezes the whole machine momentarily")

Example: I ejected the CD after ripping was done.
Attempting to close the program with the "power button"
made it jam. I killed the window, after which even kill
-9 as root couldn't kill the process - I needed to wait
until it had done messing with the drive.

Here's what kernel log says in the exit:

scsi : aborting command due to timeout : pid 67230,
scsi0, channel 0, id 0, lun 0 Start/Stop Unit 01 00 00
00 00
hdc: irq timeout: status=0xd0 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0xc0 { Busy }
scsi0 channel 0 : resetting for second half of retries.
SCSI bus is being reset for host 0 channel 0.
hdc: status timeout: status=0xd0 { Busy }
hdc: drive not ready for command
hdc: ATAPI reset complete
scsi : aborting command due to timeout : pid 67233,
scsi0, channel 0, id 0, lun 0 Start/Stop Unit 01 00 00
00 00
SCSI host 0 abort (pid 67233) timed out - resetting
SCSI bus is being reset for host 0 channel 0.
hdc: irq timeout: status=0xd0 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0x80 { Busy }
hdc: ATAPI reset complete
hdc: irq timeout: status=0xc0 { Busy }
hdc: status timeout: status=0xd0 { Busy }
hdc: drive not ready for command
hdc: ATAPI reset complete
sr0: CDROM (ioctl) error, command: Start/Stop Unit 01
00 00 00 00
sr00:00: old sense key None
Non-extended sense class 0 code 0x0

(PID 67233 was Grip.)
Apart of this slight annoyance, the program works just
fine.

Discussion

  • Mike Oliphant
    Mike Oliphant
    2002-03-18

    Logged In: YES
    user_id=20614

    Can you run grip with "--verbose" and see if that sheds any
    light on where the hang happens? Thanks.

     
  • Urpo Lankinen
    Urpo Lankinen
    2002-03-27

    Logged In: YES
    user_id=75751

    Well, -v doesn't help too much. =(

    If I stick in a CD, then say grip -v, it goes on and gives
    normal messages:

    ...
    Drive status is 4
    audio status is 21
    Drive status is 4
    audio status is 21
    Drive status is 4
    audio status is 21
    Drive status is 4
    audio status is 21

    [At this point I hit eject]

    Drive status is 2
    Drive status is 2
    Drive status is 2
    Drive status is 2
    Drive status is 2
    Drive status is 2

    [At this point I hit the "power" button; It stopped spewing
    messages and froze. Did killall -9 grip in other terminal.
    After a minute or so, it produced the kernel error messages,
    and then...]

    Killed

    When starting without CD, it freezes likewise when the
    window is half drawn!