Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21063 - [gajim] segmentation fault

Attached to Project: Arch Linux
Opened by Eric Belanger (Snowman) - Monday, 04 October 2010, 18:04 GMT
Last edited by Allan McRae (Allan) - Thursday, 07 October 2010, 13:10 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Allan McRae (Allan)
Ionut Biru (wonder)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

After updating to gajim 0.14-3 in testing, gajim no longer starts. It just seg fault.

I'll try to rebuilt it and report if I fing the problem.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 07 October 2010, 13:10 GMT
Reason for closing:  Fixed
Comment by Ionut Biru (wonder) - Monday, 04 October 2010, 18:25 GMT
python2 is segmenting faulting

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7aa0b0c in PyDict_SetItem () from /usr/lib/libpython2.7.so.1.0

#0 0x00007ffff7aa0b0c in PyDict_SetItem () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#1 0x00007ffff7aa2030 in PyDict_SetItemString () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#2 0x00007ffff29028be in init_gtk () from /usr/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so
No symbol table info available.
#3 0x00007ffff7b167c5 in _PyImport_LoadDynamicModule () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#4 0x00007ffff7b14ad9 in import_submodule () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#5 0x00007ffff7b15030 in ensure_fromlist () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#6 0x00007ffff7b15627 in import_module_level.clone.3 () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#7 0x00007ffff7b1596a in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#8 0x00007ffff7afa50f in builtin___import__ () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#9 0x00007ffff7a6a8c3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#10 0x00007ffff7afbe97 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#11 0x00007ffff7afdb83 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#12 0x00007ffff7b03427 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#13 0x00007ffff7b03542 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#14 0x00007ffff7b137c2 in PyImport_ExecCodeModuleEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#15 0x00007ffff7b13b0e in load_source_module () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#16 0x00007ffff7b147ad in load_package () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#17 0x00007ffff7b14ad9 in import_submodule () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#18 0x00007ffff7b14d64 in load_next () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#19 0x00007ffff7b153a8 in import_module_level.clone.3 () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#20 0x00007ffff7b1596a in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#21 0x00007ffff7afa50f in builtin___import__ () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#22 0x00007ffff7a6a8c3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#23 0x00007ffff7afbe97 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#24 0x00007ffff7afdb83 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#25 0x00007ffff7b03427 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#26 0x00007ffff7b03542 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#27 0x00007ffff7b137c2 in PyImport_ExecCodeModuleEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#28 0x00007ffff7b13b0e in load_source_module () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#29 0x00007ffff7b14ad9 in import_submodule () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#30 0x00007ffff7b14d64 in load_next () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#31 0x00007ffff7b153a8 in import_module_level.clone.3 () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#32 0x00007ffff7b1596a in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#33 0x00007ffff7afa50f in builtin___import__ () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#34 0x00007ffff7a6a8c3 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#35 0x00007ffff7afbe97 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#36 0x00007ffff7afdb83 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#37 0x00007ffff7b03427 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#38 0x00007ffff7b03542 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#39 0x00007ffff7b1d59c in run_mod () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#40 0x00007ffff7b1f30b in PyRun_InteractiveOneFlags () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#41 0x00007ffff7b1f4ee in PyRun_InteractiveLoopFlags () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#42 0x00007ffff7b1fafc in PyRun_AnyFileExFlags () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#43 0x00007ffff7b3055f in Py_Main () from /usr/lib/libpython2.7.so.1.0
No symbol table info available.
#44 0x00007ffff74c7c4d in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#45 0x0000000000400609 in _start ()
No symbol table info available.
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 04 October 2010, 22:09 GMT
This is either a bug in python2 or pygtk, since gajim is pure python. It seems pygtk doesn't like line 136 in gajim.py

warnings.filterwarnings('error', module='gtk')

Commenting it allows to run the program (I think it is only used to exit gracefully when importing gtk gives problems). I didn't investigate further. Python also segfaults when just given

import warnings
warnings.filterwarnings('error', module='gtk')
import gtk

[PS: gajim exits in a very ugly way when 'hicolor-icon-theme' is not installed]
Comment by vladodriver (vladodriver) - Monday, 04 October 2010, 22:40 GMT
Change in
/usr/lib/python2.7/site-packages/gajim/gajim.py

+-warnings.filterwarnings('error', module='gtk')
++warnings.filterwarnings('error', module='gtk', append=True)

frugalware-git@frugalware.org/msg50553.html"> http://www.mail-archive.com/frugalware-git@frugalware.org/msg50553.html
Comment by Ionut Biru (wonder) - Monday, 04 October 2010, 22:49 GMT
@vladodriver looking at upstream bugs, it seems is a problem in pygtk and that modification is a workaround
Comment by vladodriver (vladodriver) - Monday, 04 October 2010, 23:23 GMT
Yes I know, but it temporarily works..
Comment by Allan McRae (Allan) - Monday, 04 October 2010, 23:30 GMT
ionutbrokeit! Any chance of a link to the upstream bug report(s) for the lazy (i.e. me)?
Comment by Ionut Biru (wonder) - Monday, 04 October 2010, 23:33 GMT Comment by vladodriver (vladodriver) - Monday, 04 October 2010, 23:36 GMT Comment by Allan McRae (Allan) - Monday, 04 October 2010, 23:45 GMT
@Ionut - want to rebuild pygtk with that patch here: https://bugzilla.gnome.org/show_bug.cgi?id=623965#c4? I'm surprised that not not been pulled upstream yet as the change is fairly obvious...
Comment by Ionut Biru (wonder) - Tuesday, 05 October 2010, 09:19 GMT
@Allan i used the patch locally and it seemed is not crashing anymore but gajim still fails.

