crash on double clicking a file

Etay Meiri cl1 at netvision.net.il
Sat Feb 23 16:29:02 UTC 2002


Hi,

Attached is a core dump of kdevelop from KDEVELOP_2_BRANCH.
It crashed after double clicking a file from the file viewer.
Commenting out lines 3978-3980 from ckdevelop.cpp seems to solve
it but I don't know if thats the right solution:

//    if(project && build_menu->isItemEnabled(ID_BUILD_MAKE)){
//      enableCommand(ID_BUILD_COMPILE_FILE);
//    }

I can't see where build_menu is allocated in the code.

-- 
Etay Meiri
cl1 at netvision.net.il
-------------- next part --------------
[New Thread 1024 (LWP 8329)]
0x41459669 in __wait4 () from /lib/i686/libc.so.6
#0  0x41459669 in __wait4 () from /lib/i686/libc.so.6
#1  0x414d5154 in __DTOR_END__ () from /lib/i686/libc.so.6
#2  0x408bd523 in waitpid (pid=8353, stat_loc=0x0, options=0)
    at wrapsyscall.c:172
#3  0x4127dac3 in KCrash::defaultCrashHandler (sig=11) at kcrash.cpp:224
#4  0x408bb8d5 in pthread_sighandler (signo=11, ctx=
      {gs = 7, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 0, esi = 136531316, ebp = 3221218744, esp = 3221218696, ebx = 1081601660, edx = 137075808, ecx = 0, eax = 148, trapno = 14, err = 4, eip = 1078166498, cs = 35, __csh = 0, eflags = 66198, esp_at_signal = 3221218696, ss = 43, __ssh = 0, fpstate = 0xbfffe308, oldmask = 2147483648, cr2 = 152}) at signals.c:97
#5  <signal handler called>
#6  0x404383e2 in QMenuData::findItem (this=0x94, id=14020, parent=0x0)
    at widgets/qmenudata.cpp:1137
#7  0x4043839c in QMenuData::findItem (this=0x94, id=14020)
    at widgets/qmenudata.cpp:1116
#8  0x404380d6 in QMenuData::isItemEnabled (this=0x94, id=14020)
    at widgets/qmenudata.cpp:1036
#9  0x080a9cf0 in CKDevelop::slotViewSelected (this=0x82b9c60)
    at ckdevelop.cpp:3978
#10 0x080af2d7 in CKDevelop::qt_invoke (this=0x82b9c60, _id=276, _o=0xbfffe700)
    at ckdevelop.moc:1118
#11 0x403762e7 in QObject::activate_signal (this=0x82d38f0, clist=0x82d13d8, 
    o=0xbfffe700) at kernel/qobject.cpp:2013
#12 0x08095140 in DocViewMan::sig_viewActivated (this=0x82d38f0, t0=0x85c1e48)
    at docviewman.moc:193
#13 0x0808d355 in DocViewMan::slot_viewActivated (this=0x82d38f0, 
    pMDICover=0x85e70c0) at docviewman.cpp:1037
#14 0x0808c761 in DocViewMan::addQExtMDIFrame (this=0x82d38f0, 
    pNewView=0x85c1e48, bShow=true, icon=@0xbfffe810) at docviewman.cpp:729
#15 0x0808c9a1 in DocViewMan::createEditView (this=0x82d38f0, pDoc=0x851e840, 
    bShow=true) at docviewman.cpp:802
#16 0x0808b576 in DocViewMan::doSwitchToFile (this=0x82d38f0, 
    filename=0xbfffe950, line=-1, col=0, bForceReload=false, 
    bShowModifiedBox=true) at docviewman.cpp:210
#17 0x080b75e8 in CKDevelop::switchToFile () at ckdevelop_classview.cpp:1129
#18 0x080aa243 in CKDevelop::slotRealFileTreeSelected (this=0x82b9c60, file=
      {static null = {static null = <same as static member of an already seen type>, d = 0x8241c40, static shared_null = 0x8241c40}, d = 0xbfffebe0, static shared_null = 0x8241c40}) at ckdevelop.cpp:4067
