panic on current during shutdown: panic: racct_adjust_resource: resource 4 usage < 0

From: Larry Rosenman <ler_at_FreeBSD.org>
Date: Thu, 19 Jan 2017 18:09:48 -0600
Thu Jan 19 18:03:38 CST 2017

FreeBSD borg.lerctr.org 12.0-CURRENT FreeBSD 12.0-CURRENT #13 r311997: 
Sat Jan 14 22:35:29 CST 2017     
root_at_borg.lerctr.org:/usr/obj/usr/src/sys/VT-LER  amd64

panic: racct_adjust_resource: resource 4 usage < 0

GNU gdb (GDB) 7.12 [GDB v7.12 for FreeBSD]
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd12.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...Reading symbols from 
/usr/lib/debug//boot/kernel/kernel.debug...done.
done.

Unread portion of the kernel message buffer:
<118>.
<118>Terminated
<118>Jan 19 17:54:50 192.168.200.11 last message repeated 13 times
<118>Jan 19 17:54:59 borg syslogd: exiting on signal 15
panic: racct_adjust_resource: resource 4 usage < 0
cpuid = 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 
0xfffffe2eb7c18830
vpanic() at vpanic+0x186/frame 0xfffffe2eb7c188b0
kassert_panic() at kassert_panic+0x126/frame 0xfffffe2eb7c18920
racct_adjust_resource() at racct_adjust_resource+0xca/frame 
0xfffffe2eb7c18950
racct_set_locked() at racct_set_locked+0xec/frame 0xfffffe2eb7c18990
racct_set() at racct_set+0x54/frame 0xfffffe2eb7c189c0
vmspace_exit() at vmspace_exit+0x147/frame 0xfffffe2eb7c18a00
exit1() at exit1+0x56b/frame 0xfffffe2eb7c18a60
sys_sys_exit() at sys_sys_exit+0xd/frame 0xfffffe2eb7c18a70
amd64_syscall() at amd64_syscall+0x2ea/frame 0xfffffe2eb7c18bf0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe2eb7c18bf0
--- syscall (1, FreeBSD ELF64, sys_sys_exit), rip = 0x8025c916a, rsp = 
0x7fffffffebd8, rbp = 0x7fffffffebf0 ---
Uptime: 4d4h19m38s
Dumping 12670 out of 64463 
MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/zfs.ko.debug...done.
done.
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/opensolaris.ko.debug...done.
done.
Reading symbols from /boot/kernel/linux.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/linux.ko.debug...done.
done.
Reading symbols from /boot/kernel/linux_common.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/linux_common.ko.debug...done.
done.
Reading symbols from /boot/kernel/if_lagg.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/if_lagg.ko.debug...done.
done.
Reading symbols from /boot/kernel/snd_envy24ht.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/snd_envy24ht.ko.debug...done.
done.
Reading symbols from /boot/kernel/snd_spicds.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/snd_spicds.ko.debug...done.
done.
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/coretemp.ko.debug...done.
done.
Reading symbols from /boot/kernel/fuse.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/fuse.ko.debug...done.
done.
Reading symbols from /boot/kernel/ichsmb.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/ichsmb.ko.debug...done.
done.
Reading symbols from /boot/kernel/smbus.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/smbus.ko.debug...done.
done.
Reading symbols from /boot/kernel/ichwd.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/ichwd.ko.debug...done.
done.
Reading symbols from /boot/kernel/cpuctl.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/cpuctl.ko.debug...done.
done.
Reading symbols from /boot/kernel/cryptodev.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/cryptodev.ko.debug...done.
done.
Reading symbols from /boot/kernel/dtraceall.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/dtraceall.ko.debug...done.
done.
Reading symbols from /boot/kernel/profile.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/profile.ko.debug...done.
done.
Reading symbols from /boot/kernel/dtrace.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/dtrace.ko.debug...done.
done.
Reading symbols from /boot/kernel/systrace_freebsd32.ko...Reading 
symbols from 
/usr/lib/debug//boot/kernel/systrace_freebsd32.ko.debug...done.
done.
Reading symbols from /boot/kernel/systrace.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/systrace.ko.debug...done.
done.
Reading symbols from /boot/kernel/sdt.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/sdt.ko.debug...done.
done.
Reading symbols from /boot/kernel/fasttrap.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/fasttrap.ko.debug...done.
done.
Reading symbols from /boot/kernel/fbt.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/fbt.ko.debug...done.
done.
Reading symbols from /boot/kernel/dtnfscl.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/dtnfscl.ko.debug...done.
done.
Reading symbols from /boot/kernel/dtmalloc.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/dtmalloc.ko.debug...done.
done.
Reading symbols from /boot/modules/vboxdrv.ko...(no debugging symbols 
found)...done.
Reading symbols from /boot/kernel/ipmi.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/ipmi.ko.debug...done.
done.
Reading symbols from /boot/kernel/ipmi_linux.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/ipmi_linux.ko.debug...done.
done.
Reading symbols from /boot/kernel/hwpmc.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/hwpmc.ko.debug...done.
done.
Reading symbols from /boot/kernel/filemon.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/filemon.ko.debug...done.
done.
Reading symbols from /boot/kernel/uhid.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/uhid.ko.debug...done.
done.
Reading symbols from /boot/modules/vboxnetflt.ko...(no debugging symbols 
found)...done.
Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/netgraph.ko.debug...done.
done.
Reading symbols from /boot/kernel/ng_ether.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/ng_ether.ko.debug...done.
done.
Reading symbols from /boot/modules/vboxnetadp.ko...(no debugging symbols 
found)...done.
Reading symbols from /boot/kernel/nullfs.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/nullfs.ko.debug...done.
done.
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/fdescfs.ko.debug...done.
done.
Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/linprocfs.ko.debug...done.
done.
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from 
/usr/lib/debug//boot/kernel/tmpfs.ko.debug...done.
done.
__curthread () at ./machine/pcpu.h:222
222             __asm("movq %%gs:%1,%0" : "=r" (td)
(kgdb) #0  __curthread () at ./machine/pcpu.h:222
#1  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:318
#2  0xffffffff80a2ffb5 in kern_reboot (howto=<optimized out>)
     at /usr/src/sys/kern/kern_shutdown.c:386
#3  0xffffffff80a30590 in vpanic (fmt=<optimized out>, 
ap=0xfffffe2eb7c188f0)
     at /usr/src/sys/kern/kern_shutdown.c:779
#4  0xffffffff80a303c6 in kassert_panic (
     fmt=0xffffffff813ee4fb "%s: resource %d usage < 0")
     at /usr/src/sys/kern/kern_shutdown.c:669
#5  0xffffffff80a21eca in racct_adjust_resource 
(racct=0xfffff8001b7c00d0,
     resource=4, amount=<optimized out>) at 
/usr/src/sys/kern/kern_racct.c:528
#6  0xffffffff80a21acc in racct_set_locked (p=0xfffff80055f41528,
     resource=<optimized out>, amount=0, force=0)
     at /usr/src/sys/kern/kern_racct.c:718
#7  0xffffffff80a21994 in racct_set (p=0xfffff80055f41528, resource=4,
     amount=0) at /usr/src/sys/kern/kern_racct.c:741
#8  0xffffffff80d0f8e7 in vmspace_container_reset (p=<optimized out>)
     at /usr/src/sys/vm/vm_map.c:311
#9  vmspace_exit (td=<optimized out>) at /usr/src/sys/vm/vm_map.c:420
#10 0xffffffff809f01ab in exit1 (td=<optimized out>, rval=<optimized 
out>,
     signo=<optimized out>) at /usr/src/sys/kern/kern_exit.c:399
#11 0xffffffff809efc3d in sys_sys_exit (td=<unavailable>, uap=<optimized 
out>)
     at /usr/src/sys/kern/kern_exit.c:178
#12 0xffffffff80e9a98a in syscallenter (td=0xfffff80055de6000,
     sa=<optimized out>)
     at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:135
#13 amd64_syscall (td=0xfffff80055de6000, traced=0)
     at /usr/src/sys/amd64/amd64/trap.c:902
#14 <signal handler called>
Can't read data for section '.eh_frame' in file '/'
(kgdb)

vmcore IS available.


-- 
Larry Rosenman                     http://people.freebsd.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_FreeBSD.org
US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
Received on Thu Jan 19 2017 - 23:09:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC