Eric Jardim
Member
Hi all,
I've been tweaking with PyQt since last week and with a "little" help of sebt3, I was able to compile all PyQt modules on top sebt3's qt4.7 build, using Yactfaeu toolchain.
When you load the basic modules (QtCore and QtGui), it seems to work, but testing with some PyQt examples that come with the source code, it crashes (segmentation fault).
I tried using gdb to understand what was crashing the application, but since I compiled a realease version (with -O2s and -DNDEBUGs), the only info I get is that the crash occur inside the sip lib, after passing by QtCore or QtGui.
I tried recompiling sip and PyQt with debug (putting -g and removing -O2 or 3 , -DNDEBUG and other flags), but gdb appears to not catch debug symbols anyway.
I am using:
gdb (inside shell)
file python (inside gdb)
r pyfile.py (inside gdb)
Then I used some tips from
http://code.google.com/p/spyderlib/wiki/HowToDebugQtCrash
to force a "core" file to be created, but even like this, the core is empty.
I guess the crash is caused, or by some tweak that I made, or by some wrong header the configure/Makefile got from my host system (instead of the toolchain). But I really need to debug to understand the cause of the crash.
Can anybody give me some light?
I've been tweaking with PyQt since last week and with a "little" help of sebt3, I was able to compile all PyQt modules on top sebt3's qt4.7 build, using Yactfaeu toolchain.
When you load the basic modules (QtCore and QtGui), it seems to work, but testing with some PyQt examples that come with the source code, it crashes (segmentation fault).
I tried using gdb to understand what was crashing the application, but since I compiled a realease version (with -O2s and -DNDEBUGs), the only info I get is that the crash occur inside the sip lib, after passing by QtCore or QtGui.
I tried recompiling sip and PyQt with debug (putting -g and removing -O2 or 3 , -DNDEBUG and other flags), but gdb appears to not catch debug symbols anyway.
I am using:
gdb (inside shell)
file python (inside gdb)
r pyfile.py (inside gdb)
Then I used some tips from
http://code.google.com/p/spyderlib/wiki/HowToDebugQtCrash
to force a "core" file to be created, but even like this, the core is empty.
I guess the crash is caused, or by some tweak that I made, or by some wrong header the configure/Makefile got from my host system (instead of the toolchain). But I really need to debug to understand the cause of the crash.
Can anybody give me some light?