Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 23:26:15 +0100
From:      Niclas Zeising <zeising+freebsd@daemonic.se>
To:        current@freebsd.org
Subject:   panic: sbuf_trim makes no sense on sbuf 0xffffff82434d8898 with drain
Message-ID:  <50B29B07.20808@daemonic.se>

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

[-- Attachment #1 --]
Hi!
I consistently get this panic while trying to boot a kernel build from 
r243530.  It happens when the entropy harvesting rc.d script starts. 
r243380 worked fine, I haven't tested any revisions in between. 
Attached is the backtrace from the kernel, as gotten by kgdb.  The 
machine uses zfs as a root pool, and there have been churn in this area. 
  To my untrained eyes, however, the issue seem related to hdaa.c. 
Please let me know if I can provide any more information.
Regards!
-- 
Niclas

[-- Attachment #2 --]
Script started on Sun Nov 25 23:15:22 2012
root@vivi:crash# kgdb /boot/kernel/kernel 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:
0, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <Intel> at usbus5
uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen6.1: <Intel> at usbus6
uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
ugen7.1: <Intel> at usbus7
uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub6: 2 ports with 2 removable, self powered
uhub3: 6 ports with 6 removable, self powered
uhub7: 6 ports with 6 removable, self powered
ugen2.2: <Logitech> at usbus2
ums0: <Logitech USB-PS2 Optical Mouse, class 0/0, rev 2.00/18.00, addr 2> on usbus2
ums0: 6 buttons and [XYZ] coordinates ID=0
ugen2.3: <Logitech> at usbus2
ukbd0: <USB Keyboard> on usbus2
kbd0 at ukbd0
uhid0: <USB Keyboard> on usbus2
ahcich3: Timeout on slot 0 port 0
ahcich3: is 00000000 cs 00000000 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 0004c017
(aprobe0:ahcich3:0:0:0): SETFEATURES SET TRANSFER MODE. ACB: ef 03 00 00 00 40 00 00 00 00 44 00
(aprobe0:ahcich3:0:0:0): CAM status: Command timeout
(aprobe0:ahcich3:0:0:0): Error 5, Retry was blocked
ses0 at ahciem0 bus 0 scbus6 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SAMSUNG HD103SJ 1AJ10001> ATA-8 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <SAMSUNG HD103SJ 1AJ10001> ATA-8 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada2 at ahcich2 bus 0 scbus2 target 0 lun 0
ada2: <SAMSUNG HD103SJ 1AJ10001> ATA-8 SATA 2.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
Timecounter "TSC-low" frequency 10415696 Hz quality 1000
WARNING: WITNESS option enabled, expect reduced performance.
cd0 at ahcich3 bus 0 scbus3 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-215 1.19> Removable CD-ROM SCSI-0 device 
cd0: 150.000MB/s transfers (SATA 1.x, UDMA4, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from zfs:zroot []...
<118>Setting hostuuid: bfb68f8e-eabb-11dc-9e84-0013d4d9c940.
<118>Setting hostid: 0x17afaaa9.
<118>Starting ddb.
<118>Entropy harvesting: interrupts ethernet
panic: sbuf_trim makes no sense on sbuf 0xffffff82434d8898 with drain
cpuid = 3
KDB: enter: panic

Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /boot/kernel/zfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /boot/kernel/opensolaris.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
#0  doadump (textdump=0) at pcpu.h:229
229	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt
#0  doadump (textdump=0) at pcpu.h:229
#1  0xffffffff802d1532 in db_fncall (dummy1=<value optimized out>, 
    dummy2=<value optimized out>, dummy3=<value optimized out>, 
    dummy4=<value optimized out>) at /usr/src/sys/ddb/db_command.c:578
#2  0xffffffff802d12d4 in db_command (last_cmdp=<value optimized out>, 
    cmd_table=<value optimized out>, dopager=0)
    at /usr/src/sys/ddb/db_command.c:449
#3  0xffffffff802d53ef in db_script_exec (
    scriptname=0xffffff82434d83c0 "kdb.enter.panic", 
    warnifnotfound=<value optimized out>) at /usr/src/sys/ddb/db_script.c:302
#4  0xffffffff802d5226 in db_script_kdbenter (eventname=0x0)
    at /usr/src/sys/ddb/db_script.c:324
#5  0xffffffff802d38eb in db_trap (type=<value optimized out>, code=0)
    at /usr/src/sys/ddb/db_main.c:230
#6  0xffffffff8049430e in kdb_trap (type=3, code=0, tf=<value optimized out>)
    at /usr/src/sys/kern/subr_kdb.c:654
#7  0xffffffff806a7baa in trap (frame=0xffffff82434d86f0)
    at /usr/src/sys/amd64/amd64/trap.c:579
#8  0xffffffff80691a52 in calltrap () at /tmp/exception-9VYefr.s:179
#9  0xffffffff80493b0e in kdb_enter (why=0xffffffff80743740 "panic", 
    msg=<value optimized out>) at cpufunc.h:63
#10 0xffffffff804622e4 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:610
#11 0xffffffff8049cdcf in sbuf_trim (s=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/sys/kern/subr_sbuf.c:653
#12 0xffffffff8035834d in hdaa_sysctl_caps (oidp=<value optimized out>, 
    arg1=0x80, arg2=-2142664128, req=<value optimized out>)
    at /usr/src/sys/dev/sound/pci/hda/hdaa.c:1222
#13 0xffffffff8046ccf7 in sysctl_root (arg1=<value optimized out>, 
    arg2=<value optimized out>) at /usr/src/sys/kern/kern_sysctl.c:1513
#14 0xffffffff8046d2f2 in userland_sysctl (td=<value optimized out>, 
    name=0xffffff82434d8a70, namelen=<value optimized out>, 
    old=<value optimized out>, oldlenp=<value optimized out>, 
    inkernel=<value optimized out>, new=<value optimized out>, 
    newlen=<value optimized out>, retval=<value optimized out>, 
    flags=1129154976) at /usr/src/sys/kern/kern_sysctl.c:1623
#15 0xffffffff8046d124 in sys___sysctl (td=0xfffffe0008c5a480, 
    uap=0xffffff82434d8b80) at /usr/src/sys/kern/kern_sysctl.c:1549
#16 0xffffffff806a8835 in amd64_syscall (td=0xfffffe0008c5a480, traced=0)
    at subr_syscall.c:135
#17 0xffffffff80691d3b in Xfast_syscall () at /tmp/exception-9VYefr.s:329
#18 0x0000000800926fea in ?? ()
Previous frame inner to this frame (corrupt stack?)
Current language:  auto; currently minimal
(kgdb) quit
root@vivi:crash# uname -a

FreeBSD vivi.daemonic.se 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r243380: Thu Nov 22 00:55:08 CET 2012     root@vivi.daemonic.se:/usr/obj/usr/src/sys/VIVI  amd64
root@vivi:crash# ^Dexit

Script done on Sun Nov 25 23:16:38 2012

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