Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2021 21:36:30 +0100
From:      Peter Holm <pho@freebsd.org>
To:        Mark Johnston <markj@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: panic: malloc(M_WAITOK) with sleeping prohibited with main-n245383-15565e0a2177
Message-ID:  <20210311203630.GA99255@x8.osted.lan>
In-Reply-To: <YEpZsoZKOnXbXgBZ@nuc>
References:  <20210311173213.GA97802@x8.osted.lan> <YEpZsoZKOnXbXgBZ@nuc>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210311203630.GA99255>