Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Sep 2008 01:15:56 +0300
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   panic in rt_check_fib()
Message-ID:  <87prnjh80z.fsf@kobe.laptop>

next in thread | raw e-mail | index | archive | help
--=-=-=
Content-Transfer-Encoding: quoted-printable

A kernel that I built last night to test Ed's "packet mode" for ptys
included all the changes up to 182743 panics with:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

root@kobe:/var/crash# kgdb /boot/kernel/kernel vmcore.5
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 condition=
s.
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-marcel-freebsd"...

Unread portion of the kernel message buffer:
panic: _mtx_lock_sleep: recursed on non-recursive mutex rtentry @ /home/bui=
ld/src/sys/net/route.c:1742

cpuid =3D 0
Uptime: 5m26s
Physical memory: 2026 MB
Dumping 80 MB: 65 49 33 17 1

Reading symbols from /boot/kernel/snd_hda.ko...Reading symbols from /boot/k=
ernel/snd_hda.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_hda.ko
Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/ker=
nel/sound.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sound.ko
Reading symbols from /boot/kernel/if_iwn.ko...Reading symbols from /boot/ke=
rnel/if_iwn.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_iwn.ko
Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kern=
el/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/snake_saver.ko...Reading symbols from /bo=
ot/kernel/snake_saver.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snake_saver.ko
#0  doadump () at pcpu.h:221
221     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) list
216     in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:221
#1  0xc05e13ac in boot (howto=3D260) at /home/build/src/sys/kern/kern_shutd=
own.c:418
#2  0xc05e1678 in panic (fmt=3DVariable "fmt" is not available.
) at /home/build/src/sys/kern/kern_shutdown.c:572
#3  0xc05d3fda in _mtx_lock_sleep (m=3D0xc573eba4, tid=3D3314466816, opts=
=3D0, file=3D0xc08f457a "/home/build/src/sys/net/route.c", line=3D1742) at =
/home/build/src/sys/kern/kern_mutex.c:310
#4  0xc05d422f in _mtx_lock_flags (m=3D0xc573eba4, opts=3D0, file=3D0xc08f4=
57a "/home/build/src/sys/net/route.c", line=3D1742) at /home/build/src/sys/=
kern/kern_mutex.c:182
#5  0xc0694ad8 in rt_check_fib (lrt=3D0xe7c299ec, lrt0=3D0xe7c29a08, dst=3D=
0xc5550710, fibnum=3D0) at /home/build/src/sys/net/route.c:1742
#6  0xc06caf36 in in_rt_check (lrt=3D0xe7c299ec, lrt0=3D0xe7c29a08, dst=3D0=
xc5550710, fibnum=3D0) at /home/build/src/sys/netinet/in_rmx.c:472
#7  0xc06c0ecd in arpresolve (ifp=3D0xc51fd800, rt0=3D0xc573eca8, m=3D0xc59=
c2200, dst=3D0xc5550710, desten=3D0xe7c29a22 "") at /home/build/src/sys/net=
inet/if_ether.c:388
#8  0xc0689a9e in ether_output (ifp=3D0xc51fd800, m=3D0xc59c2200, dst=3D0xc=
5550710, rt0=3D0xc573eca8) at /home/build/src/sys/net/if_ethersubr.c:183
#9  0xc06d1bf1 in ip_output (m=3D0xc59c2200, opt=3D0x0, ro=3D0xe7c29aa8, fl=
ags=3DVariable "flags" is not available.
) at /home/build/src/sys/netinet/ip_output.c:563
#10 0xc073ecfb in udp_send (so=3D0xc573b498, flags=3D0, m=3D0xc59c2200, add=
r=3D0xc597e2f0, control=3D0x0, td=3D0xc58ec000) at /home/build/src/sys/neti=
net/udp_usrreq.c:1060
#11 0xc064530f in sosend_dgram (so=3D0xc573b498, addr=3D0xc597e2f0, uio=3D0=
xe7c29bd4, top=3D0xc59c2200, control=3D0x0, flags=3DVariable "flags" is not=
 available.
) at /home/build/src/sys/kern/uipc_socket.c:1059
#12 0xc0643054 in sosend (so=3D0xc573b498, addr=3D0xc597e2f0, uio=3D0xe7c29=
bd4, top=3D0x0, control=3D0x0, flags=3D0, td=3D0xc58ec000) at /home/build/s=
rc/sys/kern/uipc_socket.c:1292
#13 0xc064bf15 in kern_sendit (td=3D0xc58ec000, s=3D516, mp=3D0xe7c29c54, f=
lags=3D0, control=3D0x0, segflg=3DUIO_USERSPACE) at /home/build/src/sys/ker=
n/uipc_syscalls.c:782
#14 0xc064c121 in sendit (td=3D0xc58ec000, s=3D516, mp=3D0xe7c29c54, flags=
=3D0) at /home/build/src/sys/kern/uipc_syscalls.c:719
#15 0xc064c1d1 in sendmsg (td=3D0xc58ec000, uap=3D0xe7c29cf8) at /home/buil=
d/src/sys/kern/uipc_syscalls.c:915
#16 0xc0884d13 in syscall (frame=3D0xe7c29d38) at /home/build/src/sys/i386/=
i386/trap.c:1090
#17 0xc0869020 in Xint0x80_syscall () at /home/build/src/sys/i386/i386/exce=
ption.s:261
#18 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

From=20the limited testing I could do today it seems that the following
changes might be useful to track down why this is happening:

/head@182698 -> ok so far
/head@182743 -> panic

I don't see any rt_check_fib() changes in this commit range, so it may
be false that /head@182698 is ok.  It just doesn't panic immediately
when I try to bring up my re0 interface and set the default route.

=2D Giorgos


--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkjAXiIACgkQ1g+UGjGGA7ZGYwCgvZiUKcB4FfDjCJdTjJE3VztP
Eu8AniQOMV5JqMwoiXX1rrrK2+KpmRYP
=5C43
-----END PGP SIGNATURE-----
--=-=-=--



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