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

gEDA-user: Toporouter crashing in GIT head on seemingly simple circuits



Hi all,

In particular Anthony - whose wonderful project this is.

Toporouter looks great, but I can't get it to behave for me. In fact, it's doing a wonderful job of crashing PCB.... with a seg fault

I'm not sure quite what the protocol for reporting bugs like this is, and whether I should be targeting this into the SFnet bug tracker, so please feel free to point me at something else.

I've attached the file that is causing the problems. I may be doing something VERY stupid, but I don't think so.

I literally load said file, and then type :Toporouter() and it crashes PCB.

The Backtrace from GDB says:

===== BEGIN TRACE =====
Starting program: /home/chris/Applications/usr/bin/pcb
[Thread debugging using libthread_db enabled]
[New Thread 0xb5317b70 (LWP 491)]
[New Thread 0xb49ffb70 (LWP 492)]
[Thread 0xb49ffb70 (LWP 492) exited]
[New Thread 0xb49ffb70 (LWP 511)]
[New Thread 0xb4163b70 (LWP 512)]
[New Thread 0xb3962b70 (LWP 513)]
[Thread 0xb3962b70 (LWP 513) exited]
[Thread 0xb49ffb70 (LWP 511) exited]
[Thread 0xb5317b70 (LWP 491) exited]
[New Thread 0xb5317b70 (LWP 518)]
[Thread 0xb4163b70 (LWP 512) exited]
[New Thread 0xb4163b70 (LWP 523)]
[New Thread 0xb49ffb70 (LWP 524)]
[New Thread 0xb3962b70 (LWP 525)]
[New Thread 0xb3161b70 (LWP 526)]
[New Thread 0xb2960b70 (LWP 527)]
[New Thread 0xb215fb70 (LWP 528)]
[New Thread 0xb195eb70 (LWP 529)]
[New Thread 0xb115db70 (LWP 530)]
[New Thread 0xb095cb70 (LWP 531)]
[Thread 0xb095cb70 (LWP 531) exited]
[Thread 0xb195eb70 (LWP 529) exited]
[Thread 0xb3161b70 (LWP 526) exited]
[Thread 0xb215fb70 (LWP 528) exited]
[Thread 0xb3962b70 (LWP 525) exited]
[Thread 0xb115db70 (LWP 530) exited]
[Thread 0xb2960b70 (LWP 527) exited]
[Thread 0xb4163b70 (LWP 523) exited]
[Thread 0xb5317b70 (LWP 518) exited]
[New Thread 0xb5317b70 (LWP 540)]
[Thread 0xb5317b70 (LWP 540) exited]
[New Thread 0xb5317b70 (LWP 549)]
[New Thread 0xb4163b70 (LWP 550)]
[New Thread 0xb2960b70 (LWP 551)]
[New Thread 0xb115db70 (LWP 552)]
[New Thread 0xb3962b70 (LWP 553)]
[Thread 0xb2960b70 (LWP 551) exited]
[Thread 0xb3962b70 (LWP 553) exited]
[Thread 0xb115db70 (LWP 552) exited]
[Thread 0xb5317b70 (LWP 549) exited]
[Thread 0xb49ffb70 (LWP 524) exited]
finished
finished
v2 of c1 on c2
v2 of c1 on c2

Program received signal SIGSEGV, Segmentation fault.
build_cdt (r=0x8452990, l=0x840dc70) at toporouter.c:2422
2422            GTS_POINT(v)->z = vz(c1v1);
(gdb) bt
#0  build_cdt (r=0x8452990, l=0x840dc70) at toporouter.c:2422
#1  0x080ef9ed in import_geometry (r=0x8452990) at toporouter.c:2940
#2  0x080f6e9c in toporouter (argc=0, argv=0x0, x=28428, y=53714)
    at toporouter.c:7939
#3 0x080deaa1 in hid_actionv (name=0x84552d8 "Toporouter", argc=0, argv=0x0)
    at hid/common/actions.c:246
#4  0x080dee72 in hid_parse_actionstring (rstr=<value optimised out>,
    require_parens=<value optimised out>) at hid/common/actions.c:330
#5  0x080fea37 in ghid_handle_user_command (raise=1)
    at hid/gtk/gui-command-window.c:473
#6  0x080f9862 in Command (argc=0, argv=0x0, x=0, y=0)
    at hid/gtk/gtkhid-main.c:1245
#7  0x080deaa1 in hid_actionv (name=0x84105a8 "Command", argc=0, argv=0x0)
    at hid/common/actions.c:246
#8  0x080dee72 in hid_parse_actionstring (rstr=<value optimised out>,
    require_parens=<value optimised out>) at hid/common/actions.c:330
#9  0x08112ff8 in ghid_menu_cb (action=0x82a9868, data=0x8189b80)
    at hid/gtk/gui-top-window.c:631
#10 0x00a2693c in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#11 0x00a17412 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0x00a2d595 in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0x00a2e9bc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#14 0x00a2ee62 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0x002ed325 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x002efe94 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00a17412 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#18 0x00a2d595 in ?? () from /usr/lib/libgobject-2.0.so.0
#19 0x00a2e83b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#20 0x00a2ee62 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#21 0x002e8db1 in gtk_accel_group_activate () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x002e8eb5 in gtk_accel_groups_activate ()
   from /usr/lib/libgtk-x11-2.0.so.0
#23 0x0050a954 in gtk_window_activate_key () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x0050a9dc in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x003c6284 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00a15a87 in ?? () from /usr/lib/libgobject-2.0.so.0
#27 0x00a17412 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#28 0x00a2d1e6 in ?? () from /usr/lib/libgobject-2.0.so.0
#29 0x00a2e83b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#30 0x00a2ee62 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#31 0x004f4b96 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x003be933 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x003bfc17 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#34 0x006b736a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#35 0x001ff855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#36 0x00203668 in ?? () from /lib/libglib-2.0.so.0
#37 0x00203ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
#38 0x003c01d9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#39 0x0811683d in ghid_do_export (options=0x0) at hid/gtk/gui-top-window.c:2725
#40 0x080a6a1b in main (argc=1, argv=0xbffff474) at main.c:1097
(gdb) q
A debugging session is active.

    Inferior 1 [process 471] will be killed.

Quit anyway? (y or n) y

===== END TRACE =====

I'd love to actually help fix this bug, and/or figure out what I'm doing wrong, but I can't make head or tail of where I should be investigating.

I'd like to point out that the normal autorouter can complete routing the circuit, and so can I by hand. The normal autorouter uses the outline layer (which is not a good idea as the company I use for making PCBs uses that for cuts!)

Thanks in advance for any help.

Chris Malton

Attachment: SENSOR.pcb
Description: application/pcb-layout


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