[Bug 214923] kqueue hangs with busy loop

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 16 18:01:07 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214923

--- Comment #8 from yjh0502 at gmail.com ---
I got a coredump and backtrace:

root at foo:/usr/obj/usr/src/sys/DEBUG # kgdb kernel.debug /var/crash/vmcore.0
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 conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
panic: Bad link elm 0xfffff800158d0780 next->prev != elm
cpuid = 1
KDB: stack backtrace:
#0 0xffffffff80a80947 at kdb_backtrace+0x67
#1 0xffffffff80a3fb52 at vpanic+0x182
#2 0xffffffff80a3fbd3 at panic+0x43
#3 0xffffffff809f9d1a at knote_drop+0x28a
#4 0xffffffff809f9df3 at knote_fdclose+0xd3
#5 0xffffffff809eda25 at closefp+0x65
#6 0xffffffff80ea4426 at amd64_syscall+0x2f6
#7 0xffffffff80e8469b at Xfast_syscall+0xfb
Uptime: 4m58s
Dumping 227 out of 988 MB: (CTRL-C to abort)
..8%..15%..22%..36%..43%..57%..64%..71%..85%..92%

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from
/usr/lib/debug//boot/kernel/zfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from
/usr/lib/debug//boot/kernel/opensolaris.ko.debug...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/uhid.ko...Reading symbols from
/usr/lib/debug//boot/kernel/uhid.ko.debug...done.
done.
Loaded symbols for /boot/kernel/uhid.ko
#0  doadump (textdump=<value optimized out>) at pcpu.h:221
221             __asm("movq %%gs:%1,%0" : "=r" (td)
(kgdb) bt
#0  doadump (textdump=<value optimized out>) at pcpu.h:221
#1  0xffffffff80a3f5d0 in kern_reboot (howto=<value optimized out>) at
/usr/src/sys/kern/kern_shutdown.c:366
#2  0xffffffff80a3fb8b in vpanic (fmt=<value optimized out>, ap=<value
optimized out>) at /usr/src/sys/kern/kern_shutdown.c:759
#3  0xffffffff80a3fbd3 in panic (fmt=0x0) at
/usr/src/sys/kern/kern_shutdown.c:690
#4  0xffffffff809f9d1a in knote_drop (kn=<value optimized out>, td=<value
optimized out>) at /usr/src/sys/kern/kern_event.c:2461
#5  0xffffffff809f9df3 in knote_fdclose (td=0xfffff80026a38a00, fd=232) at
/usr/src/sys/kern/kern_event.c:2370
#6  0xffffffff809eda25 in closefp (fdp=0xfffff800079a8450, fd=232,
fp=0xfffff80003fe1460, td=0xfffff80026a38a00, holdleaders=1) at
/usr/src/sys/kern/kern_descrip.c:1180
#7  0xffffffff80ea4426 in amd64_syscall (td=0xfffff80026a38a00, traced=<value
optimized out>) at subr_syscall.c:135
#8  0xffffffff80e8469b in Xfast_syscall () at
/usr/src/sys/amd64/amd64/exception.S:396
#9  0x000000080104a7ca in ?? ()
Previous frame inner to this frame (corrupt stack?)
Current language:  auto; currently minimal
(kgdb)

I compiled kernel from git repo, releng/11.0 branch
(b416700da72fd8eab0a75d60f0634e254cbb9347)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list