Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 1998 23:19:30 +0200
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        current@FreeBSD.ORG
Subject:   Re: Softupdate related panic :(
Message-ID:  <19980628231930.A11745@keltia.freenix.fr>
In-Reply-To: <Pine.BSF.3.96.980626175051.15032A-100000@duey.hs.wolves.k12.mo.us>; from Chris Dillon on Fri, Jun 26, 1998 at 06:00:16PM -0500
References:  <Pine.BSF.3.96.980626175051.15032A-100000@duey.hs.wolves.k12.mo.us>

next in thread | previous in thread | raw e-mail | index | archive | help
According to Chris Dillon:
> to tell you the truth.  If i used 'config -g' when building my kernel,
> would that give more informative crashdumps?  How about doing something

Argument given to functions and ability to print values of various
variables. Here is what I sent to Julian a couple days ago:

GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc.
(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /var/crash/kernel.30
(kgdb) core-file /var/crash/vmcore.30
IdlePTD 231000
initial pcb at 1dd5cc
panicstr: handle_workitem_freeblocks: block count                              
panic messages:
---
dmesg: magic number incorrect                                                  
---
#0  boot (howto=260) at ../../kern/kern_shutdown.c:296                         
296                                                             break;
(kgdb) where
#0  boot (howto=260) at ../../kern/kern_shutdown.c:296                         
#1  0xf0113797 in panic (fmt=0xf0101498 "from debugger")                       
    at ../../kern/kern_shutdown.c:436

[...]

#13 0xf010696e in kproc_start (udata=0xf01cdea4) at ../../kern/init_main.c:245 
#14 0xf0197e39 in fork_trampoline ()                                           
Cannot access memory at address 0x1.
(kgdb) up 9
#9  0xf011378e in panic (                                                      
    fmt=0xf01746fc "handle_workitem_freeblocks: block count")
    at ../../kern/kern_shutdown.c:434
434      */
(kgdb) up
#10 0xf017496f in handle_workitem_freeblocks (freeblks=0xf0b0ad80)             
    at ../../ufs/ffs/ffs_softdep.c:1966
1966                    softdep_error("handle_workitem_freeblks", allerror);
(kgdb) list
1961
1962    #ifdef DIAGNOSTIC
1963            if (freeblks->fb_chkcnt != blocksreleased)
1964                    panic("handle_workitem_freeblocks: block count");
1965            if (allerror)
1966                    softdep_error("handle_workitem_freeblks", allerror);
1967    #endif /* DIAGNOSTIC */
1968            WORKITEM_FREE(freeblks, D_FREEBLKS);
1969            num_freeblks -= 1;
1970    }
(kgdb) print *freeblks
$2 = {fb_list = {wk_list = {le_next = 0xf0bb1ca0, le_prev = 0xf01e35c8},
    wk_type = 8, wk_state = 0}, fb_previousinum = 17410,
  fb_devvp = 0xf5867ba0, fb_fs = 0xf09a2800, fb_oldsize = 0x000000000002e000,
  fb_newsize = 0x0000000000000000, fb_chkcnt = 384, fb_uid = 0, fb_dblks = {
    111464, 111472, 111480, 111488, 111496, 111504, 111512, 111520, 111528,
    111536, 111544, 111552}, fb_iblks = {111560, 0, 0}}
(kgdb) print blocksreleased
$3 = 400

-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 3.0-CURRENT #11: Sat Jun 27 00:41:06 CEST 1998

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980628231930.A11745>