Severe memory leak bootstrapping on macOS Monterey

Bug #1949580 reported by David Evans
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
Invalid
Undecided
Unassigned

Bug Description

I'm trying to install sbcl on macOS 12 (Monterey) x86_64 using the Macports package manager. The build was taking a long time and did not seem to be doing anything. After an hour the sbcl process was using 100% CPU and 300GB of memory.

I filed a bug 63731 with the Macports bug tracker https://trac.macports.org/ticket/63731

Version info: sbcl: 2.1.9, sbcl bootstrap: sbcl-1.2.11-x86-64-darwin

I tried running the sbcl bootstrap using the run-sbcl.sh script with no arguments. No prompt
was displayed and after 30 seconds the process was taking 30GB of memory.

Any suggestions how to fix this gratefully received.

There is no problem installing 2.1.10 on macOS 10.11 and macOS 11

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

Maybe try a more recent SBCL version, 1.2.11 is not exactly current.

Revision history for this message
Mark.Evenson (evenson-not-org) wrote :

Unfortunately, my only known source of SBCL binaries is <http://sbcl.org/platform-table.html> for which sbcl-1.2.11 is the latest available for macOS/AMD64.

I spent a little time browsing through <https://sourceforge.net/projects/sbcl/files/sbcl/> but it seems that the only thing really archived for every SBCL version is Linux/AMD64.

Could someone point me to a newer SBCL binary for macOS/AMD64?

Revision history for this message
Yaakov Baruch (yaakov18) wrote :

I was able to compile this way:

sudo port -v upgrade sbcl

(got stalled with a huge memory leak, as reported above)

sudo kill -9 <PID>

(where PID is the the one of the leaking sbcl 1.2.11 command)

sudo cp -p /opt/local/bin/sbcl /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_sbcl/sbcl/work/sbcl-1.2.11-x86-64-darwin/src/runtime/sbcl

sudo cp -p /opt/local/lib/sbcl/sbcl.core /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_sbcl/sbcl/work/sbcl-1.2.11-x86-64-darwin/output/sbcl.core

(where the source sbcl and sbcl.core being copied, were created by the installation of sbcl 2.1.10 under macOS 11, preceding my upgrade to macOS 12)

sudo port -v upgrade sbcl

(this resumes from where the previous attempt left off, and succeeds.)

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

Can download a binary from https://github.com/sbcl/sbcl/actions/workflows/mac.yml (need to be logged in)

Changed in sbcl:
status: New → Incomplete
status: Incomplete → Invalid
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.