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

gEDA-user: pcb crash when highlighting net




I am nearing completion on a layout and am encountering repeated crashes with pcb. They occur when I hit "f" to highlight a net. The problem seems to be that pcb is deallocating memory it shouldn't. The error message looks like this:


*** glibc detected *** free(): invalid next size (fast): 0x081c5d30 ***

It is very repeatable and seems to also need the following conditions:
- rat's nest is turned on
- there are still un-routed traces on several nets
- many of the un-routed traces are ground, ground has the most net connections (>200), and ground is the net I highlighted when it crashed.
- incorrectly connected (shorted) nets may make things worse.


As I proceeded further with the design I found the susceptibility to crashing changes. Having more of the nets routed makes it more robust.

Here's a traceback that I captured. I can also supply the pcb file if it would help. It's a bit big to include it here.

Traceback from crash when net is highlighted. PCB 20060822, gtk hid, SuSe 9.3.

joeft@jhome2:~/projects/db8b> pcb -gdb
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".


(gdb) r
Starting program: /usr/local/bin/pcb-bin
[Thread debugging using libthread_db enabled]
[New Thread 1082867936 (LWP 7233)]
write to pipe "cat - > '/home/joeft/projects/db8b/highlight_net_U23-3_crash.pcb'"
*** glibc detected *** free(): invalid next size (fast): 0x081c5d30 ***


Program received signal SIGABRT, Aborted.
[Switching to Thread 1082867936 (LWP 7233)]
0xffffe410 in ?? ()
(gdb) where
#0 0xffffe410 in ?? ()
#1 0xbfffe104 in ?? ()
#2 0x00000006 in ?? ()
#3 0x00001c41 in ?? ()
#4 0x407342c1 in raise () from /lib/tls/libc.so.6
#5 0x40735b75 in abort () from /lib/tls/libc.so.6
#6 0x407687aa in __libc_message () from /lib/tls/libc.so.6
#7 0x4076e007 in malloc_printerr () from /lib/tls/libc.so.6
#8 0x4076f6cb in free () from /lib/tls/libc.so.6
#9 0x0807e73e in FreeLayoutLookupMemory () at find.c:494
#10 0x0807fad5 in LookupConnection (X=447330, Y=416496, AndDraw=1 '\001',
Range=1000, which_flag=0) at find.c:3302
#11 0x080551d4 in ActionConnection (argc=1, argv=0x0, x=447330, y=416496)
at action.c:2268
#12 0x080a3d35 in hid_actionv (name=0x80c324e "Connection", argc=1,
argv=0xbfffe460) at actions.c:216
#13 0x080a3df1 in hid_actionl (name=0x80c324e "Connection") at actions.c:194
#14 0x080ae8a3 in ghid_port_key_press_cb (drawing_area=0x831e4f8,
kev=0x81b4bf0, ui=0x826b718) at gui-output-events.c:460
#15 0x4015781e in gtk_marshal_BOOLEAN__VOID ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#16 0x403fe8db in g_closure_invoke () from /opt/gnome/lib/libgobject-2.0.so.0
#17 0x4040dd8b in g_signal_chain_from_overridden ()
from /opt/gnome/lib/libgobject-2.0.so.0
#18 0x4040eff2 in g_signal_emit_valist ()
from /opt/gnome/lib/libgobject-2.0.so.0
#19 0x4040f626 in g_signal_emit () from /opt/gnome/lib/libgobject-2.0.so.0
#20 0x4023ef14 in gtk_widget_get_default_style ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#21 0x4024e6ac in gtk_window_propagate_key_event ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#22 0x4025122c in gtk_window_activate_key ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#23 0x4015781e in gtk_marshal_BOOLEAN__VOID ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#24 0x403fe279 in g_closure_ref () from /opt/gnome/lib/libgobject-2.0.so.0
#25 0x403fe8db in g_closure_invoke () from /opt/gnome/lib/libgobject-2.0.so.0
#26 0x4040e179 in g_signal_chain_from_overridden ()
from /opt/gnome/lib/libgobject-2.0.so.0
#27 0x4040eff2 in g_signal_emit_valist ()
from /opt/gnome/lib/libgobject-2.0.so.0
#28 0x4040f626 in g_signal_emit () from /opt/gnome/lib/libgobject-2.0.so.0
#29 0x4023ef14 in gtk_widget_get_default_style ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#30 0x401513f4 in gtk_propagate_event ()
from /opt/gnome/lib/libgtk-x11-2.0.so.0
#31 0x4015274f in gtk_main_do_event () from /opt/gnome/lib/libgtk-x11-2.0.so.0
#32 0x40341ed2 in gdk_add_client_message_filter ()
from /opt/gnome/lib/libgdk-x11-2.0.so.0
#33 0x40456967 in g_main_context_dispatch ()
from /opt/gnome/lib/libglib-2.0.so.0
#34 0x40458ce2 in g_main_context_acquire ()
from /opt/gnome/lib/libglib-2.0.so.0
#35 0x40459cf7 in g_main_loop_run () from /opt/gnome/lib/libglib-2.0.so.0
#36 0x40152be3 in gtk_main () from /opt/gnome/lib/libgtk-x11-2.0.so.0
#37 0x080b4e98 in ghid_do_export (options=0x0) at gui-top-window.c:3841
#38 0x08083a84 in main (argc=1, argv=0xbffff0c4) at main.c:763





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