Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2005 14:11:14 +0200
From:      Rene Ladan <r.c.ladan@student.tue.nl>
To:        stable@freebsd.org
Subject:   6.0-BETA3: 'kldunload linux' --> panic
Message-ID:  <20050823121112.GA51035@82-168-75-155-bbxl.xdsl.tiscali.nl>

next in thread | raw e-mail | index | archive | help

--DocE+STaALJfprDB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

The following panic can reliably be reproduced on a GENERIC 6.0-BETA3
kernel when loading linux support via /etc/rc.conf (linux_enable=3D"YES")
and then issuing "kldunload linux".

I'll leave the crash dump around.

% kgdb -n 95

[...]

Unread portion of the kernel message buffer:
panic: witness_destroy: lock (sleep mutex) linux osname is not initialized
cpuid =3D 0
KDB: enter: panic
Dumping 191 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 191MB (48880 pages) 175 159 143 127 111 95 79 63 47 31 15

#0  doadump () at pcpu.h:165
165	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt f
#0  doadump () at pcpu.h:165
No locals.
#1  0xc0475ae6 in db_fncall (dummy1=3D0, dummy2=3D0, dummy3=3D1999,
    dummy4=3D0xcf021a38 "\200=C3=98\235=C3=80") at /usr/src/sys/ddb/db_comm=
and.c:489
	fn_addr =3D -1066784304
	args =3D {0, -821945852, -1064888387, -1062909536, 28, -821945852,
  -1069058507, 32, -1063899200, 2}
	nargs =3D 0
	retval =3D 547703424
	t =3D 0
#2  0xc0475862 in db_command (last_cmdp=3D0xc09dcf84, cmd_table=3D0x0,
    aux_cmd_tablep=3D0xc095a0c0, aux_cmd_tablep_end=3D0xc095a0dc)
    at /usr/src/sys/ddb/db_command.c:349
	cmd =3D (struct command *) 0xc0963140
	t =3D 0
	modif =3D "\200=C3=98\235=C3=80\000\000\000\000T\032\002=C3=8F\r\000\000\0=
00=C3=A0\034=C2=A7=C3=80\r\000\000\000\001\000\000\000t\032\002=C3=8F=C3=86=
=C3=A6\211=C3=80=C2=A0I=C2=A5=C3=80\aK\000 d\035=C2=A7=C3=80\000_=E2=82=AC=
=C3=80\200=C3=98\235=C3=80x\000\000\000\200=C3=98\235=C3=80\000\000\000\000=
\230\032\002=C3=8F1\177G=C3=80b=C3=AA\222=C3=80=C2=B0{G=C3=80\000\000\000\0=
00\020\000\000\000\000\000\000\000\200=C3=98\235=C3=80=C3=86qG=C3=80\200=C3=
=98\235=C3=808=C3=90\235=C3=80x\000\000\000=C3=BC\032\002=C3=8F"
	addr =3D 0
	count =3D 1999
	have_addr =3D 0
	result =3D 0
#3  0xc0475975 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
No locals.
#4  0xc0477ae5 in db_trap (type=3D3, code=3D0) at /usr/src/sys/ddb/db_main.=
c:221
	jb =3D {{_jb =3D {-821945604, -821945632, -821945552, 1, 0, -1069057402,
      0, 0, 0, 0, -821945552, -1066657536}}}
	prev_jb =3D (void *) 0x0
	bkpt =3D 0
#5  0xc06c19ae in kdb_trap (type=3D0, code=3D0, tf=3D0xcf021b98)
    at /usr/src/sys/kern/subr_kdb.c:473
	did_stop_cpus =3D 1
	handled =3D -821945448
#6  0xc08c2468 in trap (frame=3D
      {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D -821952472, tf_edi =3D 256, tf_=
esi =3D 1, tf_ebp =3D -821945376, tf_isp =3D -821945404, tf_ebx =3D -821945=
316, tf_edx =3D 0, tf_ecx =3D -1056755712, tf_eax =3D 18, tf_trapno =3D 3, =
tf_err =3D 0, tf_eip =3D -1066658176, tf_cs =3D 32, tf_eflags =3D 646, tf_e=
sp =3D -1064104898, tf_ss =3D -1064113900})
    at /usr/src/sys/i386/i386/trap.c:601
	td =3D (struct thread *) 0xc24db300
	p =3D (struct proc *) 0xc24fc830
	sticks =3D 3473021836
	i =3D 0
	ucode =3D 0
	type =3D 3
	code =3D 0
	eva =3D 0
