Article View: linux.debian.bugs.dist
Article #6316Bug#1155316: libspooles2.2: multithreaded factor/solve race gives silently wrong results on arm64 (affects calculix-ccx)
From: Maximilian Guettinger
Date: Thu, 26 Nov 2026 15:20
Date: Thu, 26 Nov 2026 15:20
40 lines
3758 bytes
3758 bytes
Control: retitle -1 libspooles2.2: multithreaded factor/solve race gives silently wrong results (arm64 often, amd64 rarely) Dear Maintainer, an addition to this report: the problem is not limited to arm64. A third party measured it on x86_64 with the same upstream code (ccx 2.23 built with -DUSE_MT against stock SPOOLES 2.2, GCC 14.3.1, Intel Xeon Platinum 8592+, linear static shell model with about 3.8k nodes): - 4 solver threads (CCX_NPROC_EQUATION_SOLVER=4): 19 of 600 runs wrong; one run at a time: 3 of 300 - only the stiffness or result threads at 4: 0 of 600 each - solver at 1 thread (OMP_NUM_THREADS=4, CCX_NPROC_EQUATION_SOLVER=1): 0 of 2000 - buckling, another small model: 9 of 600 wrong with 4 solver threads, 0 of 900 with 1 Wrong reaction forces were 54-232 instead of 50.69, every run exited with code 0, and in several wrong runs one of the reactions was still exact. Source: https://github.com/Dhondtguido/CalculiX/issues/74 So amd64 is affected as well, at a rate of about 1-3 % per run instead of 20-100 % on arm64. My own amd64 check in the original report (0 of 20 runs under QEMU) was too small to show this. A likely mechanism on x86 is compiler reordering of the plain, non-atomic loads and stores in the same places (list hand-off in ChvList/SubMtxList, frontIsDone and the solve barriers); whether the patches remove it on x86 has not been tested yet. Until a fixed libspooles2.2 is available, calculix-ccx users on any architecture can avoid the problem with CCX_NPROC_EQUATION_SOLVER=1; the assembly and result threads are not affected. It may be worth documenting this in calculix-ccx's README.Debian. Kind regards Maximilian Güttinger
Technical Details
Message-ID:
<O3Jqp-ehQs-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O3n6y-e5Gd-15@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Maximilian Guettinger <maximilian.guettinger@t-online.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155316: libspooles2.2: multithreaded factor/solve race gives silently wrong results on arm64 (affects calculix-ccx) Date: Thu, 26 Nov 2026 16:20:01 +0100 Message-ID: <O3Jqp-ehQs-1@gated-at.bofh.it> References: <O3n6y-e5Gd-15@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Nov 26 15:11:06 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -0.449 Reply-To: Maximilian Guettinger <maximilian.guettinger@t-online.de>, 1155316@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-science-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: followup 1155316 X-Debian-Pr-Package: src:spooles X-Debian-Pr-Keywords: patch upstream X-Debian-Pr-Source: spooles Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) X-Mailer: Apple Mail (2.3864.700.51.1.1) X-Toi-Expurgateid: 150726::1795705259-F77FD952-575BFADD/0/0 CLEAN NORMAL X-Toi-Msgid: 33484233-cf4d-4611-874a-e9843597c442 X-Greylist: delayed 517 seconds by postgrey-1.37 at buxtehude; Thu, 26 Nov 2026 15:09:42 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005224 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 26 Nov 2026 16:00:46 +0100 X-Original-Message-ID: <7318E634-67DC-41C8-A051-4BBC7F9D7C7C@t-online.de> X-Original-References: <E6108C9F-B3F1-459B-BD4B-10B55AFEAF37@t-online.de>