Application is closed suddenly with segmentation fault.
In the Tryton application, we have sudden crashes with segmentation fault.
We find that especially with windows that in certain operations it closes suddenly.
We have several incidents in Tryton bugtracker:
I copy the last entry:
I run with debug symbol on Gtk and GObject and I got this traceback:
# 0 0x63c6b506 in g_type_check_instance_is_fundamentally_a ( type_instance = type_instance @ entry = 0x6, fundamental_type = fundamental_type @ entry = 80) at ../../glib-2.56.2/gobject/gtype.c:4023 # 1 0x63c4a44c in g_object_ref (_object = 0x6) at ../../glib-2.56.2/gobject/gobject.c:3206 # 2 0x710ce24b in gdk_event_copy () from C: \ msys32 \ mingw32 \ bin \ libgdk-3-0.dll # 3 0x63c6c0f6 in _g_type_boxed_copy (type = type @ entry = 59999912, value = value @ entry = 0x5471c90) at ../../glib-2.56.2/gobject/gtype.c:4298 # 4 0x63c44143 in g_boxed_copy (boxed_type = 59999912, src_boxed = 0x5471c90) at ../../glib-2.56.2/gobject/gboxed.c:343 # 5 0x6890c401 in gi-cpython-37m! PyInit__gi () from C: \ msys32 \ mingw32 \ lib \ python3.7 \ site-packages \ gi \ _gi-cpython-37m.dll # 6 0x000000a3 in ?? () # 7 0x660c4819 in ?? () from C: \ msys32 \ mingw32 \ bin \ libgirepository-1.0-1.dll # 8 0x05471c90 in ?? () # 9 0x00000007 in ?? () # 10 0x00000007 in ?? () # 11 0x00000000 in ?? ()
So the gi try to make a boxed copy of an object which seems to be a GdkEvent. The copy fails because the event is not valid (the window attribute if 0x6 (which is unbound)). I put a print statement in gdk_event_copy to see the type of the event. Each time it fails, the event is of a type which is not part of the enum. So it looks like memory junk.
I tried to find a place where such a event could be instantiated but I could not find it.