Bug 231993 - Crash while replase header guards
Summary: Crash while replase header guards
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 229417 235804 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-24 12:17 UTC by Maxim Prohorenko
Modified: 2010-09-08 00:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (14.27 KB, text/plain)
2010-09-06 17:55 UTC, Maxim Prohorenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Prohorenko 2010-03-24 12:17:55 UTC
Application: kdevelop (3.9.99 (using KDevPlatform 0.9.99))
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.32.9-70.fc12.x86_64 x86_64
Distribution: "Fedora release 12 (Constantine)"

-- Information about the crash:
in file 
#ifndef A_H
#define A_H

#endif // A_H
select A_ and Ctr+R replase it to B_ Next, Next and crash baybe not every time.

The crash can be reproduced some of the time.

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
162	62:	movl	(%rsp), %edi
[Current thread is 1 (Thread 0x7f6993490840 (LWP 20985))]

Thread 9 (Thread 0x7f6987fc9710 (LWP 20989)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x0000003914c71802 in wait (this=<value optimized out>, mutex=0x2d78690, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2d78690, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f6993e184fe in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2d78670) at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/duchain/duchain.cpp:286
#4  0x0000003914c709a5 in QThreadPrivate::start (arg=0x2d78670) at thread/qthread_unix.cpp:248
#5  0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f697f971710 (LWP 20991)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003914c7189b in wait (this=<value optimized out>, mutex=0x2b14310, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2b14310, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x0000003921a09f86 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x36b1d30, th=0x2d81a00) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x0000003921a0c4ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x29dc4c0, th=0x2d81a00) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x0000003921a0ae6f in ThreadWeaver::ThreadRunHelper::run (this=0x7f697f970d50, parent=0x36b1d30, th=0x2d81a00) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Thread.cpp:87
#6  0x0000003921a0b358 in ThreadWeaver::Thread::run (this=0x2d81a00) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Thread.cpp:142
#7  0x0000003914c709a5 in QThreadPrivate::start (arg=0x2d81a00) at thread/qthread_unix.cpp:248
#8  0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f696e80a710 (LWP 21100)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000391e3274f6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x391e600b20) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x000000391e327539 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x391e60ebec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f696f20b710 (LWP 21110)):
#0  0x00000039e40d51e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000391383ca0c in g_main_context_poll (context=0x7f69580009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (context=0x7f69580009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2586
#3  0x000000391383cd4a in IA__g_main_context_iteration (context=0x7f69580009b0, may_block=1) at gmain.c:2654
#4  0x0000003914d7d0b6 in QEventDispatcherGlib::processEvents (this=0x7f69580008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#5  0x0000003914d56192 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003914d5645c in QEventLoop::exec (this=0x7f696f20ad40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003914c6e8d9 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x0000003914c709a5 in QThreadPrivate::start (arg=0x43e2130) at thread/qthread_unix.cpp:248
#9  0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f6967fff710 (LWP 21111)):
#0  0x00000039e40d51e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000391383ca0c in g_main_context_poll (context=0x7f69680009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (context=0x7f69680009b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2586
#3  0x000000391383cd4a in IA__g_main_context_iteration (context=0x7f69680009b0, may_block=1) at gmain.c:2654
#4  0x0000003914d7d0b6 in QEventDispatcherGlib::processEvents (this=0x7f6968002040, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#5  0x0000003914d56192 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003914d5645c in QEventLoop::exec (this=0x7f6967ffed40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003914c6e8d9 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x0000003914c709a5 in QThreadPrivate::start (arg=0x43f1350) at thread/qthread_unix.cpp:248
#9  0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f69675fe710 (LWP 21112)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x0000003914c70315 in thread_sleep (ti=0x7f69675fdd00) at thread/qthread_unix.cpp:398
#2  0x0000003914c70480 in QThread::msleep (msecs=141967000) at thread/qthread_unix.cpp:424
#3  0x00007f696c885391 in UIBlockTester::UIBlockTesterThread::run (this=0x43f1f40) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/cpplanguagesupport.cpp:672
#4  0x0000003914c709a5 in QThreadPrivate::start (arg=0x43f1f40) at thread/qthread_unix.cpp:248
#5  0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f6965d28710 (LWP 21132)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003914c7189b in wait (this=<value optimized out>, mutex=0x2c6cd10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2c6cd10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x0000003921a09f86 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2c6e3e0, th=0x4edc580) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x0000003921a0c4ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x2c6cae0, th=0x4edc580) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x0000003921a0c4c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2c6cae0, th=0x4edc580) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x0000003921a0c4c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2c6cae0, th=0x4edc580) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x0000003921a0ae6f in ThreadWeaver::ThreadRunHelper::run (this=0x7f6965d27d50, parent=0x2c6e3e0, th=0x4edc580) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Thread.cpp:87
#8  0x0000003921a0b358 in ThreadWeaver::Thread::run (this=0x4edc580) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Thread.cpp:142
#9  0x0000003914c709a5 in QThreadPrivate::start (arg=0x4edc580) at thread/qthread_unix.cpp:248
#10 0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#11 0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6965327710 (LWP 21133)):
[KCrash Handler]
#5  0x00000000ffff00ff in ?? ()
#6  0x0000003920828aaa in KTextEditor::SmartRange::setParentRange (this=0x7f69509bdf40, r=0x84c5c70) at /usr/src/debug/kdelibs-4.4.1/interfaces/ktexteditor/smartrange.cpp:615
#7  0x00007f6993ddf653 in KDevelop::EditorIntegrator::releaseRange (range=0x8686930) at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/editor/editorintegrator.cpp:372
#8  0x00007f6993ddd320 in KDevelop::DocumentRangeObject::~DocumentRangeObject (this=0x84c3b50, __in_chrg=<value optimized out>)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/editor/documentrangeobject.cpp:153
#9  0x00007f6993e25a25 in KDevelop::DUContext::~DUContext (this=0x84c3b50, __in_chrg=<value optimized out>) at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/duchain/ducontext.cpp:634
#10 0x00007f696c375e9c in ~CppDUContext (this=0x84c3b50, __in_chrg=<value optimized out>) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/cppduchain/cppducontext.h:703
#11 Cpp::CppDUContext<KDevelop::DUContext>::~CppDUContext (this=0x84c3b50, __in_chrg=<value optimized out>)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/cppduchain/cppducontext.h:704
#12 0x00007f6993e1d5fd in KDevelop::DUContext::cleanIfNotEncountered (this=0x84c8e20, encountered=...) at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/duchain/ducontext.cpp:1656
#13 0x00007f696c379c06 in KDevelop::AbstractContextBuilder<AST, NameAST>::closeContext (this=0x7f6965323a20)
    at /home/maxim/src/KDE4/all-for-kdevelop/build.rel/install/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:598
#14 0x00007f696c3a7744 in KDevelop::AbstractTypeBuilder<AST, NameAST, ContextBuilder>::supportBuild(AST*, KDevelop::DUContext*) ()
   from /home/maxim/src/KDE4/all-for-kdevelop/build.rel/install/lib64/libkdev4cppduchain.so
#15 0x00007f696c3714cb in ContextBuilder::buildContexts (this=<value optimized out>, file=<value optimized out>, node=<value optimized out>, includes=<value optimized out>, 
    updateContext=<value optimized out>, removeOldImports=false) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:489
