Hi,
we are heavily relying on tango for our open source projects, see:
http://www.erasproject.org/index.php?option=com_content&view=article&id=11&Itemid=140
https://eras.readthedocs.org/en/latest/index.html
It appears there is a major problems trying to run the most simple python based server on top of Ubuntu 13.x.
The server simply crash with a Segmentation fault (core dumped) and diagnosing the problem is quite difficult.
All our python based servers are running fine on previous Ubuntu releases (until 12.x).
Is this a known problem? is there any workaround?
Thanks a lot for your time looking at the problem. For us it would be quite important remaning aligned on latest Ubuntu releases
Hello,
Thanks for the report.
I placed a python script in this bug report.
Could you please run it and send me the output back?
I am pretty sure I know the problem. It should be related with bug #551 ([pytango] Some DeviceClass methods are not python safe).
The problem has always been there but only the new python/boost versions present in ubuntu 13 trigger it.
After I get the output from the script I can suggest some options to solve the problem.
Cheers
Ups, here is the script.
run it with:
$ python pytango-info
$ python pytango-info
Python: 2.7.4 (default, Apr 19 2013, 18:32:33) | [GCC 4.7.3]
Tango C++: 7.2.6
PyTango: 7.2.3 (7, 2, 3, 'final', 0)
System: Linux amd 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:19:35 UTC 2013 i686
Thank you for the info. Now I understand the problem.
Tango/PyTango which comes with ubuntu 13.04 is relatively old. This bug has already been fixed for PyTango 8.0.3.
The problem is that you use Tango C++ 7.2 so you cannot use PyTango 8.x.
Therefore I have produced a PyTango 7.2.4 with just this bug fixed.
You can download it from:
https://pypi.python.org/packages/source/P/PyTango/PyTango-7.2.4.tar.gz
untar it:
$ tar xzvf PyTango-7.2.4.tar.gz
$ cd PyTango-7.2.4
$ python setup.py build
$ sudo python setup.py install
Let me know if it works.
Thanks for the quick reply! Updating PyTango seems to have fixed the problem and I successfully tested it with two different Tango servers without experiencing segfaults.
(FTR I had to install "libboost-python-dev" before being able to run the setup.py).
Fixed since PyTango 8.0.3
Also fixed in PyTango 7 series since revision 7.2.4