[Python-modules-team] Bug#615626: segmentation fault when loading PyQt4.QtCore under python2.6

Marcos Dione mdione at grulic.org.ar
Sun Feb 27 20:37:54 UTC 2011


Package: python-qt4
Version: 4.7.3-1+b1
Severity: important
Tags: sid


    since at least last sunday I started getting this:

$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.QtCore
Segmentation fault

    under python2.5 works ok:

$ python2.5
Python 2.5.5 (r255:77872, Nov 28 2010, 19:00:19) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.QtCore
>>> 

    here's a backtrace:

$ gdb --args python2.6
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2.6...Reading symbols from /usr/lib/debug/usr/bin/python2.6...done.
done.
(gdb) r
Starting program: /usr/bin/python2.6
[Thread debugging using libthread_db enabled]
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.QtCore

Program received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/i386/i686/multiarch/strlen.S:87
87      ../sysdeps/i386/i686/multiarch/strlen.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/strlen.S
(gdb) bt
#0  __strlen_sse2 () at ../sysdeps/i386/i686/multiarch/strlen.S:87
#1  0x0809f71a in PyString_FromString (str=0x13b9 <Address 0x13b9 out of bounds>) at ../Objects/stringobject.c:116
#2  0x08091252 in PyDict_GetItemString (v={'__module__': 'PyQt4.QtCore', '\x03': <member_descriptor at remote 0xb7c3664c>}, key=0x13b9 <Address 0x13b9 out of bounds>)
    at ../Objects/dictobject.c:2284
#3  0x080b68a5 in add_members (type=0x8306124) at ../Objects/typeobject.c:3564
#4  PyType_Ready (type=0x8306124) at ../Objects/typeobject.c:3988
#5  0x080b9983 in type_new (metatype=0xb784cfe0, args=('DeletionPolicy', (<type at remote 0x822da20>,), {'__module__': 'PyQt4.QtCore'}), kwds=0x0)
    at ../Objects/typeobject.c:2445
#6  0x080accbd in type_call (type=0xb784cfe0, args=('DeletionPolicy', (<type at remote 0x822da20>,), {'__module__': 'PyQt4.QtCore'}), kwds=0x0)
    at ../Objects/typeobject.c:726
#7  0x0806232a in PyObject_Call (func=<type at remote 0xb784cfe0>, arg=('DeletionPolicy', (<type at remote 0x822da20>,), {'__module__': 'PyQt4.QtCore'}), kw=0x0)
    at ../Objects/abstract.c:2492
#8  0xb7844d38 in ?? () from /usr/lib/pymodules/python2.5/sip.so
#9  0xb789f923 in initQtCore () from /usr/lib/pymodules/python2.5/PyQt4/QtCore.so
#10 0x080f7644 in _PyImport_LoadDynamicModule (name=0xbfffde2b "PyQt4.QtCore", pathname=0xbfffcd97 "/usr/lib/pymodules/python2.5/PyQt4/QtCore.so", fp=0x82cc740)
    at ../Python/importdl.c:53
#11 0x080f55b0 in load_module (name=0xbfffde2b "PyQt4.QtCore", fp=0x3, buf=0x13b9 <Address 0x13b9 out of bounds>, type=3, loader=0x0) at ../Python/import.c:1830
#12 0x080f5d95 in import_submodule (mod=<module at remote 0xb7c3d764>, subname=<value optimized out>, fullname=0xbfffde2b "PyQt4.QtCore") at ../Python/import.c:2592
#13 0x080f6055 in load_next (mod=<module at remote 0xb7c3d764>, altmod=<value optimized out>, p_name=<value optimized out>, buf=0xbfffde2b "PyQt4.QtCore", p_buflen=
    0xbfffee2c) at ../Python/import.c:2412
#14 0x080f6689 in import_module_level (name=0x0, globals=<value optimized out>, locals=<value optimized out>, fromlist=None, level=-1) at ../Python/import.c:2141
#15 0x080f6b27 in PyImport_ImportModuleLevel (name=0xb7c30fd4 "PyQt4.QtCore", globals=
    {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), locals=
    {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), fromlist=None, level=-1) at ../Python/import.c:2185
