Re: Panic in wait4()

2003-03-25 Thread Kris Kennaway
On Wed, Mar 26, 2003 at 10:13:05AM +1100, Tim Robbins wrote:

> > #12 0xc01b86b5 in panic (fmt=0xe35e9bbc "Y\2179) at 
> > ../../../kern/kern_shutdown.c:509
> > #13 0xc01aeae3 in _mtx_lock_flags (m=0x0, opts=0,
> > file=0xc03375e7 "../../../kern/kern_resource.c", line=989) at 
> > ../../../kern/kern_mutex.c:333
> > #14 0xc01b75bb in chgproccnt (uip=0x3dd, diff=-1070369305, max=0)
> > at ../../../kern/kern_resource.c:989
> > #15 0xc01a2e48 in wait1 (td=0xc7b122d0, uap=0x0, compat=0) at 
> > ../../../kern/kern_exit.c:694
> > #16 0xc01a2970 in wait4 (td=0x0, uap=0x0) at ../../../kern/kern_exit.c:552
> > #17 0xc0306bfe in syscall (frame=
> >   {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 134714784, tf_esi = 
> > -1077939108, tf_ebp = -1077939144, tf_isp = -480338572, tf_ebx = 674575164, tf_edx 
> > = 0, tf_ecx = 19, tf_eax = 7, tf_trapno = 12, tf_err = 2, tf_eip = 674109043, 
> > tf_cs = 31, tf_eflags = 534, tf_esp = -1077939172, tf_ss = 47}) at 
> > ../../../i386/i386/trap.c:1030
> > #18 0xc02ef01d in Xint0x80_syscall () at {standard input}:139
> > ---Can't read userspace from dump, or kernel process---
> 
> Would you mind doing these commands from kgdb?
> 
> frame 15
> print p->p_ucred
> print *p->p_ucred

(kgdb) frame 15
#15 0xc01a2e48 in wait1 (td=0xc7b122d0, uap=0x0, compat=0) at 
../../../kern/kern_exit.c:694
694 (void)chgproccnt(p->p_ucred->cr_ruidinfo, -1, 0);
(kgdb) print p->p_ucred
$1 = (struct ucred *) 0x7572636c
(kgdb) print *p->p_ucred   
  ---Can't read userspace from dump, or kernel process---

:-(

Kris


pgp0.pgp
Description: PGP signature


Re: Panic in wait4()

2003-03-25 Thread Tim Robbins
On Tue, Mar 25, 2003 at 02:22:04PM -0800, Kris Kennaway wrote:

> I just got this on bento (running a kernel from Mar 17).  It was under
> heavy disk load at the time, which may or may not be relevant.

[...]
> #12 0xc01b86b5 in panic (fmt=0xe35e9bbc "Y\2179) at ../../../kern/kern_shutdown.c:509
> #13 0xc01aeae3 in _mtx_lock_flags (m=0x0, opts=0,
> file=0xc03375e7 "../../../kern/kern_resource.c", line=989) at 
> ../../../kern/kern_mutex.c:333
> #14 0xc01b75bb in chgproccnt (uip=0x3dd, diff=-1070369305, max=0)
> at ../../../kern/kern_resource.c:989
> #15 0xc01a2e48 in wait1 (td=0xc7b122d0, uap=0x0, compat=0) at 
> ../../../kern/kern_exit.c:694
> #16 0xc01a2970 in wait4 (td=0x0, uap=0x0) at ../../../kern/kern_exit.c:552
> #17 0xc0306bfe in syscall (frame=
>   {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 134714784, tf_esi = 
> -1077939108, tf_ebp = -1077939144, tf_isp = -480338572, tf_ebx = 674575164, tf_edx = 
> 0, tf_ecx = 19, tf_eax = 7, tf_trapno = 12, tf_err = 2, tf_eip = 674109043, tf_cs = 
> 31, tf_eflags = 534, tf_esp = -1077939172, tf_ss = 47}) at 
> ../../../i386/i386/trap.c:1030
> #18 0xc02ef01d in Xint0x80_syscall () at {standard input}:139
> ---Can't read userspace from dump, or kernel process---

Would you mind doing these commands from kgdb?

frame 15
print p->p_ucred
print *p->p_ucred
print p->p_ucred->cr_ruidinfo
print *p->p_ucred->cr_ruidinfo


