When I load the attached footprint to the buffer, and I say "Break buffer elements to pieces" PCB segfaults: leva@nowhere:~/git/library/electronic/footprint$ gdb --args pcb GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/bin/pcb...done. (gdb) run Starting program: /usr/local/bin/pcb [Thread debugging using libthread_db enabled] [New Thread 0xb5eb5b70 (LWP 8220)] [New Thread 0xb54ffb70 (LWP 8221)] [New Thread 0xb4cfeb70 (LWP 8222)] [Thread 0xb4cfeb70 (LWP 8222) exited] [Thread 0xb5eb5b70 (LWP 8220) exited] *** glibc detected *** /usr/local/bin/pcb: double free or corruption (!prev): 0x085a70b8 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xdfa591] /lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0xdfbde8] /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xdfeecd] /usr/local/bin/pcb(SmashBufferElement+0x57a)[0x8080d9a] /usr/local/bin/pcb[0x806c43c] /usr/local/bin/pcb(hid_actionv+0xb4)[0x80e2284] /usr/local/bin/pcb[0x80e2652] /usr/local/bin/pcb[0x81164c8] /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c)[0x974dcc] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x967252] /usr/lib/libgobject-2.0.so.0(+0x1f99d)[0x97b99d] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x754)[0x97cdb4] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x97d256] /usr/lib/libgtk-x11-2.0.so.0(+0x64da5)[0x2ebda5] /usr/lib/libgtk-x11-2.0.so.0(gtk_action_activate+0x8d)[0x2edead] /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c)[0x974dcc] /usr/lib/libgobject-2.0.so.0(+0x98b9)[0x9658b9] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x967252] /usr/lib/libgobject-2.0.so.0(+0x1f23a)[0x97b23a] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x754)[0x97cdb4] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x97d256] /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_activate+0x95)[0x4f53e5] /usr/lib/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0x120)[0x3d39a0] /usr/lib/libgtk-x11-2.0.so.0(+0x14e31f)[0x3d531f] /usr/lib/libgtk-x11-2.0.so.0(+0x143c64)[0x3cac64] /usr/lib/libgtk-x11-2.0.so.0(+0x13d424)[0x3c4424] /usr/lib/libgobject-2.0.so.0(+0x98b9)[0x9658b9] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x967252] /usr/lib/libgobject-2.0.so.0(+0x1f5e6)[0x97b5e6] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x5d3)[0x97cc33] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x97d256] /usr/lib/libgtk-x11-2.0.so.0(+0x26a636)[0x4f1636] /usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xcd)[0x3bca5d] /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x307)[0x3bde07] /usr/lib/libgdk-x11-2.0.so.0(+0x5639a)[0x6b239a] /lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5)[0x1f85e5] /lib/libglib-2.0.so.0(+0x3f2d8)[0x1fc2d8] /lib/libglib-2.0.so.0(g_main_loop_run+0x187)[0x1fc817] /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0x3be3c9] /usr/local/bin/pcb(ghid_do_export+0x5d)[0x8119d4d] /usr/local/bin/pcb(main+0x920)[0x80ab3c0] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xda5bd6] /usr/local/bin/pcb[0x8067c71] ======= Memory map: ======== 00110000-0012b000 r-xp 00000000 08:01 1001788 /lib/ld-2.11.1.so 0012b000-0012c000 r--p 0001a000 08:01 1001788 /lib/ld-2.11.1.so 0012c000-0012d000 rw-p 0001b000 08:01 1001788 /lib/ld-2.11.1.so 0012d000-0012e000 r-xp 00000000 00:00 0 [vdso] 0012e000-00130000 r-xp 00000000 08:01 1018146 /lib/tls/i686/cmov/libdl-2.11.1.so 00130000-00131000 r--p 00001000 08:01 1018146 /lib/tls/i686/cmov/libdl-2.11.1.so 00131000-00132000 rw-p 00002000 08:01 1018146 /lib/tls/i686/cmov/libdl-2.11.1.so 00132000-00156000 r-xp 00000000 08:01 1018147 /lib/tls/i686/cmov/libm-2.11.1.so 00156000-00157000 r--p 00023000 08:01 1018147 /lib/tls/i686/cmov/libm-2.11.1.so 00157000-00158000 rw-p 00024000 08:01 1018147 /lib/tls/i686/cmov/libm-2.11.1.so 00158000-0018f000 r-xp 00000000 08:01 1001800 /lib/libdbus-1.so.3.4.0 0018f000-00190000 r--p 00036000 08:01 1001800 /lib/libdbus-1.so.3.4.0 00190000-00191000 rw-p 00037000 08:01 1001800 /lib/libdbus-1.so.3.4.0 00191000-001a6000 r-xp 00000000 08:01 1018175 /lib/tls/i686/cmov/libpthread-2.11.1.so 001a6000-001a7000 r--p 00014000 08:01 1018175 /lib/tls/i686/cmov/libpthread-2.11.1.so 001a7000-001a8000 rw-p 00015000 08:01 1018175 /lib/tls/i686/cmov/libpthread-2.11.1.so 001a8000-001aa000 rw-p 00000000 00:00 0 001aa000-001b1000 r-xp 00000000 08:01 1018177 /lib/tls/i686/cmov/librt-2.11.1.so 001b1000-001b2000 r--p 00006000 08:01 1018177 /lib/tls/i686/cmov/librt-2.11.1.so 001b2000-001b3000 rw-p 00007000 08:01 1018177 /lib/tls/i686/cmov/librt-2.11.1.so 001b3000-001bb000 r-xp 00000000 08:01 164457 /usr/lib/libXrender.so.1.3.0 001bb000-001bc000 r--p 00007000 08:01 164457 /usr/lib/libXrender.so.1.3.0 001bc000-001bd000 rw-p 00008000 08:01 164457 /usr/lib/libXrender.so.1.3.0 001bd000-00285000 r-xp 00000000 08:01 1001834 /lib/libglib-2.0.so.0.2400.1 00285000-00286000 r--p 000c7000 08:01 1001834 /lib/libglib-2.0.so.0.2400.1 00286000-00287000 rw-p 000c8000 08:01 1001834 /lib/libglib-2.0.so.0.2400.1 00287000-00654000 r-xp 00000000 08:01 163418 /usr/lib/libgtk-x11-2.0.so.0.2000.1 00654000-00658000 r--p 003cd000 08:01 163418 /usr/lib/libgtk-x11-2.0.so.0.2000.1 00658000-0065a000 rw-p 003d1000 08:01 163418 /usr/lib/libgtk-x11-2.0.so.0.2000.1 0065a000-0065c000 rw-p 00000000 00:00 0 0065c000-006ef000 r-xp 00000000 08:01 164369 /usr/lib/libgdk-x11-2.0.so.0.2000.1 006ef000-006f1000 r--p 00093000 08:01 164369 /usr/lib/libgdk-x11-2.0.so.0.2000.1 006f1000-006f2000 rw-p 00095000 08:01 164369 /usr/lib/libgdk-x11-2.0.so.0.2000.1 006f2000-0070b000 r-xp 00000000 08:01 164245 /usr/lib/libatk-1.0.so.0.3009.1 0070b000-0070c000 ---p 00019000 08:01 164245 /usr/lib/libatk-1.0.so.0.3009.1 0070c000-0070d000 r--p 00019000 08:01 164245 /usr/lib/libatk-1.0.so.0.3009.1 0070d000-0070e000 rw-p 0001a000 08:01 164245 /usr/lib/libatk-1.0.so.0.3009.1 0070e000-007a8000 r-xp 00000000 08:01 163612 /usr/lib/libgio-2.0.so.0.2400.1 007a8000-007a9000 ---p 0009a000 08:01 163612 /usr/lib/libgio-2.0.so.0.2400.1 007a9000-007aa000 r--p 0009a000 08:01 163612 /usr/lib/libgio-2.0.so.0.2400.1 007aa000-007ab000 rw-p 0009b000 08:01 163612 /usr/lib/libgio-2.0.so.0.2400.1 007ab000-007ac000 rw-p 00000000 00:00 0 007ac000-007d1000 r-xp 00000000 08:01 164800 /usr/lib/libpangoft2-1.0.so.0.2800.0 007d1000-007d2000 r--p 00024000 08:01 164800 /usr/lib/libpangoft2-1.0.so.0.2800.0 007d2000-007d3000 rw-p 00025000 08:01 164800 /usr/lib/libpangoft2-1.0.so.0.2800.0 007d3000-007eb000 r-xp 00000000 08:01 165506 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 007eb000-007ec000 r--p 00017000 08:01 165506 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 007ec000-007ed000 rw-p 00018000 08:01 165506 /usr/lib/libgdk_pixbuf-2.0.so.0.2000.1 007ed000-007f7000 r-xp 00000000 08:01 164799 /usr/lib/libpangocairo-1.0.so.0.2800.0 007f7000-007f8000 r--p 00009000 08:01 164799 /usr/lib/libpangocairo-1.0.so.0.2800.0 007f8000-007f9000 rw-p 0000a000 08:01 164799 /usr/lib/libpangocairo-1.0.so.0.2800.0 007f9000-00870000 r-xp 00000000 08:01 163421 /usr/lib/libcairo.so.2.10800.10 00870000-00872000 r--p 00076000 08:01 163421 /usr/lib/libcairo.so.2.10800.10 00872000-00873000 rw-p 00078000 08:01 163421 /usr/lib/libcairo.so.2.10800.10 00873000-008b3000 r-xp 00000000 08:01 164482 /usr/lib/libpango-1.0.so.0.2800.0 008b3000-008b4000 ---p 00040000 08:01 164482 /usr/lib/libpango-1.0.so.0.2800.0 008b4000-008b5000 r--p 00040000 08:01 164482 /usr/lib/libpango-1.0.so.0.2800.0 008b5000-008b6000 rw-p 00041000 08:01 164482 /usr/lib/libpango-1.0.so.0.2800.0 008b6000-00927000 r-xp 00000000 08:01 163165 /usr/lib/libfreetype.so.6.3.22 00927000-0092b000 r--p 00070000 08:01 163165 /usr/lib/libfreetype.so.6.3.22 Program received signal SIGABRT, Aborted. 0x0012d422 in __kernel_vsyscall () (gdb) where #0 0x0012d422 in __kernel_vsyscall () #1 0x00db9651 in raise () from /lib/tls/i686/cmov/libc.so.6 #2 0x00dbca82 in abort () from /lib/tls/i686/cmov/libc.so.6 #3 0x00df049d in ?? () from /lib/tls/i686/cmov/libc.so.6 #4 0x00dfa591 in ?? () from /lib/tls/i686/cmov/libc.so.6 #5 0x00dfbde8 in ?? () from /lib/tls/i686/cmov/libc.so.6 #6 0x00dfeecd in free () from /lib/tls/i686/cmov/libc.so.6 #7 0x08080d9a in SmashBufferElement (Buffer=0x81a29a0) at buffer.c:929 #8 0x0806c43c in ActionPasteBuffer (argc=1, argv=0x84e9838, x=0, y=0) at action.c:6065 #9 0x080e2284 in hid_actionv (name=0x84cc5c8 "PasteBuffer", argc=1, argv=0x84e9838) at hid/common/actions.c:246 #10 0x080e2652 in hid_parse_actionstring (rstr=<value optimized out>, require_parens=<value optimized out>) at hid/common/actions.c:330 #11 0x081164c8 in ghid_menu_cb (action=0x83554b8, data=0x81d2d00) at hid/gtk/gui-top-window.c:623 #12 0x00974dcc in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #13 0x00967252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #14 0x0097b99d in ?? () from /usr/lib/libgobject-2.0.so.0 #15 0x0097cdb4 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #16 0x0097d256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #17 0x002ebda5 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #18 0x002edead in gtk_action_activate () from /usr/lib/libgtk-x11-2.0.so.0 #19 0x00974dcc in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #20 0x009658b9 in ?? () from /usr/lib/libgobject-2.0.so.0 #21 0x00967252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #22 0x0097b23a in ?? () from /usr/lib/libgobject-2.0.so.0 #23 0x0097cdb4 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #24 0x0097d256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #25 0x004f53e5 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0 #26 0x003d39a0 in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0 #27 0x003d531f in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #28 0x003cac64 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #29 0x003c4424 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #30 0x009658b9 in ?? () from /usr/lib/libgobject-2.0.so.0 #31 0x00967252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #32 0x0097b5e6 in ?? () from /usr/lib/libgobject-2.0.so.0 #33 0x0097cc33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #34 0x0097d256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #35 0x004f1636 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #36 0x003bca5d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #37 0x003bde07 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #38 0x006b239a in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #39 0x001f85e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #40 0x001fc2d8 in ?? () from /lib/libglib-2.0.so.0 #41 0x001fc817 in g_main_loop_run () from /lib/libglib-2.0.so.0 #42 0x003be3c9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #43 0x08119d4d in ghid_do_export (options=0x0) at hid/gtk/gui-top-window.c:2733 #44 0x080ab3c0 in main (argc=1, argv=0xbffff394) at main.c:1097 (gdb) Levente -- Kovacs Levente <leventelist@xxxxxxxxx> Voice: +36705071002
Attachment:
RES400.fp
Description: Binary data
_______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user