From owner-freebsd-current@freebsd.org Thu Mar 11 20:36:38 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CBB6B5AC442 for ; Thu, 11 Mar 2021 20:36:38 +0000 (UTC) (envelope-from pho@holm.cc) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DxLMV3yD2z3sQF for ; Thu, 11 Mar 2021 20:36:38 +0000 (UTC) (envelope-from pho@holm.cc) Received: by mailman.nyi.freebsd.org (Postfix) id 859A05AC598; Thu, 11 Mar 2021 20:36:38 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 842F45AC528 for ; Thu, 11 Mar 2021 20:36:38 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay05.pair.com (relay05.pair.com [216.92.24.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DxLMV3DCCz3sF1; Thu, 11 Mar 2021 20:36:38 +0000 (UTC) (envelope-from pho@holm.cc) Received: from x8.osted.lan (unknown [80.208.71.94]) by relay05.pair.com (Postfix) with ESMTP id CEA3E1A27BF; Thu, 11 Mar 2021 15:36:36 -0500 (EST) Received: from x8.osted.lan (localhost [127.0.0.1]) by x8.osted.lan (8.15.2/8.15.2) with ESMTPS id 12BKaaBF099984 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 11 Mar 2021 21:36:36 +0100 (CET) (envelope-from pho@x8.osted.lan) Received: (from pho@localhost) by x8.osted.lan (8.15.2/8.15.2/Submit) id 12BKaaC2099983; Thu, 11 Mar 2021 21:36:36 +0100 (CET) (envelope-from pho) Date: Thu, 11 Mar 2021 21:36:30 +0100 From: Peter Holm To: Mark Johnston Cc: current@freebsd.org Subject: Re: panic: malloc(M_WAITOK) with sleeping prohibited with main-n245383-15565e0a2177 Message-ID: <20210311203630.GA99255@x8.osted.lan> References: <20210311173213.GA97802@x8.osted.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4DxLMV3DCCz3sF1 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 20:36:38 -0000 On Thu, Mar 11, 2021 at 12:56:02PM -0500, Mark Johnston wrote: > On Thu, Mar 11, 2021 at 06:32:13PM +0100, Peter Holm wrote: > > I just got this panic: > > > > panic: malloc(M_WAITOK) with sleeping prohibited > > cpuid = 0 > > time = 1615472733 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00e49748b0 > > vpanic() at vpanic+0x181/frame 0xfffffe00e4974900 > > panic() at panic+0x43/frame 0xfffffe00e4974960 > > malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe00e4974980 > > malloc() at malloc+0x34/frame 0xfffffe00e49749e0 > > g_mirror_event_send() at g_mirror_event_send+0x30/frame 0xfffffe00e4974a30 > > softclock_call_cc() at softclock_call_cc+0x15d/frame 0xfffffe00e4974b00 > > softclock() at softclock+0x66/frame 0xfffffe00e4974b20 > > ithread_loop() at ithread_loop+0x279/frame 0xfffffe00e4974bb0 > > fork_exit() at fork_exit+0x80/frame 0xfffffe00e4974bf0 > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00e4974bf0 > > > > https://people.freebsd.org/~pho/stress/log/log0078.txt > > Hi Peter, > > Could you try the patch here? https://reviews.freebsd.org/D29223 This fixed the problem for me. I ran the problem test for an hour and then the rest of the g_mirror tests. No problems seen. - Peter