#19 0x080af381 in CKDevelop::qt_invoke (this=0x82b9c60, _id=279, _o=0xbfffec60)
    at ckdevelop.moc:1121
#20 0x403762e7 in QObject::activate_signal (this=0x8308458, clist=0x83d7438, 
    o=0xbfffec60) at kernel/qobject.cpp:2013
#21 0x4037670a in QObject::activate_signal (this=0x8308458, signal=40, 
    param=0xbfffecc0) at kernel/qobject.cpp:2065
#22 0x0811b554 in CRealFileView::fileSelected ()
    at ckdevelop_classview.cpp:1129
#23 0x08119f51 in CRealFileView::slotSelectionChanged ()
    at ckdevelop_classview.cpp:1129
#24 0x0811ba04 in CRealFileView::qt_invoke () at ckdevelop_classview.cpp:1129
#25 0x403762e7 in QObject::activate_signal (this=0x8308458, clist=0x830bc98, 
    o=0xbfffedb0) at kernel/qobject.cpp:2013
#26 0x41077762 in KListView::executed (this=0x8308458, t0=0x82814b0)
    at klistview.moc:301
#27 0x410721ea in KListView::emitExecute (this=0x8308458, item=0x82814b0, 
    pos=@0xbfffeec8, c=0) at klistview.cpp:510
#28 0x41072ff6 in KListView::contentsMouseDoubleClickEvent (this=0x8308458, 
    e=0xbfffeeb0) at klistview.cpp:724
#29 0x4044a96d in QScrollView::viewportMouseDoubleClickEvent (this=0x8308458, 
    e=0xbffff300) at widgets/qscrollview.cpp:1604
#30 0x4044a014 in QScrollView::eventFilter (this=0x8308458, obj=0x8308d00, 
    e=0xbffff300) at widgets/qscrollview.cpp:1359
#31 0x40422c66 in QListView::eventFilter (this=0x8308458, o=0x8308d00, 
    e=0xbffff300) at widgets/qlistview.cpp:3521
#32 0x40374350 in QObject::activate_filters (this=0x8308d00, e=0xbffff300)
    at kernel/qobject.cpp:765
#33 0x403741c6 in QObject::event (this=0x8308d00, e=0xbffff300)
    at kernel/qobject.cpp:642
#34 0x403a211a in QWidget::event (this=0x8308d00, e=0xbffff300)
    at kernel/qwidget.cpp:4110
#35 0x40332fae in QApplication::internalNotify (this=0xbffff690, 
    receiver=0x8308d00, e=0xbffff300) at kernel/qapplication.cpp:2246
#36 0x40332677 in QApplication::notify (this=0xbffff690, receiver=0x8308d00, 
    e=0xbffff300) at kernel/qapplication.cpp:2088
#37 0x41226d3b in KApplication::notify (this=0xbffff690, receiver=0x8308d00, 
    event=0xbffff300) at kapplication.cpp:546
#38 0x40615fe6 in QApplication::sendSpontaneousEvent (receiver=0x8308d00, 
    event=0xbffff300) at kernel/qapplication.h:455
#39 0x402e3f52 in QETWidget::translateMouseEvent (this=0x8308d00, 
    event=0xbffff540) at kernel/qapplication_x11.cpp:4785
#40 0x402e0da6 in QApplication::x11ProcessEvent (this=0xbffff690, 
    event=0xbffff540) at kernel/qapplication_x11.cpp:3598
#41 0x402dfa45 in QApplication::processNextEvent (this=0xbffff690, 
    canWait=true) at kernel/qapplication_x11.cpp:3109
#42 0x40334a89 in QApplication::enter_loop (this=0xbffff690)
    at kernel/qapplication.cpp:3118
#43 0x402df950 in QApplication::exec (this=0xbffff690)
    at kernel/qapplication_x11.cpp:3065
#44 0x080feb31 in main () at ckdevelop_classview.cpp:1129
#45 0x413bb507 in __libc_start_main (main=0x80fe0dc <main>, argc=1, 
    ubp_av=0xbffff834, init=0x80663cc <_init>, fini=0x8201080 <_fini>, 
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff82c)
    at ../sysdeps/generic/libc-start.c:129
 


More information about the KDevelop-devel mailing list