gEDA-dev: Stack overflow in gnetlist
Matt Ettus
boyscout at gmail.com
Tue Nov 21 00:39:42 EST 2006
On 11/20/06, Ales Hvezda <ahvezda at seul.org> wrote:
> Hi Matt,
>
> [snip]
> >When running gnetlist with the partslist3 backend, I get:
> >
> >
> >ERROR: Stack Overflow
>
> Hmmm.. there are still backends that overflow. You could
> try the workaround listed at:
>
> http://www.geda.seul.org/wiki/geda:faq-gnetlist#some_gnetlist_backends_overflow_the_stack._how_do_i_solve_this
>
> but, of course, a patch would be nicer. :)
>
> Ah yes, there's even a bug to track this:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1442911&group_id=161080&atid=818426
>
> I don't know if this is related, but the partslist backends don't seem to use
> display-connections so there is another function that is not stack friendly.
I modified the file to make some of the calls tail-recursive, but
there are a lot of them. I gave up when I got to the merge sort. In
any case, using (debug-set! stack 20000000) allowed me to get past the
problem. The code definitely needs fixing, though.
Let me know if you want the code I modified for tail recursion.
Thanks,
Matt
More information about the geda-dev
mailing list