Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77802 - System crash when switching off usb2 dvd writer
Summary: System crash when switching off usb2 dvd writer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: 2.6.11
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 03:14 UTC by Gael Beaudoin
Modified: 2005-03-02 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gael Beaudoin 2005-01-13 03:14:51 UTC
I have an external dvdwriter (nec 3500a) in a 3,5" usb2 external rack.

It works flawlessly : I can burn cd/dvd without any problems.

But when I switch it off, or unplug it, gentoo freezes : when under kde, the programs stops responding, and after few seconds, the mouse stop moving too.

There's nothing in /var/log/kernel, and I don't know what to do.
I have an up to date gentoo, using 2.6.10 kernel. 

Reproducible: Always
Steps to Reproduce:
1.switch on dvd writer
2.use it
3.switch off the dvd writer

Actual Results:  
the system crash, nothing respond. I have to reset y computer.

Expected Results:  
The system sould not crash :)

gentoo-dev-source 2.6.10
Comment 1 Gael Beaudoin 2005-01-13 23:52:12 UTC
I posted some more infos here : http://forums.gentoo.org/viewtopic.php?t=278940

And there is a similar bug there : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=133249
Comment 2 Gael Beaudoin 2005-01-13 23:58:10 UTC
Again, more infos : two patches found, but I don't know if I can apply them on gentoo-dev-source (don't even know how to do this :/)

http://marc.theaimsgroup.com/?l=linux-kernel&m=109647165425442&w=2
and
http://marc.theaimsgroup.com/?l=linux-usb-devel&m=109744234829347&w=2

Hope it helps !
Comment 3 Micheal Marineau (RETIRED) gentoo-dev 2005-01-14 08:59:28 UTC
A quick course on patching:
 * copy the patch to a file on your system (for those links try the download raw, save the file, and delete the email parts leaving just the patch)
 * cd /usr/src/linux (or the specific source tree)
 * cat /path/to/patch.diff | patch
 * make as usual

For future note if the patch includes the source tree in the file locations (ie linux-2.6.10/drivers/somefile) you have to use patch -p1 to strip off the first directory. This isn't needed for these patches, but for many you will.

They will probably apply just fine against gentoo-dev-sources.  Good luck!
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-01-20 08:54:58 UTC
If patching is too much trouble, could you please try 2.6.11-rc1 and see if the problem is fixed there?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-01-28 03:43:42 UTC
Please reopen when you reply to comment #4
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-01-28 03:43:55 UTC
.
Comment 7 Gael Beaudoin 2005-01-28 04:23:14 UTC
I'm using gentoo-dev-sources, and there is no 2.6.11rc.

Which kernel could I try ?
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-01-28 07:19:02 UTC
development-sources-2.6.11_rc2
Comment 9 Gael Beaudoin 2005-01-28 14:32:23 UTC
Ok, It works using development-sources-2.6.11_rc2 ;) !
Thanks !

What's the difference between gentoo-dev-sources and development-sources ? I did not find information in gentoo docs.

This kernel seems to work nicely, but is a little bit slower at start I think.
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-01-29 09:38:59 UTC
See:
http://www.gentoo.org/doc/en/gentoo-kernel.xml

and:
http://dev.gentoo.org/~dsd/gentoo-dev-sources/

Reopening bug as this issue still exists in 2.6.10
Greg, do you recall any patches going through your hands to fix this?
Comment 11 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-01-31 15:07:03 UTC
Lots of scsi and usb patches went in, one of them (or a combo of a bunch of them) probably fixed this.
Comment 12 Alessio Caiazza 2005-02-22 09:36:37 UTC
I'm a ppc user
and I've some trubble in compiling development-sources
there's no patch for gentoo-dev-sources-2.6.9 ?
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2005-03-02 08:50:49 UTC
gentoo-dev-sources-2.6.11 is now in portage