[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: Segfault on PCB layout



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> I don't get segfaults, but the polygon splitter gets confused and
> draws weird lines on the board.

I get a segfault if I move the corner of the triangle. Backtrace is below.

I'm using a CVS version that's a few weeks old.

Best regards
Tomaz

> (gdb) run segfault.pcb
> Starting program: /home/avian/software/bin/pcb segfault.pcb
> Failed to read a valid object file image from memory.
> [Thread debugging using libthread_db enabled]
> [New Thread -1218525504 (LWP 3407)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1218525504 (LWP 3407)]
> 0x080a54a2 in M_POLYAREA_intersect (e=0xbfb68260, afst=0x8496720,
>     bfst=0x82f05c8, add=1) at polygon1.c:848
> 848               if (a->contours->xmax >= b->contours->xmin &&
> (gdb) bt
> #0  0x080a54a2 in M_POLYAREA_intersect (e=0xbfb68260, afst=0x8496720,
>     bfst=0x82f05c8, add=1) at polygon1.c:848
> #1  0x080a6956 in poly_AndSubtract_free (ai=0x8496720, bi=0x82f05c8,
>     aandb=0xbfb683c8, aminusb=0xbfb683c4) at polygon1.c:1811
> #2  0x080a1de4 in r_NoHolesPolygonDicer (p=0x84c87d8,
>     emit=0x807f3c0 <DrawPolygonLowLevel>) at polygon.c:1312
> #3  0x080a1e2a in r_NoHolesPolygonDicer (p=0x849c128,
>     emit=0x807f3c0 <DrawPolygonLowLevel>) at polygon.c:1334
> #4  0x080a1dfa in r_NoHolesPolygonDicer (p=0x849d470,
>     emit=0x807f3c0 <DrawPolygonLowLevel>) at polygon.c:1320
> #5  0x080a1e2a in r_NoHolesPolygonDicer (p=0x849c128,
>     emit=0x807f3c0 <DrawPolygonLowLevel>) at polygon.c:1334
> #6  0x080a1fa2 in NoHolesPolygonDicer (p=0x825c6c0,
>     emit=0x807f3c0 <DrawPolygonLowLevel>, clip=0xbfb68920) at polygon.c:1370
> #7  0x0807f601 in poly_callback (b=0x825c6c0, cl=0xbfb68774) at draw.c:1984
> #8  0x080b0821 in __r_search (node=0x81a3278, query=0xbfb68920, arg=0xbfb68710)
>     at rtree.c:540
> #9  0x080b090c in r_search (rtree=0x82559e8, query=0x0, check_region=0,
>     found_rectangle=0x807f580 <poly_callback>, cl=0xbfb68774) at rtree.c:626
> #10 0x0807f9a4 in DrawLayerGroup (group=<value optimized out>,
>     screen=0xbfb68920) at draw.c:854
> #11 0x08081215 in hid_expose_callback (hid=0x8102b60, region=0xbfb68920,
>     item=0x0) at draw.c:443
> ---Type <return> to continue, or q <return> to quit---
> #12 0x080c3db6 in ghid_invalidate_all () at hid/gtk/gtkhid-main.c:261
> #13 0x08081f8d in Draw () at draw.c:198
> #14 0x0809854b in MoveLinePoint (Layer=0x82cea64, Line=0xb7397480,
>     Point=0xb73974ac) at move.c:387
> #15 0x080986de in MoveObjectAndRubberband (Type=4096, Ptr1=0x82cea64,
>     Ptr2=0xb7397480, Ptr3=0xb73974ac, DX=10000, DY=10000) at move.c:820
> #16 0x0805da6d in NotifyMode () at action.c:1555
> #17 0x0805ee3f in ActionMode (argc=1, argv=0xbfb68c30, x=0, y=0)
>     at action.c:680
> #18 0x080be4c5 in hid_actionv (name=0x80e5f2f "Mode", argc=1, argv=0xbfb68c30)
>     at hid/common/actions.c:216
> #19 0x080be5a6 in hid_actionl (name=0x80e5f2f "Mode")
>     at hid/common/actions.c:194
> #20 0x080ca98b in ghid_port_button_release_cb (drawing_area=0x8363650,
>     ev=0x8453190, ui=0x8259800) at hid/gtk/gui-output-events.c:1080
> #21 0xb7d50250 in _gtk_marshal_BOOLEAN__BOXED ()
>    from /usr/lib/libgtk-x11-2.0.so.0
> #22 0xb795098b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
> #23 0xb7960f2d in g_signal_chain_from_overridden ()
>    from /usr/lib/libgobject-2.0.so.0
> #24 0xb7962208 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
> #25 0xb79625d9 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
> #26 0xb7e39f64 in gtk_widget_get_default_style ()
> ---Type <return> to continue, or q <return> to quit---
>    from /usr/lib/libgtk-x11-2.0.so.0
> #27 0xb7d49bd3 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
> #28 0xb7d4ae07 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
> #29 0xb7be3eea in _gdk_events_init () from /usr/lib/libgdk-x11-2.0.so.0
> #30 0xb78dd731 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> #31 0xb78e07a6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
> #32 0xb78e0b67 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
> #33 0xb7d4b281 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
> #34 0x080d356f in ghid_do_export (options=0x0) at hid/gtk/gui-top-window.c:3850
> #35 0x0809263a in main (argc=387585, argv=0x4af38) at main.c:1000
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGJ48jsAlAlRhL9q8RAu/wAJ9twaVN4FKTeltkgTTeOkaEUcX7LgCgpNQ9
U7GPTfoYpRQEn+YtU8lxlsY=
=ODTD
-----END PGP SIGNATURE-----


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