Confusing behavior with --dynamic-space-size too late

Bug #1945081 reported by Luke Gorrie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Wishlist
Unassigned

Bug Description

How should supplying --dynamic-space-size late, e.g. after an --eval argument, behave? Maybe print a warning that it's too late to configure the heap size and then continue?

I just realized that I've been making this mistake all year by misusing NixOS's common-lisp.sh wrapper script to SBCL which splices in an --eval before my --dynamic-space-size argument.

Initially I thought the behaviour was to silently ignore the late argument but when I try to make a test case it seems to actually halt argument processing and take me straight to the REPL:

$ uname -a
Linux thinky 5.14.1 #1-NixOS SMP Fri Sep 3 08:24:03 UTC 2021 x86_64 GNU/Linux

$ sbcl --eval '(format t "Hello ~a~%" (sb-ext:dynamic-space-size))' \
       --dynamic-space-size 4096 \
       --eval '(format t "Goodbye ~a~%" (sb-ext:dynamic-space-size))' \
       --eval '(quit)'
This is SBCL 2.1.2.nixos, 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.
Hello 1073741824
*

Luke Gorrie (lukego)
description: updated
Stas Boukarev (stassats)
Changed in sbcl:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Stas Boukarev (stassats)
Stas Boukarev (stassats)
Changed in sbcl:
status: Confirmed → Fix Committed
assignee: Stas Boukarev (stassats) → nobody
Changed in sbcl:
status: Fix Committed → Fix Released
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.