Bug 229384 - Konsole crashed after pressing Ctr-Shift-/ keys together during editing a text by VIM [operator[], null Konsole::SessionGroup::setMasterStatus, Konsole::SessionGroup::removeSession, Konsole::SessionController::copyInputToNone]
Summary: Konsole crashed after pressing Ctr-Shift-/ keys together during editing a tex...
Status: RESOLVED DUPLICATE of bug 234330
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.4
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 230415 232135 232231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-04 12:56 UTC by John
Modified: 2010-07-03 13:46 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch.diff contain differece between SessionController.cpp code from source of konsole (487 bytes, patch)
2010-07-03 13:46 UTC, Tarun Yadav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John 2010-03-04 12:56:57 UTC
Application: konsole (2.4)
KDE Platform Version: 4.4.00 (KDE 4.4.0)
Qt Version: 4.6.2
Operating System: Linux 2.6.32.9-64.fc12.x86_64 x86_64
Distribution: "Fedora release 12 (Constantine)"

-- Information about the crash:
<Ctrl><Shift></>

crash provided:

By pashing together: Ctrl, Shift, Slash during editing text by vim


The crash can be reproduced every time.

 -- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#5  detach (this=0x0, session=0x1ad5050, master=false) at /usr/include/QtCore/qhash.h:299
#6  operator[] (this=0x0, session=0x1ad5050, master=false) at /usr/include/QtCore/qhash.h:733
#7  Konsole::SessionGroup::setMasterStatus (this=0x0, session=0x1ad5050, master=false) at /usr/src/debug/kdebase-4.4.0/apps/konsole/src/Session.cpp:1260
#8  0x00000038f788991a in Konsole::SessionGroup::removeSession (this=0x0, session=0x1ad5050) at /usr/src/debug/kdebase-4.4.0/apps/konsole/src/Session.cpp:1241
#9  0x00000038f788e0ca in Konsole::SessionController::copyInputToNone (this=0xfaf080) at /usr/src/debug/kdebase-4.4.0/apps/konsole/src/SessionController.cpp:783
#10 0x00000038f7895c5d in Konsole::SessionController::qt_metacall (this=0xfaf080, _c=InvokeMetaMethod, _id=10, _a=0x7fffcfdaa270)
    at /usr/src/debug/kdebase-4.4.0/x86_64-redhat-linux-gnu/apps/konsole/src/SessionController.moc:160
#11 0x0000003d8796a2af in QMetaObject::activate (sender=0x1064500, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffcfdaa270) at kernel/qobject.cpp:3293
#12 0x0000003d88ba5b52 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#13 0x0000003d88ba728b in QAction::activate (this=0x1064500, event=<value optimized out>) at kernel/qaction.cpp:1255
#14 0x0000003d88ba8347 in QAction::event (this=<value optimized out>, e=<value optimized out>) at kernel/qaction.cpp:1181
#15 0x00000038f814becd in KAction::event (this=<value optimized out>, event=0x7fffcfdaa8e0) at /usr/src/debug/kdelibs-4.4.0/kdeui/actions/kaction.cpp:129
#16 0x0000003d88baa9dc in QApplicationPrivate::notify_helper (this=0xe2de50, receiver=0x1064500, e=0x7fffcfdaa8e0) at kernel/qapplication.cpp:4300
#17 0x0000003d88bb0aab in QApplication::notify (this=<value optimized out>, receiver=0x1064500, e=0x7fffcfdaa8e0) at kernel/qapplication.cpp:4183
#18 0x00000038f82067a6 in KApplication::notify (this=0x7fffcfdabe90, receiver=0x1064500, event=0x7fffcfdaa8e0) at /usr/src/debug/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#19 0x0000003d8795774c in QCoreApplication::notifyInternal (this=0x7fffcfdabe90, receiver=0x1064500, event=0x7fffcfdaa8e0) at kernel/qcoreapplication.cpp:704
#20 0x0000003d88bddae6 in sendEvent (this=<value optimized out>, e=0x7fffcfdaaee0) at ../../src/corelib/kernel/qcoreapplication.h:215
#21 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fffcfdaaee0) at kernel/qshortcutmap.cpp:879
#22 0x0000003d88bdf997 in QShortcutMap::tryShortcutEvent (this=0xe2df78, o=<value optimized out>, e=0x7fffcfdaaee0) at kernel/qshortcutmap.cpp:364
#23 0x0000003d88bb25db in QApplication::notify (this=0x7fffcfdabe90, receiver=0x1154500, e=0x7fffcfdaaee0) at kernel/qapplication.cpp:3746
#24 0x00000038f82067a6 in KApplication::notify (this=0x7fffcfdabe90, receiver=0x1154500, event=0x7fffcfdaaee0) at /usr/src/debug/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#25 0x0000003d8795774c in QCoreApplication::notifyInternal (this=0x7fffcfdabe90, receiver=0x1154500, event=0x7fffcfdaaee0) at kernel/qcoreapplication.cpp:704
#26 0x0000003d88c4490a in QKeyMapper::sendKeyEvent (keyWidget=0x1154500, grab=<value optimized out>, type=KeyPress, code=63, modifiers=<value optimized out>, text=..., autorepeat=false, count=1, 
    nativeScanCode=61, nativeVirtualKey=63, nativeModifiers=5) at kernel/qkeymapper_x11.cpp:1861
