PCB crash on undoing trace moving
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I move the trace and undo. PCB crashes. The gdb stack print is listed below.
PCB is compile from git repo.
pcb --version
PCB version 1.99z
(gdb) run
Starting program: /usr/local/bin/pcb
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-
[New Thread 0xb419db40 (LWP 19776)]
[New Thread 0xb37ffb40 (LWP 19777)]
[New Thread 0xb2ffeb40 (LWP 19778)]
[New Thread 0xb11aab40 (LWP 19786)]
[New Thread 0xb09a9b40 (LWP 19787)]
[Thread 0xb11aab40 (LWP 19786) exited]
[New Thread 0xb11aab40 (LWP 19791)]
[New Thread 0xadca8b40 (LWP 19792)]
[New Thread 0xad4a7b40 (LWP 19793)]
[New Thread 0xacca6b40 (LWP 19794)]
[New Thread 0xac4a5b40 (LWP 19795)]
[New Thread 0xabca4b40 (LWP 19796)]
[Thread 0xabca4b40 (LWP 19796) exited]
[Thread 0xac4a5b40 (LWP 19795) exited]
[Thread 0xb11aab40 (LWP 19791) exited]
[Thread 0xb09a9b40 (LWP 19787) exited]
[Thread 0xadca8b40 (LWP 19792) exited]
[Thread 0xacca6b40 (LWP 19794) exited]
Thread 1 "pcb" received signal SIGSEGV, Segmentation fault.
0x080caf9c in r_delete_entry (rtree=0x2d9d329, box=0x87510a8) at rtree.c:1180
1180 r = __r_delete (rtree->root, box);
(gdb) tree
Undefined command: "tree". Try "help".
(gdb) bt
#0 0x080caf9c in r_delete_entry (rtree=0x2d9d329, box=0x87510a8) at rtree.c:1180
#1 0x0808e9e5 in EraseText (Layer=0x8751088, Text=0x87510a8) at draw.c:1381
#2 0x0808ecd2 in EraseObject (type=<optimized out>, lptr=<optimized out>, ptr=0x87510a8) at draw.c:1455
#3 0x080d5cb8 in UndoFlag (Entry=0x8aa6464) at undo.c:529
#4 PerformUndo (ptr=ptr@
#5 0x080d5e71 in Undo (draw=true) at undo.c:974
#6 0x0806f71d in ActionUndo (argc=0, argv=0x0, x=0, y=0) at action.c:6380
#7 0x080d8e3c in hid_actionv (name=0x88d2c78 "Undo", argc=0, argv=0x0) at hid/common/
#8 0x080d937c in hid_parse_
#9 0x080d940e in hid_parse_actions (str_=0x8450990 "Undo()") at hid/common/
#10 0x081072ca in ghid_menu_cb (node=0x8450968, action=<optimized out>) at hid/gtk/
#11 0xb74387ec in g_cclosure_
#12 0xb7436b6b in g_closure_invoke () from /usr/lib/
#13 0xb7448ffc in ?? () from /usr/lib/
#14 0xb7451c96 in g_signal_
#15 0xb7451fc5 in g_signal_emit () from /usr/lib/
#16 0xb78d8897 in ?? () from /usr/lib/
#17 0xb78d912e in ?? () from /usr/lib/
#18 0xb7436b6b in g_closure_invoke () from /usr/lib/
#19 0xb7448ffc in ?? () from /usr/lib/
#20 0xb745188c in g_signal_
#21 0xb7451fc5 in g_signal_emit () from /usr/lib/
#22 0xb78d348b in gtk_accel_
#23 0xb78d4920 in gtk_accel_
#24 0xb7ad5627 in gtk_window_
#25 0xb7ad56b0 in ?? () from /usr/lib/
#26 0xb799df0b in ?? () from /usr/lib/
#27 0xb7435404 in ?? () from /usr/lib/
#28 0xb7436b6b in g_closure_invoke () from /usr/lib/
#29 0xb74495d4 in ?? () from /usr/lib/
#30 0xb745188c in g_signal_
#31 0xb7451fc5 in g_signal_emit () from /usr/lib/
#32 0xb7abdfc4 in ?? () from /usr/lib/
#33 0xb799c395 in gtk_propagate_event () from /usr/lib/
#34 0xb799c6fd in gtk_main_do_event () from /usr/lib/
#35 0xb780ffa9 in ?? () from /usr/lib/
#36 0xb7db8ed9 in g_main_
#37 0xb7db9179 in ?? () from /lib/i386-
#38 0xb7db9529 in g_main_loop_run () from /lib/i386-
#39 0xb799b485 in gtk_main () from /usr/lib/
#40 0x08108be7 in ghid_do_export (options=0x0) at hid/gtk/
#41 0x0806477a in main (argc=1, argv=0xbffff074) at main.c:2151
Hi Liu,
I can't reproduce this bug with the current git HEAD on a Fedora-13 32-bit linux kernel 2.6.34. 9-69.fc13. i686.PAE dual cpu installation, neither with the gtk or the lesstif UI.
Do you have some more information (OS, distro, hardware, etc.) regarding this bug ?
AFAICT, it looks like you started with an empty layout, does the bug persist with an existing layout ?
Kind regards,
Bert Timmerman.