[Stackless] Stackless and PyQt4 on Linux

Miguel Turner dhagrow+stackless at gmail.com
Fri Mar 30 20:04:39 CEST 2007


I've read the thread started by Caleb and I am having the same seg fault as
him. I'm trying to get to a point where I can use Stackless and PyQt on both
Windows and Linux so I'd like to see if there's a solution to this problem
as well. I'm using Python 2.5 Stackless 3.1b3 with Qt 4.2.3 and PyQt 4.1.1.
This is the stack trace I get after I try to import QtCore:

(gdb) run
Starting program: /usr/bin/spython
[Thread debugging using libthread_db enabled]
[New Thread -1210063184 (LWP 16805)]
Python 2.5 Stackless 3.1b3 060516 (python-2.5:51933, Mar 30 2007, 11:50:40)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtCore

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210063184 (LWP 16805)]
0xb7e6bc53 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7e6bc53 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0x08091f26 in PyString_FromFormatV (
    format=0x8133668 "type '%.100s' is not an acceptable base type",
    vargs=<value optimized out>) at Objects/stringobject.c:202
#2  0x080ddbd0 in PyErr_Format (exception=0x814c9e0,
    format=0x8133668 "type '%.100s' is not an acceptable base type")
    at Python/errors.c:522
#3  0x0809fad6 in type_new (metatype=0xb7f829e0, args=0xb7d9e734, kwds=0x0)
    at Objects/typeobject.c:1690
#4  0x080995cd in type_call (type=0xb7f829e0, args=0xb7d9e734, kwds=0x0)
    at Objects/typeobject.c:423
#5  0x0805b72b in PyObject_Call (func=0xb7f829e0, arg=0xb7d9e734, kw=0x0)
    at Objects/abstract.c:1863
#6  0xb7f7d666 in initsip ()
   from /usr/local/spython/lib/python2.5/site-packages/sip.so
#7  0xb7c2e93a in initQtCore ()
   from /usr/local/spython/lib/python2.5/site-packages/PyQt4/QtCore.so
#8  0x080e69c4 in _PyImport_LoadDynamicModule (name=0xbfd5b347 "PyQt4.QtCore
",
    pathname=0xbfd5a2d7
"/usr/local/spython/lib/python2.5/site-packages/PyQt4/QtCore.so",
fp=0x81e0118) at ./Python/importdl.c:53
#9  0x080e4755 in load_module (name=0xbfd5b347 "PyQt4.QtCore",
fp=0xbfd5a078,
    buf=0xbfd5a2d7
"/usr/local/spython/lib/python2.5/site-packages/PyQt4/QtCore.so", type=3,
loader=0x0) at Python/import.c:1741
#10 0x080e4d8b in import_submodule (mod=0xb7dbe35c,
    subname=0xb7d9c6d4 "QtCore", fullname=0xbfd5b347 "PyQt4.QtCore")
    at Python/import.c:2383
#11 0x080e504e in ensure_fromlist (mod=0xb7dbe35c, fromlist=0xb7d9666c,
    buf=0xbfd5b347 "PyQt4.QtCore", buflen=5, recursive=0)
    at Python/import.c:2294
#12 0x080e5685 in import_module_level (name=0x0,
    globals=<value optimized out>, locals=<value optimized out>,
    fromlist=0xb7d9666c, level=-1) at Python/import.c:2021
#13 0x080e5b37 in PyImport_ImportModuleLevel (name=0xb7d9c694 "PyQt4",
    globals=0xb7de02d4, locals=0xb7de02d4, fromlist=0xb7d9666c, level=-1)
    at Python/import.c:2055
#14 0x080bcd64 in builtin___import__ (self=0x0, args=0xb7de139c, kwds=0x0)
    at Python/bltinmodule.c:49
#15 0x0805b72b in PyObject_Call (func=0xb7dccd6c, arg=0xb7de139c, kw=0x0)
    at Objects/abstract.c:1863
#16 0x080bd2f9 in PyEval_CallObjectWithKeywords (func=0xb7dccd6c,
    arg=0xb7de139c, kw=0x0) at Python/ceval.c:3747
#17 0x080c172f in PyEval_EvalFrame_value (f=0x81b2574, throwflag=0,
---Type <return> to continue, or q <return> to quit---
    retval=0x8157478) at Python/ceval.c:2263
#18 0x080c5850 in PyEval_EvalFrameEx_slp (f=0x0, throwflag=0,
retval=0x8157478)
    at Python/ceval.c:782
#19 0x080c59c9 in slp_frame_dispatch_top (retval=0x0)
    at Stackless/core/stacklesseval.c:671
#20 0x080c82eb in slp_run_tasklet () at Stackless/module/scheduling.c:1155
#21 0x080c65f1 in slp_eval_frame (f=0x81b2574)
    at Stackless/core/stacklesseval.c:281
#22 0x080c6669 in climb_stack_and_eval_frame (f=0x0)
    at Stackless/core/stacklesseval.c:248
#23 0x080c6600 in slp_eval_frame (f=0x81b2574)
    at Stackless/core/stacklesseval.c:276
#24 0x080bdce7 in PyEval_EvalCode (co=0xb7d8f800, globals=0xb7de02d4,
    locals=0xb7de02d4) at Python/ceval.c:496
#25 0x080eebe9 in PyRun_InteractiveOneFlags (fp=0xb7f2f420,
    filename=0x812d962 "<stdin>", flags=0xbfd63c58) at
Python/pythonrun.c:1295
#26 0x080eee16 in PyRun_InteractiveLoopFlags (fp=0xb7f2f420,
    filename=0x812d962 "<stdin>", flags=0xbfd63c58) at
Python/pythonrun.c:731
#27 0x080eef32 in PyRun_AnyFileExFlags (fp=0xb7f2f420,
    filename=0x812d962 "<stdin>", closeit=0, flags=0xbfd63c58)
    at Python/pythonrun.c:700
#28 0x080582b4 in Py_Main (argc=0, argv=0xbfd63d24) at Modules/main.c:496
#29 0x08057882 in main (argc=Cannot access memory at address 0x0
) at ./Modules/python.c:23
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20070330/1e76ffaf/attachment.htm>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless


More information about the Stackless mailing list