Bug#333052: Bug#333522: possible problem cause: wait4(-1)
- To: Marco d'Itri <md@Linux.IT>
- Cc: 333052@bugs.debian.org, Horms <horms@debian.org>
- Subject: Bug#333052: Bug#333522: possible problem cause: wait4(-1)
- From: Rusty Russell <rusty@rustcorp.com.au>
- Date: Tue, 01 Nov 2005 15:23:14 +1100
- Message-id: <1130818994.22204.29.camel@localhost.localdomain>
- Reply-to: Rusty Russell <rusty@rustcorp.com.au>, 333052@bugs.debian.org
- In-reply-to: <20051031185312.GB4283@wonderland.linux.it>
- References: <20051020074407.GA4830@wonderland.linux.it> <20051021092615.GC9453@debian.org> <20051021145435.GA9472@wonderland.linux.it> <20051026042337.GN6423@verge.net.au> <20051026073754.GB4537@wonderland.linux.it> <20051027035831.GE26707@verge.net.au> <20051027081008.GA4766@wonderland.linux.it> <1130484285.7615.31.camel@localhost.localdomain> <20051028130833.GB4212@wonderland.linux.it> <1130549126.7615.40.camel@localhost.localdomain> <20051031185312.GB4283@wonderland.linux.it>
On Mon, 2005-10-31 at 19:53 +0100, Marco d'Itri wrote:
> On Oct 29, Rusty Russell <rusty@rustcorp.com.au> wrote:
>
> > Please send complete log.
> Here it is. I can reproduce the bug even with a script like:
>
> while read m; do
> /sbin/modprobe.real $m &
> done < LIST
>
>
> (Each command was logged to different files which have been sorted by
> PID and reassembled.)
Unfortunately, this destroys the time sequence. But it looks very much
like usbcore is slow to insmod, and the ehci-hcd.ko and uhci-hcd.ko
modules are not waiting for it to be inserted.
Hmm, if the root filesystem is read-only, then the locking will fail
(you need to open a file read/write to get an exclusive fcntl lock).
Perhaps this is happening to you? If not, please check again that you
have the modified modprobe (strace of modprobe uhci-hcd after usbcore is
already inserted should show it locking usbcore).
We need to change locking strategy, I think. Yet there's no clear way
to do this. Might have to lock each module in the kernel somehow.
Fucking Unix, what a mess.
Rusty.
--
A bad analogy is like a leaky screwdriver -- Richard Braakman
Reply to: