Bug 74385

Summary: Closing file window causes crash
Product: [Applications] kdevelop Reporter: Daniela Koller <dako>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: dako
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Daniela Koller 2004-02-06 18:56:58 UTC
Version:           3.0 (using KDE KDE 3.2.0)
Installed from:    FreeBSD Ports
Compiler:          gcc version 2.95.4 20020320 [FreeBSD] 
OS:          FreeBSD

kdevelop crashes each time I try to close a file window with a SIGSEGV (11).

Backtrace Information from the KDE Crash Handler (without multiple
missing debugging symbols messages):

0x2965b900 in __sys_poll () from /usr/lib/libc_r.so.4
#0  0x2965b900 in __sys_poll () from /usr/lib/libc_r.so.4
#1  0x2965ae4c in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4
#2  0x2965a811 in _thread_kern_scheduler () from /usr/lib/libc_r.so.4
#3  0x0 in ?? ()

Operating System is FreeBSD 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: 
Thu Aug 28 16:52:25 CEST 2003

Version of kdevelop is 3.0 from the FreeBSD ports (4th of february).

System: Athlon XP 1.8, 512 MB Ram, default cflags from FreeBSD, 
g++ -v: Using builtin specs.
        gcc version 2.95.4 20020320 [FreeBSD]

Might be similar to 37374 (but kdevelop 3.0 and no open documentation window needed)
Comment 1 Jens Dagerbo 2004-02-06 19:11:34 UTC
Very little to go on without a usefull backtrace. It could be a dupe of bug #57902. 

Could you please try without the "History" plugin (settings -> plugins) loaded and report back?
Comment 2 Daniela Koller 2004-02-06 22:59:10 UTC
If the history plugin is disabled, it doesn't crash anymore. But it crashes when a file is open and I disable the plugin with a SIGSEGV and this backtrace.

0x2965b900 in __sys_poll ()
   from /usr/lib/libc_r.so.4
#0  0x2965b900 in __sys_poll () from /usr/lib/libc_r.so.4
#1  0x2965ae4c in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4
#2  0x2965a811 in _thread_kern_scheduler () from /usr/lib/libc_r.so.4
#3  0x0 in ?? ()

If I disable the plugin with no file open, then everything works fine.
Comment 3 Jens Dagerbo 2004-02-06 23:56:19 UTC
Ok, then it is most likely a dupe. Closing as such. The history part is on my todo list..

