Skip to content

Program crashes with segmentation fault upon launch. #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xiraix opened this issue Sep 30, 2020 · 5 comments · Fixed by #354
Closed

Program crashes with segmentation fault upon launch. #353

xiraix opened this issue Sep 30, 2020 · 5 comments · Fixed by #354

Comments

@xiraix
Copy link

xiraix commented Sep 30, 2020

Describe the bug
Program crashes with segmentation fault upon launch.

~ > gdbgui
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
Opening gdbgui with default browser at http://127.0.0.1:5000
View gdbgui dashboard at http://127.0.0.1:5000/dashboard
exit gdbgui by pressing CTRL+C
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
zsh: segmentation fault (core dumped)  gdbgui

To Reproduce
Install gdbgui using pipx or pip.
Run it.

Expected behavior
gdbgui runs successfully

Please complete the following information:

  • OS: Linux archlinux 5.8.12-arch1-1
  • gdbgui version (gdbgui -v): 0.14.0.0
  • gdb version (gdb -v): 9.2
  • python version: Python 3.8.5
  • browser [e.g. chrome, safari]: firefox
  • python packages (pip freeze): https://p.teknik.io/oeMdt
@maximilianwulf
Copy link

Also happens on Ubuntu 20.04.

@GCrispino
Copy link

Got the same problem. The following is printed in the terminal:

❯ gdbgui
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
Opening gdbgui with default browser at http://127.0.0.1:5000
View gdbgui dashboard at http://127.0.0.1:5000/dashboard
exit gdbgui by pressing CTRL+C
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
zsh: segmentation fault (core dumped)  gdbgui

When I first tried it did not segfaulted until I tried opening the dashboard.

I've got the same config as @xiraix, except for the OS (I got Manjaro 20.1), and maybe for the pip installed packages (pip freeze at https://pastebin.com/QzkWEZmC).

Nonetheless, I was able to run gdbgui and open the dashboard without errors after downloading the binary in the repository's releases page.

@sondrbw
Copy link

sondrbw commented Oct 1, 2020

Got the same problem. It may be that something is incompatible with greenlet v. 0.4.17. Greenlet 0.4.16 works fine.

A temp fix is to uninstall greenlet 0.4.17 after installing gdbgui and then install greenlet 0.4.16.

I did:

pip3 install gdbgui
pip3 uninstall greenlet
pip3 install greenlet==0.4.16

I was then able to run gdbgui and open the dashboard.

@beaumanvienna
Copy link

Fixed it for me, awesome @sondrewang !

@cs01
Copy link
Owner

cs01 commented Oct 3, 2020

Thanks everyone, especially @sondrewang! This has been fixed in v0.14.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants