[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: Stack overflow in gnetlist



On 11/20/06, Ales Hvezda <ahvezda@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


_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev