Article View: muc.lists.freebsd.bugs
Article #843[Bug 301240] arm64: panic "ncpus is 0 with non-zero map" in kern_membarrier -> smp_rendezvous_cpus when building lang/dotnet
From: bugzilla-noreply
Date: Sat, 28 Nov 2026 19:32
Date: Sat, 28 Nov 2026 19:32
71 lines
4180 bytes
4180 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301240
Bug ID: 301240
Summary: arm64: panic "ncpus is 0 with non-zero map" in
kern_membarrier -> smp_rendezvous_cpus when building
lang/dotnet
Product: Base System
Version: 15.1-RELEASE
Hardware: arm64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: szczepan@szczepan.net
While building lang/dotnet (dotnet-10.0.14) from ports on an arm64 VM (Oracle
Cloud Free Tier / Ampere A1), the host panics and reboots after a few minutes
(even seconds) of compilation.
Environment:
- uname -a:
FreeBSD amper 15.1-RELEASE-p7 FreeBSD 15.1-RELEASE-p7
releng/15.1-n283696-bb03631fe3b7 GENERIC arm64
- CPUs:
hw.ncpu: 2
kern.smp.maxcpus: 1024
- Port: lang/dotnet (dotnet-10.0.14, bootstrap SDK 10.0.12)
Note on bootstrap workaround:
The 10.0.12 bootstrap SDK fails to start on this FreeBSD 15.x host due to a
missing LLVM 21 libc++ symbol (`_ZNSt3__113__hash_memoryEPKvm` in
`libhostfxr.so`). To run the bootstrap SDK during the build, `libc++.so.1` from
FreeBSD 14.5-RELEASE was supplied to the bootstrap binary via libmap.conf.
Panic output (captured from OCI serial console):
panic: ncpus is 0 with non-zero map
cpuid = 0
time = 1795886357
KDB: stack backtrace:
#0 0xffff000000583de8 at kdb_backtrace+0x60
#1 0xffff00000052ce60 at vpanic+0x1b0
#2 0xffff00000052ccac at panic+0x48
#3 0xffff00000059a358 at smp_rendezvous_cpus+0x3ac
#4 0xffff0000004fc594 at kern_membarrier+0x67c
#5 0xffff000000950e08 at do_el0_sync+0x664
#6 0xffff0000009261ac at handle_el0_sync+0x4c
Uptime: 7m31s
Steps to reproduce:
1. On an arm64 FreeBSD 15.x VM, supply `libc++.so.1` from FreeBSD 14.5-RELEASE
so the `lang/dotnet` bootstrap SDK can execute.
2. Run `make` in `/usr/ports/lang/dotnet`.
3. Within several minutes, .NET's `membarrier(2)` calls trigger the kernel
panic above.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-301240-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301240] arm64: panic "ncpus is 0 with non-zero map" in kern_membarrier -> smp_rendezvous_cpus when building lang/dotnet Date: Sat, 28 Nov 2026 19:32:47 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301240-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="60758"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795894367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IrD4hwpeQdwYirVrbTWjDnwh0AX4Pg5jzWolmesax4M=; b=x72XwOQNGHz+LHd0BdAD9MQVm9kuPlqbCpy9LcpKkzZ8OY7TYqI7xIlT2oWvHHZk+tltRs Ur9A+r438d8NU5lxUgdnEzkLwo2NCYczEg2MdG487NS3hOTBmfpUm01md80Dz5jbEF2Uka oShCIybBJ/d1l9njq8qK1ubE411jz5Xm4GM56l7VMfRS3bjGIfQZL0uxn3fwRCa4b8btGU erQQLlEVNdA6ioeTBLRD7BnNFFcGwT39zOeE86M23x0Qb/JrUY5ymotfjIMzUFJRH7F0HC UEqAHKRZxxy+JG5YFktdo+DJd2v3pnCrddUcK8Il6+HuvwH13hxdJPAYVKQbDQ== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes