[Vm-dev] Re: RFC: Unix 3.11.3-2116 VM

Bert Freudenberg bert at freudenbergs.de
Tue Sep 1 15:52:56 UTC 2009


On 01.09.2009, at 17:28, Ian Piumarta wrote:

> On Sep 1, 2009, at 6:53 AM, Bert Freudenberg wrote:
>
>>> 	kill -USR1 12345
>> Can we add this to the VM? Helps debugging frozen images. Fully  
>> patched file attached below.
>
> The Unix VM used to do exactly this.  It still does, but the stack  
> printing was subsumed by emergencyDump() (which, if enabled, prints  
> a stack and saves an image file after SIGHUP or SIGQUIT).  This also  
> avoids a conflict of interest with the framebuffer driver which  
> needs to use a SIGUSR.
>
> Is enabling IMAGE_DUMP in sqUnixMain.c sufficient for what you  
> need?  We could also have an option that names an image dump file,  
> disabling the dump if no name is given but still printing the stack.


Ah, I had not noticed this code before. Cool :) Yes, enabling this  
would be great.

An option to toggle it would be nice, too, though I wouldn't mind  
either way.

- Bert -




More information about the Vm-dev mailing list