[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: gnetlist ERROR: Stack overflow
>
> (eek, briefly looking at the guile source code, "ERROR: Stack overflow" is
> inside 'eval', so somewhere within the pads backend, too much data is
> being passed to eval; a comparison between what the 'geda' backend and the
> 'pads' backend is in order, as I haven't looked at these backends for quite
> some time now.)
>
Is there a way to redefine what "too much data" is for the guile interpreter
similar to the way you can reset the stacksize limit with setrlimit in C?
The only way I've found to change it is by editing the guile eval.c and
increasing the size of the guile stack limit. If I change the line:
{ SCM_OPTION_INTEGER, "stack", 20000, "Stack size limit (measured in words; 0 = no check)." }
to
{ SCM_OPTION_INTEGER, "stack", 200000, "Stack size limit (measured in words; 0 = no check)." }
my problem goes away. Can we set the guile stack limit from the backend files
instead of recompiling guile??
Cheers...
Dave