[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: problems with PCB and large board
> If you can't send us a board, it may well be useful to grab valgrind
> "apt-get install valgrind" on debian or ubuntu, and run it under that:
> "valgrind pcb > pcblog.stdout 2>pcblog.stderr".
I run slackware, and see there is prebuilt package for valgrind - I'll
give it a try and let you know how it goes.
>
> Could you reproduce the crash once more under GDB, and if the backtrace
> looks the same, type:
>
> "print rat"
>
> (and if that doesn't work, "print b")
>
> If the compiler hasn't optimised those away, it ought to tell us whether
> we're looking at a NULL pointer dereference, or (sadly more likely),
> some kind of corrupt pointer.
It's very repeatable. Here's the result:
(gdb) run pcb
Starting program: /usr/local/bin/pcb pcb
Program received signal SIGSEGV, Segmentation fault.
LOCtoPadRat_callback (b=0xb70ad8a8, cl=0xbffaa920) at find.c:2217
2217 if (!TEST_FLAG (TheFlag, rat))
(gdb) bt
#0 LOCtoPadRat_callback (b=0xb70ad8a8, cl=0xbffaa920) at find.c:2217
#1 0x080ba88d in __r_search (node=0x9597c98, query=0xbffaa97c,
arg=0xbffaa8cc)
at rtree.c:539
#2 0x080ba8e3 in __r_search (node=0x9624108, query=0xbffaa97c,
arg=0xbffaa8cc)
at rtree.c:589
#3 0x080ba8e3 in __r_search (node=0x98ebe78, query=0xbffaa97c,
arg=0xbffaa8cc)
at rtree.c:589
#4 0x080ba8e3 in __r_search (node=0x9678f20, query=0xbffaa97c,
arg=0xbffaa8cc)
at rtree.c:589
#5 0x080ba8e3 in __r_search (node=0x9805ee0, query=0xbffaa97c,
arg=0xbffaa8cc)
at rtree.c:589
#6 0x080ba8e3 in __r_search (node=0x9561fc8, query=0xbffaa97c,
arg=0xbffaa8cc)
at rtree.c:589
#7 0x080ba95e in r_search (rtree=0x8ebd198, query=0xbffaa920,
check_region=0,
found_rectangle=0x808ae90 <LOCtoPadRat_callback>, cl=0xbffaa920) at
rtree.c:625
#8 0x0808e198 in LookupLOConnectionsToPad (Pad=0x8b42470, LayerGroup=1)
at find.c:2272
#9 0x08090761 in DoIt (AndRats=1 '\001', AndDraw=0 '\0') at find.c:869
#10 0x08091b96 in RatFindHook (type=512, ptr1=0xb7046ba8,
ptr2=0x8b42470, ptr3=0x8b42470,
undo=0 '\0', AndRats=1 '\001') at find.c:3247
#11 0x080b2f12 in GatherSubnets (Netl=0x904f7b0, NoWarn=0 '\0',
AndRats=<value optimized out>) at rats.c:469
#12 0x080b41bd in AddAllRats (SelectedOnly=-88 '¨', funcp=0) at rats.c:740
#13 0x08062841 in ActionAddRats (argc=1, argv=0x8db6568, x=0, y=0) at
action.c:3628
#14 0x080c81a4 in hid_actionv (name=0x9050c50 "AddRats", argc=1,
argv=0x8db6568)
at hid/common/actions.c:219
#15 0x080c7db0 in hid_parse_actions (rstr=0x83328f8 "AddRats(AllRats)",
function=0x80c80c0 <hid_actionv>) at hid/common/actions.c:287
#16 0x080e28cb in ghid_menu_cb (action=0x83579f8, data=0x8126480)
at hid/gtk/gui-top-window.c:633
#17 0xb7a761df in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#18 0xb7a68e69 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0xb7a7d61b in g_signal_handler_disconnect () from
/usr/lib/libgobject-2.0.so.0
#20 0xb7a7f2af in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#21 0xb7a7f5f9 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#22 0xb7c46985 in gtk_widget_get_action () from /usr/lib/libgtk-x11-2.0.so.0
#23 0xb7c48d44 in gtk_action_new () from /usr/lib/libgtk-x11-2.0.so.0
#24 0xb7a68e69 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#25 0xb7a7d61b in g_signal_handler_disconnect () from
/usr/lib/libgobject-2.0.so.0
#26 0xb7a7efd7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#27 0xb7a7f5f9 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#28 0xb7c4285f in gtk_accel_group_activate () from
/usr/lib/libgtk-x11-2.0.so.0
#29 0xb7c4296a in gtk_accel_groups_activate () from
/usr/lib/libgtk-x11-2.0.so.0
#30 0xb7e69662 in gtk_window_activate_key () from
/usr/lib/libgtk-x11-2.0.so.0
#31 0xb7e696fc in gtk_window_activate_key () from
/usr/lib/libgtk-x11-2.0.so.0
#32 0xb7d36154 in gtk_marshal_BOOLEAN__VOID () from
/usr/lib/libgtk-x11-2.0.so.0
#33 0xb7a67789 in g_value_set_static_boxed () from
/usr/lib/libgobject-2.0.so.0
#34 0xb7a68e69 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#35 0xb7a7d7aa in g_signal_handler_disconnect () from
/usr/lib/libgobject-2.0.so.0
#36 0xb7a7efd7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#37 0xb7a7f5f9 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#38 0xb7e54db7 in gtk_widget_get_default_style () from
/usr/lib/libgtk-x11-2.0.so.0
#39 0xb7d2f48d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#40 0xb7d30608 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#41 0xb7bb20ea in gdk_add_client_message_filter () from
/usr/lib/libgdk-x11-2.0.so.0
#42 0xb79c5146 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0xb79c84f3 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#44 0xb79c88d7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#45 0xb7d30ae4 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#46 0x080e27d0 in ghid_do_export (options=0x0) at
hid/gtk/gui-top-window.c:2735
#47 0x08096717 in main (argc=Cannot access memory at address 0xb70ad8a8
) at main.c:1031
(gdb) print rat
$1 = <value optimized out>
(gdb) print b
$2 = (const BoxType *) 0xb70ad8a8
(gdb)
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user