[PyQt] PyQt snapshot debug info
Phil Thompson
phil at riverbankcomputing.com
Mon Dec 6 17:01:27 GMT 2010
On Mon, 6 Dec 2010 14:59:11 +0100, "Hans-Peter Jansen" <hpj at urpla.net>
wrote:
> On Monday 06 December 2010, 13:51:14 Phil Thompson wrote:
>> On Sun, 5 Dec 2010 00:23:45 +0100, "Hans-Peter Jansen"
>> <hpj at urpla.net>
>>
>> wrote:
>> > Hi Phil,
>> >
>> > something changed related to the debugging symbols between the
>> > 4.8.1 release and the current snapshot:
>> >
>> > + /usr/lib/rpm/find-debuginfo.sh
>> > /usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/bin/pyrcc4
>>
>> > extracting debug info from
>> > /var/tmp/python-qt4-4.8.2-build/usr/bin/pylupdate4
>> > WARNING: /usr/lib/qt4/plugins/designer/libpythonplugin.so is
>> > already stripped!
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtGui.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtOpenGL.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/Qt.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtXmlPatterns.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtDeclarative.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtScript.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtCore.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtSvg.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtScriptTools.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtWebKit.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtHelp.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtSql.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtMultimedia.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtXml.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtNetwork.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/phonon.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtTest.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtDesigner.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.2-build/usr/lib/python2.6/site-packages/dbus/
>>mainloop/qt.so
>>
>> > cpio:
>> > PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/Auto-generated:
>> > Cannot stat: No such file or directory
>> > cpio:
>> > PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipAPIQtCore
>> >.h: Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractAnimation.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractEventDispatcher.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractFileEngine.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractFileEngineFileFlags.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractFileEngineHandler.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractFileEngineIterator.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractItemModel.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractListModel.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractState.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractTableModel.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAbstractTransition.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQAnimationGroup.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQBasicTimer.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQBitArray.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQBuffer.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQByteArray.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQByteArrayMatcher.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQChar_0.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQChar_1.cpp:
>> > Cannot stat: No such file or directory
>> > cpio:
>>
>>
PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore/QtCore/sipQtCoreQChildEvent.cpp:
>> > Cannot stat: No such file or directory
>> > [...]
>> >
>> > in contrast to:
>> >
>> > + /usr/lib/rpm/find-debuginfo.sh
>>
>> /usr/src/packages/BUILD/PyQt-x11-gpl-4.8.1
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtWebKit.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtSvg.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtGui.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtCore.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtXml.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtDeclarative.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/phonon.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtHelp.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtOpenGL.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtScript.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtDesigner.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtScriptTools.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtXmlPatterns.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtSql.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtTest.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/Qt.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtNetwork.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/PyQt4
>>/QtMultimedia.so
>>
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/lib/python2.6/site-packages/dbus/
>>mainloop/qt.so
>>
>> > WARNING: /usr/lib/qt4/plugins/designer/libpythonplugin.so is
>> > already stripped!
>> > extracting debug info from
>> > /var/tmp/python-qt4-4.8.1-build/usr/bin/pylupdate4
>> > extracting debug info from
>>
>> /var/tmp/python-qt4-4.8.1-build/usr/bin/pyrcc4
>>
>> > cpio: PyQt-x11-gpl-4.8.1/QtCore/Auto-generated: Cannot stat: No
>> > such
>>
>> file
>>
>> > or directory
>> > cpio: PyQt-x11-gpl-4.8.1/QtDeclarative/Auto-generated: Cannot stat:
>> > No such file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/QtDesigner/Auto-generated: Cannot stat: No
>> > such file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/QtGui/Auto-generated: Cannot stat: No such
>> > file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/QtSql/Auto-generated: Cannot stat: No such
>> > file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/QtWebKit/Auto-generated: Cannot stat: No
>> > such file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/QtXml/Auto-generated: Cannot stat: No such
>> > file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/qpy/QtCore/sipAPIQtCore.h: Cannot stat: No
>> > such file or directory
>> > cpio: PyQt-x11-gpl-4.8.1/qpy/QtDeclarative/sipAPIQtDeclarative.h:
>> > Cannot stat: No such file or directory
>> > cpio: glibc-2.9/cc-nptl/csu/crti.S: Cannot stat: No such file or
>>
>> directory
>>
>> > cpio: glibc-2.9/csu: Cannot stat: No such file or directory
>> > cpio: glibc-2.9/csu/elf-init.c: Cannot stat: No such file or
>> > directory cpio: glibc-2.9/csu/init.c: Cannot stat: No such file or
>> > directory cpio: glibc-2.9/sysdeps/generic/initfini.c: Cannot stat:
>> > No such file or directory
>> > cpio: glibc-2.9/sysdeps/i386/elf/start.S: Cannot stat: No such file
>> > or directory
>> > 71787 blocks
>> >
>> > Before I start to dig, do you have any idea, what might have
>> > changed to result in this behavior?
>>
>> I can't think of any changes in the build system that might have
>> caused it.
>>
>> The only thing related to source files that has changed is that SIP
>> now generates full pathnames for #line.
>
> Hmm, that's probably the problem, as you don't always use absolute
> names.
>
> QtCore/sipQtCoreQAbstractAnimation.cpp:
>
> #line 38
>
"/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/sip/QtCore/qabstractanimation.sip"
> #include <qabstractanimation.h>
> #line 39 "QtCore/sipQtCoreQAbstractAnimation.cpp"
> ^^^^^^
> #line 39
>
"/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/sip/QtCore/qobject.sip"
> #include <qobject.h>
> #line 43 "QtCore/sipQtCoreQAbstractAnimation.cpp"
> #line 36
>
"/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/sip/QtCore/qcoreevent.sip"
> #include <qcoreevent.h>
> #line 46 "QtCore/sipQtCoreQAbstractAnimation.cpp"
> #line 38
>
"/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/sip/QtCore/qanimationgroup.sip"
> #include <qanimationgroup.h>
> #line 49 "QtCore/sipQtCoreQAbstractAnimation.cpp"
> #line 315
>
"/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/sip/QtCore/qcoreevent.sip"
> #include <qcoreevent.h>
> #line 52 "QtCore/sipQtCoreQAbstractAnimation.cpp"
>
>
> Checking:
> $ objdump -g QtCore/sipQtCoreQAbstractAnimation.o
> [...]
> The section .debug_info contains:
>
> Compilation Unit @ offset 0x0:
> Length: 0x13f0d (32-bit)
> Version: 2
> Abbrev Offset: 0
> Pointer Size: 4
> <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
> < c> DW_AT_producer : (indirect string, offset: 0xd552): GNU
C++
> 4.3.2 [gcc-4_3-branch revision 141291]
> <10> DW_AT_language : 4 (C++)
> <11> DW_AT_name : (indirect string, offset: 0xa879):
> sipQtCoreQAbstractAnimation.cpp
> <15> DW_AT_comp_dir : (indirect string, offset: 0xd601):
>
/usr/src/packages/BUILD/PyQt-x11-gpl-snapshot-4.8.2-24a6ba5f4f0f/QtCore
> <19> DW_AT_low_pc : 0x0
> <1d> DW_AT_high_pc : 0x1ed0
> <21> DW_AT_stmt_list : 0x0
> [...]
>
> These do not match, resulting in the effects shown above.
>
> Always using absolute paths probably solves this. What do you think?
Why is using a relative filename (ie. no path) ok, but not a relative
pathname?
As far as I know gdb doesn't have a problem (which was the reason for the
change).
Phil
More information about the PyQt
mailing list