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

Re: gEDA-user: PCB crash on rotating polygons in buffer

On Thu, May 19, 2011 at 02:23:10PM +0200, Gabriel Paubert wrote:
> On Tue, May 17, 2011 at 11:48:47AM +0100, Peter Clifton wrote:
> > On Tue, 2011-05-17 at 10:11 +0200, Gabriel Paubert wrote:
> > 
> > > I'm sure other languages use even more modifiers, but could
> > > someone apply the following patch:
> > ....
> > 
> > Committed, thanks! I made the equivalent change to the GTK HID whilst I
> > was at it, and wrote a commit message for you.
> Thank you for committing. Maybe my memory is failing, but I don't 
> remember seeing the message when using the gtk gui (which I sometimes 
> do). Anyway it can't hurt gtk users, and it was really annoying to
> see the message log window pop up when I typed the AltGr key for the
> first time after starting PCB.
> > 
> > I look forward to reviewing any more patches you have for gEDA and PCB.
> I might prepare a less trivial patch over the week-end since
> the weather forecast is not good here for working on a swimming pool.
> But it first needs careful testing.
> In the meantime, I have a 100% reproducible bug with the following
> backtrace:
> Program received signal SIGSEGV, Segmentation fault.
> r_delete_entry (rtree=0x0, box=0x7d8c60) at rtree.c:1101
> 1101	  r = __r_delete (rtree->root, box);
> (gdb) info stack
> #0  r_delete_entry (rtree=0x0, box=0x7d8c60) at rtree.c:1101
> #1  0x0000000000433040 in RotateBuffer (Buffer=0x752960, Number=<value optimized out>) at buffer.c:1216
> #2  0x000000000041fd1a in ActionPasteBuffer (argc=2, argv=0xa5e970, x=<value optimized out>, y=<value optimized out>) at action.c:6076
> #3  0x000000000049158f in hid_actionv (name=<value optimized out>, argc=2, argv=0xa5e970) at hid/common/actions.c:246
> #4  0x0000000000491978 in hid_parse_actionstring (rstr=<value optimized out>, require_parens=<value optimized out>) at hid/common/actions.c:330
> #5  0x00000000004b67cb in lesstif_key_event (e=0x7fffffffdff0) at hid/lesstif/menu.c:1211
> #6  0x00000000004af635 in work_area_input (w=0xa0dee0, v=<value optimized out>, e=0x7fffffffdff0, ctd=<value optimized out>) at hid/lesstif/main.c:1345
> #7  0x00007ffff73e7d9a in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
> #8  0x00007ffff73e8577 in ?? () from /usr/lib/libXt.so.6
> #9  0x00007ffff73e7561 in XtDispatchEvent () from /usr/lib/libXt.so.6
> #10 0x00007ffff73e76f3 in XtAppMainLoop () from /usr/lib/libXt.so.6
> #11 0x00000000004b085a in lesstif_do_export (options=<value optimized out>) at hid/lesstif/main.c:1931
> #12 0x000000000045c9ff in main (argc=2, argv=0x7fffffffe398) at main.c:1097
> which happens when rotating a buffer which contains a single polygon (or a combination
> of tracks and polygons). 
> Simply take the attached PCB file, select the polygon, cut it (Ctrl-X)
> and rotate the buffer (Shift-F7). Instant-crash (TM) :-)

I forgot to mention that this is a regression, it does not happen on another machine
on which I have a binary compiled on April 26th.

Oh, and I see that I have left the netlist in the PCB file. But I suspect
that thos os irrelevant. Bonus point to the person who guesses what this
circuit is supposed to do ;-)


geda-user mailing list