#7  0xc08ac43a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
No locals.
#8  0x00000008 in ?? ()
No symbol table info available.
#9  0x00000028 in ?? ()
No symbol table info available.
#10 0xcf020028 in ?? ()
No symbol table info available.
#11 0x00000100 in ?? ()
No symbol table info available.
#12 0x00000001 in ?? ()
No symbol table info available.
#13 0xcf021be0 in ?? ()
No symbol table info available.
#14 0xcf021bc4 in ?? ()
No symbol table info available.
#15 0xcf021c1c in ?? ()
No symbol table info available.
#16 0x00000000 in ?? ()
No symbol table info available.
#17 0xc1033000 in ?? ()
No symbol table info available.
#18 0x00000012 in ?? ()
No symbol table info available.
#19 0x00000003 in ?? ()
No symbol table info available.
#20 0x00000000 in ?? ()
No symbol table info available.
#21 0xc06c1680 in kdb_enter (msg=3D0x0) at cpufunc.h:60
No locals.
#22 0xc06a337e in panic (fmt=3D0xc09323ad "%s: lock (%s) %s is not initiali=
zed")
    at /usr/src/sys/kern/kern_shutdown.c:537
	td =3D (struct thread *) 0xc24db300
	bootopt =3D 256
	newpanic =3D 1
	ap =3D 0xcf021c1c "=C2=B5}\216=C3=80=C3=A8\232\224=C3=80=C3=BE=C3=882=C3=
=82=C3=80=C3=A62=C3=82\020=C3=8E2=C3=82L\034\002=C3=8FX\230i=C3=80=C3=80=C3=
=A62=C3=82=C3=AD=C3=88\222=C3=80"
	buf =3D "witness_destroy: lock (sleep mutex) linux osname is not initializ=
ed", '\0' <repeats 188 times>
#23 0xc06cd5a9 in witness_destroy (lock=3D0xc232e6c0)
    at /usr/src/sys/kern/subr_witness.c:567
	w =3D (struct witness *) 0xc232e6c0
	__func__ =3D "witness_destroy"
#24 0xc0699858 in mtx_destroy (m=3D0xc232e6c0)
    at /usr/src/sys/kern/kern_mutex.c:875
No locals.
#25 0xc0691b60 in linker_file_sysuninit (lf=3D0x0)
    at /usr/src/sys/kern/kern_linker.c:238
	start =3D (struct sysinit **) 0xc232ce10
	stop =3D (struct sysinit **) 0xc232ce18
	sipp =3D (struct sysinit **) 0xc232ce10
	xipp =3D (struct sysinit **) 0x0
	save =3D (struct sysinit *) 0x0
#26 0xc0692384 in linker_file_unload (file=3D0xc222eb00, flags=3D0)
    at /usr/src/sys/kern/kern_linker.c:539
	mod =3D 0x0
	next =3D 0x0
	ml =3D 0x0
	nextml =3D 0x0
	cp =3D (struct common_symbol *) 0x0
	error =3D 0
	i =3D 0
#27 0xc0692c3a in kern_kldunload (td=3D0xc222eb00, fileid=3D0, flags=3D0)
    at /usr/src/sys/kern/kern_linker.c:828
	lf =3D 0xc222eb00
	error =3D 2
#28 0xc0692cdc in kldunloadf (td=3D0x0, uap=3D0x0)
    at /usr/src/sys/kern/kern_linker.c:858
