Bug 267187 - KDevelop crash in Review mode
Summary: KDevelop crash in Review mode
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.2.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-26 02:33 UTC by Musikolo
Modified: 2011-03-17 21:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Output of "valgrind --track-origins=yes --num-callers=25 kdevelop" (75.19 KB, application/x-gzip)
2011-02-28 22:17 UTC, Musikolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Musikolo 2011-02-26 02:33:05 UTC
Application: kdevelop (4.2.0)
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Just compared a file with HEAD using GIt and press the "Show" button there is below.

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

Thread 14 (Thread 0x7f8409290700 (LWP 8461)):
#0  0x00007f841e1ca6cb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bb82 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f841bdc819b in ?? () from /usr/lib/libkdevplatformlanguage.so.3
#3  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f841e4af95d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f83ff2ea700 (LWP 8463)):
#0  0x00007f841e4a9583 in select () from /lib/libc.so.6
#1  0x00007f841f8146dd in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#4  0x00007f841e4af95d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f83fe8c0700 (LWP 8465)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bc1b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f8416c0b034 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f8416c0d6c3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f8416c0c4af in ?? () from /usr/lib/libthreadweaver.so.4
#8  0x00007f8416c0c538 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#9  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#11 0x00007f841e4af95d in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f83f8018700 (LWP 8499)):
#0  0x00007f841e1c8114 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x00007f84192b8679 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#2  0x00007f84192b9f45 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f84192ba66d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f841f85ef66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f841f833232 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f841f83347c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f841f748d54 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f841e4af95d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f83f8819700 (LWP 8500)):
#0  0xffffffffff60014a in ?? ()
#1  0x00007f83f8818b20 in ?? ()
#2  0x00007fff087ff6e2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 9 (Thread 0x7f83effff700 (LWP 8517)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f8409bea794 in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007f8409bea7c9 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#4  0x00007f841e4af95d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f83ef3ee700 (LWP 8542)):
#0  0x00007f841e4a7533 in poll () from /lib/libc.so.6
#1  0x00007f84192ba134 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f84192ba66d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f841f85ef66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f841f833232 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f841f83347c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f841f748d54 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f841f814e18 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f841e4af95d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f83eeb4f700 (LWP 8582)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f84163d3994 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#3  0x00007f841e4af95d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f83ece35700 (LWP 8588)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bc1b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f8416c0b034 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f8416c0d6c3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f8416c0c4af in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f8416c0c538 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#9  0x00007f841e4af95d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f83ec634700 (LWP 8589)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bc1b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f8416c0b034 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f8416c0d6c3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f8416c0c4af in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f8416c0c538 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#8  0x00007f841e4af95d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f83eb5ad700 (LWP 8686)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bc1b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f8416c0b034 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f8416c0d6c3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f8416c0c4af in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f8416c0c538 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#9  0x00007f841e4af95d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f83eadac700 (LWP 8687)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bc1b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f8416c0b034 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f8416c0d6c3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f8416c0d6dc in ?? () from /usr/lib/libthreadweaver.so.4
#8  0x00007f8416c0c4af in ?? () from /usr/lib/libthreadweaver.so.4
#9  0x00007f8416c0c538 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#10 0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#12 0x00007f841e4af95d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f83fe0bf700 (LWP 11236)):
#0  0x00007f841e1ca34c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f841f74bc1b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f8416c0b034 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f8416c0d6c3 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f8416c0c4af in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f8416c0c538 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f841f74b52e in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f841e1c5cb0 in start_thread () from /lib/libpthread.so.0
#8  0x00007f841e4af95d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8421247760 (LWP 8460)):
[KCrash Handler]
#6  0x00007f841f10b8c0 in QAbstractItemView::sizeHintForRow(int) const () from /usr/lib/libQtGui.so.4
#7  0x00007f841f14cb7f in QTreeView::scrollContentsBy(int, int) () from /usr/lib/libQtGui.so.4
#8  0x00007f841f07b3c0 in QAbstractScrollArea::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#9  0x00007f841f10efe5 in QAbstractItemView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#10 0x00007f841f153b85 in QTreeView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#11 0x00007f841b8b77e8 in KDevelop::FocusedTreeView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformutil.so.3
#12 0x00007f841f84931f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x00007f841f26ee1e in QAbstractSlider::valueChanged(int) () from /usr/lib/libQtGui.so.4
#14 0x00007f841f14b4a9 in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007f841f14ba2d in QTreeView::updateGeometries() () from /usr/lib/libQtGui.so.4
#16 0x00007f841ec4f95e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007f841eff9a06 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007f841f10a3b3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f841f14f055 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f841f834027 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0x00007f841ebfe281 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007f841ec02dca in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00007f842001fa46 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x0000000000404b89 in _start ()

Possible duplicates by query: bug 263447, bug 262870, bug 252670, bug 243803.

Reported using DrKonqi
Comment 1 Milian Wolff 2011-02-28 11:15:56 UTC
is this reproducible for you? if so, please run kdev through valgrind:

valgrind --track-origins=yes --num-callers=25 kdevelop

and attacht the report.

*** This bug has been marked as a duplicate of bug 204399 ***
Comment 2 Musikolo 2011-02-28 22:17:07 UTC
Created attachment 57581 [details]
Output of "valgrind --track-origins=yes --num-callers=25 kdevelop"

Steps to reproduce:

1.- From the "Code" tab, click on the "Review" tab with no files open (empty).
2.- Select a modified file: Git --> Compare to Base...
3.- Click on the "Finish Review" button and it should go to the "Code" tab
4.- Click again on the "Review" tab and it should be empty (no files open)
5.- Click on the "Show" button --> CRASH!!

I hope it helps!
Comment 3 Milian Wolff 2011-03-17 21:43:16 UTC
Git commit 9244f20e5a71961e7c294a72efae77bfa15b7fe1 by Milian Wolff.
Committed on 17/03/2011 at 21:41.
Pushed by mwolff into branch '1.2'.

fix crashes and leak of local patch source

BUG: 267187

M  +25   -2    plugins/patchreview/patchreview.cpp     

http://commits.kde.org/kdevplatform/9244f20e5a71961e7c294a72efae77bfa15b7fe1