On 2023/05/13 17:06:50 +0200, Sebastien Marie <sema...@online.fr> wrote:
> Hi,
> 
> Currently, when sbcl starts, the console shows a "map stack for pid XXX 
> failed" 
> message.
> 
> After searching a bit, sbcl is badly using sigaltstack(2) by using a 
> MAP_STACK 
> memory with RWX protection. The syscall fails with EINVAL (and a printf(9) 
> message is shown).
> 
> By reducing the protection to RW (for such stack mmap allocation), sbcl is 
> still 
> functionning.
> 
> Tested on amd64.
> 
> Comments or OK ?

Have to admit that I'm surprised the fix is so simple.  But it works!
I can still run tinmop[1] -both from the repl and from the binary-
which depends a discrete number of common lisp libraries and this
gives me confidence about this change.

ok for me

Thanks!


[1]: https://www.autistici.org/interzona/tinmop.html
(note that sbcl runs out of memory when building ironclad, you need to
try multiple times.)

Reply via email to