Bug 51001 - 'Insert file ...' causes seg fault
Summary: 'Insert file ...' causes seg fault
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: kdevelop 2.x (obsolete) (show other bugs)
Version: 2.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-21 12:33 UTC by Robin Welch
Modified: 2003-01-01 04:55 UTC (History)
0 users

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 Robin Welch 2002-11-21 12:33:45 UTC
Version:           2.1 (using KDE 3.0.0)
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
OS:          Linux (i686) release 2.4.18-10

Using the 'Insert file ...' option on the 'edit' menu item frequently causes a segmentation fault (sorry, don't have the dump but will try to capture it next time)

Usually happens after KDevelop has been running for some time and has a few (~10) files open. Cannot re-create it after re-starting.

Can work around by opening file & using copy & paste but with large files this can become unwieldy.
Comment 1 Robin Welch 2002-12-03 17:30:47 UTC
Got it! Looks like it might be happening in KDirListerCache::findByName() 
 
Here's the backtrace: 
 
(no debugging symbols found)...[New Thread 1024 (LWP 30676)] 
0x420b48a9 in wait4 () from /lib/i686/libc.so.6 
#0  0x420b48a9 in wait4 () from /lib/i686/libc.so.6 
#1  0x4213030c in __DTOR_END__ () from /lib/i686/libc.so.6 
#2  0x4135cca3 in waitpid () from /lib/i686/libpthread.so.0 
#3  0x40a948d2 in KCrash::defaultCrashHandler () 
   from /usr/lib/libkdecore-gcc2.96.so.4 
#4  0x4135af75 in pthread_sighandler () from /lib/i686/libpthread.so.0 
#5  <signal handler called> 
#6  0x406607d0 in KDirListerCache::findByName () 
   from /usr/lib/libkio-gcc2.96.so.4 
#7  0x40666f0a in KDirLister::findByName () from /usr/lib/libkio-gcc2.96.so.4 
#8  0x406e137b in KDirOperator::setCurrentItem () 
   from /usr/lib/libkio-gcc2.96.so.4 
#9  0x406d6808 in KFileDialog::slotLoadingFinished () 
   from /usr/lib/libkio-gcc2.96.so.4  
#10 0x406db6c9 in KFileDialog::qt_invoke () from /usr/lib/libkio-gcc2.96.so.4 
#11 0x40de6ec7 in QObject::activate_signal ()  
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3 
#12 0x40de6e28 in QObject::activate_signal () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3 
#13 0x406e42c8 in KDirOperator::finishedLoading () 
   from /usr/lib/libkio-gcc2.96.so.4 
#14 0x406e3b8c in KDirOperator::slotCanceled ()  
   from /usr/lib/libkio-gcc2.96.so.4 
#15 0x406e4abb in KDirOperator::qt_invoke () from /usr/lib/libkio-gcc2.96.so.4  
#16 0x40de6f33 in QObject::activate_signal () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#17 0x40de6e28 in QObject::activate_signal () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#18 0x4066b208 in KDirLister::canceled () from /usr/lib/libkio-gcc2.96.so.4 
#19 0x4065f833 in KDirListerCache::forgetDirs ()  
   from /usr/lib/libkio-gcc2.96.so.4 
#20 0x4065f5ca in KDirListerCache::forgetDirs ()  
   from /usr/lib/libkio-gcc2.96.so.4 
#21 0x4065d1c6 in KDirListerCache::listDir () from  
/usr/lib/libkio-gcc2.96.so.4 
#22 0x40666448 in KDirLister::openURL () from /usr/lib/libkio-gcc2.96.so.4  
#23 0x406e0e51 in KDirOperator::connectView () 
   from /usr/lib/libkio-gcc2.96.so.4  
#24 0x406e0f48 in KDirOperator::setView () from /usr/lib/libkio-gcc2.96.so.4 
#25 0x406e0b00 in KDirOperator::setView () from /usr/lib/libkio-gcc2.96.so.4  
#26 0x406d9df3 in KFileDialog::show () from /usr/lib/libkio-gcc2.96.so.4 
#27 0x40f44acb in QDialog::exec () from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#28 0x406d73ca in KFileDialog::getOpenURL () from /usr/lib/libkio-gcc2.96.so.4 
#29 0x40041de3 in KWrite::insertFile (this=0x85acf48) at kwview.cpp:1794  
#30 0x080b1780 in QPtrList<KWriteView>::deleteItem () 
#31 0x080b214e in QPtrList<KWriteView>::deleteItem ()  
#32 0x40de6ec7 in QObject::activate_signal () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#33 0x410df5ac in QSignal::signal () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#34 0x40dfcd04 in QSignal::activate () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#35 0x40edd4d3 in QPopupMenu::mouseReleaseEvent () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#36 0x40e17000 in QWidget::event () from 
/usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#37 0x40d86ff3 in QApplication::internalNotify () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#38 0x40d86723 in QApplication::notify () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#39 0x409f9f1b in KApplication::notify () from 
/usr/lib/libkdecore-gcc2.96.so.4  
#40 0x40d2f509 in QETWidget::translateMouseEvent () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#41 0x40d2ca80 in QApplication::x11ProcessEvent () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#42 0x40d2b6ce in QApplication::processNextEvent () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#43 0x40d884bc in QApplication::enter_loop () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#44 0x40d2b637 in QApplication::exec () 
   from /usr/lib/qt3-gcc2.96/lib/libqt-mt.so.3  
#45 0x0812a1e1 in QValueList<QString>::append () 
#46 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6 
Comment 2 Caleb Tennis 2003-01-01 04:55:16 UTC
Looks like a problem with your kdelibs (kfile in particular).