[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 255824] New: crash in renameasistant due to invalid
From:       Milian Wolff <mail () milianw ! de>
Date:       2010-11-01 17:01:25
Message-ID: bug-255824-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=255824

           Summary: crash in renameasistant due to invalid view/document
                    access
           Product: kdevelop
           Version: 4.1.60
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: mail@milianw.de


Application: kdevelop (4.1.60)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.32-25-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
I closed kdevelop and this produced the crash you see below, somehow I think
during document/view close some signal was emitted and handled after view() was
destroyed.

crashing line is:

if (removedText.isEmpty() &&
!validDeclName.exactMatch(view()->document()->text(invocationRange))) {

The crash can be reproduced some of the time.

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

Thread 10 (Thread 0x7f5adc4d1710 (LWP 24181)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f5af0e67e12 in QWaitConditionPrivate::wait (this=<value optimized
out>, mutex=0xfcfeb0, time=1000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xfcfeb0,
time=1000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f5aed6a52d0 in KDevelop::DUChainPrivate::CleanupThread::run
(this=0xfcfe90) at
/home/milian/projects/kde4/kdevplatform/language/duchain/duchain.cpp:283
#4  0x00007f5af0e672ee in QThreadPrivate::start (arg=0xfcfe90) at
thread/qthread_unix.cpp:266
#5  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#6  0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f5adad77710 (LWP 24182)):
#0  0x00007f5aef22fff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f5af0f363ed in QProcessManager::run (this=0x7f5af128af40) at
io/qprocess_unix.cpp:245
#2  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x7f5af128af40) at
thread/qthread_unix.cpp:266
#3  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#4  0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f5ac8f8e710 (LWP 24486)):
#0  0x00007f5aef22af93 in *__GI___poll (fds=<value optimized out>, nfds=<value
optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5ae9a3c4a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f5ae9a3c8fc in g_main_context_iteration () from
/lib/libglib-2.0.so.0
#3  0x00007f5af0f861d6 in QEventDispatcherGlib::processEvents (this=0x2451980,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f5af0f58dd2 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f5af0f591bc in QEventLoop::exec (this=0x7f5ac8f8ddb0, flags=) at
kernel/qeventloop.cpp:201
#6  0x00007f5af0e6436d in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:490
#7  0x00007f5aed7d02fb in KDevelop::CompletionWorkerThread::run
(this=0x25ddad0) at
/home/milian/projects/kde4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80
#8  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x25ddad0) at
thread/qthread_unix.cpp:266
#9  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#10 0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f5acac96710 (LWP 24510)):
#0  0x00007f5aef22af93 in *__GI___poll (fds=<value optimized out>, nfds=<value
optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5ae9a3c4a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f5ae9a3c8fc in g_main_context_iteration () from
/lib/libglib-2.0.so.0
#3  0x00007f5af0f861d6 in QEventDispatcherGlib::processEvents (this=0x3313150,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f5af0f58dd2 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f5af0f591bc in QEventLoop::exec (this=0x7f5acac95db0, flags=) at
kernel/qeventloop.cpp:201
#6  0x00007f5af0e6436d in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:490
#7  0x00007f5aed7d02fb in KDevelop::CompletionWorkerThread::run
(this=0x33319a0) at
/home/milian/projects/kde4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80
#8  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x33319a0) at
thread/qthread_unix.cpp:266
#9  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#10 0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f5acb497710 (LWP 24511)):
#0  0x00007f5aef22af93 in *__GI___poll (fds=<value optimized out>, nfds=<value
optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5ae9a3c4a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f5ae9a3c8fc in g_main_context_iteration () from
/lib/libglib-2.0.so.0
#3  0x00007f5af0f861d6 in QEventDispatcherGlib::processEvents (this=0x3313810,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f5af0f58dd2 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f5af0f591bc in QEventLoop::exec (this=0x7f5acb496db0, flags=) at
kernel/qeventloop.cpp:201
#6  0x00007f5af0e6436d in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:490
#7  0x00007f5aed7d02fb in KDevelop::CompletionWorkerThread::run
(this=0x332baa0) at
/home/milian/projects/kde4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80
#8  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x332baa0) at
thread/qthread_unix.cpp:266
#9  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#10 0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f5abe8c0710 (LWP 24537)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5aee3b37e4 in QTWTF::TCMalloc_PageHeap::scavengerThread
(this=0x7f5aee6be160) at
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f5aee3b3819 in QTWTF::TCMalloc_PageHeap::runScavengerThread
(context=0x7f5aee6cc234) at
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#4  0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5abdb3f710 (LWP 24601)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5af0e67eab in QWaitConditionPrivate::wait (this=<value optimized
out>, mutex=0xdcd3f0, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xdcd3f0,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f5af2e9ad84 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f5af2e9df8b in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f5af2e9c4ff in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f5af2e9ca58 in ThreadWeaver::Thread::run() () from
/usr/lib/libthreadweaver.so.4
#7  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x7f5ad4d074b0) at
thread/qthread_unix.cpp:266
#8  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#9  0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5abd33e710 (LWP 24602)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5af0e67eab in QWaitConditionPrivate::wait (this=<value optimized
out>, mutex=0xdcd3f0, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xdcd3f0,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f5af2e9ad84 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f5af2e9df8b in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f5af2e9c4ff in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f5af2e9ca58 in ThreadWeaver::Thread::run() () from
/usr/lib/libthreadweaver.so.4
#7  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x7f5ad4ee7320) at
thread/qthread_unix.cpp:266
#8  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#9  0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5abcb3d710 (LWP 24603)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5af0e67eab in QWaitConditionPrivate::wait (this=<value optimized
out>, mutex=0xdcd3f0, time=18446744073709551615) at
thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xdcd3f0,
time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f5af2e9ad84 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f5af2e9df8b in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f5af2e9dfa4 in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f5af2e9c4ff in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f5af2e9ca58 in ThreadWeaver::Thread::run() () from
/usr/lib/libthreadweaver.so.4
#8  0x00007f5af0e672ee in QThreadPrivate::start (arg=0x7f5ad408d470) at
thread/qthread_unix.cpp:266
#9  0x00007f5af0bd59ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#10 0x00007f5aef23770d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5af4a9d760 (LWP 24180)):
[KCrash Handler]
#6  0x00007f5ac4504903 in Cpp::RenameAssistant::textChanged (this=0x4e44260,
invocationRange=..., removedText=...) at
/home/milian/projects/kde4/kdevelop/languages/cpp/codegen/renameassistant.cpp:133
#7  0x00007f5ac44fc37e in Cpp::StaticCodeAssistant::eventuallyStartAssistant
(this=0x7f5ac0a4b540, document=..., range=..., removedText=...)
    at
/home/milian/projects/kde4/kdevelop/languages/cpp/codegen/codeassistant.cpp:105
#8  0x00007f5ac44fd2bf in Cpp::StaticCodeAssistant::qt_metacall
(this=0x7f5ac0a4b540, _c=QMetaObject::InvokeMetaMethod, _id=9,
_a=0x7f5abadb88b0)
    at
/home/milian/projects/.build/kde4/kdevelop/languages/cpp/codeassistant.moc:104
#9  0x00007f5af0f6be7e in QObject::event (this=0x7f5ac0a4b540, e=0x4e44290) at
kernel/qobject.cpp:1219
#10 0x00007f5af00a86ec in QApplicationPrivate::notify_helper (this=0x8f94a0,
receiver=0x7f5ac0a4b540, e=0x7f5abaa08c90) at kernel/qapplication.cpp:4396
#11 0x00007f5af00ae1dd in QApplication::notify (this=0x7fff79715d00,
receiver=0x7f5ac0a4b540, e=0x7f5abaa08c90) at kernel/qapplication.cpp:4277
#12 0x00007f5af173c536 in KApplication::notify(QObject*, QEvent*) () from
/usr/lib/libkdeui.so.5
#13 0x0000000000404b8c in KDevelopApplication::notify (this=0x7fff79715d00,
receiver=0x7f5ac0a4b540, event=0x7f5abaa08c90) at
/home/milian/projects/kde4/kdevelop/app/main.cpp:87
#14 0x00007f5af0f5a0ac in QCoreApplication::notifyInternal
(this=0x7fff79715d00, receiver=0x7f5ac0a4b540, event=0x7f5abaa08c90) at
kernel/qcoreapplication.cpp:732
#15 0x00007f5af0f5cfd2 in QCoreApplication::sendEvent (receiver=0x0,
event_type=<value optimized out>, data=0x8d5910) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#16 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value
optimized out>, data=0x8d5910) at kernel/qcoreapplication.cpp:1373
#17 0x00007f5af0f86643 in QCoreApplication::sendPostedEvents (s=0x8fd040) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#18 postEventSourceDispatch (s=0x8fd040) at
kernel/qeventdispatcher_glib.cpp:277
#19 0x00007f5ae9a388c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#20 0x00007f5ae9a3c748 in ?? () from /lib/libglib-2.0.so.0
#21 0x00007f5ae9a3c8fc in g_main_context_iteration () from
/lib/libglib-2.0.so.0
#22 0x00007f5af0f86183 in QEventDispatcherGlib::processEvents (this=0x8d5060,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#23 0x00007f5af015a97e in QGuiEventDispatcherGlib::processEvents
(this=0x4e44290, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f5af0f58dd2 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#25 0x00007f5af0f591bc in QEventLoop::exec (this=0x7fff79715aa0, flags=) at
kernel/qeventloop.cpp:201
#26 0x00007f5af0f5d26b in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1009
#27 0x000000000040a8ae in main (argc=3, argv=0x7fff797177b8) at
/home/milian/projects/kde4/kdevelop/app/main.cpp:416

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic