linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Hangs during boot; Zombie processes + dangling file locks
@ 2004-06-07 10:30 Alan Shieh
  0 siblings, 0 replies; only message in thread
From: Alan Shieh @ 2004-06-07 10:30 UTC (permalink / raw)
  To: user-mode-linux-devel

Hi,

I'm having some problems with User-mode Linux. I also have some simple 
questions about running gdb.

I am hosting on Fedora Core 1, w/ a modified 2.4.22 host. I have 
disabled exec-shield{,-randomize}. The guest is vanilla 2.4.26 + uml + 
my modifications. Note that the host and guest kernels have 
modifications to the net/ipv4 and include/net/sock.h. These changes are 
stable under 2.4.26 when running on the real hardware.

I consistently encounter 2 showstoppers.

1. UML hangs at
Setting the System Clock using the Hardware Clock as reference...
It looks like the kernel is not taking interrupts. I can't generate 
breaks from the GDB window. I would like to provide a backtrace, but I 
don't know how to externally force a segfault. I tried sending SIGSEGV, 
SIGABRT, ... , and only elicited the printk

sleeping process <pid> got unexpected signal : <signum>

(insert <pid> and <signum> as appropriate)

Is there way to generate something like an NMI to force a coredump or 
GDB-visible break?

2. Issue #1 came up after I rebuilt the kernel to get rid of possible 
poisoning from i386 build.
   Before hitting issue #1, I encountered problems while mounting hostfs 
on the Debian 3.0 image
   mount none /mnt/home -t hostfs
       -- Panicks immediately. I believe a null parameter is passed to 
do_mount
   mount none /mnt/home -t hostfs -o /tmp/foo
       -- Returns with "invalid option" error

This happened with both vanilla UML, and my patched UML.

Sorry, I did not get a backtrace, and no longer have that instance of 
the kernel. But I fear hitting this problem again once problem #1 is 
resolved.

I also occasionally get stuck with a bunch of UML "linux" zombies after 
a crash. This happens if I kill UML with some signals (SIGHUP). The 
zombies also hold on to the root_fs lock. This problem does not occur 
with SIGKILL.

** GDB
I prefer to use GDB in XEmacs. Do the DDD instructions apply to this 
environment?
With KGDB, it is possible to enable GDB on the fly using the ioctl() 
interface on /dev/ttyS?. Is there equivalent functionality in UML?

Thanks in advance for your help.

Alan


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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] only message in thread

only message in thread, other threads:[~2004-06-07 10:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07 10:30 [uml-devel] Hangs during boot; Zombie processes + dangling file locks Alan Shieh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox