kern/141697: [sctp] [panic] lock (sleep mutex) sctp-tcb not locked

Bruce Cran bruce at cran.org.uk
Thu Dec 17 04:40:01 UTC 2009


>Number:         141697
>Category:       kern
>Synopsis:       [sctp] [panic] lock (sleep mutex) sctp-tcb not locked
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 17 04:40:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Bruce Cran
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD tau.draftnet 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Dec 17 03:49:11 GMT 2009 brucec at tau.draftnet:/usr/obj/usr/src/sys/GENERIC_DBG amd64
>Description:
I got the following panic when running "killall api_tests" when a large number of api_tests processes were running.

panic: lock (sleep mutex) sctp-tcb not locked @ /usr/src/sys/netinet/sctp_pcb.c:4617

kdb_enter() at kdb_enter+0x3d
panic() at panic+0x17b
witness_unlock() at witness_unlock+0x297
_mtx_unlock_flags() at _mtx_unlock_flags+0x87
sctp_free_assoc() at sctp_free_assoc+0xaf1
sctp_process_control() at sctp_process_control+0x1329
sctp_common_input_processing() at sctp_common_input_processing+0x1b1
sctp_input_with_port() at sctp_input_with_port+0x388
ip_input() at ip_input+0xbc
swi_net() at swi_net+0x151
intr_event_execute_handlers() at intr_event_execute_handlers+0x66
ithread_loop() at ithread_loop+0xb2
fork_exit() at fork_exit+0x12a
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffff8000047d30, rbp = 0 ---
>How-To-Repeat:
Run lots (around 100-300) api_tests processes started with the following command line:

./api_tests -l -r > /dev/null

Then, kill all the api_tests processes with "killall api_tests"
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list