Re: STORAGE-CONDITION: Binding stack

Robert Goldman <[email protected]> Wed, 25 Mar 2026 14:54:04 -0500
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
--===============7432637429520362439==
Content-Type: multipart/alternative;
 boundary="=_MailMate_405619C2-6983-416F-BDE8-1E447D9CC906_="


--=_MailMate_405619C2-6983-416F-BDE8-1E447D9CC906_=
Content-Type: text/plain; format=flowed; markup=markdown

Actually, I have just recompiled SBCL, bumping the binding stack size by 
a factor of 10:

     #define BINDING_STACK_SIZE (10*1024*1024)

I'm still getting the same error and, as I said, this works fine on ACL 
and CCL.  Can anyone suggest an explanation for the difference?

Thank you very much

On 25 Mar 2026, at 14:16, Robert Goldman wrote:

> I have a large test script which has been failing for me with this 
> error:
>
>     STORAGE-CONDITION: aborted for safety. 
> #<SB-KERNEL::BINDING-STACK-EXHAUSTED {7005C046B3}>
>
> What's the appropriate method for addressing this problem?  
> `--control-stack-size` and `--dynamic-space-size` do not _appear_ to 
> affect this (I haven't been exhaustive in testing).  Reading some old 
> traffic, it seems like the binding stack size can only be set when 
> SBCL is built.  Is that correct?
>
> Weirdly, this same code runs fine on both Clozure and Allegro Common 
> Lisp, and I usually think of SBCL as being the most optimized of the 
> available implementations.  But I gather there's something quite 
> different about the way SBCL handles specials.
>
> I guess I think the right answer is to rebuild SBCL for this purpose, 
> but wanted to ask, in case I am wrong.

--=_MailMate_405619C2-6983-416F-BDE8-1E447D9CC906_=
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/xhtml; charset=3Dutf-8"=
>
</head>
<body><div style=3D"font-family: sans-serif;"><div class=3D"markdown" sty=
le=3D"white-space: normal;">
<p dir=3D"auto">Actually, I have just recompiled SBCL, bumping the bindin=
g stack size by a factor of 10:</p>
<pre style=3D"margin-left: 15px; margin-right: 15px; padding: 5px; backgr=
ound-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; ma=
x-width: 90vw;"><code style=3D"margin: 0 0; border-radius: 3px; backgroun=
d-color: #F7F7F7; padding: 0px;">#define BINDING_STACK_SIZE (10*1024*1024=
)
</code></pre>
<p dir=3D"auto">I'm still getting the same error and, as I said, this wor=
ks fine on ACL and CCL.  Can anyone suggest an explanation for the differ=
ence?</p>
<p dir=3D"auto">Thank you very much</p>
<p dir=3D"auto">On 25 Mar 2026, at 14:16, Robert Goldman wrote:</p>
<blockquote style=3D"margin: 0 0 5px; padding-left: 5px; border-left: 2px=
 solid #777777; color: #777777;">
<p dir=3D"auto">I have a large test script which has been failing for me =
with this error:</p>
<pre style=3D"margin-left: 15px; margin-right: 15px; padding: 5px; backgr=
ound-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; ma=
x-width: 90vw;"><code style=3D"margin: 0 0; border-radius: 3px; backgroun=
d-color: #F7F7F7; padding: 0px;">STORAGE-CONDITION: aborted for safety. #=
&lt;SB-KERNEL::BINDING-STACK-EXHAUSTED {7005C046B3}&gt;
</code></pre>
<p dir=3D"auto">What's the appropriate method for addressing this problem=
?  <code style=3D"margin: 0 0; padding: 0 0.25em; border-radius: 3px; bac=
kground-color: #F7F7F7;">--control-stack-size</code> and <code style=3D"m=
argin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F=
7F7;">--dynamic-space-size</code> do not <em>appear</em> to affect this (=
I haven't been exhaustive in testing).  Reading some old traffic, it seem=
s like the binding stack size can only be set when SBCL is built.  Is tha=
t correct?</p>
<p dir=3D"auto">Weirdly, this same code runs fine on both Clozure and All=
egro Common Lisp, and I usually think of SBCL as being the most optimized=
 of the available implementations.  But I gather there's something quite =
different about the way SBCL handles specials.</p>
<p dir=3D"auto">I guess I think the right answer is to rebuild SBCL for t=
his purpose, but wanted to ask, in case I am wrong.</p>
</blockquote>

</div>
</div>
</body>

</html>

--=_MailMate_405619C2-6983-416F-BDE8-1E447D9CC906_=--


--===============7432637429520362439==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7432637429520362439==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help

--===============7432637429520362439==--