Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2003 01:17:16 -0500
From:      Brian Fundakowski Feldman <green@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   panic: cred/uidinfo botch
Message-ID:  <200302280617.h1S6HGM8003296@green.bikeshed.org>

next in thread | raw e-mail | index | archive | help
No, that's not the actual panic message, but the one you get isn't very =

useful except to notify you that your uidinfo struct was just freed :)  =

Here's my backtrace.  I run an SMP machine, so I'm leaning toward the ide=
a =

this is a race condition.  Am I the first to experience extra uidinfo fre=
es?
I don't think it should be that strange that the uidinfo didn't have many=
 =

extra references lying around, since the credential shared by my processe=
s =

was generally the only thing referencing that entry... but I don't know w=
hy =

the cred was getting freed, as there was obviously a lot more than that o=
ne =

process running as my user with stock credentials, but uihashtbl[] =

definitely showed that all information relevant to my uid was freed.

#0  doadump () at ../../../kern/kern_shutdown.c:239
#1  0xc019d720 in boot (howto=3D0x104) at ../../../kern/kern_shutdown.c:3=
71
#2  0xc019d9d9 in panic () at ../../../kern/kern_shutdown.c:542
#3  0xc02e6b4b in trap_fatal (frame=3D0xd76e7b0c, eva=3D0x0) at ../../../=
i386/i386/trap.c:843
#4  0xc02e6802 in trap_pfault (frame=3D0xd76e7b0c, usermode=3D0x0, eva=3D=
0x1a0) at ../../../i386/i386/trap.c:757
#5  0xc02e6379 in trap (frame=3D{tf_fs =3D 0x18, tf_es =3D 0x10, tf_ds =3D=
 0x10, tf_edi =3D 0xc291fe10, tf_esi =3D 0xc030f532, tf_ebp =3D 0xd76e7b4=
c, tf_isp =3D 0xd76e7b38, tf_ebx =3D 0x1a0, tf_edx =3D 0x1a0, tf_ecx =3D =
0x0, tf_eax =3D 0x1a0, tf_trapno =3D 0xc, tf_err =3D 0x0, tf_eip =3D 0xc0=
1fd0a8, tf_cs =3D 0x8, tf_eflags =3D 0x10246, tf_esp =3D 0xd76e7c14, tf_s=
s =3D 0xc01b932c}) at ../../../i386/i386/trap.c:444
#6  0xc02cf788 in calltrap () at {standard input}:97
#7  0xc01b932c in kvprintf (fmt=3D0xc030f532 " @ %s:%d", func=3D0xc01b8d0=
0 <snprintf_func>, arg=3D0xd76e7c30, radix=3D0xa, ap=3D0xd76e7c74 "=D2=FC=
0=C0=AC\003") at ../../../kern/subr_prf.c:668
#8  0xc01b8c7e in vsnprintf (str=3D0xc03720c0 "page fault", size=3D0x0, f=
ormat=3D0x0, ap=3D0x0) at ../../../kern/subr_prf.c:413
#9  0xc019d947 in panic (fmt=3D0xd76e7c30 "=D9 7=C0=E7") at ../../../kern=
/kern_shutdown.c:509
#10 0xc0194123 in _mtx_lock_flags (m=3D0x0, opts=3D0x0, file=3D0xc030fcd2=
 "../../../kern/kern_resource.c", line=3D0x3ac) at ../../../kern/kern_mut=
ex.c:333
#11 0xc019c86d in uifree (uip=3D0x3ac) at ../../../kern/kern_resource.c:9=
40
#12 0xc019a5f1 in crfree (cr=3D0xc030fcd2) at ../../../kern/kern_prot.c:1=
725
#13 0xc019a885 in cred_update_thread (td=3D0xc291fe10) at ../../../kern/k=
ern_prot.c:1832
#14 0xc02e6c31 in syscall (frame=3D{tf_fs =3D 0x2f, tf_es =3D 0x2f, tf_ds=
 =3D 0x2f, tf_edi =3D 0x805a08e, tf_esi =3D 0x806a092, tf_ebp =3D 0xbfbff=
4e8, tf_isp =3D 0xd76e7d74, tf_ebx =3D 0xbfbff3b0, tf_edx =3D 0x10, tf_ec=
x =3D 0x805a0a1, tf_eax =3D 0xbc, tf_trapno =3D 0x0, tf_err =3D 0x2, tf_e=
ip =3D 0x2821bd93, tf_cs =3D 0x1f, tf_eflags =3D 0x282, tf_esp =3D 0xbfbf=
f2ec, tf_ss =3D 0x2f}) at ../../../i386/i386/trap.c:960
#15 0xc02cf7dd in Xint0x80_syscall () at {standard input}:139

-- =

Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''=
''\
  <> green@FreeBSD.org                               \  The Power to Serv=
e! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,=
,,,,\



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?200302280617.h1S6HGM8003296>