Re: obtaining a kernel crash dump

From: Peter Pentchev (roam_at_ringlet.net)
Date: 05/19/04

  • Next message: Pawel Jakub Dawidek: "Re: api for sharing memory from kernel to userspace?"
    Date: Wed, 19 May 2004 17:20:04 +0300
    To: Nick Strebkov <nick@humgat.org>
    
    
    

    On Wed, May 19, 2004 at 04:34:42PM +0300, Nick Strebkov wrote:
    > Hi there.
    >
    > I can't obtain a crash dump.
    >
    > % cat /sys/i386/conf/DEVEL | grep makeoptions
    > makeoptions DEBUG=-g
    > % cat /etc/rc.conf| grep dump
    > dumpdev="/dev/ar0s1b"
    > dumpdir="/var/crash"
    >
    > I'm testing my kernel patch and the following is what I see in
    > /var/log/messages:

    Can you force the kernel to dump by using DDB? Place 'options DDB' in
    your kernel config, then, when the system is quiescent, hit Ctrl-Alt-Esc
    and type 'panic' at the DDB prompt.

    If this works, and you get a crash dump, then the problem might be that
    with your kernel patch, the kernel is panicking in a low-level layer,
    like memory management or disk drivers or something like that, and it
    simply cannot make a crash dump, since that would mean invoking code
    that depends on bad data or something.

    G'luck,
    Peter

    -- 
    Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
    PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
    Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
    Hey, out there - is it *you* reading me, or is it someone else?
    
    



  • Next message: Pawel Jakub Dawidek: "Re: api for sharing memory from kernel to userspace?"

    Relevant Pages

    • Re: Kernel panic on PowerEdge 1950 under certain stress load
      ... We got this bt after setting kernel dump stuff up. ... recorded in the message buffer saved to the kernel crash dump. ... Addgene, a better way to share plasmids ...
      (freebsd-hackers)
    • Re: Latest "stable" fixes are unstable
      ... information like a crash dump. ... Compile a debug kernel for the machine that is crashing ... >and on 5.0-STABLE servers. ... >Outgoing mail is certified Virus Free. ...
      (freebsd-questions)
    • Re: [Fastboot] [RFC] [PATCH 2/2] kdump: cciss driver initialization issue fix
      ... be called a drivers worst nightmare. ... becoming the way crash dump style information is captured. ... Because the initial kernel is broken we do a jump into another kernel ... handle the case of a command we did not initiate completing. ...
      (Linux-Kernel)
    • Re: LOR in yesterday CURRENT: system map vs Giant
      ... > This particular one was my fault, ... Now, i built again a new kernel without DDB, wishing that the next ... if disabling DDB would bring me directly to a crash dump, ...
      (freebsd-current)
    • Re: partial memory dump
      ... I am trying to allow a FreeBSD based kernel to crash dump ... I think you also need to write that bitmap to disk so that savecore can ... read it and put the data blocks in the right place in the vmcore file. ...
      (freebsd-hackers)