Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2002 10:38:55 -0500 (EST)
From:      Charlie Root <root@aldan.algebra.com>
To:        current@FreeBSD.org
Subject:   double panic in todays kernel
Message-ID:  <200202271538.g1RFcuh4000805@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help
Using ``FreeBSD 5.0-CURRENT #1: Wed Feb 27 09:07:28 EST 2002''.

While building some port (-pipe probably played its fatal role)...

	-mi

(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /boot/mi/kernel
(kgdb) core-file /ccd/crash/vmcore.28
IdlePTD at phsyical address 0x004f4000
initial pcb at physical address 0x00418120
panicstr: bwrite: buffer is not busy???
panic messages:
---
Fatal trap 12: page fault while in kernel mode
cpuid = 1; lapic.id = 00000000
fault virtual address	= 0xa4
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc023ea63
stack pointer	        = 0x10:0xcf9a0c14
frame pointer	        = 0x10:0xcf9a0c30
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 23591 (bzip2)
trap number		= 12
panic: page fault
cpuid = 1; lapic.id = 00000000
boot() called on cpu#1

syncing disks... panic: bwrite: buffer is not busy???
cpuid = 1; lapic.id = 00000000
boot() called on cpu#1
Uptime: 51m48s
pfs_vncache_unload(): 8 entries remaining

dumping to dev da0b, offset 131200
dump 319 318 [...] 1 0 
---
#0  dumpsys () at /ccd/src/sys/kern/kern_shutdown.c:504
504		if (!dodump)
(kgdb) where
#0  dumpsys () at /ccd/src/sys/kern/kern_shutdown.c:504
#1  0xc0220d54 in boot (howto=260) at /ccd/src/sys/kern/kern_shutdown.c:336
#2  0xc0221245 in panic (fmt=0xc03790b8 "bwrite: buffer is not busy???")
    at /ccd/src/sys/kern/kern_shutdown.c:646
#3  0xc0259043 in bwrite (bp=0xc7d1aa34) at /ccd/src/sys/kern/vfs_bio.c:676
#4  0xc025a2ca in vfs_bio_awrite (bp=0xc7d1aa34)
    at /ccd/src/sys/kern/vfs_bio.c:1526
#5  0xc01f7168 in spec_fsync (ap=0xcf9a0ad0)
    at /ccd/src/sys/fs/specfs/spec_vnops.c:403
#6  0xc01f6d21 in spec_vnoperate (ap=0xcf9a0ad0)
    at /ccd/src/sys/fs/specfs/spec_vnops.c:121
#7  0xc02e45d8 in ffs_sync (mp=0xc16d2a00, waitfor=2, cred=0xc102eb80, 
    td=0xc03d5c00) at vnode_if.h:441
#8  0xc0266212 in sync (td=0xc03d5c00, uap=0x0)
    at /ccd/src/sys/kern/vfs_syscalls.c:669
#9  0xc0220980 in boot (howto=256) at /ccd/src/sys/kern/kern_shutdown.c:245
#10 0xc0221245 in panic (fmt=0xc0397dde "%s")
    at /ccd/src/sys/kern/kern_shutdown.c:646
#11 0xc032fd16 in trap_fatal (frame=0xcf9a0bd4, eva=164)
    at /ccd/src/sys/i386/i386/trap.c:848
#12 0xc032fa3d in trap_pfault (frame=0xcf9a0bd4, usermode=0, eva=164)
    at /ccd/src/sys/i386/i386/trap.c:762
#13 0xc032f503 in trap (frame={tf_fs = -1069940712, tf_es = -819986416, 
      tf_ds = -812187632, tf_edi = -812170240, tf_esi = 4096, 
      tf_ebp = -811987920, tf_isp = -811987968, tf_ebx = 0, 
      tf_edx = -812170240, tf_ecx = -811987824, tf_eax = -830089152, 
      tf_trapno = 12, tf_err = 0, tf_eip = -1071388061, tf_cs = 8, 
      tf_eflags = 66178, tf_esp = -1069695296, tf_ss = 4096})
    at /ccd/src/sys/i386/i386/trap.c:430
#14 0xc023ea63 in pipe_write (fp=0xc20751c0, uio=0xcf9a0c90, cred=0xc2d32a80, 
    flags=0, td=0xcf974400) at /ccd/src/sys/kern/sys_pipe.c:820
#15 0xc023b834 in dofilewrite (td=0xcf974400, fp=0xc20751c0, fd=1, 
    buf=0x83ef000, nbyte=4096, offset=-1, flags=0)
    at /ccd/src/sys/sys/file.h:191
#16 0xc023b62d in write (td=0xcf974400, uap=0xcf9a0d20)
    at /ccd/src/sys/kern/sys_generic.c:337
#17 0xc033015c in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = 134640440, tf_esi = 138342400, tf_ebp = -1077947856, 
      tf_isp = -811987596, tf_ebx = 134640440, tf_edx = 138342400, 
      tf_ecx = 134640440, tf_eax = 4, tf_trapno = 0, tf_err = 2, 
      tf_eip = 134611567, tf_cs = 31, tf_eflags = 663, tf_esp = -1077947884, 
      tf_ss = 47}) at /ccd/src/sys/i386/i386/trap.c:1044
#18 0xc031f7ed in syscall_with_err_pushed ()
#19 0x805e2ff in ?? ()
#20 0x805db5f in ?? ()
#21 0x805daa9 in ?? ()
#22 0x80488d8 in ?? ()
(kgdb) up 14
#14 0xc023ea63 in pipe_write (fp=0xc20751c0, uio=0xcf9a0c90, cred=0xc2d32a80, 
    flags=0, td=0xcf974400) at /ccd/src/sys/kern/sys_pipe.c:820
820		PIPE_LOCK(wpipe);
(kgdb) p wpipe
$1 = (struct pipe *) 0x0
(kgdb) l
815		struct pipe *wpipe, *rpipe;
816	
817		rpipe = (struct pipe *) fp->f_data;
818		wpipe = rpipe->pipe_peer;
819	
820		PIPE_LOCK(wpipe);
821		/*
822		 * detect loss of pipe read side, issue SIGPIPE if lost.
823		 */
824		if ((wpipe == NULL) || (wpipe->pipe_state & PIPE_EOF)) {
(kgdb) p rpipe
$2 = (struct pipe *) 0x0
(kgdb) p fp
$3 = (struct file *) 0xc20751c0
(kgdb) p fp->f_data
$4 = 0xce85d840 ""
(kgdb) p *fp
$5 = {f_list = {le_next = 0xc256c500, le_prev = 0xc181a700}, f_gcflag = 0, 
  f_type = 3, f_count = 2, f_msgcount = 0, f_cred = 0xc2d32a80, 
  f_ops = 0xc03dbec0, f_seqcount = 1, f_nextoff = 0, f_offset = 0, 
  f_data = 0xce85d840 "", f_flag = 3, f_mtxp = 0xc0417970}
(kgdb) up
#15 0xc023b834 in dofilewrite (td=0xcf974400, fp=0xc20751c0, fd=1, 
    buf=0x83ef000, nbyte=4096, offset=-1, flags=0)
    at /ccd/src/sys/sys/file.h:191
191		return ((*fp->f_ops->fo_write)(fp, uio, cred, flags, td));
(kgdb) l
186		struct uio *uio;
187		struct ucred *cred;
188		struct thread *td;
189		int flags;
190	{
191		return ((*fp->f_ops->fo_write)(fp, uio, cred, flags, td));
192	}
193	
194	static __inline int
195	fo_ioctl(fp, com, data, td)
(kgdb) quit

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?200202271538.g1RFcuh4000805>