[Stackless] Fwd: Re: Compiling stackless with PyQt4?

Caleb J. Howard caleb at howlor.com
Sat Mar 31 10:06:10 CEST 2007


Seeing as how this discussion has broadened, I'll forward the email with the 
stack trace which I just sent to Richard.

Thanks all! 



----------  Forwarded Message  ----------

Subject: Re: [Stackless] Compiling stackless with PyQt4?
Date: Saturday 31 March 2007 00:46
From: "Caleb J. Howard" <caleb at howlor.com>
To: "Richard Tew" <richard.m.tew at gmail.com>

On Friday 30 March 2007 08:51, you wrote:
> On 3/30/07, Caleb J. Howard <caleb at howlor.com> wrote:
> > Thanks for the quick reply and the kind offer.  I'm off to work right
> > now, but will sit to this again tonight - around 7:00 PST.  I haven't got
> > VNC installed I don't think, but do have an IRC client running.  If I can
> > easily install VNC, I'll do so.  Otherwise, I have years of experience in
> > a support role, so I've practice with human telepresence channels.  ;-)
>
> Hmm.  If I have the timezones right (it tells me to use Los Angeles
> for PST) then we are in pretty much incompatible timezones for this to
> work :-)
>
> http://www.timeanddate.com/worldclock/meetingtime.html?day=30&month=3&year=
>2007&p1=211&p2=137&p3=-1&p4=-1
>
> By 7:00 PST I will be long asleep and won't be up until you are most
> likely asleep.
>
> Richard.

That's quite allright.  I sure appreciate your attention, and the joy of this
medium is that it accommodates and connects people who have something to
teach with people who have something to learn, though they be worlds apart.
I love living in the future.  ;-)

On the theory that more data is better, Here's what I did:




1) In one shell, I started up python...

!python
Python 2.4.3 Stackless 3.1b3 060516 (#3, Mar 27 2007, 23:42:33)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.





2) In another shell, I found my python pid...

!ps -ef | grep python
caleb     5360  5357  0 00:16 pts/12   00:00:00 python




3)  I hooked that process up to gdb (the Gnu DeBugger)...

!gdb python 5360
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".

Attaching to program: /usr/stackless_python/bin/python, process 5360
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...Reading symbols
from /usr/lib/debug/lib/tls/i686/cmov/libpthread-2.3.6.so...done.
[Thread debugging using libthread_db enabled]
[New Thread -1211001152 (LWP 5360)]
done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...Reading symbols
from /usr/lib/debug/lib/tls/i686/cmov/libdl-2.3.6.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libutil.so.1...Reading symbols
from /usr/lib/debug/lib/tls/i686/cmov/libutil-2.3.6.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libutil.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...Reading symbols
from /usr/lib/debug/lib/tls/i686/cmov/libm-2.3.6.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...Reading symbols
from /usr/lib/debug/lib/tls/i686/cmov/libc-2.3.6.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols
from /usr/lib/debug/lib/ld-2.3.6.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols
from /usr/stackless_python/lib/python2.4/lib-dynload/readline.so...done.
Loaded symbols for
 /usr/stackless_python/lib/python2.4/lib-dynload/readline.so Reading symbols
 from /lib/libreadline.so.5...done.
Loaded symbols for /lib/libreadline.so.5
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
0xffffe410 in __kernel_vsyscall ()




4) I did a preliminary backtrace...

(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ddd08d in ___newselect_nocancel () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7c6267b in call_readline (sys_stdin=0xb7e46240, sys_stdout=0xb7e460e0,
prompt=0xfffffdfe <Address 0xfffffdfe out of bounds>) at /mnt/ide3/home/cal
#3  0x080fecd9 in PyOS_Readline (sys_stdin=0xb7e46240, sys_stdout=0xb7e460e0,
prompt=0xb7caab34 ">>> ") at Parser/myreadline.c:208
#4  0x0805894e in tok_nextc (tok=0x81cab20) at Parser/tokenizer.c:765
#5  0x080590be in PyTokenizer_Get (tok=0xfffffdfe, p_start=0xbf879588,
p_end=0xbf879584) at Parser/tokenizer.c:1099
#6  0x08057294 in parsetok (tok=0x81cab20, g=<value optimized out>,
start=<value optimized out>, err_ret=0xbf8795d0, flags=-514) at
Parser/parsetok.c:125
#7  0x080e4778 in PyRun_InteractiveOneFlags (fp=0xfffffdfe,
filename=0x810e578 "<stdin>", flags=0xbf879724) at Python/pythonrun.c:760
#8  0x080e4962 in PyRun_InteractiveLoopFlags (fp=0xb7e46240,
filename=0x810e578 "<stdin>", flags=0xbf879724) at Python/pythonrun.c:712
#9  0x080e4a64 in PyRun_AnyFileExFlags (fp=0xb7e46240,
filename=0x810e578 "<stdin>", closeit=0, flags=0xbf879724) at
Python/pythonrun.c:675
#10 0x08057153 in Py_Main (argc=0, argv=0xbf8797c4) at Modules/main.c:493
#11 0xb7d2fea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#12 0x080565c1 in _start () at ../sysdeps/i386/elf/start.S:119




5) I continued execution of python...

(gdb) c
Continuing.

6) In the first shell, at the python prompt, I typed:
>>> from PyQt4 import QtGui

7) Back in the gdp session, the above command caused the following...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211001152 (LWP 5360)]
0x08085703 in PyString_FromFormatV (format=0x8113794 "type '%.100s' is not an
acceptable base type", vargs=<value optimized out>) at
Objects/stringobject.c:200
200                                     n += strlen(s);
(gdb) bt
#0  0x08085703 in PyString_FromFormatV (format=0x8113794 "type '%.100s' is
 not an acceptable base type", vargs=<value optimized out>) at
Objects/stringobject.c:200
#1  0x080d5274 in PyErr_Format (exception=0xb7cdd32c, format=0x0) at
Python/errors.c:513
#2  0x080938c0 in type_new (metatype=0xb6b6f6e0, args=0xb7cacfcc, kwds=0x0)
 at Objects/typeobject.c:1657
#3  0x0808e04c in type_call (type=0xb6b6f6e0, args=0xb7cacfcc, kwds=0x0) at
Objects/typeobject.c:422
#4  0x0805aac5 in PyObject_Call (func=0xb6b6f6e0, arg=0x0, kw=0x0) at
Objects/abstract.c:1797
#5  0xb6b6a82a in ?? ()
#6  0xb6b6f6e0 in ?? ()
#7  0xb7cacfcc in ?? ()
#8  0x00000000 in ?? ()
(gdb)



This looks promisingly detailed.  I hope it is meaningful to you.  I'm glad
for your help, and thank you.  If this info indicates an obvious solution to
you, I'll be most grateful to hear it.

Thanks again.  I hope you slept well.  ;-)


--

-caleb

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        caleb at howlor.com (home) - choward at imageworks.com (work)
                   http://howlor.com/CalebMain.html
                    "Live slow - Die old." -ronda
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-------------------------------------------------------

-- 

-caleb

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        caleb at howlor.com (home) - choward at imageworks.com (work)
                   http://howlor.com/CalebMain.html
                    "Live slow - Die old." -ronda
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list