Bug 265708 - Crash when reformatting C source code
Summary: Crash when reformatting C source code
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.2.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 18:07 UTC by Rolf Eike Beer
Modified: 2011-02-08 23:11 UTC (History)
0 users

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 Rolf Eike Beer 2011-02-07 18:07:10 UTC
Application: kdevelop (4.2.0)
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-desktop i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
I was reformatting some C sources. The existing function definitions were prepended by "typedef" to declare some function pointer types. So for a moment I had several lines like

typedef foo(int a);
typedef bar(const char *b);

Invalid C, but I wasn't finished at that time. KDevelop crashed, the restore worked and I was able to continue. When I was doing the next header the same crash happened again.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0xb32f1710 (LWP 2543))]

Thread 14 (Thread 0xae2b2b70 (LWP 2761)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa452 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed2a4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8fa2c in wait (this=0x81feb84, mutex=0x81feb88, time=1000) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=0x81feb84, mutex=0x81feb88, time=1000) at thread/qwaitcondition_unix.cpp:160
#5  0xb583d79b in ?? () from /usr/lib/libkdevplatformlanguage.so.3
#6  0xb6d8f39a in QThreadPrivate::start (arg=0x81feb78) at thread/qthread_unix.cpp:285
#7  0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#8  0xb60df46e in clone () from /lib/libc.so.6

Thread 13 (Thread 0xaaf6cb70 (LWP 2800)):
#0  0xb5ff7fba in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0xb60ed464 in pthread_mutex_lock () from /lib/libc.so.6
#2  0xb52fd5f3 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0xb6ebcda7 in QEventDispatcherGlib::processEvents (this=0x8185950, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0xb6e8d89d in QEventLoop::processEvents (this=0xaaf6c2d0, flags=...) at kernel/qeventloop.cpp:149
#5  0xb6e8dac9 in QEventLoop::exec (this=0xaaf6c2d0, flags=...) at kernel/qeventloop.cpp:201
#6  0xb6d8c7a9 in QThread::exec (this=0xad91b748) at thread/qthread.cpp:490
#7  0xb59593f6 in ?? () from /usr/lib/libkdevplatformlanguage.so.3
#8  0xb6d8f39a in QThreadPrivate::start (arg=0xad91b748) at thread/qthread_unix.cpp:285
#9  0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#10 0xb60df46e in clone () from /lib/libc.so.6

Thread 12 (Thread 0xaa76bb70 (LWP 2904)):
#0  0xb6ebcd9c in QEventDispatcherGlib::processEvents (this=0x88ba188, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#1  0xb6e8d89d in QEventLoop::processEvents (this=0xaa76b2d0, flags=...) at kernel/qeventloop.cpp:149
#2  0xb6e8dac9 in QEventLoop::exec (this=0xaa76b2d0, flags=...) at kernel/qeventloop.cpp:201
#3  0xb6d8c7a9 in QThread::exec (this=0x882cb18) at thread/qthread.cpp:490
#4  0xb59593f6 in ?? () from /usr/lib/libkdevplatformlanguage.so.3
#5  0xb6d8f39a in QThreadPrivate::start (arg=0x882cb18) at thread/qthread_unix.cpp:285
#6  0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#7  0xb60df46e in clone () from /lib/libc.so.6

Thread 11 (Thread 0xa85d2b70 (LWP 2905)):
#0  0xb5de022b in clock_gettime () from /lib/librt.so.1
#1  0xb6dea265 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6ebdd26 in updateCurrentTime (this=0xa8be4a24, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0xa8be4a24, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6ebc55b in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xa85d213c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6ebc5fd in timerSourcePrepare (source=0xa8be49f0, timeout=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb52fc0c0 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#8  0xb52fcf22 in ?? () from /usr/lib/libglib-2.0.so.0
#9  0xb52fd60e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#10 0xb6ebcda7 in QEventDispatcherGlib::processEvents (this=0xad93a618, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb6e8d89d in QEventLoop::processEvents (this=0xa85d22d0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb6e8dac9 in QEventLoop::exec (this=0xa85d22d0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6d8c7a9 in QThread::exec (this=0x88e1d00) at thread/qthread.cpp:490
#14 0xb59593f6 in ?? () from /usr/lib/libkdevplatformlanguage.so.3
#15 0xb6d8f39a in QThreadPrivate::start (arg=0x88e1d00) at thread/qthread_unix.cpp:285
#16 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#17 0xb60df46e in clone () from /lib/libc.so.6

