Bug 30751 - crash in pyhoca-cli (x2go client) at the launch in mga8
Summary: crash in pyhoca-cli (x2go client) at the launch in mga8
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Python Stack Maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 29627
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-15 12:42 CEST by diaphane d.
Modified: 2023-05-10 08:33 CEST (History)
1 user (show)

See Also:
Source RPM: pyhoca-cli-0.6.1.1-2.mga8.src.rpm
CVE:
Status comment:


Attachments

Description diaphane d. 2022-08-15 12:42:13 CEST
Description of problem:

pyhoca-cli crashes in mga8 (segmentation fault). 
There is a version mismatch between python3-gevent and python3-greenlet packages in mga8.
According to this comment (https://github.com/python-greenlet/greenlet/issues/178#issuecomment-698969001), greenlet==0.4.16 should be used with gevent==1.4.0 (mga8 version), but mga8 use greenlet==0.4.17.
A quick fix is to install greenlet==0.4.16 with pip.


Version-Release number of selected component (if applicable):

pyhoca-cli-0.6.1.1-2.mga8
python3-gevent-1.4.0-3.mga8
python3-greenlet-0.4.17-1.mga8
python3-xlib-0.26-2.mga8
openssh-clients-8.4p1-2.2.mga8
openssh-server-8.4p1-2.2.mga8


How reproducible:

Every time I attempt to launch pyhoca-cli


Steps to Reproduce:

1/ install pyhoca-cli
2/ install python3-xlib (dependency issue?)
3/ start pyhoca-cli
    $ pyhoca-cli $(id -nu)@localhost -L
    <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
    [...]
    pyhoca-cli[12670] NOTICE: preparing requested X2Go session
    pyhoca-cli[12670] (PyHocaCLI) NOTICE: preparing requested X2Go session
    Segmentation fault (core dumped)
4/ check installed versions
    $ python -c 'import gevent; print("gevent", gevent.__version__); import greenlet; print("greenlet", greenlet.__version__)'
    <frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
    [...]
    gevent 1.4.0
    greenlet 0.4.17
5/ install greenlet==0.4.16
    $ pip install greenlet==0.4.16
    Defaulting to user installation because normal site-packages is not writeable
    Collecting greenlet==0.4.16
      Downloading greenlet-0.4.16-cp38-cp38-manylinux1_x86_64.whl (48 kB)
        |████████████████████████████████| 48 kB 205 kB/s 
    Installing collected packages: greenlet
    Successfully installed greenlet-0.4.16
6/ check installed versions
    $ python -c 'import gevent; print("gevent", gevent.__version__); import greenlet; print("greenlet", greenlet.__version__)'
    gevent 1.4.0
    greenlet 0.4.16
7/ start pyhoca-cli
    $ pyhoca-cli $(id -nu)@my_server -L
    pyhoca-cli[1507913] NOTICE: preparing requested X2Go session
    pyhoca-cli[1507913] (PyHocaCLI) NOTICE: preparing requested X2Go session
    pyhoca-cli[1507913] (x2gosessregistry-pylib) NOTICE: registering X2Go session Pyhoca-Client_Session...
    pyhoca-cli[1507913] (x2goclient-pylib) NOTICE: initializing X2Go session...
    pyhoca-cli[1507913] (x2gocontrolsession-pylib) NOTICE: connecting to [my_server]:22
    pyhoca-cli[1507913] (PyHocaCLI) NOTICE: unlock SSH key file (None)
    Passphrase: 
    pyhoca-cli[1507913] (x2gocontrolsession-pylib) NOTICE: connecting to [my_server]:22
    pyhoca-cli[1507913] (PyHocaCLI) NOTICE: authentication has been successful
    [...]
8/ enjoy X2Go :-)
Comment 1 sturmvogel 2022-08-15 13:23:24 CEST
See also bug 29627

Depends on: (none) => 29627

sturmvogel 2022-08-15 13:24:03 CEST

Assignee: bugsquad => python

Comment 2 papoteur 2023-05-10 08:33:54 CEST
Fixed trough bug 29627

Resolution: (none) => FIXED
Status: NEW => RESOLVED
CC: (none) => yves.brungard_mageia


Note You need to log in before you can comment on or make changes to this bug.