[kde-freebsd] Segfault in Qt when using CMake.

arrowdodger 6yearold at gmail.com
Mon May 2 11:49:17 CEST 2011

Hello. I'm running 8-STABLE with Qt-4.7.2 and CMake-2.8.4.
If i (re)configure my project using `cmake` or `ccmake`, everything is fine.
But when i use `cmake-gui`, i get segfaults all around. For example, when
i'm doing clean "configure" of project into empty directory and hit
"configure" button, i get crash. I understand, that everything is compiled
without -g, but hope backtrace would be still useful:

#0  0x0000000802008e9c in kill () from /lib/libc.so.7
#1  0x0000000802007e23 in abort () from /lib/libc.so.7
#2  0x0000000801b60774 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/libstdc++.so.6
#3  0x0000000801b6494f in ?? () from /usr/lib/libstdc++.so.6
#4  0x0000000801b64985 in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0x0000000801b64895 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#6  0x000000080179e92e in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/local/lib/qt4/libQtCore.so.4
#7  0x00000008016ae7ad in QThread::exec() () from
#8  0x000000000041cb46 in ?? ()
#9  0x00000008016b0ffc in QThreadPrivate::start(void*) ()
   from /usr/local/lib/qt4/libQtCore.so.4
#10 0x0000000802fa12d1 in ?? () from /lib/libthr.so.3
#11 0x0000000000000000 in ?? ()

And here is exception:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid

It's worth mentioning that KDevelop crashes the same way when i edit CMake
variables from CMakeLists.txt and hit OK (this triggers reconfigure, which
in turn lead to crash). I'll glad to help you with providing additional
information if necessary.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-freebsd/attachments/20110502/4c1efbe5/attachment.htm 

More information about the kde-freebsd mailing list