#16 0x00007f696c37e685 in DeclarationBuilder::buildDeclarations (this=<value optimized out>, file=<value optimized out>, node=<value optimized out>, includes=<value optimized out>, 
    updateContext=<value optimized out>, removeOldImports=false) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/cppduchain/declarationbuilder.cpp:100
#17 0x00007f696c894359 in CPPInternalParseJob::run (this=0x7f6950991820) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/cppparsejob.cpp:662
#18 0x00007f696c89b3a4 in PreprocessJob::sourceNeeded (this=0x7a610a0, _fileName=<value optimized out>, type=<value optimized out>, sourceLine=<value optimized out>, 
    skipCurrentPath=<value optimized out>) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/preprocessjob.cpp:580
#19 0x00007f696c64b3ba in rpp::pp::handle_include (this=0x7f69653257c0, skip_current_path=<value optimized out>, input=..., output=<value optimized out>)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:193
#20 0x00007f696c64e075 in rpp::pp::handle_directive (this=0x7f69653257c0, directive=77552, input=..., output=...)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:131
#21 0x00007f696c64e5c1 in rpp::pp::operator() (this=0x7f69653257c0, input=..., output=...) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:246
#22 0x00007f696c64e7d3 in rpp::pp::processFileInternal (this=0x7f69653257c0, fileName=<value optimized out>, fileContents=..., result=...)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:98
#23 0x00007f696c64e875 in rpp::pp::processFile (this=0x7f69548a3ba0, fileName=..., data=...) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:85
#24 0x00007f696c89cfd5 in PreprocessJob::run (this=0x7a610a0) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/languages/cpp/preprocessjob.cpp:238
#25 0x0000003921a0b9bd in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f6965326ca0, th=0x4dac0f0, job=0x7a610a0) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Job.cpp:106
#26 0x0000003921a0bcbe in ThreadWeaver::Job::execute (this=0x7a610a0, th=0x4dac0f0) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Job.cpp:135
#27 0x0000003921a0cdb3 in ThreadWeaver::JobCollectionJobRunner::execute (this=0x89df260, t=0x4dac0f0) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/JobCollection.cpp:82
#28 0x0000003921a0ae3f in ThreadWeaver::ThreadRunHelper::run (this=0x7f6965326d50, parent=0x2c6e3e0, th=0x4dac0f0) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Thread.cpp:95
#29 0x0000003921a0b358 in ThreadWeaver::Thread::run (this=0x4dac0f0) at /usr/src/debug/kdelibs-4.4.1/threadweaver/Weaver/Thread.cpp:142
#30 0x0000003914c709a5 in QThreadPrivate::start (arg=0x4dac0f0) at thread/qthread_unix.cpp:248
#31 0x00000039e4c06a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#32 0x00000039e40de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#33 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6993490840 (LWP 20985)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003914c70193 in QMutexPrivate::wait (this=0x78e54c0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x0000003914c6cb35 in QMutex::lock (this=0x7fc1a70) at thread/qmutex.cpp:167
#3  0x00007f6966918e63 in relock (this=0x8684500, changed=true, viewLinesScrolled=0) at /usr/include/QtCore/qmutex.h:120
#4  QMutexLocker (this=0x8684500, changed=true, viewLinesScrolled=0) at /usr/include/QtCore/qmutex.h:102
#5  KateViewInternal::updateView (this=0x8684500, changed=true, viewLinesScrolled=0) at /usr/src/debug/kdelibs-4.4.1/kate/view/kateviewinternal.cpp:571
#6  0x00007f6966920c02 in KateViewInternal::qt_metacall (this=0x8684500, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7f6950673740)
    at /usr/src/debug/kdelibs-4.4.1/x86_64-redhat-linux-gnu/kate/kateviewinternal.moc:130
