Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70203 - halt crashes horribly when umounting external USB hard drive (but manual umount works fine)
Summary: halt crashes horribly when umounting external USB hard drive (but manual umou...
Status: RESOLVED NEEDINFO
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:
Keywords:
: 70496 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-05 15:35 UTC by Diego Chantrain
Modified: 2004-11-30 14:03 UTC (History)
1 user (show)

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 Diego Chantrain 2004-11-05 15:35:02 UTC
I have a Western Digital USB/FireWire combo external hard drive. Everything works fine up to the point where I try to shut down the system with /sbin/halt. When the script gets to

*Unmounting filesystems   

I get:

Oops: 0000 [#1]
PREEMT
CPU 0
      <rather long snip, including a call trace >
/sbin/rc: Segmentation Fault   umount ${x} >&/dev/null 
INIT: No more processes left at this runlevel

then the computer just hangs there. The problem does not occur if I umount the hard disk manually before shutting down the computer.




Reproducible: Always
Steps to Reproduce:
1.Mount the drive
2.Shutdown the computer 
3.

Actual Results:  
Crash during shutdown

Expected Results:  
Normal shutdown, the drive being umounted along with other filesystems

Portage 2.0.51-r2 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/root/portage_temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm audiofile avi berkdb bitmap-fonts bonobo cdr crypt cups
divx4linux dvd dvdr encode esd ethereal evo f77 fam fbcon flac foomaticdb gdbm
gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml icq imagemagick imap imlib java
joystick jpeg libg++ libwww lirc mad mikmod motif mozilla mpeg msn ncurses nls
offensive oggvorbis opengl oss pam pdflib perl pic png python quicktime readline
samba sdl slang spell ssl svga tcltk tcpd tetex tiff truetype unicode usb videos
x x86 xml xml2 xmms xv xvid yahoo zlib"
Comment 1 SpanKY gentoo-dev 2004-11-05 15:37:47 UTC
this is a kernel bug, not baselayout
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-11-13 04:16:29 UTC
Are you using ub or usb-storage? Can we see the call trace?
Comment 3 Diego Chantrain 2004-11-15 02:05:59 UTC
I am away from the computer until Thursday, so I cannot check right now but I am almost 100% sure it's usb-storage I am using. As for seeing the call trace... I will gladly paste it if a kind soul tells me where to find it upon reboot. I do have, however, a picture of the screen I took when this crashed (although I was using gentoo-dev-sources-2.6.5-r1 at the time, but the crash is still here with 2.6.9). I know it's not exactly an elegant solution, but I can upload that from where I am right now.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-11-17 15:53:28 UTC
Should be in /var/log/messages or /var/log/debug.log
Chances are we probably can't do much with the call trace and would ask you to report it upstream. You may wish to test with 2.6.10-rc2 and see if its been fixed there.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2004-11-17 15:54:11 UTC
*** Bug 70496 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2004-11-30 09:12:46 UTC
Please test with 2.6.10-rc2 and let us know if that helps.
Comment 7 Diego Chantrain 2004-11-30 14:03:53 UTC
Just tested it 5 times in a row with 2.6.10-rc2 and the shutdown functionned normally. Looks like it's been fixed somehow... Kewl :-)