Bug 252029 - crash in BackgroundParser::addManagedTopRange due to smartrange nullptr
Summary: crash in BackgroundParser::addManagedTopRange due to smartrange nullptr
Status: RESOLVED DUPLICATE of bug 204648
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: 4.1.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-22 12:12 UTC by iamsunilk
Modified: 2010-09-28 12:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iamsunilk 2010-09-22 12:12:35 UTC
Application: kdevelop (4.0.1 (using KDevPlatform 1.0.1))
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.32-5-686 i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
Kdevelop crashes automatically at start.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4073710 (LWP 31853))]

Thread 8 (Thread 0xb038bb70 (LWP 31854)):
#0  0xb7707424 in __kernel_vsyscall ()
#1  0xb5f6e482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb6055e64 in __pthread_cond_timedwait (cond=0x8848920, mutex=0x8848908, abstime=0xb038b2b0) at forward.c:152
#3  0xb6cf8a8f in wait (this=0x8847844, mutex=0x8847848, time=200000) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=0x8847844, mutex=0x8847848, time=200000) at thread/qwaitcondition_unix.cpp:160
#5  0xb5176745 in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#6  0xb6cf7f39 in QThreadPrivate::start (arg=0x8847838) at thread/qthread_unix.cpp:266
#7  0xb5f69955 in start_thread (arg=0xb038bb70) at pthread_create.c:300
#8  0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 7 (Thread 0xafa84b70 (LWP 31856)):
#0  0xb4cb3e16 in clock_gettime (clock_id=-1261731852, tp=0xafa83f90) at ../sysdeps/unix/clock_gettime.c:100
#1  0xb6d5348b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0xb6e29965 in QTimerInfoList::updateCurrentTime (this=0x8915fa4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6e299aa in QTimerInfoList::timerWait (this=0x8915fa4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6e27a38 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xafa840bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6e27ac5 in timerSourcePrepare (source=0x0, timeout=0xb4cb7ff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb4c257da in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb4c25bf9 in ?? () from /lib/libglib-2.0.so.0
#9  0xb4c261c8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb6e2782f in QEventDispatcherGlib::processEvents (this=0x8841080, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0xb6df7a99 in QEventLoop::processEvents (this=0xafa84290, flags=) at kernel/qeventloop.cpp:149
#12 0xb6df7f1a in QEventLoop::exec (this=0xafa84290, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6cf4c5e in QThread::exec (this=0x8921348) at thread/qthread.cpp:490
#14 0xb6dd69ab in QInotifyFileSystemWatcherEngine::run (this=0x8921348) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb6cf7f39 in QThreadPrivate::start (arg=0x8921348) at thread/qthread_unix.cpp:266
#16 0xb5f69955 in start_thread (arg=0xafa84b70) at pthread_create.c:300
#17 0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xae938b70 (LWP 31857)):
#0  0xb7707424 in __kernel_vsyscall ()
#1  0xb5f6df7f in __pthread_cond_wait (cond=0x89324d0, mutex=0x89324b8) at pthread_cond_wait.c:153
#2  0xb6055e0d in __pthread_cond_wait (cond=0x89324d0, mutex=0x89324b8) at forward.c:139
#3  0xb6cf8b07 in wait (this=0x890d8b0, mutex=0x8914988, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x890d8b0, mutex=0x8914988, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb461f890 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x890d898, th=0x892ccc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb462303c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x873a938, th=0x892ccc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb461edbb in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x890d898, th=0x892ccc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4623132 in ThreadWeaver::WorkingHardState::applyForWork (this=0x873a938, th=0x892ccc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb461fd93 in ThreadWeaver::WeaverImpl::applyForWork (this=0x890d898, th=0x892ccc0, previous=0x864c088) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb46211be in ThreadWeaver::ThreadRunHelper::run (this=0xae9382f4, parent=0x890d898, th=0x892ccc0) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb46218db in ThreadWeaver::Thread::run (this=0x892ccc0) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb6cf7f39 in QThreadPrivate::start (arg=0x892ccc0) at thread/qthread_unix.cpp:266
#13 0xb5f69955 in start_thread (arg=0xae938b70) at pthread_create.c:300
#14 0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xabdffb70 (LWP 31863)):
#0  0xb4cbae8c in ?? () from /usr/lib/libgthread-2.0.so.0
#1  0xb4c4c072 in g_thread_self () from /lib/libglib-2.0.so.0
#2  0xb4c261b3 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb6e2782f in QEventDispatcherGlib::processEvents (this=0x8c08708, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4  0xb6df7a99 in QEventLoop::processEvents (this=0xabdff290, flags=) at kernel/qeventloop.cpp:149
#5  0xb6df7f1a in QEventLoop::exec (this=0xabdff290, flags=...) at kernel/qeventloop.cpp:201
#6  0xb6cf4c5e in QThread::exec (this=0x8afd200) at thread/qthread.cpp:490
#7  0xb6dd69ab in QInotifyFileSystemWatcherEngine::run (this=0x8afd200) at io/qfilesystemwatcher_inotify.cpp:248
#8  0xb6cf7f39 in QThreadPrivate::start (arg=0x8afd200) at thread/qthread_unix.cpp:266
#9  0xb5f69955 in start_thread (arg=0xabdffb70) at pthread_create.c:300
#10 0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xab5feb70 (LWP 31884)):
#0  0xb4cb3e16 in clock_gettime (clock_id=-1261731852, tp=0xab5fdfc0) at ../sysdeps/unix/clock_gettime.c:100
#1  0xb6d5348b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0xb6e29965 in QTimerInfoList::updateCurrentTime (this=0xaa421bd4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6e299aa in QTimerInfoList::timerWait (this=0xaa421bd4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6e27a38 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xab5fe0ec) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6e27ac5 in timerSourcePrepare (source=0x0, timeout=0xb4cb7ff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb4c257da in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb4c25bf9 in ?? () from /lib/libglib-2.0.so.0
#9  0xb4c261c8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb6e2782f in QEventDispatcherGlib::processEvents (this=0xaa415ca0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0xb6df7a99 in QEventLoop::processEvents (this=0xab5fe2c0, flags=) at kernel/qeventloop.cpp:149
#12 0xb6df7f1a in QEventLoop::exec (this=0xab5fe2c0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6cf4c5e in QThread::exec (this=0x8e16480) at thread/qthread.cpp:490
#14 0xb526ede0 in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#15 0xb6cf7f39 in QThreadPrivate::start (arg=0x8e16480) at thread/qthread_unix.cpp:266
#16 0xb5f69955 in start_thread (arg=0xab5feb70) at pthread_create.c:300
#17 0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xa7d54b70 (LWP 31885)):
#0  0xb6055feb in pthread_mutex_unlock (mutex=0x8e59234) at forward.c:184
#1  0xb4c254a4 in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0xb4c25dde in ?? () from /lib/libglib-2.0.so.0
#3  0xb4c261c8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0xb6e2782f in QEventDispatcherGlib::processEvents (this=0x8af3d78, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#5  0xb6df7a99 in QEventLoop::processEvents (this=0xa7d542c0, flags=) at kernel/qeventloop.cpp:149
#6  0xb6df7f1a in QEventLoop::exec (this=0xa7d542c0, flags=...) at kernel/qeventloop.cpp:201
#7  0xb6cf4c5e in QThread::exec (this=0x8e58298) at thread/qthread.cpp:490
#8  0xb526ede0 in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#9  0xb6cf7f39 in QThreadPrivate::start (arg=0x8e58298) at thread/qthread_unix.cpp:266
#10 0xb5f69955 in start_thread (arg=0xa7d54b70) at pthread_create.c:300
#11 0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xa7553b70 (LWP 31886)):
#0  0xb7707424 in __kernel_vsyscall ()
#1  0xb5f6e482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb6055e64 in __pthread_cond_timedwait (cond=0xa7553224, mutex=0xa7553254, abstime=0xa75532a0) at forward.c:152
#3  0xb6cf747e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:416
#4  0xb6cf75d3 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:442
#5  0xa87723db in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#6  0xb6cf7f39 in QThreadPrivate::start (arg=0x8e58218) at thread/qthread_unix.cpp:266
#7  0xb5f69955 in start_thread (arg=0xa7553b70) at pthread_create.c:300
#8  0xb6048e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb4073710 (LWP 31853)):
[KCrash Handler]
#7  begin (this=0x0, watcher=0x8779ddc) at /usr/include/qt4/QtCore/qlist.h:97
#8  contains (this=0x0, watcher=0x8779ddc) at /usr/include/qt4/QtCore/qlist.h:860
#9  KTextEditor::SmartRange::addWatcher (this=0x0, watcher=0x8779ddc) at ../../../interfaces/ktexteditor/smartrange.cpp:893
#10 0xb513d729 in KDevelop::BackgroundParser::addManagedTopRange(KUrl const&, KTextEditor::SmartRange*) () from /usr/lib/libkdevplatformlanguage.so.1
#11 0xb515ba24 in KDevelop::DUChain::documentLoadedPrepare(KDevelop::IDocument*) () from /usr/lib/libkdevplatformlanguage.so.1
#12 0xb515dfd7 in KDevelop::DUChain::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformlanguage.so.1
#13 0xb6dfed4a in QMetaObject::metacall (object=0x88464b8, cl=3220881132, idx=6, argv=0x0) at kernel/qmetaobject.cpp:237
#14 0xb6e11ab5 in QMetaObject::activate (sender=0x878dcd8, m=0xb744c294, local_signal_index=9, argv=0xbffac0c8) at kernel/qobject.cpp:3280
#15 0xb7442053 in KDevelop::IDocumentController::documentLoadedPrepare(KDevelop::IDocument*) () from /usr/lib/libkdevplatforminterfaces.so.1
#16 0xb743f912 in KDevelop::IDocument::notifyLoaded() () from /usr/lib/libkdevplatforminterfaces.so.1
#17 0xb73ac4b1 in KDevelop::TextDocument::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformshell.so.1
#18 0xb6dfed4a in QMetaObject::metacall (object=0x8ee34d0, cl=3220881132, idx=6, argv=0x8e67430) at kernel/qmetaobject.cpp:237
#19 0xb6e11ab5 in QMetaObject::activate (sender=0x919a228, m=0xb732ad24, local_signal_index=5, argv=0xbffac288) at kernel/qobject.cpp:3280
#20 0xb7312003 in KTextEditor::Document::textChanged (this=0x919a228, _t1=0x919a228) at ./document.moc:177
#21 0xa67121cc in KateDocument::openFile (this=0x919a228) at ../../kate/document/katedocument.cpp:2037
#22 0xb5ca47c9 in KParts::ReadOnlyPart::openUrl (this=0x919a228, url=...) at ../../kparts/part.cpp:557
#23 0xb73ab42b in KDevelop::TextDocument::createViewWidget(QWidget*) () from /usr/lib/libkdevplatformshell.so.1
#24 0xb73aa9be in KDevelop::TextView::createWidget(QWidget*) () from /usr/lib/libkdevplatformshell.so.1
#25 0xb50b7817 in Sublime::View::widget(QWidget*) () from /usr/lib/libsublime.so.1
#26 0xb50b0a5a in ?? () from /usr/lib/libsublime.so.1
#27 0xb50b6ab9 in Sublime::Area::WalkerMode Sublime::Area::walkViewsInternal<Sublime::MainWindowPrivate::ViewCreator>(Sublime::MainWindowPrivate::ViewCreator&, Sublime::AreaIndex*) () from /usr/lib/libsublime.so.1
#28 0xb50b46eb in ?? () from /usr/lib/libsublime.so.1
#29 0xb50aa9e4 in Sublime::MainWindow::setArea(Sublime::Area*) () from /usr/lib/libsublime.so.1
#30 0xb73786fc in ?? () from /usr/lib/libkdevplatformshell.so.1
#31 0xb7378c24 in ?? () from /usr/lib/libkdevplatformshell.so.1
#32 0xb73795bc in ?? () from /usr/lib/libkdevplatformshell.so.1
#33 0xb6dfed4a in QMetaObject::metacall (object=0x8c12428, cl=3220881132, idx=141755128, argv=0x8711d80) at kernel/qmetaobject.cpp:237
#34 0xb6e0a226 in QMetaCallEvent::placeMetaCall (this=0x8c1c8d0, object=0x8c12428) at kernel/qobject.cpp:534
#35 0xb6e0bac2 in QObject::event (this=0x8c12428, e=0x0) at kernel/qobject.cpp:1219
#36 0xb62f777c in QApplicationPrivate::notify_helper (this=0x861e718, receiver=0x8c12428, e=0x8c1c8d0) at kernel/qapplication.cpp:4396
#37 0xb62fd7ce in QApplication::notify (this=0xbffad4b0, receiver=0x8c12428, e=0x8c1c8d0) at kernel/qapplication.cpp:3798
#38 0xb7116a9a in KApplication::notify (this=0xbffad4b0, receiver=0x8c12428, event=0x8c1c8d0) at ../../kdeui/kernel/kapplication.cpp:310
#39 0xb6df8feb in QCoreApplication::notifyInternal (this=0xbffad4b0, receiver=0x8c12428, event=0x8c1c8d0) at kernel/qcoreapplication.cpp:732
#40 0xb6dfc24b in sendEvent (receiver=0x0, event_type=0, data=0x85b4ee8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x85b4ee8) at kernel/qcoreapplication.cpp:1373
#42 0xb6dfc40d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#43 0xb6e27d04 in sendPostedEvents (s=0x8620b10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#44 postEventSourceDispatch (s=0x8620b10) at kernel/qeventdispatcher_glib.cpp:277
#45 0xb4c22305 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0xb4c25fe8 in ?? () from /lib/libglib-2.0.so.0
#47 0xb4c261c8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0xb6e277f5 in QEventDispatcherGlib::processEvents (this=0x85b4a00, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#49 0xb63b8de5 in QGuiEventDispatcherGlib::processEvents (this=0x85b4a00, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0xb6df7a99 in QEventLoop::processEvents (this=0xbffad364, flags=) at kernel/qeventloop.cpp:149
#51 0xb6df7f1a in QEventLoop::exec (this=0xbffad364, flags=...) at kernel/qeventloop.cpp:201
#52 0xb6dfc4cf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#53 0xb62f65a7 in QApplication::exec () at kernel/qapplication.cpp:3672
#54 0x08050290 in _start ()

This bug may be a duplicate of or related to bug 248832, bug 243265.

Possible duplicates by query: bug 248832, bug 243265, bug 235043, bug 231873, bug 230418.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-09-27 21:57:01 UTC
will look at it later, but could it be that you have kate installed from sources? i.e. the one that does not implement the smart itnerface anymore?
Comment 2 iamsunilk 2010-09-28 03:23:09 UTC
Dear Milan,
My version of kate is installed from ubuntu ppa repositary
Thanks
Sunil
On 09/28/2010 01:27 AM, Milian Wolff wrote:
>                     |                            |dTopRange due to smartrange
>
Comment 3 Milian Wolff 2010-09-28 12:38:05 UTC
ok, no assert since its a release build, so this is actually a duplicate.

If you can reproduce it at will, you should do some debugging with GDB to find out why there is not smartrange for this document...

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