Thread 10 (Thread 0xa6c8cb70 (LWP 2926)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb0578167 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb06981a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0xb05781af in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb06981a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#6  0xb60df46e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xa50ffb70 (LWP 2936)):
#0  0xb52fc0f3 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#1  0xb52fcf22 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0xb52fd60e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0xb6ebcda7 in QEventDispatcherGlib::processEvents (this=0x91d2388, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0xb6e8d89d in QEventLoop::processEvents (this=0xa50ff2b0, flags=...) at kernel/qeventloop.cpp:149
#5  0xb6e8dac9 in QEventLoop::exec (this=0xa50ff2b0, flags=...) at kernel/qeventloop.cpp:201
#6  0xb6d8c7a9 in QThread::exec (this=0x91d0fc0) at thread/qthread.cpp:490
#7  0xb6e6d4ad in QInotifyFileSystemWatcherEngine::run (this=0x91d0fc0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0xb6d8f39a in QThreadPrivate::start (arg=0x91d0fc0) at thread/qthread_unix.cpp:285
#9  0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#10 0xb60df46e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xa48feb70 (LWP 2945)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8faa0 in wait (this=0x82b3af8, mutex=0x8317050, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x82b3af8, mutex=0x8317050, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e4f056 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x82b3ae0, th=0x9927980) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e527a7 in waitForAvailableJob (this=0x83678c0, th=0x9927980) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#7  ThreadWeaver::WorkingHardState::applyForWork (this=0x83678c0, th=0x9927980) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x82b3ae0, th=0x9927980, previous=0xc233620) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4e4f564 in ThreadWeaver::ThreadRunHelper::run (this=0xa48fe314, parent=0x82b3ae0, th=0x9927980) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#10 0xb4e4f61a in ThreadWeaver::Thread::run (this=0x9927980) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#11 0xb6d8f39a in QThreadPrivate::start (arg=0x9927980) at thread/qthread_unix.cpp:285
#12 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#13 0xb60df46e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xa40fdb70 (LWP 2946)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8faa0 in wait (this=0x82b3af8, mutex=0x8317050, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x82b3af8, mutex=0x8317050, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e4f056 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x82b3ae0, th=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e527a7 in waitForAvailableJob (this=0x83678c0, th=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#7  ThreadWeaver::WorkingHardState::applyForWork (this=0x83678c0, th=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x82b3ae0, th=0x9923f70, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x83678c0, th=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x82b3ae0, th=0x9923f70, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x83678c0, th=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#12 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x82b3ae0, th=0x9923f70, previous=0x9899338) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#13 0xb4e4f564 in ThreadWeaver::ThreadRunHelper::run (this=0xa40fd314, parent=0x82b3ae0, th=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#14 0xb4e4f61a in ThreadWeaver::Thread::run (this=0x9923f70) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#15 0xb6d8f39a in QThreadPrivate::start (arg=0x9923f70) at thread/qthread_unix.cpp:285
#16 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#17 0xb60df46e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xa36ffb70 (LWP 2948)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb4852987 in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#5  0xb60df46e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xac069b70 (LWP 5473)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8faa0 in wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e4f056 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8adacb8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e527a7 in waitForAvailableJob (this=0x8f02cc8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#7  ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xab3d238, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xab3d238, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#12 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xab3d238, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#13 0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#14 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xab3d238, previous=0x8f4fe68) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#15 0xb4e4f564 in ThreadWeaver::ThreadRunHelper::run (this=0xac069314, parent=0x8adacb8, th=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#16 0xb4e4f61a in ThreadWeaver::Thread::run (this=0xab3d238) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#17 0xb6d8f39a in QThreadPrivate::start (arg=0xab3d238) at thread/qthread_unix.cpp:285
#18 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#19 0xb60df46e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xad06bb70 (LWP 5474)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8faa0 in wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e4f056 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8adacb8, th=0xb4411f0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e527a7 in waitForAvailableJob (this=0x8f02cc8, th=0xb4411f0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#7  ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xb4411f0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xb4411f0, previous=0xc8f5340) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4e4f564 in ThreadWeaver::ThreadRunHelper::run (this=0xad06b314, parent=0x8adacb8, th=0xb4411f0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#10 0xb4e4f61a in ThreadWeaver::Thread::run (this=0xb4411f0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#11 0xb6d8f39a in QThreadPrivate::start (arg=0xb4411f0) at thread/qthread_unix.cpp:285
#12 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#13 0xb60df46e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa19ffb70 (LWP 5520)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8faa0 in wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e4f056 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8adacb8, th=0x9a67760) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e527a7 in waitForAvailableJob (this=0x8f02cc8, th=0x9a67760) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#7  ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0x9a67760) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0x9a67760, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0x9a67760) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0x9a67760, previous=0xbd23e98) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb4e4f564 in ThreadWeaver::ThreadRunHelper::run (this=0xa19ff314, parent=0x8adacb8, th=0x9a67760) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#12 0xb4e4f61a in ThreadWeaver::Thread::run (this=0x9a67760) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#13 0xb6d8f39a in QThreadPrivate::start (arg=0x9a67760) at thread/qthread_unix.cpp:285
#14 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#15 0xb60df46e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa11feb70 (LWP 5521)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5ffa125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60ed24c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6d8faa0 in wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x8adacd0, mutex=0x92100b0, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e4f056 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8adacb8, th=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e527a7 in waitForAvailableJob (this=0x8f02cc8, th=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#7  ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xa9a98d8, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xa9a98d8, previous=0x0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb4e527c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f02cc8, th=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#12 0xb4e4ea03 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8adacb8, th=0xa9a98d8, previous=0x935ab40) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:351
#13 0xb4e4f564 in ThreadWeaver::ThreadRunHelper::run (this=0xa11fe314, parent=0x8adacb8, th=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#14 0xb4e4f61a in ThreadWeaver::Thread::run (this=0xa9a98d8) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#15 0xb6d8f39a in QThreadPrivate::start (arg=0xa9a98d8) at thread/qthread_unix.cpp:285
#16 0xb5ff5b25 in start_thread () from /lib/libpthread.so.0
#17 0xb60df46e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb32f1710 (LWP 2543)):
[KCrash Handler]
#7  0xb590f7e8 in KDevelop::FunctionType::arguments() const () from /usr/lib/libkdevplatformlanguage.so.3
#8  0xb58a3f75 in KDevelop::AbstractFunctionDeclaration::defaultParameterForArgument(int) const () from /usr/lib/libkdevplatformlanguage.so.3
#9  0xa8a53534 in Cpp::AdaptDefinitionSignatureAssistant::parseJobFinished (this=0xbf9c640, job=0xc233270) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/codegen/signatureassistant.cpp:326
#10 0xa8a545c7 in Cpp::AdaptDefinitionSignatureAssistant::qt_metacall (this=0xbf9c640, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff65e78)
    at /usr/src/debug/kdevelop-4.2.0/build/languages/cpp/signatureassistant.moc:75
#11 0xb6e94e5d in QMetaObject::metacall (object=0xbf9c640, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0xbff65e78) at kernel/qmetaobject.cpp:237
#12 0xb6ea4ffc in QMetaObject::activate (sender=0x831dc48, m=0xb59d9f94, local_signal_index=0, argv=0xbff65e78) at kernel/qobject.cpp:3272
#13 0xb57fd2f5 in KDevelop::BackgroundParser::parseJobFinished(KDevelop::ParseJob*) () from /usr/lib/libkdevplatformlanguage.so.3
#14 0xb57fdab0 in KDevelop::BackgroundParser::parseComplete(ThreadWeaver::Job*) () from /usr/lib/libkdevplatformlanguage.so.3
#15 0xb5800f7d in KDevelop::BackgroundParser::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformlanguage.so.3
#16 0xb6e94e5d in QMetaObject::metacall (object=0x831dc48, cl=QMetaObject::InvokeMetaMethod, idx=34, argv=0xbff66078) at kernel/qmetaobject.cpp:237
#17 0xb6ea4ffc in QMetaObject::activate (sender=0xc233270, m=0xb4e596b0, local_signal_index=1, argv=0xbff66078) at kernel/qobject.cpp:3272
#18 0xb4e4f865 in ThreadWeaver::Job::done (this=0xc233270, _t1=0xc233270) at /usr/src/debug/kdelibs-4.6.0/build/threadweaver/Weaver/Job.moc:97
#19 0xb4e510cc in ThreadWeaver::JobCollection::jobRunnerDone (this=0xc233270) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/JobCollection.cpp:300
#20 0xb4e511d9 in ThreadWeaver::JobCollection::qt_metacall (this=0xc233270, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff66278)
    at /usr/src/debug/kdelibs-4.6.0/build/threadweaver/Weaver/JobCollection.moc:75
#21 0xb4e51223 in ThreadWeaver::JobSequence::qt_metacall (this=0xc233270, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbff66278)
    at /usr/src/debug/kdelibs-4.6.0/build/threadweaver/Weaver/JobSequence.moc:64
#22 0xb5807932 in KDevelop::ParseJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformlanguage.so.3
#23 0xa89e55b3 in CPPParseJob::qt_metacall (this=0xc233270, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbff66278) at /usr/src/debug/kdevelop-4.2.0/build/languages/cpp/cppparsejob.moc:66
#24 0xb6e94e5d in QMetaObject::metacall (object=0xc233270, cl=QMetaObject::InvokeMetaMethod, idx=8, argv=0xbff66278) at kernel/qmetaobject.cpp:237
#25 0xb6ea4ffc in QMetaObject::activate (sender=0xc233620, m=0xb4e596b0, local_signal_index=1, argv=0xbff66278) at kernel/qobject.cpp:3272
#26 0xb4e4f865 in ThreadWeaver::Job::done (this=0xc233620, _t1=0xc233620) at /usr/src/debug/kdelibs-4.6.0/build/threadweaver/Weaver/Job.moc:97
#27 0xb4e4f985 in ThreadWeaver::Job::qt_metacall (this=0xc233620, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xa1c67d88)
    at /usr/src/debug/kdelibs-4.6.0/build/threadweaver/Weaver/Job.moc:77
#28 0xb4e4f9c3 in ThreadWeaver::JobCollectionJobRunner::qt_metacall (this=0xc233620, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xa1c67d88)
    at /usr/src/debug/kdelibs-4.6.0/build/threadweaver/Weaver/JobCollection_p.moc:64
#29 0xb6e94e5d in QMetaObject::metacall (object=0xc233620, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xa1c67d88) at kernel/qmetaobject.cpp:237
#30 0xb6e9f945 in QMetaCallEvent::placeMetaCall (this=0x9e7c5308, object=0xc233620) at kernel/qobject.cpp:534
#31 0xb6ea3b7f in QObject::event (this=0xc233620, e=0x9e7c5308) at kernel/qobject.cpp:1211
#32 0xb63a6414 in QApplicationPrivate::notify_helper (this=0x80871b8, receiver=0xc233620, e=0x9e7c5308) at kernel/qapplication.cpp:4445
#33 0xb63af137 in QApplication::notify (this=0xbff66d18, receiver=0xc233620, e=0x9e7c5308) at kernel/qapplication.cpp:3845
#34 0xb71806c1 in KApplication::notify (this=0xbff66d18, receiver=0xc233620, event=0x9e7c5308) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:311
#35 0x0804c00d in KDevelopApplication::notify (this=0xbff66d18, receiver=0xc233620, event=0x9e7c5308) at /usr/src/debug/kdevelop-4.2.0/app/main.cpp:90
#36 0xb6e8e5be in QCoreApplication::notifyInternal (this=0xbff66d18, receiver=0xc233620, event=0x9e7c5308) at kernel/qcoreapplication.cpp:732
#37 0xb6e9234c in sendEvent (receiver=0x0, event_type=0, data=0x805e230) at kernel/qcoreapplication.h:215
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x805e230) at kernel/qcoreapplication.cpp:1373
#39 0xb6e9249c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#40 0xb6ebcbd4 in sendPostedEvents (s=0x8092d10) at kernel/qcoreapplication.h:220
#41 postEventSourceDispatch (s=0x8092d10) at kernel/qeventdispatcher_glib.cpp:277
#42 0xb52fcb49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0xb52fd350 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0xb52fd60e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0xb6ebcd5b in QEventDispatcherGlib::processEvents (this=0x8061c18, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#46 0xb645c9aa in QGuiEventDispatcherGlib::processEvents (this=0x8061c18, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0xb6e8d89d in QEventLoop::processEvents (this=0xbff66aa4, flags=...) at kernel/qeventloop.cpp:149
#48 0xb6e8dac9 in QEventLoop::exec (this=0xbff66aa4, flags=...) at kernel/qeventloop.cpp:201
#49 0xb6e92570 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#50 0xb63a4114 in QApplication::exec () at kernel/qapplication.cpp:3719
#51 0x08053503 in main (argc=<value optimized out>, argv=) at /usr/src/debug/kdevelop-4.2.0/app/main.cpp:468

