Bug 16174 - segmentation fault in pyhoca-gui package
Summary: segmentation fault in pyhoca-gui package
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: http://code.x2go.org/releases/source/...
Whiteboard: MGA5-32-OK MGA5-64-OK has_procedure a...
Keywords: validated_update
Depends on: 16560
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-22 14:33 CEST by José Eduardo Martins
Modified: 2015-08-30 16:28 CEST (History)
4 users (show)

See Also:
Source RPM: pyhoca-gui-0.4.0.9-5.mga5.src.rpm
CVE:
Status comment:


Attachments

Description José Eduardo Martins 2015-06-22 14:33:42 CEST
Description of problem:

Run pyhoca-gui

$ pyhoca-gui 
/usr/lib/python2.7/site-packages/pyhoca/wxgui/frontend.py:67: wxPyDeprecationWarning: Call to deprecated item. 
  wx.InitAllImageHandlers()
Falha de segmentação


Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2015-06-22 14:39:02 CEST
The real problem is the segmentation fault

Summary: wxPyDeprecationWarning in pyhoca-gui package => segmentation fault in pyhoca-gui package

Comment 2 Samuel Verschelde 2015-06-22 14:42:41 CEST
Adding Philippe in CC as he might help for this python package which has no assigned maintainer.

CC: (none) => makowski.mageia

Comment 3 Philippe Makowski 2015-06-24 17:02:32 CEST
Seems a gtk problem no ?
should be better to use gtk3 certainly
will try to investigate but don't know when.
can you produce more output ?
Comment 4 José Eduardo Martins 2015-06-24 19:55:12 CEST
When you have time, I think the better solution is pack new versions from pyhoca and x2go team.

