All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Shieh <ashieh@cs.cornell.edu>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Hangs during boot; Zombie processes + dangling file locks
Date: Mon, 07 Jun 2004 06:30:26 -0400	[thread overview]
Message-ID: <40C443C2.3020708@cs.cornell.edu> (raw)

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

                 reply	other threads:[~2004-06-07 10:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40C443C2.3020708@cs.cornell.edu \
    --to=ashieh@cs.cornell.edu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.