Reported using DrKonqi
Comment 1 Milian Wolff 2011-02-07 18:27:36 UTC
you are apparently mixing hand-compiled and system-wide installed kdevelop versions which can lead to all kinds of trouble, as can be seen here. remove the system wide installation.
Comment 2 Rolf Eike Beer 2011-02-07 21:23:50 UTC
These are all openSUSE packages, nothing is self compiled.
Comment 3 Milian Wolff 2011-02-08 23:10:54 UTC
Git commit b3fa71b653934948a6bb35542ae866509135cd64 by Milian Wolff.
Committed on 08/02/11 at 23:07.
Pushed by mwolff into branch 'master'.

don't crash when accessing defaultParameterForArgument if no FunctionType was associated with AbstractFunctionDeclaration

BUG: 265708

M  +2    -2    language/duchain/abstractfunctiondeclaration.cpp     

http://commits.kde.org/kdevplatform/b3fa71b653934948a6bb35542ae866509135cd64
Comment 4 Milian Wolff 2011-02-08 23:11:45 UTC
Git commit 0880be55c476fe23cb3bb5ca1ecf46f216914789 by Milian Wolff.
Committed on 08/02/11 at 23:07.
Pushed by mwolff into branch '1.2'.

backport from master: don't crash when accessing defaultParameterForArgument if no FunctionType was associated with AbstractFunctionDeclaration

BUG: 265708

M  +2    -2    language/duchain/abstractfunctiondeclaration.cpp     

http://commits.kde.org/kdevplatform/0880be55c476fe23cb3bb5ca1ecf46f216914789