Bug 102694 - kmenuedit crash on exit.
Summary: kmenuedit crash on exit.
Status: RESOLVED FIXED
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 0.7
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-28 21:20 UTC by Peter Volkov
Modified: 2012-03-09 21:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov 2005-03-28 21:20:45 UTC
Version:           0.7 (using KDE 3.4.0, Gentoo)
Compiler:          gcc version 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7)
OS:                Linux (i686) release 2.6.11-gentoo-r4

Hello.

keditmenu constantly crashes on exit. Here is bt:
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229939936 (LWP 15152)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xb7fd6512 in KHotKeys::cleanup () at khotkeys.cpp:84
#2  0xb7fd0d6d in ~KMenuApplication (this=0xbfffeee0) at main.cpp:47
#3  0xb7fd0ba3 in kdemain (argc=-1208053728, argv=0xb7fe9020) at main.cpp:87
#4  0x080486f2 in main (argc=-1208053728, argv=0xb7fe9020) at kmenuedit.la.cpp:2
(gdb) c
Continuing.
Detaching after fork from child process 15162.

Program received signal SIGCONT, Continued.
0xffffe410 in ?? ()
(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbfffee78 in ?? ()
#2  0x00000000 in ?? ()
#3  0x00000000 in ?? ()
#4  0xb6d513b3 in __waitpid_nocancel () from /lib/tls/libpthread.so.0
#5  0xb78d4cc0 in KCrash::defaultCrashHandler () from /usr/kde/3.4/lib/libkdecore.so.4
#6  0x00000000 in ?? ()
#7  0x00000000 in ?? ()
#8  0x081f35d0 in ?? ()
#9  0x082b72b0 in ?? ()
#10 0xbfffeae8 in ?? ()
#11 0xb71ee3bf in QApplication::internalNotify () from /usr/qt/3/lib/libqt-mt.so.3
Previous frame inner to this frame (corrupt stack?)

I'm not alone with this problem. See this topic, for example:
http://forums.gentoo.org/viewtopic-t-313246-highlight-kde+menu.html

Also I would like to notice that I have a problems with kmenu update (there is already bug on this). I don't know are this problems related or not, but now I have to start most applications from konsole.

Thank you for your attention,
Peter.
Comment 1 Waldo Bastian 2005-03-28 21:58:47 UTC
I can confirm the problem, it only happens when kcm_khotkeys.la can't be found though, so you may want to see why that is.
Comment 2 Waldo Bastian 2005-03-28 22:01:54 UTC
CVS commit by waba: 

Don't crash on exit when kcm_khotkeys.la can't be found.
BUG: 102694


  M +1 -1      khotkeys.cpp   1.9


--- kdebase/kmenuedit/khotkeys.cpp  #1.8:1.9
@@ -81,5 +81,5 @@ bool KHotKeys::init()
 void KHotKeys::cleanup()
 {
-    if( khotkeys_inited )
+    if( khotkeys_inited && khotkeys_present )
         khotkeys_cleanup_2();
     khotkeys_inited = false;