* [uml-devel] Crash early in boot with 2.4.25+uml-patch-2.4.24-1
@ 2004-02-27 8:29 Ross Combs
2004-02-27 14:19 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Ross Combs @ 2004-02-27 8:29 UTC (permalink / raw)
To: user-mode-linux-devel
I've been trying to debug an early boot crash with 2.4.25 (x86 with
UML running on Red Hat 7.3 with kernel 2.4.20-28.7.
The boot messages look like this when it dies:
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
make_umid - mkstemp failed, errno = 13
tracing thread pid = 22242
Segmentation fault
If I keep everything the same except not call chroot() in my startup
script it boots fine (until mounting the root fs which would need
modified paths to work without chroot). The messages look like this
when it works:
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
make_umid - mkstemp failed, errno = 13
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Checking for /dev/anon on the host...Not available (open failed with errno 2)
make_umid - mkstemp failed, errno = 13
Linux version 2.4.25-1um (nospam@nospam.com) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #11 Fri Feb 27 02:23:25 EST 2004
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
...
The mkstemp permission problem with the pidfile has always been there
because there is only one writable place in the chrooted environment,
but it has never caused a problem before.
It looks like the /dev/anon checks are somehow skipped when using
chroot and it jumps directly to starting the tracing thread which then
dies after receiving a SIGUSR1.
I've tried adding more debug messages to the boot sequence. They
didn't tell me a whole lot but here is the sequence when it dies:
...
Postsetup completed
tracing thread pid = 21888
after clone
after ptrace
after debug
ready to loop
after waitpid
got sig 10
before do_proc_op
before switch
got REBOOT or HALT
Segmentation fault
I really have no clue what is causing this and the only factor I have
found to make a difference doesn't make sense.
Has anyone else seen this? Do you have any ideas?
Thanks,
-Ross
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-27 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 8:29 [uml-devel] Crash early in boot with 2.4.25+uml-patch-2.4.24-1 Ross Combs
2004-02-27 14:19 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox