Bug 326434 - KDevelop crashes after pressing interrupt and gdb complains about missing source file
Summary: KDevelop crashes after pressing interrupt and gdb complains about missing sou...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: 4.5.60
Platform: Ubuntu Linux
: VHI crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-10-22 10:51 UTC by Andreas Roth
Modified: 2013-11-04 22:55 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 Andreas Roth 2013-10-22 10:51:21 UTC
Application: kdevelop (4.5.60)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.8.0-31-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:
- was running my application in the debugger
- application was running and i press interrupt to see where the application is burning the CPU
- error message box appears complaining about unable to read file:
/build/buildd/eglibc-2.17/sysdeps/unix/syscall-template.S
- kdevelop stays alive while box is open
- close message box and kdevelop crashes

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f0e7ca2d7c0 (LWP 9531))]

Thread 14 (Thread 0x7f0e5f3a7700 (LWP 9532)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e7593eb27 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f0e75c4c660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f0e7593eb59 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f0e78537f8e in start_thread (arg=0x7f0e5f3a7700) at pthread_create.c:311
#4  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 13 (Thread 0x7f0e5df2f700 (LWP 9533)):
#0  0x00007f0e7853a075 in __GI___pthread_mutex_lock (mutex=0x7f0dd0000a80) at pthread_mutex_lock.c:95
#1  0x00007f0e735a05c1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0e7356090b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0e735610fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0dd00008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0e5df2ed90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0e5df2ed90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f0e7a4e1410 in QThread::exec (this=this@entry=0x141e9e0) at thread/qthread.cpp:542
#9  0x00007f0e7a5c0edf in QInotifyFileSystemWatcherEngine::run (this=0x141e9e0) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x141e9e0) at thread/qthread_unix.cpp:338
#11 0x00007f0e78537f8e in start_thread (arg=0x7f0e5df2f700) at pthread_create.c:311
#12 0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 12 (Thread 0x7f0e5d01e700 (LWP 9535)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f0e7a4e40a7 in wait (time=1000, this=0x29568d0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=this@entry=0x2955958, mutex=mutex@entry=0x2955960, time=time@entry=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0e765dbfa2 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2955940) at ../../language/duchain/duchain.cpp:285
#4  0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x2955940) at thread/qthread_unix.cpp:338
#5  0x00007f0e78537f8e in start_thread (arg=0x7f0e5d01e700) at pthread_create.c:311
#6  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 11 (Thread 0x7f0dcd337700 (LWP 9537)):
#0  0x00007f0e791cdfbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f0e735611dc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0dc40008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0dcd336dc0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0dcd336dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0e7a4e1410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x32f17b8) at thread/qthread_unix.cpp:338
#8  0x00007f0e78537f8e in start_thread (arg=0x7f0dcd337700) at pthread_create.c:311
#9  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 10 (Thread 0x7f0dc121f700 (LWP 9540)):
#0  __lll_unlock_wake () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:371
#1  0x00007f0e7853b119 in _L_unlock_571 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f0e7853b085 in __pthread_mutex_unlock_usercnt (mutex=0x7f0e6b2589a0, decr=<optimized out>) at pthread_mutex_unlock.c:52
#3  0x00007f0e6afeb79a in ?? () from /usr/lib/nvidia-325/libGL.so.1
#4  0x00007f0e6afef768 in ?? () from /usr/lib/nvidia-325/libGL.so.1
#5  0x00007f0e6a231e1b in ?? () from /usr/lib/nvidia-325/tls/libnvidia-tls.so.325.15
#6  0x00007f0e7359f6cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f0e73560d3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f0e73561175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0db80008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0dc121edc0, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0dc121edc0, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f0e7a4e1410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#14 0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x36efc90) at thread/qthread_unix.cpp:338
#15 0x00007f0e78537f8e in start_thread (arg=0x7f0dc121f700) at pthread_create.c:311
#16 0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 9 (Thread 0x7f0dc0a1e700 (LWP 9541)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f0e7853a197 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f0e7853a029 in __GI___pthread_mutex_lock (mutex=0x7f0e6b2589a0) at pthread_mutex_lock.c:85
#3  0x00007f0e6afe9b8c in ?? () from /usr/lib/nvidia-325/libGL.so.1
#4  0x00007f0e6afef350 in ?? () from /usr/lib/nvidia-325/libGL.so.1
#5  0x00007f0e6afef70b in ?? () from /usr/lib/nvidia-325/libGL.so.1
#6  0x00007f0e6a231e80 in ?? () from /usr/lib/nvidia-325/tls/libnvidia-tls.so.325.15
#7  0x00007f0e7359f6cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f0e73560d3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f0e73561175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0db00008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0dc0a1ddc0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0dc0a1ddc0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f0e7a4e1410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x367e130) at thread/qthread_unix.cpp:338
#16 0x00007f0e78537f8e in start_thread (arg=0x7f0dc0a1e700) at pthread_create.c:311
#17 0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7f0dabfff700 (LWP 9607)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f0e7853a197 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f0e7853a029 in __GI___pthread_mutex_lock (mutex=0x7f0e6b2589a0) at pthread_mutex_lock.c:85
#3  0x00007f0e6afe9b8c in ?? () from /usr/lib/nvidia-325/libGL.so.1
#4  0x00007f0e6afef350 in ?? () from /usr/lib/nvidia-325/libGL.so.1
#5  0x00007f0e6afef768 in ?? () from /usr/lib/nvidia-325/libGL.so.1
#6  0x00007f0e6a231e1b in ?? () from /usr/lib/nvidia-325/tls/libnvidia-tls.so.325.15
#7  0x00007f0e7359f6cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f0e73560d3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f0e73561175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0da4444fe0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0dabffed90, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0dabffed90, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f0e7a4e1410 in QThread::exec (this=this@entry=0x769d6d0) at thread/qthread.cpp:542
#15 0x00007f0e7a5c0edf in QInotifyFileSystemWatcherEngine::run (this=0x769d6d0) at io/qfilesystemwatcher_inotify.cpp:256
#16 0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x769d6d0) at thread/qthread_unix.cpp:338
#17 0x00007f0e78537f8e in start_thread (arg=0x7f0dabfff700) at pthread_create.c:311
#18 0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7f0db4db7700 (LWP 9612)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e7a4e414b in wait (time=18446744073709551615, this=0x1a352d0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1a351a8, mutex=0x1a35450, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0e7104a0e1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1a35180, th=0x4dc8f00) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007f0e7104c9cb in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a35520, th=0x4dc8f00, previous=0x0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007f0e7104c9e4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a35520, th=0x4dc8f00, previous=0x8f977a0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f0e7104b71f in ThreadWeaver::Thread::run (this=0x4dc8f00) at ../../../threadweaver/Weaver/Thread.cpp:98
#7  0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x4dc8f00) at thread/qthread_unix.cpp:338
#8  0x00007f0e78537f8e in start_thread (arg=0x7f0db4db7700) at pthread_create.c:311
#9  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7f0dab7fe700 (LWP 9613)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e7a4e414b in wait (time=18446744073709551615, this=0x1a352d0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1a351a8, mutex=0x1a35450, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0e7104a0e1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1a35180, th=0x7f0dac021fc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007f0e7104c9cb in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a35520, th=0x7f0dac021fc0, previous=0x8fdb9d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007f0e7104b71f in ThreadWeaver::Thread::run (this=0x7f0dac021fc0) at ../../../threadweaver/Weaver/Thread.cpp:98
#6  0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x7f0dac021fc0) at thread/qthread_unix.cpp:338
#7  0x00007f0e78537f8e in start_thread (arg=0x7f0dab7fe700) at pthread_create.c:311
#8  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7f0daaffd700 (LWP 9619)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e7032d585 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f0e7032d5d9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f0e78537f8e in start_thread (arg=0x7f0daaffd700) at pthread_create.c:311
#4  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f0daa7fc700 (LWP 9620)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e70073a09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f0e7035bcee in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f0e78537f8e in start_thread (arg=0x7f0daa7fc700) at pthread_create.c:311
#4  0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f0da9ffb700 (LWP 9621)):
#0  __lll_unlock_wake () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:371
#1  0x00007f0e7853b119 in _L_unlock_571 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f0e7853b085 in __pthread_mutex_unlock_usercnt (mutex=0x7f0e6b2589a0, decr=<optimized out>) at pthread_mutex_unlock.c:52
#3  0x00007f0e6afeb79a in ?? () from /usr/lib/nvidia-325/libGL.so.1
#4  0x00007f0e6afef70b in ?? () from /usr/lib/nvidia-325/libGL.so.1
#5  0x00007f0e6a231e80 in ?? () from /usr/lib/nvidia-325/tls/libnvidia-tls.so.325.15
#6  0x00007f0e7359f6cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f0e73560d3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f0e73561175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0d4c0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0da9ffad90, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0da9ffad90, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f0e7a4e1410 in QThread::exec (this=this@entry=0x15625c0) at thread/qthread.cpp:542
#14 0x00007f0e7a5c0edf in QInotifyFileSystemWatcherEngine::run (this=0x15625c0) at io/qfilesystemwatcher_inotify.cpp:256
#15 0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x15625c0) at thread/qthread_unix.cpp:338
#16 0x00007f0e78537f8e in start_thread (arg=0x7f0da9ffb700) at pthread_create.c:311
#17 0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f0da8ff9700 (LWP 9623)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f0e7853a197 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f0e7853a029 in __GI___pthread_mutex_lock (mutex=0x7f0e6b2589a0) at pthread_mutex_lock.c:85
#3  0x00007f0e6afe9b8c in ?? () from /usr/lib/nvidia-325/libGL.so.1
#4  0x00007f0e6afef350 in ?? () from /usr/lib/nvidia-325/libGL.so.1
#5  0x00007f0e6afef70b in ?? () from /usr/lib/nvidia-325/libGL.so.1
#6  0x00007f0e6a231e80 in ?? () from /usr/lib/nvidia-325/tls/libnvidia-tls.so.325.15
#7  0x00007f0e7359f6cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f0e73560d3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f0e73561175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f0e7a60f036 in QEventDispatcherGlib::processEvents (this=0x7f0d440008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7f0da8ff8dc0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7f0da8ff8dc0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f0e7a4e1410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f0e7a4e3bec in QThreadPrivate::start (arg=0x1528e40) at thread/qthread_unix.cpp:338
#16 0x00007f0e78537f8e in start_thread (arg=0x7f0da8ff9700) at pthread_create.c:311
#17 0x00007f0e791daa0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f0e7ca2d7c0 (LWP 9531)):
[KCrash Handler]
#6  0x00007f0e56d0116b in Kasten2::ByteArrayView::init() () from /usr/lib/libkasten2okteta1gui.so.1
#7  0x00007f0e56d01448 in Kasten2::ByteArrayView::ByteArrayView(Kasten2::ByteArrayDocument*, Kasten2::ByteArrayViewProfileSynchronizer*) () from /usr/lib/libkasten2okteta1gui.so.1
#8  0x00007f0e5714b9f5 in KDevelop::OktetaView::OktetaView (this=0x8e6faa0, document=<optimized out>, viewProfileSynchronizer=0x8f2bbe0) at ../../../utils/okteta/oktetaview.cpp:39
#9  0x00007f0e5714b1ce in KDevelop::OktetaDocument::newView (this=0x8f6dc10, document=<optimized out>) at ../../../utils/okteta/oktetadocument.cpp:271
#10 0x00007f0e7b231685 in Sublime::Document::createView (this=this@entry=0x8f6dc10) at ../../sublime/document.cpp:79
#11 0x00007f0e7bef8b42 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=this@entry=0x1a28f30, doc=doc@entry=0x8f6dc30, range=..., activationParams=..., buddy=buddy@entry=0x0) at ../../shell/documentcontroller.cpp:385
#12 0x00007f0e7bef9d1c in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x1a28f30, inputUrl=..., prefName=..., range=..., encoding=..., activationParams=..., buddy=buddy@entry=0x0) at ../../shell/documentcontroller.cpp:326
#13 0x00007f0e7bef6938 in KDevelop::DocumentController::openDocument (this=0x1537680, inputUrl=..., range=..., activationParams=..., encoding=..., buddy=0x0) at ../../shell/documentcontroller.cpp:722
#14 0x00007f0e7c19752c in KDevelop::IDocumentController::openDocument (this=0x1537680, url=..., cursor=..., activationParams=..., encoding=...) at ../../interfaces/idocumentcontroller.cpp:33
#15 0x00007f0e7bf2d15a in KDevelop::DebugController::showStepInSource (this=<optimized out>, url=..., lineNum=80) at ../../shell/debugcontroller.cpp:354
#16 0x00007f0e7a5f50ef in QMetaObject::activate (sender=sender@entry=0x4653c10, m=m@entry=0x7f0e762f9e40 <KDevelop::IDebugSession::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffff2010c70) at kernel/qobject.cpp:3539
#17 0x00007f0e760d661b in KDevelop::IDebugSession::showStepInSource (this=this@entry=0x4653c10, _t1=..., _t2=_t2@entry=80, _t3=...) at ./idebugsession.moc:167
#18 0x00007f0e760d6a54 in KDevelop::IDebugSession::setCurrentPosition (this=this@entry=0x4653c10, url=..., line=line@entry=80, addr=...) at ../../debugger/interfaces/idebugsession.cpp:110
#19 0x00007f0dd52318a3 in GDBDebugger::DebugSession::slotProgramStopped (this=0x4653c10, r=...) at ../../../debuggers/gdb/debugsession.cpp:769
#20 0x00007f0dd523784e in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./debugsession.moc:169
#21 GDBDebugger::DebugSession::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./debugsession.moc:128
#22 0x00007f0e7a5f50ef in QMetaObject::activate (sender=sender@entry=0x9810370, m=m@entry=0x7f0dd547d3e0 <GDBDebugger::GDB::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffff2011250) at kernel/qobject.cpp:3539
#23 0x00007f0dd52028b5 in GDBDebugger::GDB::programStopped (this=this@entry=0x9810370, _t1=...) at moc_gdb.cpp:152
#24 0x00007f0dd52046cf in GDBDebugger::GDB::processLine (this=this@entry=0x9810370, line=...) at ../../../debuggers/gdb/gdb.cpp:268
#25 0x00007f0dd520500f in GDBDebugger::GDB::readyReadStandardOutput (this=0x9810370) at ../../../debuggers/gdb/gdb.cpp:189
#26 0x00007f0e7a5f50ef in QMetaObject::activate (sender=sender@entry=0x981d3c0, m=m@entry=0x7f0e7a937880 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#27 0x00007f0e7a576493 in QProcess::readyReadStandardOutput (this=this@entry=0x981d3c0) at .moc/release-shared/moc_qprocess.cpp:176
#28 0x00007f0e7a579c58 in QProcessPrivate::_q_canReadStandardOutput (this=0x981d5b0) at io/qprocess.cpp:915
#29 0x00007f0e7a57a34e in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qprocess.cpp:84
#30 QProcess::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qprocess.cpp:69
#31 0x00007f0e7a5f50ef in QMetaObject::activate (sender=sender@entry=0x981d210, m=m@entry=0x7f0e7a93b980 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffff2011760) at kernel/qobject.cpp:3539
#32 0x00007f0e7a640d2e in QSocketNotifier::activated (this=this@entry=0x981d210, _t1=70) at .moc/release-shared/moc_qsocketnotifier.cpp:103
#33 0x00007f0e7a5fdb0b in QSocketNotifier::event (this=0x981d210, e=0x7ffff2011d80) at kernel/qsocketnotifier.cpp:317
#34 0x00007f0e799838ec in QApplicationPrivate::notify_helper (this=this@entry=0x11e8470, receiver=receiver@entry=0x981d210, e=e@entry=0x7ffff2011d80) at kernel/qapplication.cpp:4567
#35 0x00007f0e7998625b in QApplication::notify (this=this@entry=0x7ffff20124d0, receiver=receiver@entry=0x981d210, e=e@entry=0x7ffff2011d80) at kernel/qapplication.cpp:4428
#36 0x00007f0e7ade89b6 in KApplication::notify (this=0x7ffff20124d0, receiver=0x981d210, event=0x7ffff2011d80) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007f0e7a5e063e in QCoreApplication::notifyInternal (this=0x7ffff20124d0, receiver=0x981d210, event=event@entry=0x7ffff2011d80) at kernel/qcoreapplication.cpp:946
#38 0x00007f0e7a60f5c8 in sendEvent (event=0x7ffff2011d80, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 socketNotifierSourceDispatch (source=0x11e86b0) at kernel/qeventdispatcher_glib.cpp:110
#40 0x00007f0e73560f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f0e73561248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f0e73561304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f0e7a60f016 in QEventDispatcherGlib::processEvents (this=0x113ad80, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#44 0x00007f0e79a2913e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007f0e7a5df38f in QEventLoop::processEvents (this=this@entry=0x7ffff2011fc0, flags=...) at kernel/qeventloop.cpp:149
#46 0x00007f0e7a5df618 in QEventLoop::exec (this=this@entry=0x7ffff2011fc0, flags=...) at kernel/qeventloop.cpp:204
#47 0x00007f0e7a5e4cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#48 0x00007f0e79981ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#49 0x000000000040fbb0 in main (argc=<optimized out>, argv=<optimized out>) at ../../app/main.cpp:566

Reported using DrKonqi
Comment 1 Andreas Roth 2013-10-22 10:52:33 UTC
I using the daily packages from my PPA (https://launchpad.net/~aroth/+archive/ppa).
kdevelop                              4:4.5.60~0.1~git20131022+r16781-0daily7~ubuntu13.04.1
kdevplatform7-libs                    1.5.60~0.1~git20131021+r7082-0daily7~ubuntu13.04.1
Comment 2 Andreas Roth 2013-10-22 11:20:20 UTC
I installed the source of libc (apt-get source libc6) and moved/copied the eglibc-2.17 directory to /build/buildd. Afterwards the message box does not appear anymore and kdevelop does not crash.

It seems like kdevelop is trying to open the source file for the location where the current thread is running.
Comment 3 Milian Wolff 2013-10-22 11:29:58 UTC
Crash is inside Okteta plugin.
Comment 4 Friedrich W. H. Kossebau 2013-10-22 11:42:20 UTC
Curious why KDevelop decides to open that file with the Okteta plugin, expect the problem still outside of Okteta ;)

Andreas, to make sure, could you please also add the debug info for the Okteta (libs), so the backtrace into the Okteta sources has some more info, and then reproduce it once more and add the backtrace here again?
Comment 5 Andreas Roth 2013-10-23 07:54:18 UTC
Here the crash dump as requested (I post only the backtrace of the crashing thead):

Thread 1 (Thread 0x7ffd694097c0 (LWP 3838)):
[KCrash Handler]
#6  0x00007ffcbb79916b in Kasten2::ByteArrayView::init (this=this@entry=0x7702c20) at ../../../kasten/gui/view/bytearrayview.cpp:107
#7  0x00007ffcbb799448 in Kasten2::ByteArrayView::ByteArrayView (this=0x7702c20, document=0x0, synchronizer=0x768edc0) at ../../../kasten/gui/view/bytearrayview.cpp:45
#8  0x00007ffcbbbe39f5 in KDevelop::OktetaView::OktetaView (this=0x4a6f650, document=<optimized out>, viewProfileSynchronizer=0x768edc0) at ../../../utils/okteta/oktetaview.cpp:39
#9  0x00007ffcbbbe31ce in KDevelop::OktetaDocument::newView (this=0x61f8d40, document=<optimized out>) at ../../../utils/okteta/oktetadocument.cpp:271
#10 0x00007ffd67c09685 in Sublime::Document::createView (this=this@entry=0x61f8d40) at ../../sublime/document.cpp:79
#11 0x00007ffd688d0b42 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=this@entry=0x12df3d0, doc=doc@entry=0x61f8d60, range=..., activationParams=..., buddy=buddy@entry=0x0) at ../../shell/documentcontroller.cpp:385
#12 0x00007ffd688d1d1c in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x12df3d0, inputUrl=..., prefName=..., range=..., encoding=..., activationParams=..., buddy=buddy@entry=0x0) at ../../shell/documentcontroller.cpp:326
#13 0x00007ffd688ce938 in KDevelop::DocumentController::openDocument (this=0x12dce50, inputUrl=..., range=..., activationParams=..., encoding=..., buddy=0x0) at ../../shell/documentcontroller.cpp:722
#14 0x00007ffd68b6f52c in KDevelop::IDocumentController::openDocument (this=0x12dce50, url=..., cursor=..., activationParams=..., encoding=...) at ../../interfaces/idocumentcontroller.cpp:33
#15 0x00007ffd6890515a in KDevelop::DebugController::showStepInSource (this=<optimized out>, url=..., lineNum=80) at ../../shell/debugcontroller.cpp:354
#16 0x00007ffd66fcd0ef in QMetaObject::activate (sender=sender@entry=0x76d7e40, m=m@entry=0x7ffd62cd1e40 <KDevelop::IDebugSession::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff7197d370) at kernel/qobject.cpp:3539
#17 0x00007ffd62aae61b in KDevelop::IDebugSession::showStepInSource (this=this@entry=0x76d7e40, _t1=..., _t2=_t2@entry=80, _t3=...) at ./idebugsession.moc:167
#18 0x00007ffd62aaea54 in KDevelop::IDebugSession::setCurrentPosition (this=this@entry=0x76d7e40, url=..., line=line@entry=80, addr=...) at ../../debugger/interfaces/idebugsession.cpp:110
#19 0x00007ffcb9ce98a3 in GDBDebugger::DebugSession::slotProgramStopped (this=0x76d7e40, r=...) at ../../../debuggers/gdb/debugsession.cpp:769
#20 0x00007ffcb9cef84e in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./debugsession.moc:169
#21 GDBDebugger::DebugSession::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./debugsession.moc:128
#22 0x00007ffd66fcd0ef in QMetaObject::activate (sender=sender@entry=0x8078830, m=m@entry=0x7ffcb9f353e0 <GDBDebugger::GDB::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fff7197d950) at kernel/qobject.cpp:3539
#23 0x00007ffcb9cba8b5 in GDBDebugger::GDB::programStopped (this=this@entry=0x8078830, _t1=...) at moc_gdb.cpp:152
#24 0x00007ffcb9cbc6cf in GDBDebugger::GDB::processLine (this=this@entry=0x8078830, line=...) at ../../../debuggers/gdb/gdb.cpp:268
#25 0x00007ffcb9cbd00f in GDBDebugger::GDB::readyReadStandardOutput (this=0x8078830) at ../../../debuggers/gdb/gdb.cpp:189
#26 0x00007ffd66fcd0ef in QMetaObject::activate (sender=sender@entry=0x2be3620, m=m@entry=0x7ffd6730f880 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#27 0x00007ffd66f4e493 in QProcess::readyReadStandardOutput (this=this@entry=0x2be3620) at .moc/release-shared/moc_qprocess.cpp:176
#28 0x00007ffd66f51c58 in QProcessPrivate::_q_canReadStandardOutput (this=0x80780d0) at io/qprocess.cpp:915
#29 0x00007ffd66f5234e in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qprocess.cpp:84
#30 QProcess::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qprocess.cpp:69
#31 0x00007ffd66fcd0ef in QMetaObject::activate (sender=sender@entry=0x8076bd0, m=m@entry=0x7ffd67313980 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff7197de60) at kernel/qobject.cpp:3539
#32 0x00007ffd67018d2e in QSocketNotifier::activated (this=this@entry=0x8076bd0, _t1=70) at .moc/release-shared/moc_qsocketnotifier.cpp:103
#33 0x00007ffd66fd5b0b in QSocketNotifier::event (this=0x8076bd0, e=0x7fff7197e480) at kernel/qsocketnotifier.cpp:317
#34 0x00007ffd6635b8ec in QApplicationPrivate::notify_helper (this=this@entry=0xaa1700, receiver=receiver@entry=0x8076bd0, e=e@entry=0x7fff7197e480) at kernel/qapplication.cpp:4567
#35 0x00007ffd6635e25b in QApplication::notify (this=this@entry=0x7fff7197ebd0, receiver=receiver@entry=0x8076bd0, e=e@entry=0x7fff7197e480) at kernel/qapplication.cpp:4428
#36 0x00007ffd677c09b6 in KApplication::notify (this=0x7fff7197ebd0, receiver=0x8076bd0, event=0x7fff7197e480) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007ffd66fb863e in QCoreApplication::notifyInternal (this=0x7fff7197ebd0, receiver=0x8076bd0, event=event@entry=0x7fff7197e480) at kernel/qcoreapplication.cpp:946
#38 0x00007ffd66fe75c8 in sendEvent (event=0x7fff7197e480, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 socketNotifierSourceDispatch (source=0xaa1940) at kernel/qeventdispatcher_glib.cpp:110
#40 0x00007ffd5ff38f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007ffd5ff39248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007ffd5ff39304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007ffd66fe7016 in QEventDispatcherGlib::processEvents (this=0x9f2d80, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#44 0x00007ffd6640113e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007ffd66fb738f in QEventLoop::processEvents (this=this@entry=0x7fff7197e6c0, flags=...) at kernel/qeventloop.cpp:149
#46 0x00007ffd66fb7618 in QEventLoop::exec (this=this@entry=0x7fff7197e6c0, flags=...) at kernel/qeventloop.cpp:204
#47 0x00007ffd66fbccf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#48 0x00007ffd66359ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#49 0x000000000040fbb0 in main (argc=<optimized out>, argv=<optimized out>) at ../../app/main.cpp:566
Comment 6 Milian Wolff 2013-10-24 17:32:00 UTC
Easily crashes kdevelop.
Comment 7 Christoph Feck 2013-11-01 10:38:35 UTC
> #7  0x00007ffcbb799448 in Kasten2::ByteArrayView::ByteArrayView (this=0x7702c20, document=0x0, synchronizer=0x768edc0) at ../../../kasten/gui/view/bytearrayview.cpp:45

Called with "document=0x0", which is probably the cause for the crash.
Comment 8 Friedrich W. H. Kossebau 2013-11-02 00:58:32 UTC
Andreas, thanks for the new backtrace.
Sadly I cannot reproduce this myself, interrupting any program in a debug run does not trigger any message box for me, everything works as expected. 
Possibly because I do not have any project where something like /build/buildd/eglibc-2.17/sysdeps/unix/syscall-template.S is used?

Seems for some reason the file behind the url passed to OktetaDocument constructor (and then Sublime::UrlDocument) cannot be loaded. Sadly this is not catched at all in OktetaDocument::newView(), thus the crash.

Three questions to the KDevelop developers, Milian especially, as you seem able to reproduce this crash:
1. why is it tried at all to create a Okteta document and view in that situation?
2. what maybe special about the url in this case which may result in a failed load?
3. what should be returned in the overwritten Sublime::Document::newView(Document *doc) in a case of no document loaded, is 0 okay? (not specified in the API dox)

(Passing back to KDevelop, as some unexpected stuff seems to happen also in its code before reaching Okteta's one)
Comment 9 Milian Wolff 2013-11-02 12:36:30 UTC
I can reproduce it even simpler:

Ctrl + O -> enter some invalid URL (or non-existing file) there -> accept -> boom.

This could actually be related to https://git.reviewboard.kde.org/r/112078/ ... So maybe a KDevelop bug after all?
Comment 10 Milian Wolff 2013-11-04 22:45:28 UTC
Git commit 481a60099dd4b13f18ddca2e82ecd4605c8629e3 by Milian Wolff.
Committed on 04/11/2013 at 22:44.
Pushed by mwolff into branch 'master'.

Don't crash in Okteta when opening non-existing file.

We now enforce a text/plain mimetype for non-existing files. This
then triggers the creation of a katepart editor view which gracefully
handles the case of non-existing files.

M  +14   -8    shell/documentcontroller.cpp

http://commits.kde.org/kdevplatform/481a60099dd4b13f18ddca2e82ecd4605c8629e3
Comment 11 Milian Wolff 2013-11-04 22:54:09 UTC
Git commit b3ef48be33b00b3bd323320d6d3d446e6160b8ed by Milian Wolff.
Committed on 04/11/2013 at 22:53.
Pushed by mwolff into branch 'master'.

Don't set KDEVPLATFORM_JSONTESTS_LIBRARIES when QJson was not found.

M  +2    -0    KDevPlatformConfig.cmake.in

http://commits.kde.org/kdevplatform/b3ef48be33b00b3bd323320d6d3d446e6160b8ed
Comment 12 Milian Wolff 2013-11-04 22:55:20 UTC
Git commit 5965eed3f5b87ccaa3207c0bcca2ac1872b13806 by Milian Wolff.
Committed on 04/11/2013 at 22:44.
Pushed by mwolff into branch '1.6'.

backport: Don't crash in Okteta when opening non-existing file.

We now enforce a text/plain mimetype for non-existing files. This
then triggers the creation of a katepart editor view which gracefully
handles the case of non-existing files.

M  +14   -8    shell/documentcontroller.cpp

http://commits.kde.org/kdevplatform/5965eed3f5b87ccaa3207c0bcca2ac1872b13806
Comment 13 Milian Wolff 2013-11-04 22:55:21 UTC
Git commit 02522dae26a5a8df25c8c323a765d68c27bde17f by Milian Wolff.
Committed on 04/11/2013 at 22:53.
Pushed by mwolff into branch '1.6'.

backport: Don't set KDEVPLATFORM_JSONTESTS_LIBRARIES when QJson was not found.

M  +2    -0    KDevPlatformConfig.cmake.in

http://commits.kde.org/kdevplatform/02522dae26a5a8df25c8c323a765d68c27bde17f