From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 17 18:50:04 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10A55106566B for ; Thu, 17 Dec 2009 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C7E5D8FC18 for ; Thu, 17 Dec 2009 18:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBHIo3e5069817 for ; Thu, 17 Dec 2009 18:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBHIo3tj069816; Thu, 17 Dec 2009 18:50:03 GMT (envelope-from gnats) Resent-Date: Thu, 17 Dec 2009 18:50:03 GMT Resent-Message-Id: <200912171850.nBHIo3tj069816@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bruce Cran Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BE36106566C for ; Thu, 17 Dec 2009 18:46:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B9EA88FC14 for ; Thu, 17 Dec 2009 18:46:35 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBHIkZGM069014 for ; Thu, 17 Dec 2009 18:46:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBHIkZYO069013; Thu, 17 Dec 2009 18:46:35 GMT (envelope-from nobody) Message-Id: <200912171846.nBHIkZYO069013@www.freebsd.org> Date: Thu, 17 Dec 2009 18:46:35 GMT From: Bruce Cran To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/141720: [sctp] [lor] [hang] sctp-create vs. sctp-it causes system hang X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 18:50:04 -0000 >Number: 141720 >Category: kern >Synopsis: [sctp] [lor] [hang] sctp-create vs. sctp-it causes system hang >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 18:50:03 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: Mon Dec 14 15:44:18 GMT 2009 brucec@tau.draftnet:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When running lots of copies of the SCTP API tester, 'api_tests', the console sometimes hangs, though keypresses are still recognized. Breaking into the debugger shows that a LOR has occurred, but attempting to continue running the system results in the system eventually freezing. lock order reversal: 1st 0xffffff00300c5488 sctp-create (inp_create) @ /usr/src/sys/netinet/sctp_input.c:4897 2nd 0xffffffff80e11df0 sctp-it (iterator) @ /usr/src/sys/netinet/sctp_pcb.c:3102 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e _witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 sctp_inpcb_free() at sctp_inpcb_free+0x50 sctp_process_cookie_new() at sctp_process_cookie_new+0x646 sctp_process_control() at sctp_process_control+0x5eb2 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 >100 copies of the api_tests application from sctpCVS/APPS/apitester . >Fix: >Release-Note: >Audit-Trail: >Unformatted: