Skip to content

[Bug] g.gui and d.mon crash upon mouse-over due to python3.9 segfault #1123

@neteler

Description

@neteler

Describe the bug

With the Fedora distro upgrade (F32 to F33) I now have Python 3.9.0 on my system (and wx 3.0.5).

Opening g.gui and d.mon wx0 works but as soon as I move-over the mouse the GUI/wx monitor crashes. It happens both in master and release_branch_7_8.

In the system settings I see messages like

[19025.401599] python3[142271]: segfault at 10 ip 00007f855d07d6dd sp 00007ffd0b47fc10 error 4 in libpython3.9.so.1.0[7f855cfe1000+1a9000]
[26994.092671] python3[189459]: segfault at 10 ip 00007f5ab7b3a6dd sp 00007ffce673f860 error 4 in libpython3.9.so.1.0[7f5ab7a9e000+1a9000]
[26996.799738] python3[189261]: segfault at 10 ip 00007ff0996e46dd sp 00007ffece7490e0 error 4 in libpython3.9.so.1.0[7ff099648000+1a9000]
[27017.711157] python3[189611]: segfault at 10 ip 00007fe8447e16dd sp 00007ffe1d1d5a80 error 4 in libpython3.9.so.1.0[7fe844745000+1a9000]
[27325.072026] python3[190592]: segfault at 10 ip 00007fa9ed8506dd sp 00007ffcd67bc900 error 4 in libpython3.9.so.1.0[7fa9ed7b4000+1a9000]

To Reproduce

  • use Python 3.9.0
  • recompile current master or relbranch78
  • open g.gui or d.mon wx0
  • move the mouse cursor over the window
  • the GUI crashes

System description (please complete the following information):

  • Fedora 33
g.version -rge
version=7.8.5dev
date=2020
revision=b593a718b
build_date=2020-11-23
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=744fcaefa
libgis_date=2020-10-16T16:00:53+00:00
proj=6.3.2
gdal=3.1.4
geos=3.8.1
sqlite=3.33.0

python --version
Python 3.9.0

wx-config --version
3.0.5

I wonder how to debug it since it is a background process.

This doesn't show anything relevant:

g.gisenv set="DEBUG=5"
g.gisenv set="WX_DEBUG=5"

Here isn't yet too much about it...:
https://grasswiki.osgeo.org/wiki/GRASS_Debugging#wxPython_GUI_debugging

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIwxGUI relatedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions