[Gambas-user] Segfault when trying to debug stack overflow

Benoît Minisini gambas at ...1...
Wed May 14 23:38:59 CEST 2014


Le 14/05/2014 23:22, Tobias Boege a écrit :
> Hi Benoit,
>
> simple issue this time (I think). When my program produces a stack overflow
> and I try to get the value of an argument to the overflowing stack frame,
> using the IDE debugging facilities, "it" (the interpreter?) segfaults.
>
> Run the attached project and when the stack is overflowed, select the iInt
> parameter in the function body as if you would want to know its value. (I
> actually did this because I wanted to know how deep the Gambas stack can be
> exhausted with a minimal function. Guess I'll just print the value now...)
>
> Regards,
> Tobi
>

The stack limit is 64 Mb unless less is specified by the 'ulimit' 
command. This number is arbitrary. Technically, the stack is limited by 
the available memory only (it works exactly like the binary program stack).

-- 
Benoît Minisini




More information about the User mailing list