[Lazarus] IDE crash on rebuild

Michael Van Canneyt michael at freepascal.org
Mon Dec 18 22:04:48 CET 2017


Hi,


When I install a package, the IDE offers to rebuild. 
When I click 'rebuild', the IDE invariably crashes and hangs with an access violation.

Latest SVN, Linux, 64-bit GTK2.

It looks like the mouse up event is delivered when the button or application has
already disappeared. Could be because you're using a toolbutton instead of
a regular button.

Michael.

Here is a GDB backtrace of the moment of crash.
#0  0x0000000000005d08 in ?? ()
#1  0x0000000000628e8a in SENDBUTTONUPMSG (parentfp=0x7fffffffcde0) at include/toolbutton.inc:69
#2  0x0000000000628dfe in MOUSEDOWN (this=0x7fffe0261bf0, BUTTON=MBLEFT, SHIFT=8, X=23, Y=28) at include/toolbutton.inc:120
#3  0x00000000005b6af8 in DOMOUSEDOWN (this=0x7fffe0261bf0, MESSAGE=..., BUTTON=MBLEFT, SHIFT=0) at include/control.inc:2296
#4  0x00000000005b70f1 in WMLBUTTONDOWN (this=0x7fffe0261bf0, MESSAGE=...) at include/control.inc:2475
#5  0x00000000004368e2 in DISPATCH (this=0x7fffe0261bf0, MESSAGE=0) at ../inc/objpas.inc:602
#6  0x00000000005b69fd in WNDPROC (this=0x7fffe0261bf0, THEMESSAGE=...) at include/control.inc:2256
#7  0x00000000005b5046 in PERFORM (this=0x7fffe0261bf0, MSG=513, WPARAM=1, LPARAM=1835031) at include/control.inc:1578
#8  0x00000000005a7900 in ISCONTROLMOUSEMSG (this=0x7fffeb9056b0, THEMESSAGE=0) at include/wincontrol.inc:4743
#9  0x00000000005a8f51 in WNDPROC (this=0x7fffeb9056b0, MESSAGE=...) at include/wincontrol.inc:5370
#10 0x000000000077aaec in DELIVERMESSAGE (TARGET=0x7fffeb9056b0, AMESSAGE=0) at lclmessageglue.pas:112
#11 0x0000000000672a01 in DELIVERMESSAGE (TARGET=0x7fffeb9056b0, AMESSAGE=0) at gtk2/gtk2proc.inc:3706
#12 0x0000000000681b69 in DELIVERMOUSEDOWNMESSAGE (WIDGET=0x34a5620, EVENT=0x35ff870, AWINCONTROL=0x7fffeb9056b0) at gtk2/gtk2callback.inc:2268
#13 0x00000000006811a8 in GTKMOUSEBTNPRESS (WIDGET=0x354a8c0, EVENT=0x35ff870, DATA=0x7fffeb9056b0) at gtk2/gtk2callback.inc:1995
#14 0x00007ffff6c8cafc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#15 0x00007ffff6916fa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff6928fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff69317f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff693208f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff6da48cc in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007ffff6c8b294 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#21 0x00007ffff6c8b64b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00007ffff775bc4c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#23 0x00007ffff6640197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffff66403f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff664049c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00000000004fdce1 in APPWAITMESSAGE (this=0x7ffff7f76230) at gtk2/gtk2widgetset.inc:2438
#27 0x0000000000492a5a in IDLE (this=0x7ffff7f75bf0, WAIT=true) at include/application.inc:407
#28 0x0000000000494ef8 in HANDLEMESSAGE (this=0x7ffff7f75bf0) at include/application.inc:1277
#29 0x000000000049542c in RUNLOOP (this=0x7ffff7f75bf0) at include/application.inc:1413
#30 0x000000000065edb6 in APPRUN (this=0x7ffff7f76230, ALOOP=...) at include/interfacebase.inc:54
#31 0x00000000004953d0 in RUN (this=0x7ffff7f75bf0) at include/application.inc:1401
#32 0x00000000004204a3 in main () at lazarus.pp:147


More information about the Lazarus mailing list