SBCL fails to run on macOS Sonoma

Bug #2029430 reported by cladur
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

Hi, I’m trying to run SBCL on macOS Sonoma (Beta 4). The program crashes on startup.
It used to work fine back when I was on macOS Ventura.
I'm aware that Sonoma isn't 100% stable yet, but I figured it wouldn't hurt to report it.

Test-Case
Update the system to macOS Sonoma and run SBCL from homebrew or build from source.

SBCL Versions
This bug was present in 3 different SBCL versions I checked: 2.1.2 (first Apple Silicon support version), 2.3.4 (current homebrew version) and 2.3.7.46-4f9615b5a (newest version at the time of testing).

------------------------------

~ uname -a
Darwin air 23.0.0 Darwin Kernel Version 23.0.0: Tue Jul 18 20:35:19 PDT 2023; root:xnu-10002.0.199.505.1~3/RELEASE_ARM64_T8103 arm64

~ sbcl
This is SBCL 2.3.4, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
mmap: Operation not permitted
fatal error encountered in SBCL pid 66565 pthread 0x1dda43ec0:
load_core_bytes(3,0x2290000,0x300000000,10000) failed

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
Revision history for this message
Chris Wicklein (chrisw-wicklein) wrote :

I encountered this problem with SBCL 2.3.7 on Sonoma and tried resolving it by bootstrapping with 2.2.9 pre-compiled for x86-64 macOS. Unfortunately, anything I build with 2.2.9 is built for x86-64 including SBCL 2.3.10, buildapp, and a Lisp program I use to build other software (GCC, Emacs, etc.). This creates a cascading problem of software being built for x86-64. Is there a way to build SBCL for AMR64 using SBCL for x86-64? Is it possible to provide SBCL precompiled for ARM64 which works on Sonoma?

Thanks!

Revision history for this message
Stas Boukarev (stassats) wrote :

You can build an arm64 sbcl with an x86-64 one without doing anything special. But you can also just get it from homebrew.

Revision history for this message
Chris Wicklein (chrisw-wicklein) wrote :

Thank you, I appreciate your response. I wasn't sure how to build SBCL for ARM64 using the pre-compiled build for x86-64; the new build ends up being for x86-64 as well. I'm trying to avoid Homebrew in general; the Lisp program I'm bootstrapping is an alternative to Homebrew, MacPorts, Nix, etc.

I ended up doing what the MacPorts people seem to be doing since Sonoma; use ECL to bootstrap SBCL.

Revision history for this message
Stas Boukarev (stassats) wrote :

sbcl-x86 --eval '(print (machine-type))'

"X86-64"

./make.sh sbcl-x86

target SB-XC:*FEATURES* = (:ARM64 :GENCGC :64-BIT ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.