PCB segfaults opening a layout from the command line It seems we have
NULL pointer dereference, (or just dereference of an uninitialised
pointer).


#0 0x080d09c2 in ghid_shift_is_pressed () at hid/gtk/gtkhid-main.c:1093
#1 0x0807b70b in FitCrosshairIntoGrid (X=185600, Y=303199) at crosshair.c:879
#2 0x08073b2b in ChangePCBSize (Width=219999, Height=0) at change.c:2283
#3 0x0808cb1e in LoadPCB (Filename=0xbfc0774a 
"/home/pcjc2/xgsch2pcbtst/geda_1.4.0_test.pcb") at file.c:372
#4 0x080996f9 in main (argc=Cannot access memory at address 0x0) at main.c:939

But at this stage, the GUI hasn't "booted", and the poking at the
ghid_port->drawing_area->window results in the error since drawing_area
is NULL here.

It isn't obvious what the right way to fix this is, since the LoadPCB
function generally gets called after the GUI is initialised. In this
case, callbacks into the GTK HID before do_export() is called cause it
to blow up.

Ideas?

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to