pcb

Segfault in debug mode when scrolling around

Bug #1502213 reported by Traumflug
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Invalid
Undecided
Unassigned

Bug Description

While looking for another bug I loaded the attached layout, zoomed in and out with the mouse wheel, panned with the right mouse button, when pcb suddenly fell over an assertion. It doesn't happen immediately, but sometimes after a few seconds, sometimes after a minute of zooming/panning. Binary was built with the --enable-debug configure option.

Backtrace:

#0 0x00007ffff4b7d267 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff4b7eeca in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff4b7603d in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff4b760f2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00000000004c8100 in __r_search (node=0x9be880, query=0x7fffffffd3a0, arg=0x7fffffffd150) at rtree.c:462
#5 0x00000000004c869f in r_search (rtree=0x9be860, query=0x7fffffffd3a0, check_region=0x0,
    found_rectangle=0x465cca <line_callback>, cl=0x8c2580) at rtree.c:570
#6 0x00000000004678ba in DrawLayer (Layer=0x8c2580, screen=0x7fffffffd3a0) at draw.c:973
#7 0x0000000000467b2b in DrawLayerGroup (group=1, drawn_area=0x7fffffffd3a0) at draw.c:1019
#8 0x0000000000466617 in DrawEverything (drawn_area=0x7fffffffd3a0) at draw.c:594
#9 0x0000000000468dd9 in hid_expose_callback (hid=0x7feec0 <ghid_hid>, region=0x7fffffffd3a0, item=0x0) at draw.c:1562
#10 0x0000000000527376 in ghid_drawing_area_expose_cb (widget=0xb35920, ev=0x7fffffffd8f0, port=0x7ff140 <ghid_port>)
    at hid/gtk/gtkhid-gl.c:1016
#11 0x00007ffff6c00d1f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#12 0x00007ffff5d1e2d5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff5d3003c in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff5d381a5 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff5d388ff in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff6d1861c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x00007ffff6bff75d in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
[18 to 28 snipped]

Code points in rtree.c:

461: /** assert that starting_region is well formed */
461: assert (query->X1 < query->X2 && query->Y1 < query->Y2);
[...]
570: return __r_search (rtree->root, query, &arg);

At the first glance it looks like the code tries to search a zero-sized drawing box.

Tags: pcb crash
Revision history for this message
Traumflug (mah-jump-ing) wrote :
Revision history for this message
Chad Parker (parker-charles) wrote :

I just spent a few minutes trying to reproduce this crash, but I was unable to do so. Is it still an issue for you?

There have been a few fixes lately that have addressed failed rtree assertions, so perhaps it has been fixed. (I don't recall if any of the recent fixes specifically addressed this particular assertion.

Revision history for this message
Chad Parker (parker-charles) wrote :

Cannot reproduce and no activity in over a year.

Changed in pcb:
status: New → Invalid
Changed in geda-project:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.