Bug 269761 - KDevelop crashes when editing source file
Summary: KDevelop crashes when editing source file
Status: RESOLVED DUPLICATE of bug 275730
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-03-30 13:25 UTC by claas.koehler
Modified: 2011-06-17 23:02 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 claas.koehler 2011-03-30 13:25:28 UTC
Application: kdevelop (4.2.0)
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.1-1.2-desktop x86_64
Distribution: "openSUSE 11.4 (x86_64)"

-- Information about the crash:
- Source file of a project opened without problems
 - Adding an additional comment line to the file resulted in a crash of KDevelop
 - Restoration of the source file after the crash causes KDevelop to crash again
 - Bug is reproducible with the source file in question, but I have not yet encountered similar behaviour with any other source file

The crash can be reproduced every time.

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

Thread 10 (Thread 0x7fcff5e7e700 (LWP 23178)):
#0  0x00007fd00a9916f9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd00bf2e0b2 in wait (time=1000, this=0x18ac310) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x18a9610, time=1000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fd0083d69bb in KDevelop::DUChainPrivate::CleanupThread::run (this=0x18a95f0) at /usr/src/debug/kdevplatform-1.2.0/language/duchain/duchain.cpp:286
#4  0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x18a95f0) at thread/qthread_unix.cpp:285
#5  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#6  0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fcff477f700 (LWP 23179)):
#0  0x00007fd00ac6d503 in poll () from /lib64/libc.so.6
#1  0x00007fd00566d114 in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fd00566d650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fd00c041976 in QEventDispatcherGlib::processEvents (this=0x8a6c30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd00c016052 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd00c016265 in QEventLoop::exec (this=0x7fcff477ede0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd00bf2b1e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:490
#7  0x00007fd00bff7968 in QInotifyFileSystemWatcherEngine::run (this=0x2121260) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x2121260) at thread/qthread_unix.cpp:285
#9  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#10 0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fcfe2a90700 (LWP 23189)):
#0  0x00007fd00ac6d503 in poll () from /lib64/libc.so.6
#1  0x00007fd00566d114 in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fd00566d650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fd00c041976 in QEventDispatcherGlib::processEvents (this=0x2372eb0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd00c016052 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd00c016265 in QEventLoop::exec (this=0x7fcfe2a8fe20, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd00bf2b1e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:490
#7  0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x239e6c0) at thread/qthread_unix.cpp:285
#8  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#9  0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fcfe228f700 (LWP 23190)):
#0  0x00007fd00a98f0a4 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007fd00566d0db in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fd00566d650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fd00c041976 in QEventDispatcherGlib::processEvents (this=0x237b9a0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd00c016052 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd00c016265 in QEventLoop::exec (this=0x7fcfe228ee20, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd00bf2b1e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:490
#7  0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x2385010) at thread/qthread_unix.cpp:285
#8  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#9  0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fcfe1a8e700 (LWP 23197)):
#0  0x00007fd00a99138c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fcff6420044 in ?? () from /usr/lib64/libQtScript.so.4
#2  0x00007fcff6420079 in ?? () from /usr/lib64/libQtScript.so.4
#3  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#4  0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fcfe0cb4700 (LWP 23219)):
#0  0x00007fd00ac6d503 in poll () from /lib64/libc.so.6
#1  0x00007fd00566d114 in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fd00566d650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fd00c041976 in QEventDispatcherGlib::processEvents (this=0x30e66d0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd00c016052 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd00c016265 in QEventLoop::exec (this=0x7fcfe0cb3de0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fd00bf2b1e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:490
#7  0x00007fd00bff7968 in QInotifyFileSystemWatcherEngine::run (this=0x30e2340) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x30e2340) at thread/qthread_unix.cpp:285
#9  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#10 0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fcfe04b3700 (LWP 23231)):
#0  0x00007fd00a99138c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd00bf2e14b in wait (time=18446744073709551615, this=0x8ec2b0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x84b380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fd002dae254 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8db070, th=0x3292940) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fd002db12a5 in waitForAvailableJob (th=0x3292940, this=<optimized out>) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0x8f7f30, th=0x3292940) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007fd002db12be in ThreadWeaver::WorkingHardState::applyForWork (this=0x8f7f30, th=0x3292940) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fd002dae64f in ThreadWeaver::ThreadRunHelper::run (this=0x7fcfe04b2e30, parent=0x8db070, th=0x3292940) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:87
#8  0x00007fd002dae6d8 in ThreadWeaver::Thread::run (this=0x3292940) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#9  0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x3292940) at thread/qthread_unix.cpp:285
#10 0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#11 0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fcfdfcb2700 (LWP 23232)):
[KCrash Handler]
#6  KDevelop::DUContext::type (this=0x7fcfee1ef030) at /usr/src/debug/kdevplatform-1.2.0/language/duchain/ducontext.cpp:1171
#7  0x00007fd0084fe327 in KDevelop::CodeHighlightingInstance::typeForDeclaration (this=0x7fcfee4f16a0, dec=0x7fcfee1dc730, context=0x7fcfd881d0e0) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:371
#8  0x00007fd0084fdd25 in KDevelop::CodeHighlightingInstance::highlightUse (this=0x7fcfee4f16a0, context=0x7fcfd881d0e0, index=<optimized out>, color=...) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:438
#9  0x00007fd00850025d in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x7fcfee4f16a0, context=<optimized out>, colorsForDeclarations=..., declarationsForColors=...) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:277
#10 0x00007fd008500495 in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x7fcfee4f16a0, context=<optimized out>, colorsForDeclarations=..., declarationsForColors=...) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:290
#11 0x00007fd008500495 in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x7fcfee4f16a0, context=<optimized out>, colorsForDeclarations=..., declarationsForColors=...) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:290
#12 0x00007fd008500495 in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x7fcfee4f16a0, context=<optimized out>, colorsForDeclarations=..., declarationsForColors=...) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:290
#13 0x00007fd008501132 in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x7fcfee4f16a0, context=0x7fcfd88d0ba0) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:205
#14 0x00007fd00850145b in KDevelop::CodeHighlighting::highlightDUChain (this=0x239e660, context=...) at /usr/src/debug/kdevplatform-1.2.0/language/highlighting/codehighlighting.cpp:186
#15 0x00007fcfe326a802 in CPPInternalParseJob::run (this=<optimized out>) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/cppparsejob.cpp:730
#16 0x00007fcfe326fee7 in PreprocessJob::sourceNeeded (this=0x2d2e5d0, _fileName=<optimized out>, type=<optimized out>, sourceLine=0, skipCurrentPath=<optimized out>) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/preprocessjob.cpp:593
#17 0x00007fcfe30244e0 in rpp::pp::handle_include (this=0x7fcfdfcb08e0, skip_current_path=false, input=..., output=<optimized out>) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/parser/rpp/pp-engine.cpp:213
#18 0x00007fcfe30270eb in rpp::pp::handle_directive (this=0x7fcfdfcb08e0, directive=364068, input=..., output=...) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/parser/rpp/pp-engine.cpp:131
#19 0x00007fcfe302787f in rpp::pp::operator() (this=0x7fcfdfcb08e0, input=..., output=...) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/parser/rpp/pp-engine.cpp:266
#20 0x00007fcfe3027ab1 in rpp::pp::processFileInternal (this=0x7fcfdfcb08e0, fileName=<optimized out>, fileContents=<optimized out>, result=...) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/parser/rpp/pp-engine.cpp:98
#21 0x00007fcfe3027b55 in rpp::pp::processFile (this=<optimized out>, fileName=<optimized out>, data=<optimized out>) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/parser/rpp/pp-engine.cpp:85
#22 0x00007fcfe3272017 in PreprocessJob::run (this=0x2d2e5d0) at /usr/src/debug/kdevelop-4.2.0/languages/cpp/preprocessjob.cpp:259
#23 0x00007fd002daebd1 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7fcfdfcb1d80, th=0x328b7b0, job=0x2d2e5d0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Job.cpp:106
#24 0x00007fd002daed0e in ThreadWeaver::Job::execute (this=0x2d2e5d0, th=0x328b7b0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Job.cpp:135
#25 0x00007fd002daedd3 in ThreadWeaver::JobCollectionJobRunner::execute (this=<optimized out>, t=0x328b7b0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/JobCollection.cpp:82
#26 0x00007fd002dae61f in ThreadWeaver::ThreadRunHelper::run (this=0x7fcfdfcb1e30, parent=0x8db070, th=0x328b7b0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:95
#27 0x00007fd002dae6d8 in ThreadWeaver::Thread::run (this=0x328b7b0) at /usr/src/debug/kdelibs-4.6.0/threadweaver/Weaver/Thread.cpp:142
#28 0x00007fd00bf2da5e in QThreadPrivate::start (arg=0x328b7b0) at thread/qthread_unix.cpp:285
#29 0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#30 0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#31 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fcfdf4b1700 (LWP 23235)):
#0  0x00007fd00a99138c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd002528084 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fd00a98ca3f in start_thread () from /lib64/libpthread.so.0
#3  0x00007fd00ac7667d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd00d9ea760 (LWP 23175)):
#0  0x00007fd00a99138c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd00bf2e14b in wait (time=18446744073709551615, this=0x30e2460) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x30e6310, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fd00bf2d200 in QThread::wait (this=<optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:683
#4  0x00007fd00bfeb1d0 in QFileSystemWatcher::~QFileSystemWatcher (this=0x30e6160, __in_chrg=<optimized out>) at io/qfilesystemwatcher.cpp:440
#5  0x00007fd00bfeb2a9 in QFileSystemWatcher::~QFileSystemWatcher (this=0x30e6160, __in_chrg=<optimized out>) at io/qfilesystemwatcher.cpp:456
#6  0x00007fd00c0291d4 in QObjectPrivate::deleteChildren (this=0x30e60c0) at kernel/qobject.cpp:1949
#7  0x00007fd00c02de72 in QObject::~QObject (this=0x30ebc20, __in_chrg=<optimized out>) at kernel/qobject.cpp:945
#8  0x00007fd003aeb7a9 in Solid::Backends::Fstab::FstabWatcher::~FstabWatcher (this=0x30ebc20, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.6.0/solid/solid/backends/fstab/fstabwatcher.cpp:51
#9  0x00007fd00abd85a1 in __run_exit_handlers () from /lib64/libc.so.6
#10 0x00007fd00abd85f5 in exit () from /lib64/libc.so.6
#11 0x00007fd00b44f378 in ?? () from /usr/lib64/libQtGui.so.4
#12 0x00007fd00c744ab8 in KApplication::xioErrhandler (this=0x7fff13c82580, dpy=0x688840) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:417
#13 0x00007fd0070ff78e in _XIOError () from /usr/lib64/libX11.so.6
#14 0x00007fd0070fd03d in _XEventsQueued () from /usr/lib64/libX11.so.6
#15 0x00007fd0070ed8df in XEventsQueued () from /usr/lib64/libX11.so.6
#16 0x00007fd00b487c2c in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007fd00566c84c in g_main_context_check () from /lib64/libglib-2.0.so.0
#18 0x00007fd00566d132 in ?? () from /lib64/libglib-2.0.so.0
#19 0x00007fd00566d650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#20 0x00007fd00c04191f in QEventDispatcherGlib::processEvents (this=0x61d2e0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#21 0x00007fd00b487d8e in ?? () from /usr/lib64/libQtGui.so.4
#22 0x00007fd00c016052 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007fd00c016265 in QEventLoop::exec (this=0x7fff13c82240, flags=...) at kernel/qeventloop.cpp:201
#24 0x00007fd00c01a6ab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#25 0x000000000040b8eb in main (argc=<optimized out>, argv=0x7fff13c84478) at /usr/src/debug/kdevelop-4.2.0/app/main.cpp:468

Possible duplicates by query: bug 262718, bug 250876.

Reported using DrKonqi
Comment 1 Dmitry 2011-03-30 13:55:23 UTC
Please provide the file that causes the crash so that it can be reproduced by developers.
Comment 2 claas.koehler 2011-03-30 14:52:32 UTC
(In reply to comment #1)
> Please provide the file that causes the crash so that it can be reproduced by
> developers.
The file is part of a larger project. When editing the file in a new project, containing just this file, everything is fine. So there seems to be little gain in providing the single file.

Furthermore as additional information: I ran KDevelop under gdb, and the problem could not be reproduced anymore. Rather mysterious.
Comment 3 Milian Wolff 2011-06-17 23:02:05 UTC
new report with more info reported, marking this one as duplicate

*** This bug has been marked as a duplicate of bug 275730 ***