No locals.
#29 0xc08c2e30 in syscall (frame=3D
      {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 4, tf_esi =3D -=
1077940798, tf_ebp =3D -1077941080, tf_isp =3D -821944988, tf_ebx =3D 1, tf=
_edx =3D -1077940798, tf_ecx =3D 1, tf_eax =3D 444, tf_trapno =3D 0, tf_err=
 =3D 2, tf_eip =3D 671855983, tf_cs =3D 51, tf_eflags =3D 582, tf_esp =3D -=
1077942212, tf_ss =3D 59})
    at /usr/src/sys/i386/i386/trap.c:986
	params =3D 0xbfbfe840 <Address 0xbfbfe840 out of bounds>
	callp =3D (struct sysent *) 0xc0990150
	td =3D (struct thread *) 0xc24db300
	p =3D (struct proc *) 0xc24fc830
	orig_tf_eflags =3D 582
	sticks =3D 3
	error =3D 0
	narg =3D 2
	args =3D {4, 0, -1064543505, -1063413248, -821945036, 0, 0, 671524056}
	code =3D 444
#30 0xc08ac48f in Xint0x80_syscall ()
    at /usr/src/sys/i386/i386/exception.s:200
No locals.
#31 0x0000003b in ?? ()
No symbol table info available.
#32 0x0000003b in ?? ()
No symbol table info available.
#33 0x0000003b in ?? ()
No symbol table info available.
#34 0x00000004 in ?? ()
No symbol table info available.
#35 0xbfbfedc2 in ?? ()
No symbol table info available.
#36 0xbfbfeca8 in ?? ()
No symbol table info available.
#37 0xcf021d64 in ?? ()
No symbol table info available.
#38 0x00000001 in ?? ()
No symbol table info available.
#39 0xbfbfedc2 in ?? ()
No symbol table info available.
#40 0x00000001 in ?? ()
No symbol table info available.
#41 0x000001bc in ?? ()
No symbol table info available.
#42 0x00000000 in ?? ()
No symbol table info available.
#43 0x00000002 in ?? ()
No symbol table info available.
#44 0x280bb56f in ?? ()
No symbol table info available.
#45 0x00000033 in ?? ()
No symbol table info available.
#46 0x00000246 in ?? ()
No symbol table info available.
#47 0xbfbfe83c in ?? ()
No symbol table info available.
#48 0x0000003b in ?? ()
No symbol table info available.
#49 0x00000000 in ?? ()
No symbol table info available.
#50 0x00000000 in ?? ()
No symbol table info available.
#51 0x00000000 in ?? ()
No symbol table info available.
#52 0x00000000 in ?? ()
No symbol table info available.
#53 0x0872a000 in ?? ()
No symbol table info available.
#54 0xc24fc830 in ?? ()
No symbol table info available.
#55 0xc24db300 in ?? ()
No symbol table info available.
#56 0xcf0219b0 in ?? ()
No symbol table info available.
#57 0xcf02198c in ?? ()
No symbol table info available.
#58 0xc1465600 in ?? ()
No symbol table info available.
#59 0xc06b7a90 in sched_switch (td=3D0xbfbfedc2, newtd=3D0x1, flags=3DCanno=
t access memory at address 0xbfbfecb8)
    at /usr/src/sys/kern/sched_4bsd.c:973
	kg =3D (struct ksegrp *) 0x0
	p =3D (struct proc *) 0x4
Previous frame inner to this frame (corrupt stack?)
(kgdb) q
--
GPG fingerprint =3D 5FFA 3959 3377 C697 8428  24D0 BF3E F4A9 AE33 5DCC

"It won't fit on the line."
		-- me, 2001

--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDCxJgvz70qa4zXcwRAvelAJ4wsiKQLrmmu5MfCSIVHuRrLlHrBwCgihcH
xn/U/S8eK4g00ASxF6O5IG4=
=XYav
-----END PGP SIGNATURE-----

--DocE+STaALJfprDB--



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