From owner-freebsd-current@freebsd.org Thu Mar 11 17:56:04 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 5C31A57CB6B for ; Thu, 11 Mar 2021 17:56:04 +0000 (UTC) (envelope-from markjdb@gmail.com) 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 4DxGpC53vvz3Q31 for ; Thu, 11 Mar 2021 17:56:03 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id ABB7557CB6A; Thu, 11 Mar 2021 17:56:03 +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 AA59557CEE9 for ; Thu, 11 Mar 2021 17:56:03 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DxGpC45t3z3Q9x; Thu, 11 Mar 2021 17:56:03 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x72b.google.com with SMTP id t4so21578051qkp.1; Thu, 11 Mar 2021 09:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/oVMe6OxEV+eiGqc+h3GAEMq7nPdNPwTmj6iLbpydgg=; b=F2ka1gdRIE0tpvrskAK80wcTLkuC95FdsUJoAphAt8MNnx+f/EKKyHzvrLmJfGdMA7 OrZ3T9fiocu8hYh/xOVPACjCe9iQ3LaeGWZuBSF1TUAneKKh/d05sE4Z4jFTpUY84enP YIrR9hfSsY5+SayoaUUE1fZ1xLfG1L7HzMWXN37aOXw4nYckY+bulsHqqazbswJDgHOo iL4Kd6NCPT7YofDUPer1hXMxbAguWLq4Dn+TPSQYoPDtnIa18ASwZAaZntsCIdm51S3i LnzkuEbIebBGrpaE4mTvjqUdZ5BEzhaNfCyPGn6uSqbb9BaK/TGu5ifDWW/hFXtjgaJO pV4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=/oVMe6OxEV+eiGqc+h3GAEMq7nPdNPwTmj6iLbpydgg=; b=Bls2YfZ03tpXIfVt0u6152Xfuda32Am59MoYSJTNJhumZPPsugpYI3O0Q8t49fDZpS 0JgrgKK+fi6slK7ZTe8yVh5ego/FGPN3ZAXf4oWnEHzlKZMswsCNv7zg9MQzZjX3n90V j68Vpp1opwvVqTyChaYToqtMpxxVnWIeesmZ+cEdjGBJGSJ2jsVDX79BSvLbG1Izvv2r deB2BEd55CKjAsgUrqDLNiDb2+V0olY6EMwMYHa2Hp56HaYAujNhS9YTRWGhq8hpziUD KHdDKJhO/FNDyyCc0JQ5/dezWltWWZDN65V/y1dM4tLJeMeOqJhQwEi3y9HpxhBeEM6P HG5g== X-Gm-Message-State: AOAM530UQLbHF20G1i6+fgUdkxUgj3yxmkqkyKBVk2oDlLXCw3shs0GV ekt8PVzA8s4CfSIw03e1LcRpKIMrEWNzIOfQ X-Google-Smtp-Source: ABdhPJw+9wbrSlARmGyJ+ASyWwtI5Hpjv9AVE1Id24gIm4LvqbENnMNI6nsPoqrjufKl6FyU12DAxQ== X-Received: by 2002:a37:c16:: with SMTP id 22mr8851563qkm.84.1615485362544; Thu, 11 Mar 2021 09:56:02 -0800 (PST) Received: from nuc ([142.126.164.150]) by smtp.gmail.com with ESMTPSA id p5sm2570745qkj.35.2021.03.11.09.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 09:56:02 -0800 (PST) Sender: Mark Johnston Date: Thu, 11 Mar 2021 12:56:02 -0500 From: Mark Johnston To: Peter Holm Cc: current@freebsd.org Subject: Re: panic: malloc(M_WAITOK) with sleeping prohibited with main-n245383-15565e0a2177 Message-ID: References: <20210311173213.GA97802@x8.osted.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311173213.GA97802@x8.osted.lan> X-Rspamd-Queue-Id: 4DxGpC45t3z3Q9x 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 17:56:04 -0000 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