/usr/lib/python2.7/site-packages/OpenSSL/__init__.py:11: PendingDeprecationWarning: The CObject type is marked Pending Deprecation in Python 2.7. Please use capsule objects instead.
import rand, crypto, SSL, tsafe
/usr/lib/python2.7/site-packages/dbus/types.py:6: PendingDeprecationWarning: The CObject type is marked Pending Deprecation in Python 2.7. Please use capsule objects instead.
from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte,\
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Traceback (most recent call last):
File "gajim.py", line 216, in <module>
import gtkexcepthook
File "/usr/lib/python2.7/site-packages/gajim/gtkexcepthook.py", line 31, in <module>
import dialogs
File "/usr/lib/python2.7/site-packages/gajim/dialogs.py", line 41, in <module>
import disco
File "/usr/lib/python2.7/site-packages/gajim/disco.py", line 59, in <module>
import search_window
File "/usr/lib/python2.7/site-packages/gajim/search_window.py", line 30, in <module>
import config
File "/usr/lib/python2.7/site-packages/gajim/config.py", line 45, in <module>
import chat_control
File "/usr/lib/python2.7/site-packages/gajim/chat_control.py", line 40, in <module>
import notify
File "/usr/lib/python2.7/site-packages/gajim/notify.py", line 48, in <module>
import pynotify
File "/usr/lib/python2.7/site-packages/gtk-2.0/pynotify/__init__.py", line 1, in <module>
from _pynotify import *
RuntimeError: could not find _PyGtk_API object
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 05 October 2010, 12:00 GMT
The patch modifies the pygtk.h header, I doubt it preserves binary compatibility with other pygtk-based modules, did you try rebuilding python-notify ?
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 05 October 2010, 13:11 GMT
I confirm that rebuilding python-notify against the patched pygtk makes gajim run successfully.
Comment by Allan McRae (Allan) - Wednesday, 06 October 2010, 13:58 GMT
@Rémy: have you had a chance to test any other pygtk modules to assess if we would need to rebuild them all?
Comment by Rémy Oudompheng (remyoudompheng) - Wednesday, 06 October 2010, 14:06 GMT
I 'm afraid I don't use enough pygtk things myself to have an idea about that.
Comment by Ionut Biru (wonder) - Wednesday, 06 October 2010, 14:08 GMT
i say to start pushing fixes and see what is broken. i'll do pygtk now and python-notify
Comment by Zbysek MRAZ (zbyshek) - Wednesday, 06 October 2010, 18:55 GMT
I don't know if this is related or not, but I'm getting refused connection because of TLS handshake:

20:53:26 (E) gajim.c.x.tls_nb Error while TLS handshake:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gajim/common/xmpp/tls_nb.py", line 417, in _startSSL_pyOpenSSL
tcpsock._sslObj.do_handshake()
SysCallError: (111, 'Connection refused')
20:53:26 (E) gajim.c.x.tls_nb Error while TLS handshake:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gajim/common/xmpp/tls_nb.py", line 417, in _startSSL_pyOpenSSL
tcpsock._sslObj.do_handshake()
SysCallError: (111, 'Connection refused')
Comment by Zbysek MRAZ (zbyshek) - Wednesday, 06 October 2010, 18:57 GMT
Package versions:

extra/gajim 0.14-3
testing/python2 2.7-2
extra/python-notify 0.1.1-8
extra/pygtk 2.22.0-3
Comment by Eric Belanger (Snowman) - Wednesday, 06 October 2010, 20:36 GMT
Now gajim starts and seem to be running fine. However, when I start it I get a :
ImportError: could not import bonobo.ui

I'm not sure if it's related or not.
Comment by Allan McRae (Allan) - Thursday, 07 October 2010, 05:23 GMT
Looks like pygtksourceview2 needs rebuilt.

>>> import gtksourceview2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: could not find _PyGtk_API object
Comment by Allan McRae (Allan) - Thursday, 07 October 2010, 05:25 GMT
And whatever package provides bonobo.ui (???)

>>> import bonobo.ui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: could not find _PyGtk_API object

Edit: the package is gnome-python
Comment by Allan McRae (Allan) - Thursday, 07 October 2010, 05:38 GMT
pygtksourceview2 and gnome-python rebuild and pushed to [testing]
Comment by Allan McRae (Allan) - Thursday, 07 October 2010, 05:56 GMT
I just went through most other pygtk packages without an issue so I think this can be close now.
Comment by Zbysek MRAZ (zbyshek) - Thursday, 07 October 2010, 07:17 GMT
And what about the pyopenssl problem? Should be separate bug opened for it?
Comment by Rémy Oudompheng (remyoudompheng) - Thursday, 07 October 2010, 10:24 GMT
gnome-python-extras and gnome-python-desktop will need to be rebuilt for pygtk

@Zbysek: your problem seems unrelated, please try again and/or file a separate bug
Comment by Ionut Biru (wonder) - Thursday, 07 October 2010, 11:20 GMT
@remy done
Comment by Allan McRae (Allan) - Thursday, 07 October 2010, 13:10 GMT
OK, this bug is done. Open a new one about the pyopenssl issue if necessary.

Loading...