Bug 222537 - Loading a QT4 with CMake project makes Kdevelop crash
Summary: Loading a QT4 with CMake project makes Kdevelop crash
Status: RESOLVED DUPLICATE of bug 206775
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 13:41 UTC by carlo cancellieri
Modified: 2010-01-13 22:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlo cancellieri 2010-01-13 13:41:36 UTC
Application: kdevelop (3.9.97 (using KDevPlatform 0.9.97))
KDE Platform Version: 4.4.59 (KDE 4.4.59 (KDE 4.5 >= 20100107))
Qt Version: 4.6.0
Operating System: Linux 2.6.32-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
I'm only loading a (test) CMake project into KDevelop.
This happens every time I try to load the project!

This is CMakeLists.txt:
-----------------START-----------------
PROJECT(nepomuk_test)
cmake_minimum_required(VERSION 2.6.3)
include_directories(${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${NEPOMUK_INCLUDE_DIR} ${SOPRANO_INCLUDE_DIR})
find_package(PkgConfig REQUIRED)
find_package( KDE4 REQUIRED )
find_package( QT4 REQUIRED )
find_package( Soprano REQUIRED )
find_package( Nepomuk REQUIRED )

include(${SOPRANO_ONTO2VOCABULARYCLASS_EXECUTABLE})

set(nepomuk_test main.cpp src/myresourcemanager.cpp)

qt4_automoc(${CMAKE_CURRENT_BINARY_DIR})
soprano_add_ontology(foo_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/foo.rdfs "FOO" "Vocabulary" "rdfxml")
ADD_EXECUTABLE(QTCMAKE ${nepomuk_test})

target_link_libraries( QTCMAKE ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_MOC_EXE} ${QT_LIBRARY_DIR} ${NEPOMUK_LIBRARIES})
----------------END-----------------

 -- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f83e3e65740 (LWP 10276))]

Thread 10 (Thread 0x7f83cf5c9910 (LWP 10370)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f83e06d3eab in QWaitConditionPrivate::wait (this=0x9c5f10, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  0x00007f83e06d3a1e in QWaitCondition::wait (this=0x9c5bf8, mutex=0x9c5c00, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f83dcec9127 in ?? () from /usr/lib64/libkdevplatformlanguage.so.1
#4  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x9c5be0) at thread/qthread_unix.cpp:244
#5  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f83c433a910 (LWP 10656)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f83dddb8c74 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f83de0c92a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f83dddb8cd9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f83de0c92a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f83c262e910 (LWP 11376)):
#0  *__GI___poll (fds=0x210b190, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f83d89cd02b in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f83d89cd23e in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f83e083a643 in QEventDispatcherGlib::processEvents (this=0x20ede40, flags=...) at kernel/qeventdispatcher_glib.cpp:409
#4  0x00007f83e07faf9f in QEventLoop::processEvents (this=0x7f83c262dff0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f83e07fb1c3 in QEventLoop::exec (this=0x7f83c262dff0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f83e06ce66b in QThread::exec (this=0x20e47b0) at thread/qthread.cpp:487
#7  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x20e47b0) at thread/qthread_unix.cpp:244
#8  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f83c1e2d910 (LWP 11377)):
#0  0x00007f83de9fc896 in *__GI___poll (fds=0x20c94c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f83d89cd02b in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f83d89cd23e in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f83e083a643 in QEventDispatcherGlib::processEvents (this=0x20ed1a0, flags=...) at kernel/qeventdispatcher_glib.cpp:409
#4  0x00007f83e07faf9f in QEventLoop::processEvents (this=0x7f83c1e2cff0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f83e07fb1c3 in QEventLoop::exec (this=0x7f83c1e2cff0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f83e06ce66b in QThread::exec (this=0x20e6560) at thread/qthread.cpp:487
#7  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x20e6560) at thread/qthread_unix.cpp:244
#8  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 6 (Thread 0x7f83c162c910 (LWP 11378)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f83e06d2e06 in thread_sleep (ti=0x7f83c162bfb0) at thread/qthread_unix.cpp:394
#2  0x00007f83e06d3076 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:420
#3  0x00007f83c35f0fe4 in ?? () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#4  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x2173030) at thread/qthread_unix.cpp:244
#5  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f83c0e2b910 (LWP 11379)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f83e06d3ec1 in QWaitConditionPrivate::wait (this=0x8dee30, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f83e06d3a1e in QWaitCondition::wait (this=0x952cc8, mutex=0x718b10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f83e234ae3e in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f83e234e0f0 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f83e234e109 in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f83e234ccc6 in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f83e234cdc5 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#8  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x2118cb0) at thread/qthread_unix.cpp:244
#9  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 4 (Thread 0x7f83c062a910 (LWP 11380)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f83e06d3ec1 in QWaitConditionPrivate::wait (this=0x8dee30, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f83e06d3a1e in QWaitCondition::wait (this=0x952cc8, mutex=0x718b10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f83e234ae3e in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f83e234e0f0 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f83e234ccc6 in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f83e234cdc5 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x2047790) at thread/qthread_unix.cpp:244
#8  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f83cac48910 (LWP 13619)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f83e06d3ec1 in QWaitConditionPrivate::wait (this=0x29fd810, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f83e06d3a1e in QWaitCondition::wait (this=0x2093398, mutex=0x41c4900, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f83e234ae3e in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f83e234e0f0 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f83e234ccc6 in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f83e234cdc5 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f83e06d34d2 in QThreadPrivate::start (arg=0x1dfa210) at thread/qthread_unix.cpp:244
#8  0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f83bf949910 (LWP 13620)):
[KCrash Handler]
#5  0x00007f83de967315 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f83de968811 in *__GI_abort () at abort.c:88
#7  0x00007f83de9a3158 in __libc_message (do_abort=2, fmt=0x7f83dea55c38 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:170
#8  0x00007f83de9a8808 in malloc_printerr (action=2, str=0x7f83dea52f00 "free(): invalid pointer", ptr=<value optimized out>) at malloc.c:6197
#9  0x00007f83ce52922d in ?? () from /usr/lib64/libkdev4cmakecommon.so
#10 0x00007f83ce5295c6 in cmListFileLexer_yylex () from /usr/lib64/libkdev4cmakecommon.so
#11 0x00007f83ce529dc4 in cmListFileLexer_Scan () from /usr/lib64/libkdev4cmakecommon.so
#12 0x00007f83ce52b4d6 in CMakeListsParser::readCMakeFile(QString const&) () from /usr/lib64/libkdev4cmakecommon.so
#13 0x00007f83ce569e2e in CMakeProjectVisitor::visit(IncludeAst const*) () from /usr/lib64/libkdev4cmakecommon.so
#14 0x00007f83ce557878 in CMakeProjectVisitor::walk(QList<CMakeFunctionDesc> const&, int, bool) () from /usr/lib64/libkdev4cmakecommon.so
#15 0x00007f83ce2fe9b1 in ?? () from /usr/lib64/kde4/kdevcmakemanager.so
#16 0x00007f83dd4a2ea4 in ?? () from /usr/lib64/libkdevplatformproject.so.1
#17 0x00007f83dd4a2d4c in ?? () from /usr/lib64/libkdevplatformproject.so.1
#18 0x00007f83e06c377f in QThreadPoolThread::run (this=0xa40cb0) at concurrent/qthreadpool.cpp:106
#19 0x00007f83e06d34d2 in QThreadPrivate::start (arg=0xa40cb0) at thread/qthread_unix.cpp:244
#20 0x00007f83e0433287 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#21 0x00007f83dea058cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#22 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f83e3e65740 (LWP 10276)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f83e06d3ec1 in QWaitConditionPrivate::wait (this=0x12858e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f83e06d3a1e in QWaitCondition::wait (this=0x1285838, mutex=0x1285810, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f83e06c2c6a in QThreadPoolPrivate::waitForDone (this=0x1285780) at concurrent/qthreadpool.cpp:295
#4  0x00007f83e06c2f88 in ~QThreadPool (this=0x91cf20, __in_chrg=<value optimized out>) at concurrent/qthreadpool.cpp:428
#5  0x00007f83e06c4418 in ~QGlobalStaticDeleter (this=0x7f83e0b77b98, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1797
#6  0x00007f83de969ea5 in __run_exit_handlers (status=1, listp=0x7f83dec884a8, run_list_atexit=true) at exit.c:78
#7  0x00007f83de969ef5 in *__GI_exit (status=19421452) at exit.c:100
#8  0x00007f83df6928dd in qt_xio_errhandler () at kernel/qapplication_x11.cpp:734
#9  0x00007f83e0fec6d0 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib64/libkdeui.so.5
#10 0x00007f83db1cb6cc in _XIOError () from /usr/lib64/libX11.so.6
#11 0x00007f83db1d209f in ?? () from /usr/lib64/libX11.so.6
#12 0x00007f83db1d28ea in _XEventsQueued () from /usr/lib64/libX11.so.6
#13 0x00007f83db1bd3ce in XEventsQueued () from /usr/lib64/libX11.so.6
#14 0x00007f83df6cc51b in x11EventSourceCheck (s=0x642e50) at kernel/qguieventdispatcher_glib.cpp:87
#15 0x00007f83d89cc76f in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f83d89cd06e in ?? () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f83d89cd23e in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f83e083a625 in QEventDispatcherGlib::processEvents (this=0x63a0f0, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#19 0x00007f83df6cc097 in QGuiEventDispatcherGlib::processEvents (this=0x63a0f0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#20 0x00007f83e07faf9f in QEventLoop::processEvents (this=0x7fffce0169a0, flags=...) at kernel/qeventloop.cpp:149
#21 0x00007f83e07fb1c3 in QEventLoop::exec (this=0x7fffce0169a0, flags=...) at kernel/qeventloop.cpp:201
#22 0x00007f83e07ff5b3 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#23 0x00007f83df607f3e in QApplication::exec () at kernel/qapplication.cpp:3570
#24 0x000000000040647b in _start ()
The current source language is "auto; currently c".
The current source language is "auto; currently asm".

Reported using DrKonqi
Comment 1 Milian Wolff 2010-01-13 13:46:46 UTC
see bug 206775 for the cause and way to solve this crash.

*** This bug has been marked as a duplicate of bug 206775 ***
Comment 2 Aleix Pol 2010-01-13 21:41:05 UTC
Could you provide some info about the project? (like the project itself maybe) or a test that makes it crash?
A backtrace with debug symbols would be great too.
Comment 3 Milian Wolff 2010-01-13 21:53:41 UTC
So Aleix, you don't think that's the libc bug after all? If so, please reopen this bug report to undo my premature decision to close this as a duplicate.
Comment 4 Aleix Pol 2010-01-13 22:07:20 UTC
true.
well I don't think there's enough information we'll see.
Comment 5 Andreas Pakulat 2010-01-13 22:54:10 UTC
Aleix, I think you've read a different report. This is definetly the libc bug, see thread 2 #8, malloc_printerr is exactly the function with the bug. 

And the OP also provided the project already.

*** This bug has been marked as a duplicate of bug 206775 ***
Comment 6 Aleix Pol 2010-01-13 22:58:47 UTC
ok, I might have missed something.

sorry for that.

(>.< tomorrow's my last exam at last!)