Skip to contentSkip to conversation

Is there an easy way to do a stack dump on UML?

uml-devel Rob Landley 3 participants 5 messages Dec 2, 2005 – Dec 4, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

I don't know how to send sysrq through the stdio console.

I have a reproducable hang (well, I did this morning and think I can recreate it). It's gcc 4.0.2 attempting to statically link busybox (the allyesconfig version), it just goes off into la-la land. left it for an hour and no progress, and UML is not eating noticeable CPU according to top (it roughly correlates with the timer interrupt load).

I'd like to see what the heck this sucker thinks it's doing, but it's kinda tricky to strace "make". (Too many forks.)

Rob

Signature · 13 lines
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#1 lore raw
Quoted 1 line · Rob Landley

I don't know how to send sysrq through the stdio console.

uml_mconsole $umid sysrq or "sysrq" at the uml_mconsole $umid prompt? sysrq $let is for the $let sysrq.

Quoted 10 lines

I have a reproducable hang (well, I did this morning and think I can recreate it). It's gcc 4.0.2 attempting to statically link busybox (the allyesconfig version), it just goes off into la-la land. left it for an hour and no progress, and UML is not eating noticeable CPU according to top (it roughly correlates with the timer interrupt load).

I'd like to see what the heck this sucker thinks it's doing, but it's kinda tricky to strace "make". (Too many forks.)

Rob

Signature · 23 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw
Quoted 5 lines · Blaisorblade
Quoted 1 line · Rob Landley

I don't know how to send sysrq through the stdio console.

uml_mconsole $umid sysrq or "sysrq" at the uml_mconsole $umid prompt? sysrq $let is for the $let sysrq.

I've never used mconsole. Never needed it before.

Perhaps if I attach to a serial console instead of stdio I can send sysrq that way...

Rob

Signature · 13 lines
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#3 lore raw
Quoted 4 lines · Rob Landley

I've never used mconsole. Never needed it before.

Perhaps if I attach to a serial console instead of stdio I can send sysrq that way...

No. Just think a little. Banging on the SysRq key on your keyboard can't do anything but send SysRq to the host.

SysRq for a virtual machine has to be an out-of-band thing wrt the host. For UML, that's mconsole.

Jeff

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#4 lore raw
Quoted 8 lines · Jeff Dike
Quoted 4 lines · Rob Landley

I've never used mconsole. Never needed it before.

Perhaps if I attach to a serial console instead of stdio I can send sysrq that way...

No. Just think a little. Banging on the SysRq key on your keyboard can't do anything but send SysRq to the host.

I know. That's why I asked. I thought there might be some other key combination that could do the same thing for a UML console. (QEMU listens to the tty to do various escapes in non-graphics mode, for example.)

Quoted 1 line

SysRq for a virtual machine has to be an out-of-band thing wrt the host.

Yeah, sending compressed data across the console becomes a bit dangerous otherwise. But again, the difference between a pipe and a tty is that a tty has out-of-band information attached.

Possibly a couple of different shift keys plus the character in question? (Something X wouldn't intercept first, qemu uses ctrl-alt and it seems to work for them.) According to man 4 console_ioctl, TIOCLINUX subcode 6 gives me something called "shift_state", so maybe I can beat some information out of the tty to tell when the user hit "ctrl-alt t" and turn that into sysrq-t? In theory it might work both when stdin is a tty and via an xterm...

To-do item. The documentation on this sucks pretty badly...

Quoted 1 line

For UML, that's mconsole.

Except that serial consoles can also do sysrq. (I vaguely remember they send a break signal or some such. Dunno how to do that on an emulated one...)

Quoted 1 line

Jeff

Rob

Signature · 13 lines
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel