gEDA-user: PCB: sudden segfault problems

Richard Rasker rasker at linetec.nl
Mon Feb 4 13:21:47 EST 2008


Op maandag 04-02-2008 om 13:03 uur [tijdzone -0500], schreef DJ Delorie:
> The way to tell what's happening is to run pcb under gdb:
> 
> $ gdb pcb
> ...
> (gdb) run myboard.pcb
> ...
> segfault
> (gdb) where
> ... lots of stack dump stuff ...

Ah, I think I see what I did wrong:

Program received signal SIGSEGV, Segmentation fault.
0x080a22b2 in M_POLYAREA_intersect (e=0xbf8f4ec0, afst=0x8576d58,
    bfst=0x85efa60, add=1) at polygon1.c:848
848               if (a->contours->xmax >= b->contours->xmin &&
(gdb)


Indeed, I found a polygon with two edges touching (although not
overlapping) itself. After fixing this, the problem appears to be
solved.

Thanks for the tip with regard to gdb :-)

Best regards,

Richard Rasker



More information about the geda-user mailing list