#7  0x0000003914d66921 in QObject::event (this=0x8684500, e=0x7f69503462a0) at kernel/qobject.cpp:1248
#8  0x00000039153f51af in QWidget::event (this=0x8684500, event=0x7f69503462a0) at kernel/qwidget.cpp:8455
#9  0x00000039153aa9dc in QApplicationPrivate::notify_helper (this=0x253b9a0, receiver=0x8684500, e=0x7f69503462a0) at kernel/qapplication.cpp:4300
#10 0x00000039153b0aab in QApplication::notify (this=<value optimized out>, receiver=0x8684500, e=0x7f69503462a0) at kernel/qapplication.cpp:4183
#11 0x0000003918806846 in KApplication::notify (this=0x7fffe3229010, receiver=0x8684500, event=0x7f69503462a0) at /usr/src/debug/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302
#12 0x0000003914d5774c in QCoreApplication::notifyInternal (this=0x7fffe3229010, receiver=0x8684500, event=0x7f69503462a0) at kernel/qcoreapplication.cpp:704
#13 0x0000003914d58497 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x20e20d0) at kernel/qcoreapplication.h:215
#14 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x20e20d0) at kernel/qcoreapplication.cpp:1345
#15 0x0000003914d7d523 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#16 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#17 0x000000391383923e in g_main_dispatch (context=0x253e520) at gmain.c:1960
#18 IA__g_main_context_dispatch (context=0x253e520) at gmain.c:2513
#19 0x000000391383cc28 in g_main_context_iterate (context=0x253e520, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#20 0x000000391383cd4a in IA__g_main_context_iteration (context=0x253e520, may_block=1) at gmain.c:2654
#21 0x0000003914d7d063 in QEventDispatcherGlib::processEvents (this=0x20e1850, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#22 0x0000003915449a4e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#23 0x0000003914d56192 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#24 0x0000003914d5645c in QEventLoop::exec (this=0x7fffe3228e60, flags=...) at kernel/qeventloop.cpp:201
#25 0x0000003914d58749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#26 0x000000000040825f in main (argc=<value optimized out>, argv=<value optimized out>) at /home/maxim/src/KDE4/all-for-kdevelop/kdevelop/app/main_internal.cpp:222

