Project

General

Profile

Actions

Bug #4689

closed

Panic/Crash "sbflush_internal: cc 4294967166 || mb 0 || mbcnt 0"

Added by Jim Pingle over 9 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Operating System
Target version:
Start date:
05/08/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3
Affected Architecture:
All

Description

Exact cause yet unknown, but a panic can be triggered with the above condition. It appears to be a FreeBSD bug with a known fix which can be backported.

Crash report details:

Dump header from device /dev/da0s1b
  Architecture: amd64
  Architecture Version: 1
  Dump Length: 157184B (0 MB)
  Blocksize: 512
  Dumptime: Fri May  8 00:00:22 2015
  Magic: FreeBSD Text Dump
  Version String: FreeBSD 10.1-RELEASE-p6 #0 b69ba8f(releng/10.1)-dirty: Fri Mar 13 08:37:46 CDT 2015
    root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10
  Panic String: sbflush_internal: cc 4294967166 || mb 0 || mbcnt 0
  Dump Parity: 2721008901
  Bounds: 0
  Dump Status: good

db:0:kdb.enter.default>  show pcpu
cpuid        = 0
dynamic pcpu = 0x638780
curthread    = 0xfffff80037e02490: pid 71027 "miniupnpd" 
curpcb       = 0xfffffe000030ab80
fpcurthread  = 0xfffff80037e02490: pid 71027 "miniupnpd" 
idlethread   = 0xfffff80003292000: tid 100003 "idle: cpu0" 
curpmap      = 0xfffff80100093d78
tssp         = 0xffffffff82194f90
commontssp   = 0xffffffff82194f90
rsp0         = 0xfffffe000030ab80
gs32p        = 0xffffffff821969e8
ldt          = 0xffffffff82196a28
tss          = 0xffffffff82196a18
db:0:kdb.enter.default>  bt
Tracing pid 71027 tid 100151 td 0xfffff80037e02490
kdb_enter() at kdb_enter+0x3e/frame 0xfffffe000030a740
panic() at panic+0x175/frame 0xfffffe000030a7c0
sbflush_internal() at sbflush_internal+0x7b/frame 0xfffffe000030a7e0
sbflush() at sbflush+0x46/frame 0xfffffe000030a810
tcp_disconnect() at tcp_disconnect+0x52/frame 0xfffffe000030a840
tcp_usr_disconnect() at tcp_usr_disconnect+0x84/frame 0xfffffe000030a870
soclose() at soclose+0x3c/frame 0xfffffe000030a8b0
_fdrop() at _fdrop+0x29/frame 0xfffffe000030a8d0
closef() at closef+0x21e/frame 0xfffffe000030a960
closefp() at closefp+0x98/frame 0xfffffe000030a9a0
amd64_syscall() at amd64_syscall+0x351/frame 0xfffffe000030aab0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe000030aab0

Tail end of the message buffer:

<7>sonewconn: pcb 0xfffff800224167a8: Listen queue overflow: 8 already in queue awaiting acceptance (4 occurrences)
<7>sonewconn: pcb 0xfffff800224167a8: Listen queue overflow: 8 already in queue awaiting acceptance (13 occurrences)
<7>sonewconn: pcb 0xfffff800224167a8: Listen queue overflow: 8 already in queue awaiting acceptance (8 occurrences)
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
vmx0: watchdog timeout on queue 0
panic: sbflush_internal: cc 4294967166 || mb 0 || mbcnt 0
cpuid = 0
KDB: enter: panic

See also: OCK-41128

Actions #1

Updated by Ermal Luçi over 9 years ago

  • Status changed from New to Feedback

Merged patch.

Actions #2

Updated by Chris Buechler over 9 years ago

  • Target version changed from 2.2.3 to 2.3
  • Affected Version changed from 2.2.2 to 2.2.x

no known way to replicate this. Likely fixed with the patch that's been merged but will leave for feedback.

Actions #3

Updated by Jim Thompson about 9 years ago

  • Assignee changed from Ermal Luçi to Chris Buechler

reassign

Actions #4

Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

fixed in FreeBSD

Actions #5

Updated by Claude Duvergier about 8 years ago

I am getting this symptom (crashs) on v2.3.2, multiple times a day:

Crash report begins.  Anonymous machine information:

amd64
10.3-RELEASE-p9
FreeBSD 10.3-RELEASE-p9 #1 5fc1b19(RELENG_2_3_2): Tue Sep 27 12:26:06 CDT 2016     root@ce23-amd64-builder:/builder/pfsense-232/tmp/obj/builder/pfsense-232/tmp/FreeBSD-src/sys/pfSense

Crash report details:

Filename: /var/crash/bounds
1

Filename: /var/crash/info.0
Dump header from device /dev/label/swap0
  Architecture: amd64
  Architecture Version: 1
  Dump Length: 80896B (0 MB)
  Blocksize: 512
  Dumptime: Wed Nov  2 13:21:44 2016
  Hostname: hermes.example.com
  Magic: FreeBSD Text Dump
  Version String: FreeBSD 10.3-RELEASE-p9 #1 5fc1b19(RELENG_2_3_2): Tue Sep 27 12:26:06 CDT 2016
    root@ce23-amd64-builder:/builder/pfsense-232/tmp/obj/builder/pfsense-232/tmp/FreeBSD-src/sys/pfSense
  Panic String: sbflush_internal: cc 4294965256 || mb 0 || mbcnt 0
  Dump Parity: 916287357
  Bounds: 0
  Dump Status: good

(see forum and full report)

Also, someone on FreeBSD bugtracker reported the bug is still there on a 10-STABLE a month ago.

Actions #6

Updated by Jim Pingle almost 8 years ago

  • Status changed from Resolved to New
  • Assignee changed from Chris Buechler to Jim Thompson
  • Target version changed from 2.3 to 2.4.0
  • Affected Version changed from 2.2.x to 2.3

This is still happening to customers on 2.3.2-p1, so the imported patch didn't fix the problem.

Actions #7

Updated by Jim Thompson about 7 years ago

  • Assignee changed from Jim Thompson to Jim Pingle

does anyone see this on 2.3 (and an 11.0 base)?

Actions #8

Updated by Jim Pingle about 7 years ago

  • Status changed from New to Resolved

The FreeBSD bug report is still open, though it doesn't contain any reports of issues on 11.x. I haven't seen any recent reports of this issue either. There were some claims it was happening on 2.4 late last year but searching around I don't see anything current. The reports someone posted for 2.4 also don't match this panic message exactly.

The reports for the similar crash on 2.4, "panic: sbsndptr: sockbuf <x> and mbuf <y> clashing" (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213257 and https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212413) have been patched and I don't see anything recent from them either.

Looks like we can close this out for now. If there are more reports we can kick this forward to 2.4.1 and see how 11.1 behaves.

Actions

Also available in: Atom PDF