From: Jeff Dike <jdike@ka...> - 2002-08-31 00:52:36
> (gdb) bt
> #0 0xa0108004 in __libc_write ()
> #1 0x00000001 in ?? ()
> #2 0xa00efe15 in generic_console_write (fd=1, buf=0xa019634d "Power down.\n", n=12, unused=0xa01e47c8) at chan_user.c:60
Where are you sending the console output of these UMLs? And why is it
hanging writes as they shut down?
From: Michael Richardson <mcr@sa...> - 2002-09-02 14:10:52
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> "Jeff" == Jeff Dike <jdike@...> writes:
Jeff> mcr@... said:
>> (gdb) bt
>> #0 0xa0108004 in __libc_write ()
>> #1 0x00000001 in ?? ()
>> #2 0xa00efe15 in generic_console_write (fd=1, buf=0xa019634d "Power down.\n", n=12, unused=0xa01e47c8) at chan_user.c:60
Jeff> Where are you sending the console output of these UMLs? And why is
Jeff> it hanging writes as they shut down?
It gets run under expect(1).
I realized that I wasn't supposed to just attach to the process with
GDB, but rather, use the whole ptrace proxy? The problem is that the
jobs that hang are running under cron. I notice that I can't use
uml_mconsole to set gdb-pid, and doing "config gdb=xterm" won't work
because there is no $DISPLAY set either.
I'm running again with a $DISPLAY to see if it will still hang.
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] mcr@... http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Finger me for keys
-----END PGP SIGNATURE-----
From: Jeff Dike <jdike@ka...> - 2002-09-02 18:05:14
> It gets run under expect(1).
Well, at this point, I'd call this your problem. If you send the UML console
output somewhere, you should make sure that it will be accepted and won't
cause the writes to hang.
I could make the writes be non-blocking, but then you'd start complaining
about output disappearing.