Bug 155450 - Konsole closes all instances after random click
Summary: Konsole closes all instances after random click
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-11 11:52 UTC by Allan Sandfeld
Modified: 2008-01-21 02:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld 2008-01-11 11:52:11 UTC
Version:            (using KDE KDE 4.0.0)
Installed from:    Compiled From Sources

If you click around in konsole, especially around the borders Konsole will suddenly close ALL instances of konsole on the desktop.

Since there is no kcrash dialog, I am assuming it is some kind of stack-overflow.
Comment 1 Allan Sandfeld 2008-01-11 11:52:47 UTC
It is grave KDE 4.0 regression.
Comment 2 Robert Knight 2008-01-12 13:07:39 UTC
Fixed.  Bug caused by attempt to QString::reserve(big negative number).  This bug is not present in the tagged KDE 4.0.0 release.
Comment 3 James Ots 2008-01-16 23:04:31 UTC
I experience this behaviour in openSUSE's packages of KDE 4.0.0. Is that because they're not actually distributing the released software, or is the bug still there?
Comment 4 Robert Knight 2008-01-17 00:57:39 UTC
> Is that because they're not actually distributing the released software,
> or is the bug still there?

I don't know.  The line of code which introduced the bug was added after KDE 4.0.0 was tagged, in revisions #757710 and #757711 in order to fix bug #155153.  This was fixed properly in revisions #759891 and #759892.  

If you are encountering this crash, which is very easy to reproduce, then your packages were very likely built with a version of KDE 4 from after the tagging.  I believe that OpenSUSE do frequent packages of the latest KDE 4.0 branch.  Are you sure that you aren't using these instead of the 4.0.0 packages?

If you can reproduce the crash easily, please run Konsole from the debugger (with the --nofork argument) and print a backtrace if possible, just to confirm that it is the same bug.

gdb konsole
gdb$ set args --nofork
gdb$ run
... <crash> 
gdb$ backtrace

Comment 5 James Ots 2008-01-20 23:55:21 UTC
Not sure how much use this is without debugging symbols, but here's the backtrace:

#0  0xb63b86cc in memcpy () from /lib/libc.so.6
#1  0xb6d28958 in QString::realloc () from /usr/lib/libQtCore.so.4
#2  0xb7eab50d in ?? () from /usr/lib/libkdeinit4_konsole.so
#3  0xbfd34518 in ?? ()
#4  0xffffffff in ?? ()
#5  0xb6478ff4 in ?? () from /lib/libc.so.6
#6  0xb6594ff4 in ?? () from /usr/lib/libstdc++.so.6
#7  0xb7edb4f0 in ?? () from /usr/lib/libkdeinit4_konsole.so
#8  0xbfd34518 in ?? ()
#9  0xbfd34528 in ?? ()
#10 0xb656802e in __cxa_guard_release () from /usr/lib/libstdc++.so.6
#11 0xb7e905b6 in ?? () from /usr/lib/libkdeinit4_konsole.so
#12 0xbfd34614 in ?? ()
#13 0xb7edb500 in ?? () from /usr/lib/libkdeinit4_konsole.so
#14 0xffffffff in ?? ()
#15 0x00000000 in ?? ()
Comment 6 Robert Knight 2008-01-21 02:42:35 UTC
> Not sure how much use this is without debugging symbols,
> but here's the backtrace: 

That looks like the same bug to me.  If you can obtain updated KDE 4.0 packages it should be fixed.