#27 0x0000003d88c46d20 in QKeyMapperPrivate::translateKeyEvent (this=<value optimized out>, keyWidget=0x1154500, event=<value optimized out>, grab=<value optimized out>)
    at kernel/qkeymapper_x11.cpp:1831
#28 0x0000003d88c20ee4 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffcfdabab0) at kernel/qapplication_x11.cpp:3394
#29 0x0000003d88c49d52 in x11EventSourceDispatch (s=0xe32260, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x000000346fa3920e in g_main_dispatch (context=0xe30dd0) at gmain.c:1960
#31 IA__g_main_context_dispatch (context=0xe30dd0) at gmain.c:2513
#32 0x000000346fa3cbf8 in g_main_context_iterate (context=0xe30dd0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#33 0x000000346fa3cd1a in IA__g_main_context_iteration (context=0xe30dd0, may_block=1) at gmain.c:2654
#34 0x0000003d8797d063 in QEventDispatcherGlib::processEvents (this=0xe02230, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#35 0x0000003d88c49a1e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x0000003d87956192 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x0000003d8795645c in QEventLoop::exec (this=0x7fffcfdabde0, flags=...) at kernel/qeventloop.cpp:201
#38 0x0000003d87958749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#39 0x00000038f8e102f6 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdebase-4.4.0/apps/konsole/src/main.cpp:77
#40 0x0000003b3ec1eb1d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=<value optimized out>) at libc-start.c:226
#41 0x0000000000400759 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2010-03-26 13:46:18 UTC
From bug 232135
-- Information about the crash:
When working in an editor I pressed Alt-Ctrl-/ which instantly crashed all
running instances of console.
Comment 2 Dario Andres 2010-03-26 13:46:28 UTC
*** Bug 230415 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2010-03-26 13:46:33 UTC
*** Bug 232135 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2010-03-26 22:31:31 UTC
From bug 232231:
-- Information about the crash:
I simultaneously hit several keys while composing a message in alpine
and the console crashed (taking all other instances along with it).
I see similar bug reports that claim reproducibility, but I can't reproduce 
the crash after some trying, and have never seen it before.
Comment 5 Dario Andres 2010-03-26 22:31:58 UTC
*** Bug 232231 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-03-26 22:32:54 UTC
Then, I wonder if the bug was introduced in 4.4branch and included by OpenSuse and Fedora, and fixed in the later versions of the packages....
Comment 7 luther 2010-04-13 14:18:20 UTC
Confirmed in Fedora 12...  

Steps to reproduce:

Add multiple new tabs Via Ctrl-Shift-N, then copy input to all via "ctrl-shift-," Pressing Ctrl-Shift-/ once unsets copy input on the active tab... Pressing Ctrl-Shift-/ again crashes all active konsole sessions.

--Luther
Comment 8 Tarun Yadav 2010-07-01 12:40:30 UTC
Same for Linux 2.6.32-23-generic For KUBUNTU_10.04.No problem for one tab. for multiple way this is a problem indeed
Comment 9 Kurt Hindenburg 2010-07-01 17:08:34 UTC
The fix should be  in 4.4.4 or .5 I believe.

*** This bug has been marked as a duplicate of bug 234330 ***
Comment 10 Tarun Yadav 2010-07-03 13:46:24 UTC
Created attachment 48559 [details]
patch.diff contain differece between SessionController.cpp code from source of konsole

I made a patch for bug 229384. I changed the use of copy_input_to_none in SessionController.cpp code in source of konsole. I have deleted the remove action for copy_in_put_to_none.
I worked well and fixes the bug.