You are not logged in.

#1 2004-11-09 14:12:28

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Kernel panics during shutdown

I have Arch running on my laptop (Sony V505 series). Everything works fine, but when I do a shutdown, the kernel panics every time. There is nothing in the logs. I could take a picture of the console after the panic if that will help.

Mark

ed: OK, I stand corrected ... it does not panic every time. I did a shutdown just now, intending to write down any obviously pertinent bits in the panic message, but it did not panic. I *seem* to remember something related to USB in there.

Offline

#2 2004-11-09 14:38:43

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

Re: Kernel panics during shutdown

what kernel?


The impossible missions are the only ones which succeed.

Offline

#3 2004-11-09 15:03:03

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

Linux yen 2.6.9-ARCH #1 SMP Tue Oct 26 11:33:54 PDT 2004 i686 Intel(R) Pentium(R) M processor 1500MHz GenuineIntel GNU/Linux

Mark

Offline

#4 2004-11-09 15:21:26

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

Oh, and I noticed the message on the homepage. I have all three modules loaded:

yen mark ~/ISO $ lsmod | grep hcd
ohci_hcd               22660  0
ehci_hcd               31748  0
uhci_hcd               33680  0
yen mark ~/ISO $

I am using hotplug.

Mark

Offline

#5 2004-11-13 18:56:53

uberGeek
Member
From: Near Chicago
Registered: 2004-01-07
Posts: 65
Website

Re: Kernel panics during shutdown

Same problem here, 2.6.9 Kernel. Hotplug, khubd seem to be the problem.

Possible related issue, on startup I get an error along the lines of:

hotplug.functions, line 113, pnp.distmap not found.

The little research I've done so far tells me the Slackware hotplug package includes the pnp.distmap file, however, I can't find it on my system.

And, the last odd thing.  I also get proc/bus/usb does not exist on startup, and I'm not using the SCSI kernel.

Any ideas are welcome.

Update 15NOV04:
I got pnp.distmap from: http://cvs.sourceforge.net/viewcvs.py/l … iew=markup  and put it in /etc/hotplug.  No more pnp.distmap not found on boot up.


carb $ now; uname -a; uptime
Sun 03Jul11 14:54:25 CDT -0500
Linux carb 2.6.17-ARCH #1 SMP PREEMPT Fri Jul 7 09:15:53 CEST 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
14:54:25 up 1463 days,  9:24,  1 user,  load average: 1.00, 1.00, 1.00

Offline

#6 2004-11-29 15:11:14

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

I did some testing with my Gentoo installation on this same machine ... things work fine with kernel 2.6.7 but I get these same crashes on shutdown with both 2.6.8 and 2.6.9.

The kernel does not panic *every* time I do a shutdown, but it does panic most times ... maybe about 75%. The last normal shutdown message I see before the panic is the Hotplug shutdown line.

Mark

Offline

#7 2004-12-15 18:18:54

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

An update: Over the past few weeks I have burned through a number of differant distros, eventually coming back to Arch. I'm typing this from a clean install of 0.7 beta 2 and I am still getting the crash/panic during most of my shutdowns ... but not all of them.

Mark

Offline

#8 2004-12-15 18:30:43

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Kernel panics during shutdown

if you know the modules of all your devices, I would suggest removing hotplug at boot time.

udev uses hotplug internally, for actual "hot plugged" devices, such as usb and things of that nature.  Running the hotplug daemon at boot is only for "cold plugged" devices - which are already part of the computer when booted.
If you know the modules for all the cold plugged devices (video card, sound card, etc etc) there is no reason to run it at boot.

Try removing the hotplug daemon, and see if the same thing happens.

DISCLAIMER: I am very much against the hotplug daemon, I think it sucks and causes too much module bloat.

Offline

#9 2004-12-15 19:03:19

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

Thanks, I'll give it a shot. I'll just save a copy of my lsmod output for reference.

Mark

