Bug 169877 - Square selection with Ctrl + Alt crashes konsole with TR->BL selection
Summary: Square selection with Ctrl + Alt crashes konsole with TR->BL selection
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 19:54 UTC by Mike
Modified: 2008-09-22 01:00 UTC (History)
2 users (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 Mike 2008-08-26 19:54:04 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

If you use Ctrl+Alt to get a square selection and drag from top right to bottom left, it crashes.  Selecting from top left to bottom right (or vice-versa) is OK.

Hopefully you can reproduce because the backtrace does not look very useful :(

Backtrace
==========================

Application: Konsole (konsole), signal SIGABRT
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007f9947c1e7e1 in nanosleep () from /lib/libc.so.6
Current language:  auto; currently c
[Current thread is 0 (LWP 7596)]

Thread 2 (Thread 0x415fe950 (LWP 7602)):
#0  0x00007f9947c460c2 in select () from /lib/libc.so.6
#1  0x00007f9948977d2a in QProcessManager::run (this=0x62e270) at io/qprocess_unix.cpp:307
#2  0x00007f99488c9e3a in QThreadPrivate::start (arg=0x62e270) at thread/qthread_unix.cpp:191
#3  0x00007f994865b037 in start_thread (arg=<value optimized out>) at pthread_create.c:296
#4  0x00007f9947c4c28d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f994c596700 (LWP 7596)):
#0  0x00007f9947c1e7e1 in nanosleep () from /lib/libc.so.6
#1  0x00007f9947c1e604 in __sleep (seconds=<value optimized out>) at ../sysdeps/unix/sysv/linux/sleep.c:138
#2  0x00007f994bc758ce in KCrash::startDrKonqi (argv=0x7fff546ea610, argc=1416537616) at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/util/kcrash.cpp:362
#3  0x65646b2f7273752f in ?? ()
#4  0x62696c2f6e76732f in ?? ()
#5  0x2f3465646b2f3436 in ?? ()
#6  0x2f6365786562696c in ?? ()
#7  0x0069716e6f6b7264 in ?? ()
#8  0x79616c707369642d in ?? ()
#9  0x2d2d00302e303a00 in ?? ()
#10 0x00656d616e707061 in ?? ()
#11 0x00656c6f736e6f6b in ?? ()
#12 0x6c616e6769732d2d in ?? ()
#13 0x6469702d2d003600 in ?? ()
#14 0x2d2d003639353700 in ?? ()
#15 0x6973726576707061 in ?? ()
#16 0x2d00322e32006e6f in ?? ()
#17 0x6d6172676f72702d in ?? ()
#18 0x6e6f4b00656d616e in ?? ()
#19 0x622d2d00656c6f73 in ?? ()
#20 0x7365726464616775 in ?? ()
#21 0x74696d6275730073 in ?? ()
#22 0x646b2e7367756240 in ?? ()
#23 0x2d2d0067726f2e65 in ?? ()
#24 0x6970757472617473 in ?? ()
#25 0x0000000000300064 in ?? ()
#26 0x0000000000000000 in ?? ()
Comment 1 Dario Andres 2008-08-27 20:13:54 UTC
Qt: 4.4.1
KDE: 4.1.1 (KDE 4.1.0 (4.1 >= 20080722))
Konsole: 2.1
in ArchLinux i686:

I can reproduce this crash.

Here is the full backtrace:

Aplicación: Konsole (konsole), señal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb6283700 (LWP 4481)]
[New Thread 0xb4bd8b90 (LWP 4482)]
[KCrash handler]
#6  0xb7f07424 in __kernel_vsyscall ()
#7  0xb6603740 in raise () from /lib/libc.so.6
#8  0xb6605078 in abort () from /lib/libc.so.6
#9  0xb65fc68e in __assert_fail () from /lib/libc.so.6
#10 0xb7ea9803 in Konsole::Screen::copyLineToStream (this=0x84a9c70, line=0, 
    start=-1208984512, count=0, decoder=0xbfc20c70, appendNewLine=true, 
    preserveLineBreaks=true)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/Screen.cpp:1258