*** This bug has been marked as a duplicate of 57902 ***
Comment 4 Jiawe i Ye 2004-02-09 11:02:29 UTC
Program received signal SIGSEGV, Segmentation fault.
0x807902d in QPtrList<HistoryEntry>::deleteItem ()
(gdb) where
#0  0x807902d in QPtrList<HistoryEntry>::deleteItem ()
#1  0x292ce5d5 in QGList::remove () from /usr/X11R6/lib/libqt-mt.so.3
#2  0x2a9d503f in HistoryPart::partRemoved () from /usr/local/lib/kde3/libkdevhistory.so
#3  0x2a9d51f5 in HistoryPart::qt_invoke () from /usr/local/lib/kde3/libkdevhistory.so
#4  0x29075ae2 in QObject::activate_signal () from /usr/X11R6/lib/libqt-mt.so.3
#5  0x286dbe6c in KParts::PartManager::partRemoved () from /usr/local/lib/libkparts.so.3
#6  0x286db023 in KParts::PartManager::removePart () from /usr/local/lib/libkparts.so.3
#7  0x80747c8 in PartController::closePart ()
#8  0x8075379 in PartController::closeWindows ()
#9  0x8075428 in PartController::closeAllWindows ()
#10 0x807a861 in ProjectManager::closeProject ()
#11 0x8070ccb in Core::queryClose ()
#12 0x806a568 in MainWindow::queryClose ()
#13 0x28ae32cf in KMainWindow::closeEvent () from /usr/local/lib/libkdeui.so.6
#14 0x290a2c05 in QWidget::event () from /usr/X11R6/lib/libqt-mt.so.3
#15 0x291451ac in QMainWindow::event () from /usr/X11R6/lib/libqt-mt.so.3
#16 0x28581d6a in KMdiMainFrm::event () from /usr/local/lib/libkmdi.so.1
#17 0x29024d97 in QApplication::internalNotify () from /usr/X11R6/lib/libqt-mt.so.3
#18 0x290249dc in QApplication::notify () from /usr/X11R6/lib/libqt-mt.so.3
#19 0x28c960f9 in KApplication::notify () from /usr/local/lib/libkdecore.so.6
#20 0x290a21b5 in QWidget::close () from /usr/X11R6/lib/libqt-mt.so.3
#21 0x29341891 in QWidget::qt_invoke () from /usr/X11R6/lib/libqt-mt.so.3
#22 0x29354056 in QMainWindow::qt_invoke () from /usr/X11R6/lib/libqt-mt.so.3
#23 0x28ae5c7e in KMainWindow::qt_invoke () from /usr/local/lib/libkdeui.so.6
#24 0x28b65df2 in KDockMainWindow::qt_invoke () from /usr/local/lib/libkdeui.so.6
#25 0x286df0fe in KParts::DockMainWindow::qt_invoke () from /usr/local/lib/libkparts.so.3
#26 0x2858990d in KMdiMainFrm::qt_invoke () from /usr/local/lib/libkmdi.so.1
#27 0x806f087 in MainWindow::qt_invoke ()
#28 0x29075a0e in QObject::activate_signal () from /usr/X11R6/lib/libqt-mt.so.3
#29 0x290758fd in QObject::activate_signal () from /usr/X11R6/lib/libqt-mt.so.3
#30 0x28a973b0 in KAction::activated () from /usr/local/lib/libkdeui.so.6
#31 0x28a96e22 in KAction::slotActivated () from /usr/local/lib/libkdeui.so.6
#32 0x28a9763c in KAction::qt_invoke () from /usr/local/lib/libkdeui.so.6
#33 0x29075a0e in QObject::activate_signal () from /usr/X11R6/lib/libqt-mt.so.3
#34 0x2933dce0 in QSignal::signal () from /usr/X11R6/lib/libqt-mt.so.3
#35 0x2908bbcc in QSignal::activate () from /usr/X11R6/lib/libqt-mt.so.3
#36 0x29155189 in QPopupMenu::mouseReleaseEvent () from /usr/X11R6/lib/libqt-mt.so.3
#37 0x290a28fd in QWidget::event () from /usr/X11R6/lib/libqt-mt.so.3
#38 0x29024d97 in QApplication::internalNotify () from /usr/X11R6/lib/libqt-mt.so.3
#39 0x290245f5 in QApplication::notify () from /usr/X11R6/lib/libqt-mt.so.3
#40 0x28c960f9 in KApplication::notify () from /usr/local/lib/libkdecore.so.6
#41 0x28fcb7df in QETWidget::translateMouseEvent () from /usr/X11R6/lib/libqt-mt.so.3
#42 0x28fc9d78 in QApplication::x11ProcessEvent () from /usr/X11R6/lib/libqt-mt.so.3
#43 0x28fdcb94 in QEventLoop::processEvents () from /usr/X11R6/lib/libqt-mt.so.3
#44 0x29035fb6 in QEventLoop::enterLoop () from /usr/X11R6/lib/libqt-mt.so.3
#45 0x29035f02 in QEventLoop::exec () from /usr/X11R6/lib/libqt-mt.so.3
#46 0x29024f31 in QApplication::exec () from /usr/X11R6/lib/libqt-mt.so.3
#47 0x80694aa in main ()
#48 0x8068b2a in _start ()
Comment 5 Jens Dagerbo 2004-02-09 11:31:16 UTC
Thanks, very nice and readable backtrace. More so than the previous, but..

It would be better if you posted to the open version of this report (bug #57902) and also, if you added some info about your system.

Currently, I only know of this happening on Solaris and FreeBSD. The KDevelop code is not different for these platforms, but the underlying libs might well be. So far my best theory is that we're hitting differences in Qt with this one.

Either way, the current History plugin should go away, the best workaround for now is to simply disable it.