[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Stack Overflow in gnetlist



 
Matt,
 
Thanks for the pointer.  The suggestion in that posting worked.  Since my original posting I also started getting stack overflows in the "bom2" back end as well.
 
Just for the record, I inserted a line in gnet-bom2.scm and gnet-drc2.scm that looks like this:
 
 (debug-options (list 'stack 200000))
 
As the 2002 posting indicated, changing the parser is probably the correct fix, but that was beyond my abilities at this point.
 
Thanks again.
 
 Joe T
 
 
On 6/25/07, Matt Ettus <boyscout@xxxxxxxxx> wrote:
Many of the netlist backends are implemented with recursive functions,
so large schematics cause this.  The real solution is to rewrite them
as properly tail-recursive.  The interim solution is to adjust the
stack size to be much bigger:

http://archives.seul.org/geda/dev/Jan-2002/msg00024.html

Matt

On 6/25/07, joe tarantino <joeft@xxxxxxxxxxxxx> wrote:
>
> Per the instructions, I often run "gnetlist -g drc2 ...." to check my
> schematics.  I've noticed recently that I get a stack overflow message
> shortly after it has read in all the files.  It still produces the drc
> output, but without any clue as to what caused the stack overflow.  The
> overflow seems to be tied to the size of the input data.  My design covers 7
> schematic pages.  If I load only 3 or 4 of them there is no stack overflow
> message (although I'll get errors about unconnected nets -  as expected).
> Loading all 7 pages produces the error.
>
> Running gnetlist with "-g PCB" or any of the other back end processing
> options I've tried does not produce the message.  The netlists I get out
> appear to be correct.
>
> Any hints as to where this is occurring?
>
> Thanks -
>
> Joe T
>
>
>
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>
>


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


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