Re: Q&A on textdumps



On Mon, 31 Dec 2007, Andrey Chernov wrote:

On Sun, Dec 30, 2007 at 01:11:29PM +0000, Robert Watson wrote:

I've received a few textdump-related questions that I thought I'd share my answers to.

In case I have remote machine with console unavailable, is it will be enough to use KDB_UNATTENDED and debug.ddb.textdump.pending=1 in /etc/sysctl.conf to get automatical unattended textdumps with auto-reboot?

It depends whether you want to gather information using DDB output capture or not. If you do the above, you should get a textdump (although I've not tried it), but because there's no scripted DDB output, you won't get extended debugging information. The configuration I'm using is to use a script like the following:

ddb script kdb.enter.panic="textdump set; capture on; show pcpu; bt; show locks; ps; alltrace; show lockedvnods; show alllocks; capture off; call doadump; reset"

This will give you a textdump on panic, but other ways over entering DDB will just drop to the debugger normally. You might find you want to set a kdb.enter.default script along the above lines, and provide no-op scripts for serial/console break and sysctl in order to drop to the debugger only for cases where the sysadmin has intervened.

It might be that, in light of DDB scripting and textdumps, we want to rethink the way KDB_UNATTENDED works, or at least how it behaves in the presence of defined scripts.

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: VBS Editor???
    ... du musst den Debugger nicht irgendwie in die "Gänge" setzen. ... So erfolgen die Aufrufe des Debuggers durch den WSH (entweder durch das ... die Aufrufe //D oder //X für das Script. ... > Ich habe den Quelltext von 'quadrat.vbs' in MSE7.EXE geladen. ...
    (microsoft.public.de.german.scripting.wsh)
  • Re: Testing strategy for Tk application?
    ... your GUI should be nothing but a bunch of widgets that call ... > action invoke focus main ... > and then read a test script from stdin. ... I'll embed a built-in debugger. ...
    (comp.lang.tcl)
  • RE: Problem with LWP::UserAgent
    ... have an xml file that contains a list of URLs. ... hash and pass them as a parameter into the function that does LWP get. ... > assume your script is named net.pl, you can involve the debugger with: ...
    (perl.beginners)
  • Re: Why "window.open( my.jpg , _blank )" does work on IE but not work on Navigate2
    ... If I don't insert the script, ... , debugger will be invoked). ... no error message popup(other HTML codes are the ... > instance of Internet Explorer on the Advanced tab of the Internet Options ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: IS there a java script debuger that can be used with frontpage and
    ... I wasn't sure, as I have the Script Debugger on my system, but I don't ... If you have FrontPage, you have Microsoft Script ...
    (microsoft.public.frontpage.programming)