Summary: | Kate/Kile crashes in KToolBar::Private::findAction | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | James Heather <j.heather> |
Component: | kdeui | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aacid, ariel, artem, athrunarthur, bornxlo, cfeck, crissi99, daniel, Dietrich.Lolz, dima, faure, gagnonpluc, greg.martyn, ht990332, john_r_chase, kavol, kde-bugtracker, kevin, lojkofob, manisandro, markriley, phma, programandoasm, sarum9in, simon.ball.1985, Sroka.Steven, thomas, tomas.chvatal, upscope, vtuhut |
Priority: | NOR | ||
Version: | 4.8 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdelibs/776098aae397b499a95d6855ef16f67eb8546598 | Version Fixed In: | 4.8.5 |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
James Heather
2012-03-23 12:49:44 UTC
Forwarding to kdelibs. *** Bug 296630 has been marked as a duplicate of this bug. *** *** Bug 296936 has been marked as a duplicate of this bug. *** *** Bug 297004 has been marked as a duplicate of this bug. *** *** Bug 297221 has been marked as a duplicate of this bug. *** *** Bug 298057 has been marked as a duplicate of this bug. *** *** Bug 297617 has been marked as a duplicate of this bug. *** Created attachment 70508 [details]
New crash information added by DrKonqi
kdevelop (4.3.0) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1
- What I was doing when the application crashed:
I clicked "Build" button on toolbar using right mouse button.
-- Backtrace (Reduced):
#6 0x00007f9224a8260a in KToolBar::Private::findAction(QString const&, KXMLGUIClient**) const () from /usr/lib/libkdeui.so.5
#7 0x00007f9224a82cb7 in KToolBar::Private::slotContextAboutToShow() () from /usr/lib/libkdeui.so.5
[...]
#9 0x00007f92239549d0 in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#10 0x00007f92239554a4 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#11 0x00007f9224a82c22 in KToolBar::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libkdeui.so.5
*** Bug 298576 has been marked as a duplicate of this bug. *** Created attachment 70800 [details]
New crash information added by DrKonqi
kdevelop (4.3.1) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1
- What I was doing when the application crashed:
Trying to click / drag the toolbar, since the tab of the editor somehow overlapped the toolbar.
-- Backtrace (Reduced):
#6 0x0000003027f2923a in KToolBar::Private::findAction (this=<optimized out>, actionName=..., clientOut=0x0) at ../../kdeui/widgets/ktoolbar.cpp:548
#7 0x0000003027f298e7 in KToolBar::Private::slotContextAboutToShow (this=0x2c8c3c0) at ../../kdeui/widgets/ktoolbar.cpp:574
[...]
#9 0x00000030234195f2 in QMenu::popup (this=0x72cf780, p=..., atAction=0x0) at widgets/qmenu.cpp:1832
#10 0x000000302341a11d in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2110
#11 0x0000003027f29852 in contextMenuEvent (event=0x7fff2fbafe00, this=0x2c8b7f0) at ../../kdeui/widgets/ktoolbar.cpp:873
Created attachment 70995 [details]
New crash information added by DrKonqi
konqueror (4.8.3 (4.8.3)) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1
- What I was doing when the application crashed:
I've right-mouse clicked the Next button on Konqueror toolbar
-- Backtrace (Reduced):
#6 0x00000033b752ea09 in KToolBar::Private::findAction (this=this@entry=0x1a385f0, actionName=..., clientOut=clientOut@entry=0x0) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:548
#7 0x00000033b752f0a7 in KToolBar::Private::slotContextAboutToShow (this=0x1a385f0) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:574
[...]
#9 0x00000033b5c00560 in QMenu::popup (this=this@entry=0x8712800, p=..., atAction=atAction@entry=0x0) at widgets/qmenu.cpp:1832
#10 0x00000033b5c01034 in QMenu::exec (this=0x8712800, p=..., action=0x0) at widgets/qmenu.cpp:2110
#11 0x00000033b752f012 in contextMenuEvent (event=0x7fffc5de8ef0, this=0x1a42e00) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:873
Created attachment 70998 [details]
New crash information added by DrKonqi
konqueror (4.8.3 (4.8.3)) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1
- What I was doing when the application crashed:
looks like the rightclick on back/forth in Konqueror is quite reliable way to crash (doesn't happen immediately, but after some time of Konqueror running and using the buttons)
-- Backtrace (Reduced):
#7 0x00000033b752ea0c in KToolBar::Private::findAction (this=this@entry=0x2561410, actionName=..., clientOut=clientOut@entry=0x0) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:548
#8 0x00000033b752f0a7 in KToolBar::Private::slotContextAboutToShow (this=0x2561410) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:574
[...]
#10 0x00000033b5c00560 in QMenu::popup (this=this@entry=0x50f10e0, p=..., atAction=atAction@entry=0x0) at widgets/qmenu.cpp:1832
#11 0x00000033b5c01034 in QMenu::exec (this=0x50f10e0, p=..., action=0x0) at widgets/qmenu.cpp:2110
#12 0x00000033b752f012 in contextMenuEvent (event=0x7fff0e3c0370, this=0x256b800) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:873
Created attachment 71277 [details]
New crash information added by DrKonqi
kate (3.8.2) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1
- What I was doing when the application crashed:
I right-clicked a toolbar (possibly empty area) in Kate.
-- Backtrace (Reduced):
#6 0x00007f3cf4ef723a in KToolBar::Private::findAction (this=<optimized out>, actionName=..., clientOut=0x0) at ../../kdeui/widgets/ktoolbar.cpp:548
#7 0x00007f3cf4ef78e7 in KToolBar::Private::slotContextAboutToShow (this=0x26483d0) at ../../kdeui/widgets/ktoolbar.cpp:574
[...]
#9 0x00007f3cf5fa35f2 in QMenu::popup (this=0xdd86570, p=..., atAction=0x0) at widgets/qmenu.cpp:1834
#10 0x00007f3cf5fa411d in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2113
#11 0x00007f3cf4ef7852 in contextMenuEvent (event=0x7fffe4607eb0, this=0x2624720) at ../../kdeui/widgets/ktoolbar.cpp:873
Created attachment 71360 [details]
New crash information added by DrKonqi
kopete (1.2.3) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1
- What I was doing when the application crashed:
Rightlick on the kopete chat window toolbar.
- Unusual behavior I noticed:
Usually, my kopete chat window toolbar has four icons:
[Send File] [Add Smiley] [Show Participants] | [View History]
When the crash occured, I noticed that the last item ([View History]) was missing. The crash occured when I right-clicked on the toolbar, just right of the separator where the missing button should have been.
-- Backtrace (Reduced):
#6 0x0000003b1a944d5a in KToolBar::Private::findAction (this=<optimized out>, actionName=..., clientOut=0x0) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:548
#7 0x0000003b1a945407 in KToolBar::Private::slotContextAboutToShow (this=0x1c8c990) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:574
[...]
#9 0x0000003bc900e092 in QMenu::popup (this=0x2dcaa60, p=..., atAction=0x0) at widgets/qmenu.cpp:1832
#10 0x0000003bc900ebbd in QMenu::exec (this=0x2dcaa60, p=..., action=0x0) at widgets/qmenu.cpp:2110
#11 0x0000003b1a945372 in contextMenuEvent (event=0x7fff86c9bfb0, this=0x1ca0da0) at /usr/src/debug/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:873
Created attachment 71501 [details]
New crash information added by DrKonqi
lokalize (1.4) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1
- What I was doing when the application crashed:
I right clicked on translation memory selection button in lokalize translation memory page.
I am not able to reproduce it every time but the backtrace seems quite nice.
-- Backtrace (Reduced):
#6 0x000003a20277450a in KToolBar::Private::findAction (this=<optimized out>, actionName=..., clientOut=0x0) at /var/tmp/portage/kde-base/kdelibs-4.8.3/work/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:548
#7 0x000003a202774bb7 in KToolBar::Private::slotContextAboutToShow (this=0x3a2043279a0) at /var/tmp/portage/kde-base/kdelibs-4.8.3/work/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:574
[...]
#9 0x000003a200d3bb70 in QMenu::popup (this=0x3a2069435e0, p=..., atAction=0x0) at widgets/qmenu.cpp:1832
#10 0x000003a200d3c73d in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2110
#11 0x000003a202774b22 in contextMenuEvent (event=0x3ffd5a1cf70, this=0x3a204326e70) at /var/tmp/portage/kde-base/kdelibs-4.8.3/work/kdelibs-4.8.3/kdeui/widgets/ktoolbar.cpp:873
*** Bug 298652 has been marked as a duplicate of this bug. *** *** Bug 301509 has been marked as a duplicate of this bug. *** *** Bug 300242 has been marked as a duplicate of this bug. *** *** Bug 298939 has been marked as a duplicate of this bug. *** Albert, this is caused by commit 576e13d3. Cannot reproduce it, but maybe there need to be additional checks when accessing the clients/actions. Does anyone having know how to compile from source or use a debugger? Fixed sentece: Does anyone having this problem know how to compile from source or use a debugger? I dont necessarily know how to compile kate from source or use gdb but I do develop software for a living so some instructions would be fine for compiling, and i've used pdb before from cli so a general walk through of whats needed from gdb should suffice. (In reply to comment #22) > Does anyone having this problem know how to compile from source there used to be a nice howto on KDE webpages but I can't find it right now ... can someone post a link? btw, would that be enough just to rebuild the Fedora package (possibly adding some patch if needed)? - that would be much easier ... oh, and Gentoo users (wink on Tomáš ;-) compile the sources all the time ... > or use a debugger? well, if you tell what's needed, we can try ... @Albert I can compile from sources and use gdb. I can take a stab at whatever you want me to do. One caveat though, I don't know very much about the Kate/Kile/KToolbar source code. Sorry for the delay guys, so here it comes a quick guide to compile kate from source git clone git://anongit.kde.org/kate.git cd kate git checkout vX.Y.Z (where X.Y.Z is the kde version you are using, i.e. git checkout v4.8.3) mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=debugfull (Here you might need to install stuff to be able to build programs, in debian/ubuntu a apt-get build-dep kate will help, for other distros look around for help) make sudo make install (or su + make install if you don't have sudo) (WARNING this will overwrite your distruntion kate with the one you just compiled, you might want to reinstall the kate package afterwards to go back to normal) Then do gdb kate run (make kate crash) once it crashes i'm interested in knowing the values of client and if client is not null of client->actionCollection(), for those less proficient with gdb do print client print client->actionCollection() If you have problems with this instructions hop into irc.freenode.net irc network and look for tsdgeos (my nick) in the #kde-devel irc channel and we'll do "live debugging" As requested via irc, here are steps to reproduce From "Session" in menubar save session as -> a save session as -> b quick open session -> a quick open session -> b quick open session -> a quick open session -> b right click menubar for popup click off in doc area to dismiss popup right click toolbar crash Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6470909 in KToolBar::Private::findAction (this=<optimized out>, actionName=..., clientOut=0x0) at /chakra/desktop-unstable/kdelibs/src/kdelibs-4.8.90/kdeui/widgets/ktoolbar.cpp:548 548 /chakra/desktop-unstable/kdelibs/src/kdelibs-4.8.90/kdeui/widgets/ktoolbar.cpp: No such file or directory. in /chakra/desktop-unstable/kdelibs/src/kdelibs-4.8.90/kdeui/widgets/ktoolbar.cpp (gdb) print client $1 = (KXMLGUIClient *) 0xd68f88 (gdb) print client->actionCollection() Cannot access memory at address 0x19 Created attachment 72172 [details]
New crash information added by DrKonqi
kdevelop (4.3.1) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1
- What I was doing when the application crashed:
I want to customize the toolbar at debug mode. I did what I did at code mode, right click on toolbar. The KDE is crashed.
I tried serveral times and each time I did the samething it crashed again. I think it's reproducable.
-- Backtrace (Reduced):
#6 0x00007fa0cb12e53b in KActionCollection::action(QString const&) const () from /usr/lib/libkdeui.so.5
#7 0x00007fa0cb30f308 in KToolBar::Private::findAction(QString const&, KXMLGUIClient**) const () from /usr/lib/libkdeui.so.5
#8 0x00007fa0cb30f9a7 in KToolBar::Private::slotContextAboutToShow() () from /usr/lib/libkdeui.so.5
[...]
#10 0x00007fa0ca1e25e2 in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007fa0ca1e310d in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Created attachment 72178 [details]
New crash information added by DrKonqi
kate (3.8.3) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.2
- What I was doing when the application crashed:
I did a right click on the kate's toolbar, it crashed twice in a row by doing that.
-- Backtrace (Reduced):
#5 0x00007f2b17dbea49 in KToolBar::Private::findAction(QString const&, KXMLGUIClient**) const () from /usr/lib/libkdeui.so.5
#6 0x00007f2b17dbf0e7 in KToolBar::Private::slotContextAboutToShow() () from /usr/lib/libkdeui.so.5
[...]
#8 0x00007f2b16507a50 in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#9 0x00007f2b16508524 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#10 0x00007f2b17dbf052 in KToolBar::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libkdeui.so.5
Ok, guys, no need for more information, i know what's wrong, just don't know how to fix it yet, hopefully next week at the kde meeting i can talk with david on how to fix it properly Git commit c6b4a45d2281a2b317a789693753544b64ffb59f by Albert Astals Cid. Committed on 01/07/2012 at 11:06. Pushed by aacid into branch 'KDE/4.9'. Do not leave dangling pointers in KToolbar when xml clients die Acked by dfaure REVIEW: 105399 FIXED-IN: 4.9.0 M +5 -0 kdeui/widgets/ktoolbar.cpp M +6 -0 kdeui/widgets/ktoolbar.h M +5 -0 kdeui/xmlgui/kxmlguifactory_p.cpp http://commits.kde.org/kdelibs/c6b4a45d2281a2b317a789693753544b64ffb59f *** Bug 301940 has been marked as a duplicate of this bug. *** *** Bug 303207 has been marked as a duplicate of this bug. *** Please check if it is possible to backport the fix to 4.8 branch. Git commit 776098aae397b499a95d6855ef16f67eb8546598 by Albert Astals Cid. Committed on 01/07/2012 at 11:06. Pushed by aacid into branch 'KDE/4.8'. Do not leave dangling pointers in KToolbar when xml clients die Acked by dfaure REVIEW: 105399 FIXED-IN: 4.8.5 M +5 -0 kdeui/widgets/ktoolbar.cpp M +6 -0 kdeui/widgets/ktoolbar.h M +5 -0 kdeui/xmlgui/kxmlguifactory_p.cpp http://commits.kde.org/kdelibs/776098aae397b499a95d6855ef16f67eb8546598 *** Bug 303856 has been marked as a duplicate of this bug. *** *** Bug 305003 has been marked as a duplicate of this bug. *** *** Bug 309288 has been marked as a duplicate of this bug. *** *** Bug 316167 has been marked as a duplicate of this bug. *** *** Bug 306816 has been marked as a duplicate of this bug. *** Created attachment 79961 [details]
New crash information added by DrKonqi
kdevelop (4.5.60) on KDE Platform 4.10.3 using Qt 4.8.4
- What I was doing when the application crashed:
I was configuring the toolbars in KDEvelop. I thought I had removed all of the buttons but, the save button was still showing so I right clicked on it and the program crashed. However, when the program restarted the save button was gone as intended.
Maybe this is to do with the fact the button "shouldn't have been there"
-- Backtrace (Reduced):
#5 0x00007f9a2ed6c5d1 in KToolBar::Private::findAction(QString const&, KXMLGUIClient**) const () from /usr/lib/libkdeui.so.5
#6 0x00007f9a2ed6c6cc in KToolBar::Private::slotContextAboutToShow() () from /usr/lib/libkdeui.so.5
[...]
#8 0x00007f9a2deadd6b in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#9 0x00007f9a2deb2213 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#10 0x00007f9a2ed6dd48 in KToolBar::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libkdeui.so.5
|