Thanks,

Tim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Panic in wait4()

2003-03-25 Thread Kris Kennaway
I just got this on bento (running a kernel from Mar 17).  It was under
heavy disk load at the time, which may or may not be relevant.

Kris

panic: mtx_lock() of spin mutex %s @ %s:%d
panic messages:
---
Fatal trap 12: page fault while in kernel mode
cpuid = 1; lapic.id = 
fault virtual address   = 0x5a0
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc0218588
stack pointer   = 0x10:0xe35e9ad8
frame pointer   = 0x10:0xe35e9ad8
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 90819 (sshd)
Dumping 1024 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 1008
---
#0  doadump () at ../../../kern/kern_shutdown.c:239
239 dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:239
#1  0xc0142645 in db_fncall (dummy1=1016, dummy2=0, dummy3=-1070744477, 
dummy4=0xe35e98bc "\f")
at ../../../ddb/db_command.c:546
#2  0xc01423c2 in db_command (last_cmdp=0xc03566a0, cmd_table=0x0, 
aux_cmd_tablep=0xc0350978,
aux_cmd_tablep_end=0xc035097c) at ../../../ddb/db_command.c:346
#3  0xc01424d6 in db_command_loop () at ../../../ddb/db_command.c:470
#4  0xc014525a in db_trap (type=12, code=0) at ../../../ddb/db_trap.c:72
#5  0xc02ed61f in kdb_trap (type=12, code=0, regs=0xe35e9a98)
at ../../../i386/i386/db_interface.c:166
#6  0xc03068b2 in trap_fatal (frame=0xe35e9a98, eva=0) at ../../../i386/i386/trap.c:838
#7  0xc0306592 in trap_pfault (frame=0xe35e9a98, usermode=0, eva=1440)
at ../../../i386/i386/trap.c:757
#8  0xc030610d in trap (frame=
  {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -944692528, tf_esi = -1070371206, 
tf_ebp = -480339240, tf_isp = -480339260, tf_ebx = 1440, tf_edx = 1440, tf_ecx = 0, 
tf_eax = 1440, tf_trapno = 12, tf_err = 0, tf_eip = -1071544952, tf_cs = 8, tf_eflags 
= 66118, tf_esp = -480339040, tf_ss = -1071820373}) at ../../../i386/i386/trap.c:444
#9  0xc02eefc8 in calltrap () at {standard input}:97
#10 0xc01d51ab in kvprintf (fmt=0xc0336e7a " @ %s:%d", func=0xc01d4b50 ,
arg=0xe35e9bbc, radix=10, ap=0xe35e9c08 "3\003") at ../../../kern/subr_prf.c:668
#11 0xc01d4ace in vsnprintf (str=0xc0398f40 "mtx_lock() of spin mutex ", size=0, 
format=0x0,
ap=0x0) at ../../../kern/subr_prf.c:413
#12 0xc01b86b5 in panic (fmt=0xe35e9bbc "Y\2179) at ../../../kern/kern_shutdown.c:509
#13 0xc01aeae3 in _mtx_lock_flags (m=0x0, opts=0,
file=0xc03375e7 "../../../kern/kern_resource.c", line=989) at 
../../../kern/kern_mutex.c:333
#14 0xc01b75bb in chgproccnt (uip=0x3dd, diff=-1070369305, max=0)
at ../../../kern/kern_resource.c:989
#15 0xc01a2e48 in wait1 (td=0xc7b122d0, uap=0x0, compat=0) at 
../../../kern/kern_exit.c:694
#16 0xc01a2970 in wait4 (td=0x0, uap=0x0) at ../../../kern/kern_exit.c:552
#17 0xc0306bfe in syscall (frame=
  {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 134714784, tf_esi = 
-1077939108, tf_ebp = -1077939144, tf_isp = -480338572, tf_ebx = 674575164, tf_edx = 
0, tf_ecx = 19, tf_eax = 7, tf_trapno = 12, tf_err = 2, tf_eip = 674109043, tf_cs = 
31, tf_eflags = 534, tf_esp = -1077939172, tf_ss = 47}) at 
../../../i386/i386/trap.c:1030
#18 0xc02ef01d in Xint0x80_syscall () at {standard input}:139
---Can't read userspace from dump, or kernel process---

(kgdb)

pgp0.pgp
Description: PGP signature