#16 0x080db0cf in builtin___import__ (self=0x0, args=
    ('PyQt4.QtCore', {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), kwds=0x0) at ../Python/bltinmodule.c:48
#17 0x0806232a in PyObject_Call (func=<built-in function __import__>, arg=
    ('PyQt4.QtCore', {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), kw=0x0) at ../Objects/abstract.c:2492
#18 0x080dbd10 in PyEval_CallObjectWithKeywords (func=<built-in function __import__>, arg=
    ('PyQt4.QtCore', {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), kw=<value optimized out>) at ../Python/ceval.c:3619
#19 0x080ddc08 in PyEval_EvalFrameEx (f=Frame 0x82fe7f4, for file <stdin>, line 1, in <module> (), throwflag=0) at ../Python/ceval.c:2159
#20 0x080e2507 in PyEval_EvalCodeEx (co=0xb7c15608, globals=
    {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), locals=
    {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3000
#21 0x080e2607 in PyEval_EvalCode (co=0xb7c15608, globals=
    {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated), locals=
    {'__builtins__': <module at remote 0xb7c3d074>, 'lines': ...(truncated)) at ../Python/ceval.c:541
#22 0x080ff844 in run_mod (fp=0xb7dc0420, filename=0x81829b9 "<stdin>", flags=0xbffff2bc) at ../Python/pythonrun.c:1351
#23 PyRun_InteractiveOneFlags (fp=0xb7dc0420, filename=0x81829b9 "<stdin>", flags=0xbffff2bc) at ../Python/pythonrun.c:850
#24 0x080ffab8 in PyRun_InteractiveLoopFlags (fp=0xb7dc0420, filename=0x81829b9 "<stdin>", flags=0xbffff2bc) at ../Python/pythonrun.c:770
#25 0x08100323 in PyRun_AnyFileExFlags (fp=0xb7dc0420, filename=0x81829b9 "<stdin>", closeit=0, flags=0xbffff2bc) at ../Python/pythonrun.c:739
#26 0x0805dd81 in Py_Main (argc=1, argv=0xbffff3a4) at ../Modules/main.c:577
#27 0x0805cf6b in main (argc=1, argv=0xbffff3a4) at ../Modules/python.c:23



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.37-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-qt4 depends on:
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.5.2-4        GCC support library
ii  libpython2.6            2.6.6-8+b1       Shared Python runtime library (ver
ii  libqt4-assistant        4:4.6.3-4        Qt 4 assistant module
ii  libqt4-designer         4:4.6.3-4        Qt 4 designer module
ii  libqt4-help             4:4.6.3-4        Qt 4 help module
ii  libqt4-network          4:4.6.3-4        Qt 4 network module
ii  libqt4-script           4:4.6.3-4        Qt 4 script module
ii  libqt4-scripttools      4:4.6.3-4        Qt 4 script tools module
ii  libqt4-svg              4:4.6.3-4        Qt 4 SVG module
ii  libqt4-test             4:4.6.3-4        Qt 4 test module
ii  libqt4-webkit           4:4.6.3-4        Qt 4 WebKit module
ii  libqt4-xml              4:4.6.3-4        Qt 4 XML module
ii  libqt4-xmlpatterns      4:4.6.3-4        Qt 4 XML patterns module
ii  libqtcore4              4:4.6.3-4        Qt 4 core module
ii  libqtgui4               4:4.6.3-4        Qt 4 GUI module
ii  libstdc++6              4.5.2-4          The GNU Standard C++ Library v3
ii  python                  2.6.6-3+squeeze5 interactive high-level object-orie
ii  python-sip [sip-api-7.1 4.10.2-1         Python/C++ bindings generator runt
ii  python-support          1.0.11           automated rebuilding support for P

python-qt4 recommends no packages.

Versions of packages python-qt4 suggests:
ii  python-qt4-dbg                4.7.3-1+b1 Python bindings for Qt4 (debug ext

-- no debconf information

-- 
(Not so) Random fortune:
Las expresiones aquí vertidas no necesariamente reflejan las opiniones
de su autor. Cualquier coincidencia con la ficción es inversamente
proporcional a la misma coincidencia con la realidad.





More information about the Python-modules-team mailing list