sbcl fails on 32-bit architecture (i386) with "mmap: Cannot allocate memory"

Bug #1983744 reported by Yuri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Invalid
Undecided
Unassigned

Bug Description

sbcl fails to build the Quilc project (https://github.com/quil-lang/quilc):
sbcl --dynamic-space-size 3072 --noinform --no-userinit --no-sysinit --non-interactive --load /wrkdirs/usr/ports/lang/quilc/work/quicklisp/setup.lisp --eval '(push (truename ".") asdf:*central-registry*)' --eval "(push (truename \"../\") ql:*local-project-directories*)" \
  \
 --eval "(ql:quickload '(quilc ))" \
 --eval "(ql:write-asdf-manifest-file \"system-index.txt\")"
mmap: Cannot allocate memory
fatal error encountered in SBCL pid 66248 pthread 0x206ce000:
Can't allocate 0xc0000000 bytes for space 1

--dynamic-space-size 3072 allows sbcl to allocate up to 3GB of memory which should be possible on the 32-bit system.

Without this option the same command fails with "Heap exhausted" error.

Quilc builds fine on 64-bit systems.

FreeBSD 13.1
sbcl-2.2.7

Yuri (yuri-rawbw)
description: updated
Revision history for this message
Stas Boukarev (stassats) wrote :

3072 is asking too much memory for your system.

Changed in sbcl:
status: New → Invalid
Revision history for this message
Yuri (yuri-rawbw) wrote :

Hi Stas,

What is the option to dynamically allocate memory as needed, and not ask upfront for a fixed memory size?

Thanks,
Yuri

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

Unfortunately, there is none.

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.