For pyhoca-gui there is 0.5.0.4 version but need update several packages dependences (python-?, wxPhython, etc).
Comment 5 Philippe Makowski 2015-06-25 09:38:11 CEST
(In reply to José Eduardo Martins from comment #4)
> When you have time, I think the better solution is pack new versions from
> pyhoca and x2go team.
> 
> For pyhoca-gui there is 0.5.0.4 version but need update several packages
> dependences 
in fact : it would need to update python-x2go and python-cli too

others , any advice ?
Comment 6 José Eduardo Martins 2015-06-25 13:28:27 CEST
We will need also python-gobject3, I guess.
Mageia 5 only have python-gobject3-devel
Comment 7 José Eduardo Martins 2015-06-25 15:12:28 CEST
by the way, probably all x2go* packages family is deprecated.
Comment 8 Philippe Makowski 2015-06-28 14:50:03 CEST
(In reply to José Eduardo Martins from comment #6)
> We will need also python-gobject3, I guess.
> Mageia 5 only have python-gobject3-devel
nope
we have it of course it's python-gi
Comment 9 Philippe Makowski 2015-06-28 19:17:43 CEST
honestly I can't even understand how you even go so far.
on my clean mga5 here it fail at import wx
Traceback (most recent call last):
  File "/bin/pyhoca-gui", line 85, in <module>
    import wx
ImportError: No module named wx

after solving this, I can see that the segfault is in 
frontend.py(226):  wx.App.__init__(self, redirect=False, clearSigInt=False)

Since this package is ok under mga4, it's a regression.

I suggest to test an update of python-x2go and pyhoca-gui to version 0.5.0.4
Comment 10 José Eduardo Martins 2015-06-28 21:15:37 CEST
Since Mageia 5 have wxPython-3.0.1.1-1.mga5, we can add 4 lines before line 85 in /usr/bin/pyhoca-gui in order to load wx version 3:

try:
    import wxversion
    wxversion.select('3.0')
except: pass

After that you can see core-dump in

$ pyhoca-gui 
/usr/lib/python2.7/site-packages/pyhoca/wxgui/frontend.py:67: wxPyDeprecationWarning: Call to deprecated item. 
  wx.InitAllImageHandlers()
Falha de segmentação

What is you suggest (update to 0.5.0.4) seems the better action.
Comment 11 Philippe Makowski 2015-07-16 19:46:34 CEST
Please test :
pyhoca-gui-0.5.0.4-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
python-x2go-0.5.0.3-1.mga5

that are in core/updates_testing
Comment 12 José Eduardo Martins 2015-07-16 23:00:30 CEST
Not yet. See my log issues:

$ pyhoca-gui 
pyhoca-gui[14831] (PyHoca-GUI) WARN: the current release of PyHoca-GUI does not support client configuration
pyhoca-gui[14831] (x2gosessregistry-pylib) NOTICE: registering X2Go session gaia...
pyhoca-gui[14831] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-gui[14831] (x2gocontrolsession-pylib) NOTICE: connecting to [gaia.fis.unb.br]:22
pyhoca-gui[14831] (x2gosessregistry-pylib) NOTICE: registering X2Go session gaia...
pyhoca-gui[14831] (PyHoca-GUI) NOTICE: [gaia - connect] Authentication has been successful.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/taskbar.py", line 153, in CreateSessionManagerPopupMenu
    self.menu_sessionmanager = self.PopupMenu(menus_taskbar.PyHocaGUI_Menu_TaskbarSessionManager(self._PyHocaGUI, caller=self,))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 1063, in __init__
    submenu=PyHocaGUI_Menu_TaskbarSessionProfile(self._PyHocaGUI, caller=self, profile_name=profile_name))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 781, in __init__
    session_info=_session_list[session_name],
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 12019, in AppendMenu
    return _core_.Menu_AppendMenu(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ./src/common/stockitem.cpp(213) in wxGetStockLabel(): invalid stock item ID
Comment 13 Philippe Makowski 2015-07-17 00:43:27 CEST
Apparently, if no or an empty label is given to wx.MenuItem it assumes
to use a stock item.
bug reported upstream
Comment 14 Philippe Makowski 2015-07-17 08:55:35 CEST
Just a though, do you have python-argparse on your system ?
if not, intall it please and retry, it could be a missing require.
Comment 15 Philippe Makowski 2015-07-17 10:00:44 CEST
(In reply to Philippe Makowski from comment #13)
> Apparently, if no or an empty label is given to wx.MenuItem it assumes
> to use a stock item.
> bug reported upstream

link to upstream bug report http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=907
Comment 16 José Eduardo Martins 2015-07-17 12:02:18 CEST
Yes, I did have.

Bytheway, Mageia 5 have x2goserver-4.0.1.13-3.mga5, x2goserver-sqlite-4.0.1.13-3.mga5, and others deprecated packages from x2go server. Do you think it affect our tests?
Comment 17 Philippe Makowski 2015-07-17 15:23:26 CEST
(In reply to José Eduardo Martins from comment #16)
> Bytheway, Mageia 5 have x2goserver-4.0.1.13-3.mga5,
> x2goserver-sqlite-4.0.1.13-3.mga5, and others deprecated packages from x2go
> server. Do you think it affect our tests?
I don't know, I posted upstream, see : http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=907

you can post also to 907@bugs.x2go.org if you have any information
Comment 18 José Eduardo Martins 2015-07-17 15:37:21 CEST
OK.
Thanks for all.
Comment 19 Philippe Makowski 2015-07-18 19:11:50 CEST
strange on my box I have no problem to launch it (a clean lxde mageia5 virtualbox)
Comment 20 José Eduardo Martins 2015-07-18 20:26:39 CEST
After this, can you resume or terminate session? [right click on little pyhoca-gui icon in panel or ctrl+alt+t]
Comment 21 Philippe Makowski 2015-07-18 23:16:01 CEST
yes all is ok, please try after removing or renaming your .x2go and .x2goclient directories in your home directory, perhaps you have something wrong in your settings.
Comment 22 José Eduardo Martins 2015-07-19 00:00:20 CEST
Nops.
I had did that...

Now I did a complete uninstall and erase files from x2goserver and your dependencies.
I did the same in my client side.

I can start the firt LXDE session fine. In that session I can't "terminate" session. There is no that option in litle menu from pyhoca-gui icon. If I try Ctrl+Alt+t, pyhoca-gui crash.

See trace debug:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/taskbar.py", line 153, in CreateSessionManagerPopupMenu
    self.menu_sessionmanager = self.PopupMenu(menus_taskbar.PyHocaGUI_Menu_TaskbarSessionManager(self._PyHocaGUI, caller=self,))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 1063, in __init__
    submenu=PyHocaGUI_Menu_TaskbarSessionProfile(self._PyHocaGUI, caller=self, profile_name=profile_name))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 781, in __init__
    session_info=_session_list[session_name],
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 12019, in AppendMenu
    return _core_.Menu_AppendMenu(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ./src/common/stockitem.cpp(213) in wxGetStockLabel(): invalid stock item ID
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/taskbar.py", line 153, in CreateSessionManagerPopupMenu
    self.menu_sessionmanager = self.PopupMenu(menus_taskbar.PyHocaGUI_Menu_TaskbarSessionManager(self._PyHocaGUI, caller=self,))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 1063, in __init__
    submenu=PyHocaGUI_Menu_TaskbarSessionProfile(self._PyHocaGUI, caller=self, profile_name=profile_name))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 781, in __init__
    session_info=_session_list[session_name],
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 12019, in AppendMenu
    return _core_.Menu_AppendMenu(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ./src/common/stockitem.cpp(213) in wxGetStockLabel(): invalid stock item ID
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/taskbar.py", line 153, in CreateSessionManagerPopupMenu
    self.menu_sessionmanager = self.PopupMenu(menus_taskbar.PyHocaGUI_Menu_TaskbarSessionManager(self._PyHocaGUI, caller=self,))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 1063, in __init__
    submenu=PyHocaGUI_Menu_TaskbarSessionProfile(self._PyHocaGUI, caller=self, profile_name=profile_name))
  File "/usr/lib/python2.7/site-packages/pyhoca/wxgui/menus_taskbar.py", line 781, in __init__
    session_info=_session_list[session_name],
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 12019, in AppendMenu
    return _core_.Menu_AppendMenu(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ./src/common/stockitem.cpp(213) in wxGetStockLabel(): invalid stock item ID
pyhoca-gui[30379] (x2gosession-pylib) WARN: local folder sharing is disabled for this session profile
pyhoca-gui[30379] (PyHoca-GUI) NOTICE: [gaia - suspend] X2Go Session has been suspended jemartins-54-1437256092_stDLXDE_dp24
^CKeyboardInterrupt
pyhoca-gui[30379] (PyHoca-GUI) NOTICE: Received Ctrl-C keyboard interrupt... Wait till PyHoca-GUI has exited cleanly.
Comment 23 Philippe Makowski 2015-07-19 09:03:26 CEST
ok, so the first reported bug is solved
about your new one, I guess that you should report this upstream for what I see your session is terminated but you still get a "invalid stock item ID"
If need create also a new bug in mageia asking for an update of x2goserver stack (I noticed that x2go don't use systemd for example).

I will keep an eye on this, but sorry, for now that's all that I can do.
Comment 24 José Eduardo Martins 2015-07-19 12:08:00 CEST
OK.
Thank you.

One question, at last:
What x2goserver version are you running in your VirtualBox?
Comment 25 Philippe Makowski 2015-07-19 13:26:06 CEST
x2goserver was on another box, not the one with pyhoca-gui.
it was a xfce i586 box (a netbook) I needed to disable the firewall on it.
seems there are some others problems with the agent that don't reply correctly, but that's not related to pyhoca-gui. For me pyhoca-gui bug is solved.
may be we need another bug entry for x2goserver and it's agent, at least to provide correct systemd init files, but for this I really would like that someone else look for, as I have enough job with my own packages and the comming Python3 new release coming.
Comment 26 Philippe Makowski 2015-07-21 00:48:52 CEST
your bug is now similar to this one : https://bugs.mageia.org/show_bug.cgi?id=16397
Comment 27 Philippe Makowski 2015-07-23 22:06:21 CEST
if you install wxgtk-3.0.2-1.1.mga5 and wxPython-3.0.2.0-1.mga5 from update/testing, your bug with ""Assert failure" should be solved.

I have uploaded a patched/updated package for Mageia 5.


Suggested advisory:
========================

Updated pyhoca-gui, pyhoca-cli, python-x2go  packages fix bugs:

wrong wxversion in x2go packages lead to segmentation fault .

wxgtk, wxPython did not handle correctly not ascii characters, and raised a "Assert failure" error when using non ascii characters in menu items.


Updated packages in core/updates_testing:
========================
pyhoca-gui-0.5.0.4-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
python-x2go-0.5.0.3-1.mga5

lib(64)wxgtku3.0-devel-3.0.2-1.1
wxgtk-3.0.2-1.1.mga5
lib(64)wxgtkugl3.0_0-3.0.2-1.1.mga5
wxgtk-debuginfo-3.0.2-1.1.mga5
lib(64)wxgtku3.0_0-3.0.2-1.1.mga5

wxPython-wxversion-3.0.2.0-1.mga5
wxPython-tools-3.0.2.0-1.mga5
wxPython-debuginfo-3.0.2.0-1.mga5
lib(64)wxPython3.0-devel-3.0.2.0-1.mga5
wxPython-3.0.2.0-1.mga5

Assignee: bugsquad => qa-bugs

Comment 28 José Eduardo Martins 2015-07-23 22:34:57 CEST
OK.
I updated theses pkgs.

I have one issue, yet:

$ pyhoca-gui 
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (UTF-8,compiler with C++ ABI 1002,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Abortado
Comment 29 Philippe Makowski 2015-07-23 23:35:14 CEST
ok I need to rebuild pyhoca-gui , pyhoca-gui-0.5.0.4-1.1.mga5 is in 5/core/updates_testing
Comment 30 José Eduardo Martins 2015-07-24 14:11:22 CEST
$ rpm -qa | grep pyhoca
pyhoca-gui-0.5.0.4-1.1.mga5
pyhoca-cli-0.5.0.2-1.mga5

$ pyhoca-gui 
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (UTF-8,compiler with C++ ABI 1002,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Abortado
Comment 31 Philippe Makowski 2015-07-24 14:33:44 CEST
and(In reply to José Eduardo Martins from comment #30)
> $ rpm -qa | grep pyhoca
> pyhoca-gui-0.5.0.4-1.1.mga5
> pyhoca-cli-0.5.0.2-1.mga5
> 
And rpm -qa | grep wxPython

And rpm -qa | grep wxgtk

???
Comment 32 José Eduardo Martins 2015-07-24 14:36:52 CEST
OK.

$ rpm -qa | grep wxPython
wxPython-tools-3.0.2.0-1.mga5
wxPython-3.0.2.0-1.mga5
wxPython-wxversion-3.0.2.0-1.mga5

$ rpm -qa | grep wxgtk
lib64wxgtku3.0_0-3.0.2-1.mga5
lib64wxgtku2.9_5-2.9.5-2.mga4
wxgtk2.8-2.8.12-16.mga5
wxgtk-3.0.2-1.1.mga5
lib64wxgtkugl2.8_0-2.8.12-16.mga5
lib64wxgtkugl3.0_0-3.0.2-1.mga5
lib64wxgtku2.8_0-2.8.12-16.mga5
Comment 33 Philippe Makowski 2015-07-24 14:58:34 CEST
(In reply to José Eduardo Martins from comment #32)
> OK.
ok what ?

what give this test please :
https://bugs.mageia.org/attachment.cgi?id=6859
Comment 34 José Eduardo Martins 2015-07-24 15:08:46 CEST
OK to your request about rpm -qa | grep wxPython and rpm -qa | grep wxgtk

below wxtest output:

$ python2.7 wxtest.py 
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (UTF-8,compiler with C++ ABI 1002,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Abortado

$ python3.4 wxtest.py 
Traceback (most recent call last):
  File "wxtest.py", line 7, in <module>
    import wx
ImportError: No module named 'wx'
Comment 35 Philippe Makowski 2015-07-24 15:31:21 CEST
I don't understand it is like if you still use old wx lib, can you remove from your system lib64wxgtku2.9_5-2.9.5-2.mga4 ?


Any one have a clue ?
Comment 36 José Eduardo Martins 2015-07-24 15:38:44 CEST
$ sudo urpme lib64wxgtku2.9_5-2.9.5-2.mga4 
removendo lib64wxgtku2.9_5-2.9.5-2.mga4.x86_64
removendo pacote lib64wxgtku2.9_5-2.9.5-2.mga4.x86_64
      1/1: removendo lib64wxgtku2.9_5-2.9.5-2.mga4.x86_64
                                 ##################################################

$ pyhoca-gui 
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (UTF-8,compiler with C++ ABI 1002,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Abortado
Comment 37 José Eduardo Martins 2015-07-24 15:58:12 CEST
Is possible to compile wxPython with UTF-8 option?
Comment 38 José Eduardo Martins 2015-07-24 17:38:18 CEST
I am not python expert, but I did a little change in your spec as below

%build
# (Fedora) included distutils is not multilib aware; use normal
rm -rf distutils
python setup.py \
        WXPORT='gtk2'\
        UNICODE=1 \ <---------------- new line
        EP_ADD_OPTS=1 \
        WX_CONFIG="%_bindir/wx-config --no_rpath" \
        build

I am not sure if this is a correct way.

No, I can start pyhoca-gui but the olds bugs remain.

See what I get with your wxtest.py:

$ python wxtest.py 
Traceback (most recent call last):
  File "wxtest.py", line 30, in <module>
    main()
  File "wxtest.py", line 26, in main
    app = Test(False)
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "wxtest.py", line 17, in OnInit
    baditem = fileMenu.Append(wx.ID_ANY, u'Raté', u'Test raté')
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 12003, in Append
    return _core_.Menu_Append(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ./src/common/stockitem.cpp(213) in wxGetStockLabel(): invalid stock item ID
Comment 39 Philippe Makowski 2015-07-24 18:30:16 CEST
ok, I see :
my box (where have no problem with the test case and pyhoca) :
$ rpm -qa | grep wxPython
wxPython-3.0.2.0-1.mga5
wxPython-wxversion-3.0.2.0-1.mga5
$ rpm -qa | grep wxgtk
wxgtk-3.0.2-1.1.mga5
lib64wxgtku2.8_0-2.8.12-16.mga5
lib64wxgtku3.0_0-3.0.2-1.1.mga5
wxgtk2.8-2.8.12-16.mga5
lib64wxgtkugl3.0_0-3.0.2-1.1.mga5

My announce :
Updated packages in core/updates_testing:
========================

wxgtk-3.0.2-1.1.mga5
lib(64)wxgtkugl3.0_0-3.0.2-1.1.mga5
lib(64)wxgtku3.0_0-3.0.2-1.1.mga5

wxPython-wxversion-3.0.2.0-1.mga5
wxPython-3.0.2.0-1.mga5

and you have :
 - wxgtk2.8-2.8.12-16.mga5
 - lib64wxgtku2.8_0-2.8.12-16.mga5
 - lib64wxgtkugl2.8_0-2.8.12-16.mga5
these three should not matter

 - wxPython-tools-3.0.2.0-1.mga5
 - wxPython-3.0.2.0-1.mga5
 - wxgtk-3.0.2-1.1.mga5
these three are correct

 - lib64wxgtku3.0_0-3.0.2-1.mga5
 - lib64wxgtkugl3.0_0-3.0.2-1.mga5
these two where not upgraded, you should have

 - lib64wxgtku3.0_0-3.0.2-1.1.mga5
 - lib64wxgtkugl3.0_0-3.0.2-1.1.mga5
Comment 40 José Eduardo Martins 2015-07-24 19:20:50 CEST
Sorry, I forgot these 2 libraries

Now pyhoca-gui seems working well. I don't have tested pyhoca-cli.

Thank you very much for your patience and great job.
Philippe Makowski 2015-07-24 20:59:19 CEST

Whiteboard: (none) => MGA5-64-OK

Comment 41 Dave Hodgins 2015-07-28 17:43:53 CEST
Need a clear list of which srpm packages are involved, for the advisory.

CC: (none) => davidwhodgins

Comment 42 Philippe Makowski 2015-07-28 18:09:51 CEST
Updated packages in core/updates_testing:
========================
pyhoca-gui-0.5.0.4-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
python-x2go-0.5.0.3-1.mga5

lib(64)wxgtku3.0-devel-3.0.2-1.1
wxgtk-3.0.2-1.1.mga5
lib(64)wxgtkugl3.0_0-3.0.2-1.1.mga5
wxgtk-debuginfo-3.0.2-1.1.mga5
lib(64)wxgtku3.0_0-3.0.2-1.1.mga5

wxPython-wxversion-3.0.2.0-1.mga5
wxPython-tools-3.0.2.0-1.mga5
wxPython-debuginfo-3.0.2.0-1.mga5
lib(64)wxPython3.0-devel-3.0.2.0-1.mga5
wxPython-3.0.2.0-1.mga5

From srpm :
python-x2go-0.5.0.3-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
pyhoca-gui-0.5.0.4-1.1.mga5
wxgtk-3.0.2-1.1.mga5
wxPython-3.0.2.0-1.mga5

but note that wxgtk-3.0.2-1.1.mga5 and wxPython-3.0.2.0-1.mga5 are also announced in https://bugs.mageia.org/show_bug.cgi?id=16397
I don't know how to deal with that, seems that filezilla need an update too
Comment 43 Dave Hodgins 2015-08-01 18:42:13 CEST
Should we wait for filezilla to be updated before adding the advisory and
validating this update?
Comment 44 Dave Hodgins 2015-08-09 10:36:03 CEST
Ping. See comment 43
Comment 45 Philippe Makowski 2015-08-09 14:38:18 CEST
I don't know, same problem with coban #16397
we obviously provided a buggy stack with wxgtk-3
A rebuild of all packages listed in 16397#c13 (except wxPython as it is done) would not hurt.
Comment 46 Dave Hodgins 2015-08-10 05:55:19 CEST
So should we wait, or go ahead and validate this update?
Comment 47 Rémi Verschelde 2015-08-10 08:33:06 CEST
We should wait, bug 16560 needs to be pushed first.

Depends on: (none) => 16560

Comment 48 Rémi Verschelde 2015-08-10 08:39:12 CEST
New advisory:
========================

Updated pyhoca-gui, pyhoca-cli, python-x2go packages fix segmentation fault

A wrong wxversion check in x2go packages lead to segmentation fault in
pyhoca-gui. The whole stack has also been upgraded to more recent version for
better compatibility with wxGTK 3.0.


Updated packages in core/updates_testing:
========================
pyhoca-gui-0.5.0.4-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
python-x2go-0.5.0.3-1.mga5

From SRPMs:
python-x2go-0.5.0.3-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
pyhoca-gui-0.5.0.4-1.1.mga5
Comment 49 William Kenney 2015-08-10 17:17:51 CEST
In VirtualBox, M4, KDE, 32-bit

Package(s) under test:
pyhoca-cli pyhoca-gui python-x2go

default install of pyhoca-cli pyhoca-gui python-x2go

[root@localhost wilcal]# urpmi pyhoca-cli
Package pyhoca-cli-0.4.0.2-5.mga5.noarch is already installed
[root@localhost wilcal]# urpmi pyhoca-gui
Package pyhoca-gui-0.4.0.9-5.mga5.noarch is already installed
[root@localhost wilcal]# urpmi python-x2go
Package python-x2go-0.4.0.9-5.mga5.noarch is already installed

[root@localhost wilcal]# pyhoca-gui
Traceback (most recent call last):
  File "/usr/bin/pyhoca-gui", line 85, in <module>
    import wx
ImportError: No module named wx

Is there a one line command here that we can duplicate this segfault?

CC: (none) => wilcal.int

Comment 50 Rémi Verschelde 2015-08-10 17:24:10 CEST
(In reply to William Kenney from comment #49)
> Is there a one line command here that we can duplicate this segfault?

Having no segfault is normal, see comment 9 and comment 10. But testing that the update candidate works is more important, as you test shows the current package in Core Release is unusable.
Comment 51 William Kenney 2015-08-10 17:26:49 CEST
(In reply to Rémi Verschelde from comment #50)

> Having no segfault is normal, see comment 9 and comment 10. But testing that
> the update candidate works is more important, as you test shows the current
> package in Core Release is unusable.

Thanks Rémi. And is there a simple straight forward way to do that?
I don't see one here.
Comment 52 Philippe Makowski 2015-08-10 17:36:11 CEST
(In reply to William Kenney from comment #49)
> ImportError: No module named wx
> 

How could it be ?
see : http://sophie.zarb.org/rpms/7ffcf17f42a45d91d9552d107b203a35/deps

pyhoca-gui :
Requires
    pythonegg(2)(wxpython)


so you should have wxpython on your system

and such import wx under python should work like said in comment #40
Comment 53 Rémi Verschelde 2015-08-10 17:46:29 CEST
@William: Just install the update candidate instead of the version from Core Release :)

@Philippe: Judging by comment 49, William wasn't testing the update candidate.
Comment 54 William Kenney 2015-08-10 17:48:52 CEST
Could someone compose a simple test procedure that uses wxpython and confirms that pyhoca-gui is installed and working properly.
Comment 55 Rémi Verschelde 2015-08-10 17:54:32 CEST
(In reply to William Kenney from comment #54)
> Could someone compose a simple test procedure that uses wxpython and
> confirms that pyhoca-gui is installed and working properly.

1) Install this update candidate + the wxgtk update candidate from Core Updates Testing (see bug 16560; you only need the wxgtk, wxPython* and lib(64)wxgtk* packages). I haven't check if there's a version requires on wxPython in the update candidate, but if not you'll have to select those packages manually (best use MageiaUpdate to pick all relevant packages for your system).

2) Run "pyhoca-gui"
Rémi Verschelde 2015-08-10 17:54:48 CEST

Whiteboard: MGA5-64-OK => MGA5-64-OK has_procedure

Comment 56 William Kenney 2015-08-11 18:34:14 CEST
(In reply to Rémi Verschelde from comment #55)

> 1) Install this update candidate + the wxgtk update candidate.....

In VirtualBox, M4, KDE, 32-bit

Package(s) under test:
pyhoca-cli pyhoca-gui python-x2go wxgtk wxPython libwxgtku3.0_0

default install of pyhoca-cli pyhoca-gui python-x2go wxgtk wxPython libwxgtku3.0_0

[root@localhost wilcal]# urpmi pyhoca-cli
Package pyhoca-cli-0.4.0.2-5.mga5.noarch is already installed
[root@localhost wilcal]# urpmi pyhoca-gui
Package pyhoca-gui-0.4.0.9-5.mga5.noarch is already installed
[root@localhost wilcal]# urpmi python-x2go
Package python-x2go-0.4.0.9-5.mga5.noarch is already installed
[root@localhost wilcal]# urpmi wxgtk
Package wxgtk-3.0.2-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi wxPython
Package wxPython-3.0.1.1-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libwxgtku3.0_0
Package libwxgtku3.0_0-3.0.2-1.mga5.i586 is already installed

[root@localhost wilcal]# pyhoca-gui
Traceback (most recent call last):
  File "/usr/bin/pyhoca-gui", line 85, in <module>
    import wx
ImportError: No module named wx

looks like the same result. The additional three packages, wxgtk wxPython libwxgtku3.0_0,
were already installed in the system under test.
Comment 57 Rémi Verschelde 2015-08-11 18:51:51 CEST
(In reply to William Kenney from comment #56)
> (In reply to Rémi Verschelde from comment #55)
> 
> > 1) Install this update candidate + the wxgtk update candidate.....
> [root@localhost wilcal]# urpmi pyhoca-cli
> Package pyhoca-cli-0.4.0.2-5.mga5.noarch is already installed
> [root@localhost wilcal]# urpmi pyhoca-gui
> Package pyhoca-gui-0.4.0.9-5.mga5.noarch is already installed
> [root@localhost wilcal]# urpmi python-x2go
> Package python-x2go-0.4.0.9-5.mga5.noarch is already installed

As I said several times, you need to install the update candidate. You are testing the Core Release packages right now... The updated packages are:

pyhoca-gui-0.5.0.4-1.mga5
pyhoca-cli-0.5.0.2-1.mga5
python-x2go-0.5.0.3-1.mga5
Comment 58 William Kenney 2015-08-11 18:59:52 CEST
(In reply to Rémi Verschelde from comment #57)

> As I said several times, you need to install the update candidate. You are
> testing the Core Release packages right now... The updated packages are:
> 
> pyhoca-gui-0.5.0.4-1.mga5
> pyhoca-cli-0.5.0.2-1.mga5
> python-x2go-0.5.0.3-1.mga5

I was trying to get this to work at all without the update candidates.
Are you saying the result I am getting now is what is expected without
the updated packages?
Comment 59 Rémi Verschelde 2015-08-11 19:02:27 CEST
(In reply to William Kenney from comment #58)
> 
> I was trying to get this to work at all without the update candidates.
> Are you saying the result I am getting now is what is expected without
> the updated packages?

Yes, the very reason for this update candidate being that the non-update packages are broken :)
Comment 60 William Kenney 2015-08-11 22:13:22 CEST
In VirtualBox, M5, KDE, 32-bit

Package(s) under test:
pyhoca-cli pyhoca-gui python-x2go wxgtk wxPython libwxgtku3.0_0

default install of pyhoca-cli pyhoca-gui python-x2go wxgtk wxPython libwxgtku3.0_0

[root@localhost wilcal]# urpmi pyhoca-cli
Package pyhoca-cli-0.5.0.2-1.mga5.noarch is already installed
[root@localhost wilcal]# urpmi pyhoca-gui
Package pyhoca-gui-0.5.0.4-1.1.mga5.noarch is already installed
[root@localhost wilcal]# urpmi python-x2go
Package python-x2go-0.5.0.3-1.mga5.noarch is already installed
[root@localhost wilcal]# urpmi wxgtk
Package wxgtk-3.0.2-1.1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi wxPython
Package wxPython-3.0.2.0-1.mga5.i586 is already installed
[root@localhost wilcal]# urpmi libwxgtku3.0_0
Package libwxgtku3.0_0-3.0.2-1.1.mga5.i586 is already installed

[root@localhost wilcal]# pyhoca-gui
Opens a window on the desktop that displays a little white seal. The terminal
I launched it from displays this:

pyhoca-gui[2640] (PyHoca-GUI) WARN: the current release of PyHoca-GUI does not support client configuration

Then it goes away. Are we ok Rémi?
Comment 61 William Kenney 2015-08-11 22:14:34 CEST
(In reply to William Kenney from comment #60)

> default install of pyhoca-cli pyhoca-gui python-x2go wxgtk wxPython
> libwxgtku3.0_0...........

Packages were installed from updates_testing
Comment 62 Philippe Makowski 2015-08-11 23:29:23 CEST
(In reply to William Kenney from comment #60)
> I launched it from displays this:
> 
> pyhoca-gui[2640] (PyHoca-GUI) WARN: the current release of PyHoca-GUI does
> not support client configuration
> 
> Then it goes away. Are we ok Rémi?

away not really, it launch an applet.

but yes basically this mean that the bug is fixed, as already reported by José Eduardo Martins in comment #40
Comment 63 William Kenney 2015-08-11 23:48:21 CEST
(In reply to Philippe Makowski from comment #62)

> it launch an applet.
> 
> but yes basically this mean that the bug is fixed, as already reported by
> José Eduardo Martins in comment #40

Yes, it launched the applet and was on it's way. Cool. Thanks all.
I don't want to become an expert in this.
Comment 64 William Kenney 2015-08-11 23:50:58 CEST
This update works fine.
Testing complete for MGA5, 32-bit & 64-bit
Validating the update.
Could someone from the sysadmin team push to updates.
Thanks

Keywords: (none) => validated_update
Whiteboard: MGA5-64-OK has_procedure => MGA5-32-OK MGA5-64-OK has_procedure
CC: (none) => sysadmin-bugs

Rémi Verschelde 2015-08-21 16:35:42 CEST

Whiteboard: MGA5-32-OK MGA5-64-OK has_procedure => MGA5-32-OK MGA5-64-OK has_procedure advisory

Comment 65 Mageia Robot 2015-08-30 16:28:58 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0112.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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