<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>100308</bug_id>
          
          <creation_ts>2005-02-26 15:45:37 +0000</creation_ts>
          <short_desc>Selecting the whole screen using the Ctrl+Alt keys lets Konsole crash</short_desc>
          <delta_ts>2005-02-26 18:36:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tijmen Baarda">tijmenbaarda</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>318604</commentid>
    <comment_count>0</comment_count>
    <who name="Tijmen Baarda">tijmenbaarda</who>
    <bug_when>2005-02-26 15:45:37 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.3.92)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.3.5 (Debian 1:3.3.5-8) 
OS:                Linux

When I select the whole screen in Konsole using Ctrl+Alt (box selection), konsole crashes after a few seconds. It outputs &quot;Alarm clock&quot;. 

No DrKonqi is shown, but using gdb I got the following backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1097249952 (LWP 5339)]
0x4146dd2d in mallopt () from /lib/tls/libc.so.6
(gdb) bt
#0  0x4146dd2d in mallopt () from /lib/tls/libc.so.6
#1  0x4146d578 in mallopt () from /lib/tls/libc.so.6
#2  0x4146c8c3 in malloc () from /lib/tls/libc.so.6
#3  0x413a82fe in operator new () from /usr/lib/libstdc++.so.5
#4  0x413a842f in operator new[] () from /usr/lib/libstdc++.so.5
#5  0x400a2988 in TEScreen::getSelText () from /usr/lib/libkdeinit_konsole.so
#6  0x400a2cfa in TEScreen::getSelText () from /usr/lib/libkdeinit_konsole.so
#7  0x400a292f in TEScreen::getSelText () from /usr/lib/libkdeinit_konsole.so
#8  0x400a515a in TEmulation::setSelection () from /usr/lib/libkdeinit_konsole.so
#9  0x400a3dca in TEmulation::qt_invoke () from /usr/lib/libkdeinit_konsole.so
#10 0x4009c4ea in TEmuVt102::qt_invoke () from /usr/lib/libkdeinit_konsole.so
#11 0x40d4c5ac in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#12 0x40d4cbe0 in QObject::activate_signal_bool () from /usr/lib/libqt-mt.so.3
#13 0x4009bcc6 in TEWidget::endSelectionSignal () from /usr/lib/libkdeinit_konsole.so
#14 0x40098a67 in TEWidget::mouseReleaseEvent () from /usr/lib/libkdeinit_konsole.so
#15 0x40d82737 in QWidget::event () from /usr/lib/libqt-mt.so.3
#16 0x40099f42 in TEWidget::event () from /usr/lib/libkdeinit_konsole.so
#17 0x40cefbff in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#18 0x40cef2f4 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#19 0x40896e03 in KApplication::notify () from /usr/lib/libkdecore.so.4
#20 0x40c84650 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
#21 0x40c822de in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#22 0x40c991c4 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#23 0x40d01f58 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#24 0x40d01e08 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#25 0x40cefe51 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#26 0x4006cb35 in kdemain () from /usr/lib/libkdeinit_konsole.so
#27 0x0804862b in ?? ()
#28 0x00000001 in ?? ()
#29 0xbffffbe4 in ?? ()
#30 0xbffffbb8 in ?? ()
#31 0x41410904 in __libc_start_main () from /lib/tls/libc.so.6
#32 0x41410904 in __libc_start_main () from /lib/tls/libc.so.6
#33 0x08048561 in ?? ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318609</commentid>
    <comment_count>1</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-02-26 16:01:05 +0000</bug_when>
    <thetext>
konsole: /home/kvh/CVS/KDE/CVS-kde/kdebase/konsole/konsole/TEScreen.cpp:1336: void TEScreen::getSelText(bool, QTextStream*): Assertion `d &lt;= columns&apos; failed.
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = konsole path = &lt;unknown&gt; pid = 2269

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318611</commentid>
    <comment_count>2</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-02-26 16:18:11 +0000</bug_when>
    <thetext>I can only reproduce when selecting horizontally the full width of the screen.

Putting a debug in the LINE_END, I get
konsole: LINE_END    d=1900;  columns=100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318633</commentid>
    <comment_count>3</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2005-02-26 18:32:42 +0000</bug_when>
    <thetext>CVS commit by waba: 

Don&apos;t crash when selecting full line with Ctrl+Alt
BUG: 100308


  M +5 -0      TEScreen.cpp   1.88


--- kdebase/konsole/konsole/TEScreen.cpp  #1.87:1.88
@@ -1323,4 +1323,9 @@ void TEScreen::getSelText(bool preserve_
             newlineneeded = true;
           }
+          if (((s - hist_BR) % columns == 0) &amp;&amp; newlineneeded)
+          {
+            LINE_END;
+            newlineneeded = false;
+          }
         }
         else {


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318635</commentid>
    <comment_count>4</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2005-02-26 18:36:06 +0000</bug_when>
    <thetext>It failed to put in linebreaks when the selection was the full screen width.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>