Possible duplicates by query: bug 229417, bug 227241, bug 227009.

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-03-24 14:07:48 UTC
*** Bug 229417 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Pakulat 2010-03-24 14:10:19 UTC
I've done this a couple of times now here and can't reproduce this. Maybe this is specific to 64bit systems.
Comment 3 Maxim Prohorenko 2010-03-24 16:38:30 UTC
build from svn 24 march, this is not first crash when i replace guards in header, but can not reproduce it every time.
Comment 4 Milian Wolff 2010-03-24 17:11:20 UTC
is your header big, or does it include lots of other files? I assume that the background parser is active while you change something in it which triggers the crash - but this is just a guess.

@apaku: did you try with a small test header or with a real (big) header?
Comment 5 Andreas Pakulat 2010-03-24 17:36:56 UTC
Small test header only, but as is visible from the dupe I closed shortly before there are at least two or three other ways of triggering it and one thing all reports have in common is a 64bit system. As I never had such a crash as far as I can remember and I only run 32bit systems that seemed like a plausible explanation.
Comment 6 Maxim Prohorenko 2010-03-24 18:15:45 UTC
Edit small file from real project, but include other not small generated headers.
Comment 7 David Nolden 2010-04-18 13:12:08 UTC
Will probably be fixed for KDevelop 4.1 using the foreground lock.
Comment 8 Jonathan Thomas 2010-04-30 15:01:25 UTC
*** Bug 235804 has been marked as a duplicate of this bug. ***
Comment 9 Milian Wolff 2010-08-18 17:39:17 UTC
works for me. Please try again with update Kate as there was a bug in it that left a dangling pointer in a smart range watcher list.
Comment 10 Maxim Prohorenko 2010-09-06 17:55:03 UTC
Created attachment 51367 [details]
New crash information added by DrKonqi

kdevelop (4.1.60) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.6.3

"save file as" for existing header to new file and edit guards - crash.

-- Backtrace (Reduced):
#7  0x00007fa8e05caa81 in Kate::TextHistory::transformCursor(int&, int&, KTextEditor::MovingCursor::InsertBehavior, long long, long long) () from /usr/lib64/libkatepartinterfaces.so.4
#8  0x00007fa8fe8c5dda in KDevelop::DocumentChangeTracker::transformBetweenRevisions (this=0xa3aea90, cursor=..., fromRevision=-1, toRevision=4, behavior=KTextEditor::MovingCursor::StayOnInsert)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/backgroundparser/documentchangetracker.cpp:296
#9  0x00007fa8fe8c5e56 in KDevelop::DocumentChangeTracker::transformToRevision (this=<value optimized out>, cursor=<value optimized out>, toRevision=<value optimized out>, 
    behavior=<value optimized out>) at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/backgroundparser/documentchangetracker.cpp:309
#10 0x00007fa8fe92bddf in KDevelop::DUChainBase::transformToLocalRevision (this=<value optimized out>, cursor=...)
    at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/duchain/duchainbase.cpp:184
#11 0x00007fa8fe94f86c in KDevelop::DUChainUtils::declarationInLine (_cursor=..., ctx=0x7fa8c17587f0) at /home/maxim/src/KDE4/all-for-kdevelop/kdevplatform/language/duchain/duchainutils.cpp:323
Comment 11 David Nolden 2010-09-08 00:56:25 UTC
Unfortunately, the current master version of KDevelop does not work with KDE 4.5.1. It requires what will become KDE 4.5.2, or KDE 4.6. That's the reason for the crash.