#11 0xb7ea992e in Konsole::Screen::writeSelectionToStream (this=0x84a9c70, 
    decoder=0xbfc20c70, preserveLineBreaks=true)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/Screen.cpp:1189
#12 0xb7ea9b35 in Konsole::Screen::selectedText (this=0x84a9c70, 
    preserveLineBreaks=<value optimized out>)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/Screen.cpp:1149
#13 0xb7eaa445 in Konsole::ScreenWindow::selectedText (this=0x84a9ed8, 
    preserveLineBreaks=<value optimized out>)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/ScreenWindow.cpp:120
#14 0xb7ec927d in Konsole::TerminalDisplay::mouseReleaseEvent (
    this=0x849fa08, ev=0xbfc2127c)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/TerminalDisplay.cpp:2009
#15 0xb69ae062 in QWidget::event (this=0x849fa08, event=0xbfc2127c)
    at kernel/qwidget.cpp:7021
#16 0xb7ec8cd3 in Konsole::TerminalDisplay::event (this=0x849fa08, 
    e=0xbfc2127c)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/TerminalDisplay.cpp:2527
#17 0xb6959668 in QApplicationPrivate::notify_helper (this=0x8076748, 
    receiver=0x849fa08, e=0xbfc2127c) at kernel/qapplication.cpp:3800
#18 0xb6960fd7 in QApplication::notify (this=0xbfc21a14, receiver=0x849fa08, 
    e=0xbfc2127c) at kernel/qapplication.cpp:3527
#19 0xb7a37edc in KApplication::notify (this=0xbfc21a14, receiver=0x849fa08, 
    event=0xbfc2127c)
    at /home/jan/Source/packages/kde41/work/kdelibs/src/kdelibs-4.1.0/kdeui/kernel/kapplication.cpp:311
#20 0xb747ab3b in QCoreApplication::notifyInternal (this=0xbfc21a14, 
    receiver=0x849fa08, event=0xbfc2127c) at kernel/qcoreapplication.cpp:587
#21 0xb695e2a8 in QApplicationPrivate::sendMouseEvent (receiver=0x849fa08, 
    event=0xbfc2127c, alienWidget=0x0, nativeWidget=0x83d44b8, 
    buttonDown=0xb6fc9560, lastMouseReceiver=@0xb6fc9564)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#22 0xb69c1002 in QETWidget::translateMouseEvent (this=0x83d44b8, 
    event=0xbfc2174c) at kernel/qapplication_x11.cpp:4048
#23 0xb69c0560 in QApplication::x11ProcessEvent (this=0xbfc21a14, 
    event=0xbfc2174c) at kernel/qapplication_x11.cpp:3044
#24 0xb69e5f42 in x11EventSourceDispatch (s=0x8078568, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#25 0xb6328171 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb632b803 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#27 0xb632b9c1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb74a2431 in QEventDispatcherGlib::processEvents (this=0x8053b60, flags=
      {i = -1077798664}) at kernel/qeventdispatcher_glib.cpp:325
#29 0xb69e5789 in QGuiEventDispatcherGlib::processEvents (this=0x8053b60, 
    flags={i = -1077798616}) at kernel/qguieventdispatcher_glib.cpp:204
#30 0xb747975c in QEventLoop::processEvents (this=0xbfc21990, flags=
      {i = -1077798552}) at kernel/qeventloop.cpp:149
#31 0xb7479919 in QEventLoop::exec (this=0xbfc21990, flags={i = -1077798504})
    at kernel/qeventloop.cpp:196
#32 0xb747e572 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:849
#33 0xb6959411 in QApplication::exec () at kernel/qapplication.cpp:3330
#34 0xb7eeda9a in kdemain (argc=1, argv=0xbfc21b44)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/main.cpp:100
#35 0x08048786 in main (argc=)
    at /home/jan/Source/packages/kde41/work/kdebase/src/kdebase-4.1.0/apps/konsole/src/konsole_dummy.cpp:3
#0  0xb7f07424 in __kernel_vsyscall ()
Comment 2 Dario Andres 2008-08-27 20:16:36 UTC
This also happens when drawing the selecting square from BottomLeft to TopRight
Comment 3 Robert Knight 2008-09-22 01:00:10 UTC
Fixed for KDE 4.2.