[Kde-bindings] Re: Building smoke for KDE-4.7.0 beta

Stefano Crocco stefano.crocco at alice.it
Sun Jun 5 09:53:06 UTC 2011


On Sunday 05 June 2011 09:12:53 Stefano Crocco wrote:
> On Sunday 05 June 2011 00:47:23 Arno Rehn wrote:
> > This looks like a segfault, and that even on qtcore. That's bad. Are you
> > using any development version of Qt? Also, if you could use a debug
> > build
> > of smokegen and then attach a debuggere here somehow, it would be great.
> > 
> > I haven't rebuilt all my stuff for a while now. Will do that and check
> > if I also get an error.
> 
> I'm using Qt 4.7.3, so not a development version. I've built a debug version
> of smokegen, but I haven't any idea on how to attach a debugger while
> running make. Right now, I don't have time to look for a way to do it, but
> maybe later today I may be able to try something.
> 
> Thanks
> 
> Stefano

I just tried running smokegen in gdb. I looked at the command used to run it
in the qtcore/CMakeFiles/smokeqtcore.dir/build.make makefile, copied the
command line and gave it to gdb. I think this should not change anything with
respect to running it from the makefile itself. However, here's the result from gdb:

0x080681da in QBasicAtomicInt::operator!= (this=0x0, value=1) at /usr/include/qt4/QtCore/qbasicatomic.h:75
75              return _q_value != value;
(gdb) bt
#0  0x080681da in QBasicAtomicInt::operator!= (this=0x0, value=1) at /usr/include/qt4/QtCore/qbasicatomic.h:75
#1  0x0806aa2e in QVector<IndexedString>::append (this=0x80b0120, t=...) at /usr/include/qt4/QtCore/qvector.h:547
#2  0xb7ccd422 in QStack<IndexedString>::push(IndexedString const&) () from /usr/local/lib/libcppparser.so
#3  0xb7ccbd4e in rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) () from /usr/local/lib/libcppparser.so
#4  0xb7ccc115 in rpp::pp::processFile(QString const&) () from /usr/local/lib/libcppparser.so
#5  0x0807f71e in Preprocessor::preprocess (this=0xbfffe680) at /home/stefano/tmp/kdebindings-4.7-beta/smokegen-4.6.80/generatorpreprocessor.cpp:172
#6  0x08067642 in main (argc=7, argv=0xbfffe974) at /home/stefano/tmp/kdebindings-4.7-beta/smokegen-4.6.80/main.cpp:225

Stefano



More information about the Kde-bindings mailing list