Re: How to produce effective backtraces from crashdump?

[ Available lists | Index of freebsd-current | Month of Apr 2004 | Week of 10 Apr 2004 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Xin LI <delphij@frontfree.net>
Date
10 Apr 2004 09:34:30
Subject
Re: How to produce effective backtraces from crashdump?
Message-ID
20040410163423.GA2092@frontfree.net

In reply to
References to

[ Hide this part ]
On Fri, Apr 09, 2004 at 06:51:53PM +0200, Lukas Ertl wrote:
> I'm seeing similar problems here. Could you please try the following:
>
> Open /usr/src/gnu/usr.bin/binutils/libbfd/i386/bfd.h and change line 59
> from:
>
> #define BFD_ARCH_SIZE 64
>
> to:
>
> #define BFD_ARCH_SIZE 32
>

Thanks, I finally got the backtrace (as attached). I'll do some
investigate on this issue.

Best Regards,
--
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.



[ Hide this part ]
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386-undermydesk-freebsd"...
panic: vm_page_free: freeing wired page

panic messages:
---
panic: vm_page_free: freeing wired page

at line 1058 in file /usr/src/sys/vm/vm_page.c
cpuid = 0;
Stack backtrace:
backtrace(c0675cae,0,422,c0685595,100) at backtrace+0x17
__panic(c0685595,422,c0685826,3f9,124) at __panic+0x150
vm_page_free_toq(c16651e8,40,c16651e8,eae0b910,c05fb453) at vm_page_free_toq+0x126
vm_page_free(c16651e8,0,c0685072,5ef,0) at vm_page_free+0x24
vm_object_backing_scan(c6388e70,4,c0685072,63c,1e8) at vm_object_backing_scan+0x449
vm_object_collapse(c6388e70,0,c0685072,20d,c611db7c) at vm_object_collapse+0xc8
vm_object_deallocate(c627c528,0,c06847fa,825,eae0b9a0) at vm_object_deallocate+0x2eb
vm_map_entry_delete(c61ea938,c611db7c,c06847fa,882,c05f351c) at vm_map_entry_delete+0x17e
vm_map_delete(c61ea938,0,bfc00000,c61ea938,c61ea938) at vm_map_delete+0x216
vm_map_remove(c61ea938,0,bfc00000,363,bfbfecfc) at vm_map_remove+0x55
exec_new_vmspace(eae0bb8c,c06b34c0,c066b260,296,eae0bb8c) at exec_new_vmspace+0x230
exec_elf32_imgact(eae0bb8c,0,c066c0ce,145,c0704c20) at exec_elf32_imgact+0x1bc
kern_execve(c61f47e0,804a419,bfbfebf0,bfbfec9c,0) at kern_execve+0x3af
execve(c61f47e0,eae0bd14,c,2814d000,3) at execve+0x30
syscall(2f,2f,2f,bfbfec14,bfbfee5f) at syscall+0x271
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (59), eip = 0x280d4083, esp = 0xbfbfe6fc, ebp = 0xbfbfeba8 ---

syncing disks, buffers remaining... panic: _mtx_lock_sleep: recursed on non-recursive mutex vm page queue mutex @ /usr/src/sys/kern/vfs_bio.c:3394

at line 437 in file /usr/src/sys/kern/kern_mutex.ccpuid = 0;
Uptime: 4m19s
Dumping 1007 MB
16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 896 912 928 944 960 976 992
---
#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:236
236 dumping++;
(kgdb) bt full
#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:236
No locals.
#1 0xc04f7a1a in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:370
No locals.
#2 0xc04f7d96 in poweroff_wait (junk=0xc066dc1a, howto=437) at /usr/src/sys/kern/kern_shutdown.c:548
td = (struct thread *) 0xc61f47e0
bootopt = 260
newpanic = 0
ap = 0xeae0b654 "UhRgB\r"
buf = "vm_page_free: freeing wired page\n", '\0' <repeats 222 times>
#3 0xc04ee577 in _mtx_lock_sleep (m=0xeae0b654, opts=0, file=0x0, line=0)
at /usr/src/sys/kern/kern_mutex.c:483
ts = (struct turnstile *) 0x0
td = (struct thread *) 0xc066dd08
v = 0
#4 0xc04ee0d2 in _mtx_lock_flags (m=0xc0704c20, opts=0, file=0xc06752ce "/usr/src/sys/kern/vfs_bio.c",
line=3394) at /usr/src/sys/kern/kern_mutex.c:252
No locals.
#5 0xc05461fd in vfs_busy_pages (bp=0xd2546730, clear_modify=1) at /usr/src/sys/kern/vfs_bio.c:3394
obj = 0xc0c408c4
foff = -1522016800224556000
i = -1066970418
bogus = 0
#6 0xc05414f8 in ibwrite (bp=0xd2546730) at /usr/src/sys/kern/vfs_bio.c:875
oldflags = 537002148
newbp = (struct buf *) 0xc5f2d000
#7 0xc054116d in bwrite (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:771
No locals.
#8 0xc05433d3 in vfs_bio_awrite (bp=0xd2546730) at /usr/src/sys/kern/vfs_bio.c:1725
i = 0
j = -971028512
lblkno = 65664
vp = (struct vnode *) 0xc5f2d000
ncl = 16384
nwritten = 16384
size = 1
maxcl = -973942784
#9 0xc054b180 in vop_stdfsync (ap=0xeae0b7e8) at /usr/src/sys/kern/vfs_default.c:574
vp = (struct vnode *) 0xd2546730
bp = (struct buf *) 0x4000
nbp = (struct buf *) 0xc5f2d000
error = 0
maxretry = 100
#10 0xc04c3bbe in spec_fsync (ap=0xeae0b7e8) at /usr/src/sys/fs/specfs/spec_vnops.c:437
No locals.
#11 0xc04c2e08 in spec_vnoperate (ap=0x0) at /usr/src/sys/fs/specfs/spec_vnops.c:118
No locals.
#12 0xc05dbfd2 in ffs_sync (mp=0xc5ddc400, waitfor=2, cred=0xc1e26200, td=0xc06bf9c0) at vnode_if.h:627
nvp = (struct vnode *) 0x0
vp = (struct vnode *) 0xeae0b7e8
devvp = (struct vnode *) 0xeae0b7e8
ip = (struct inode *) 0x0
ump = (struct ufsmount *) 0xc5f03800
fs = (struct fs *) 0xc5dc0800
error = -1066665536
count = 0
lockreq = 65554
allerror = 0
#13 0xc05561d5 in sync (td=0xc06bf9c0, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:136
mp = (struct mount *) 0xc5ddc400
nmp = (struct mount *) 0x0
asyncflag = 0
#14 0xc04f7542 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:277
bp = (struct buf *) 0x0
iter = -1042113268
nbusy = -1042113280
pbusy = -1066650464
subiter = 0
#15 0xc04f7d96 in poweroff_wait (junk=0xc0685595, howto=1058) at /usr/src/sys/kern/kern_shutdown.c:548
td = (struct thread *) 0xc61f47e0
bootopt = 256
newpanic = 1
ap = 0xeae0b8b0 "\003"
buf = "vm_page_free: freeing wired page\n", '\0' <repeats 222 times>
#16 0xc05fd547 in vm_page_free_toq (m=0xeae0b8b0) at /usr/src/sys/vm/vm_page.c:1058
pq = (struct vpgqueues *) 0x1
object = 0x1
#17 0xc05fc825 in vm_page_free (m=0xc16651e8) at /usr/src/sys/vm/vm_page.c:390
No locals.
#18 0xc05fb453 in vm_object_backing_scan (object=0xc6388e70, op=4) at /usr/src/sys/vm/vm_object.c:1521
pp = 0x0
r = 1
p = 0xc16651e8
backing_object = 0xc627c528
backing_offset_index = 0
#19 0xc05fb618 in vm_object_collapse (object=0xc6388e70) at /usr/src/sys/vm/vm_object.c:1632
backing_object = 0xc627c528
#20 0xc05f996b in vm_object_deallocate (object=0xc6388e70) at /usr/src/sys/vm/vm_object.c:532
robject = 0xc6388e70
temp = 0xc6388e70
#21 0xc05f5c5f in vm_map_entry_delete (map=0xc61ea938, entry=0xc611db7c) at /usr/src/sys/vm/vm_map.c:2086
object = 0xc627c528
offidxstart = 0
offidxend = 250
count = 250
#22 0xc05f5e8e in vm_map_delete (map=0xc61ea938, start=3323059068, end=3217031168)
at /usr/src/sys/vm/vm_map.c:2186
next = 0xc611db7c
entry = 0xc627c528
first_entry = 0xc61ea938
#23 0xc05f5f02 in vm_map_remove (map=0xc61ea938, start=0, end=3217031168) at /usr/src/sys/vm/vm_map.c:2208
result = 0
#24 0xc04dfb64 in exec_new_vmspace (imgp=0xeae0bb8c, sv=0xc06b34c0) at /usr/src/sys/vm/vm_map.h:197
error = 0
p = (struct proc *) 0xc6382528
vmspace = (struct vmspace *) 0xc61ea938
stack_addr = 0
map = 0x0
#25 0xc04d07b0 in exec_elf32_imgact (imgp=0xeae0bb8c) at /usr/src/sys/kern/imgact_elf.c:717
hdr = (const Elf_Ehdr *) 0xdb6f2000
phdr = (const Elf_Phdr *) 0xdb6f2034
elf_auxargs = (Elf_Auxargs *) 0x0
vmspace = (struct vmspace *) 0xc5fea000
prot = 0 '\0'
text_size = 0
data_size = 0
total_size = 0
text_addr = 0
data_addr = 0
seg_size = 0
seg_addr = 801
addr = 3940596412
entry = 0
proghdr = 0
error = 0
i = 6
interp = 0xdb6f20f4 "/libexec/ld-elf.so.1"
brand_info = (Elf_Brandinfo *) 0xc06b3528
td = (struct thread *) 0xc61f47e0
sv = (struct sysentvec *) 0xc06b34c0
#26 0xc04deb21 in kern_execve (td=0xc61f47e0, fname=) at /usr/src/sys/kern/kern_exec.c:381
p = (struct proc *) 0xc6382528
nd = {ni_dirp = 0x804a419(kgdb)

[ Show this part (application/pgp-signature) ]

Elapsed time: 0.283 seconds