Offline

#10 2004-12-15 19:06:05

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Kernel panics during shutdown

PunkRawkSucks wrote:

Thanks, I'll give it a shot. I'll just save a copy of my lsmod output for reference.

Mark

good idea - FYI not all the modules that hotplug loads are needed... like joydev and things like that...

Offline

#11 2004-12-15 19:14:57

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

For sure. I'll start with the ones I know (network, sound, usb etc) and work form there. My current lsmod has:

Module                  Size  Used by
eth1394                22664  0
ohci_hcd               22660  0
ipw2200               117484  0
ieee80211              34116  1 ipw2200
ieee80211_crypt         5508  1 ieee80211
eepro100               31372  0
mii                     5632  1 eepro100
ohci1394               35588  0
ieee1394              114360  2 eth1394,ohci1394
snd_intel8x0m          19400  1
snd_intel8x0           36428  1
snd_ac97_codec         73808  2 snd_intel8x0m,snd_intel8x0
snd_pcm_oss            56488  0
snd_mixer_oss          21376  1 snd_pcm_oss
snd_pcm               101508  3 snd_intel8x0m,snd_intel8x0,snd_pcm_oss
snd_timer              27140  1 snd_pcm
snd_page_alloc         10248  3 snd_intel8x0m,snd_intel8x0,snd_pcm
gameport                5120  1 snd_intel8x0
snd_mpu401_uart         8704  1 snd_intel8x0
snd_rawmidi            26276  1 snd_mpu401_uart
snd_seq_device          8456  1 snd_rawmidi
snd                    58980  14 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              10848  1 snd
usb_storage            70848  0
ehci_hcd               31748  0
uhci_hcd               33680  0
shpchp                101252  0
pci_hotplug            13060  1 shpchp
tsdev                   8128  0
evdev                   9984  0
sonypi                 24404  3
ntfs                  156432  1
3c59x                  40104  0

Offline

#12 2004-12-15 21:07:05

PunkRawkSucks
Member
From: Kingston, Ontario, Canada
Registered: 2004-11-06
Posts: 47
Website

Re: Kernel panics during shutdown

This seems to have worked! I would like to continue running hotplug but I guess I'll have to wait for the next kernel release and see if it stops puking. I wish Arch kept older kernels around because this was never a problem with 2.6.7, only 2.6.8 and 2.6.9. So, "something has changed".

Thanks,

Mark

Offline

#13 2004-12-15 21:44:28

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: Kernel panics during shutdown

i too got some of those weird crashes after playing with my usb device. however, i never used hotplug before... so i dont know how much hotplug-related this problem is.

/me crossing my fingers for next kernel release.

Offline

#14 2004-12-15 22:41:13

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Kernel panics during shutdown

PunkRawkSucks wrote:

This seems to have worked! I would like to continue running hotplug but I guess I'll have to wait for the next kernel release and see if it stops puking. I wish Arch kept older kernels around because this was never a problem with 2.6.7, only 2.6.8 and 2.6.9. So, "something has changed".

Thanks,

Mark

why do you want to continue running hotplug.  the hotplug daemon is only used during bootup.
for plugging devices in on a running system, that's done by udev.. which calls hotplug internally.
the hotplgu daemon (the one in rc.conf) does nothing if you know your system modules... and it actually slows down boot...

Offline

#15 2004-12-16 06:22:37

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Kernel panics during shutdown

phrakture wrote:

why do you want to continue running hotplug.  the hotplug daemon is only used during bootup.
for plugging devices in on a running system, that's done by udev.. which calls hotplug internally.
the hotplgu daemon (the one in rc.conf) does nothing if you know your system modules... and it actually slows down boot...

It also loads modules for the different interfaces.  If you don't explictly load the firewire modules, and don't run hotplug, and plug in a firewire device nothing will happen.  Your choice is to load all the modules by hand for the different device busses you have or run hotplug and let it load them all for you.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB