Bug 146483 - The size of konsole history temporary file is limited to 2GB
Summary: The size of konsole history temporary file is limited to 2GB
Status: RESOLVED DUPLICATE of bug 374259
Alias: None
Product: konsole
Classification: Applications
Component: history (show other bugs)
Version: 2.8
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 129633 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-07 12:52 UTC by Cédric BLIN
Modified: 2022-01-12 17:31 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-28133-0.html (1.50 KB, text/html)
2017-01-10 06:57 UTC, Aniketh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric BLIN 2007-06-07 12:52:48 UTC
Version:           1.6.6 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

I want to report lots of traces on stdout, so I use : history = unlimited, but after a short time my Konsole window shut down with all tabs associated to this one. Here is the backtrace that result :

$ gdb konsole
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/konsole
(no debugging symbols found)
(no debugging symbols found)
...
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1233951024 (LWP 15845)]
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
...
(no debugging symbols found)
(no debugging symbols found)
kdecore (KProcess): WARNING: _attachPty() 16

Program received signal SIGXFSZ, File size limit exceeded.
[Switching to Thread -1233951024 (LWP 15845)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d8c0b3 in write () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7f6482a in HistoryFile::add () from /usr/lib/libkdeinit_konsole.so
#3  0xb7f64924 in HistoryScrollFile::addCells () from /usr/lib/libkdeinit_konsole.so
#4  0xb7f71f32 in TEScreen::addHistLine () from /usr/lib/libkdeinit_konsole.so
#5  0xb7f721a7 in TEScreen::scrollUp () from /usr/lib/libkdeinit_konsole.so
#6  0xb7f72212 in TEScreen::index () from /usr/lib/libkdeinit_konsole.so
#7  0xb7f7229a in TEScreen::NextLine () from /usr/lib/libkdeinit_konsole.so
#8  0xb7f72501 in TEScreen::ShowCharacter () from /usr/lib/libkdeinit_konsole.so
#9  0xb7f74b19 in TEmuVt102::tau () from /usr/lib/libkdeinit_konsole.so
#10 0xb7f87fad in TEmuVt102::onRcvChar () from /usr/lib/libkdeinit_konsole.so
#11 0xb7f863a1 in TEmulation::onRcvBlock () from /usr/lib/libkdeinit_konsole.so
#12 0xb7f8db99 in TESession::onRcvBlock () from /usr/lib/libkdeinit_konsole.so
#13 0xb7f9554a in TESession::qt_invoke () from /usr/lib/libkdeinit_konsole.so
#14 0xb6c3988b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#15 0xb7f6c1b8 in TEPty::block_in () from /usr/lib/libkdeinit_konsole.so
#16 0xb7f6c2eb in TEPty::dataReceived () from /usr/lib/libkdeinit_konsole.so
#17 0xb7f77183 in TEPty::qt_invoke () from /usr/lib/libkdeinit_konsole.so
#18 0xb6c3988b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#19 0xb7454c43 in KProcess::receivedStdout () from /usr/lib/libkdecore.so.4
#20 0xb7454d48 in KProcess::childOutput () from /usr/lib/libkdecore.so.4
#21 0xb7454d79 in KProcess::slotChildOutput () from /usr/lib/libkdecore.so.4
#22 0xb7454dda in KProcess::qt_invoke () from /usr/lib/libkdecore.so.4
#23 0xb7f77103 in TEPty::qt_invoke () from /usr/lib/libkdeinit_konsole.so
#24 0xb6c3988b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#25 0xb6c3a1a2 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#26 0xb6fc6877 in QSocketNotifier::activated () from /usr/lib/libqt-mt.so.3
#27 0xb6c5c44a in QSocketNotifier::event () from /usr/lib/libqt-mt.so.3
#28 0xb6bd0a60 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#29 0xb6bd288f in QApplication::notify () from /usr/lib/libqt-mt.so.3
#30 0xb7529c32 in KApplication::notify () from /usr/lib/libkdecore.so.4
#31 0xb6b631e9 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#32 0xb6bc2e59 in QEventLoop::activateSocketNotifiers () from /usr/lib/libqt-mt.so.3
#33 0xb6b77d07 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#34 0xb6beb136 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#35 0xb6beaf46 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#36 0xb6bd2609 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#37 0xb7fafc6b in kdemain () from /usr/lib/libkdeinit_konsole.so
---Type <return> to continue, or q <return> to quit---
#38 0x080484c2 in ?? ()
#39 0x00000001 in ?? ()
#40 0xbf9380b4 in ?? ()
#41 0xbf938018 in ?? ()
#42 0xb7e08ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#43 0xb7fe67b0 in ?? () from /lib/ld-linux.so.2
#44 0xbf938030 in ?? ()
#45 0xbf938088 in ?? ()
#46 0xb7ce1ebc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
Backtrace stopped: frame did not save the PC
(gdb)

I use a Feisty Kubuntu, it was the same crash with kde 3.5.6, I upgraded with 3.5.7 but it still crash. I don't remember that was appended with Dapper...

Thanks,
Cédric
Comment 1 Robert Knight 2007-06-09 12:59:58 UTC
*** Bug 129633 has been marked as a duplicate of this bug. ***
Comment 2 Robert Knight 2007-06-09 13:45:34 UTC
I ran across this on the Linux kernel mailing list, it may be related: http://www.ussg.iu.edu/hypermail/linux/kernel/0705.2/3184.html

In short, the SIGXFSZ error is apparently only supposed to be sent if the size of the temporary file Konsole stores its history in exceeds the process limits.  I can reproduce this even though I don't have a file size limit set.

There is definitely a bug in Konsole as well since normal integers are used to track the length of the history file, and that has a 2GB limit.

Comment 3 Jekyll Wu 2011-09-21 18:48:02 UTC
My observation is this 2GB limit of history file still applies for KDE4 konsole, but it does not crash now.
Comment 4 Kurt Hindenburg 2014-04-17 13:49:39 UTC
*** Bug 333472 has been marked as a duplicate of this bug. ***
Comment 5 Aniketh 2017-01-07 17:28:43 UTC
So should we give it unlimited size or limited size itself. If limited size then please mention the amount of size required.
Comment 6 Aniketh 2017-01-10 06:57:16 UTC
Created attachment 103324 [details]
attachment-28133-0.html

Hey,

Any Konsole devs over here who could help me over this? It would nice to
build Konsole much better. :)

Cheers.
Comment 7 ninjalj 2022-01-12 17:31:27 UTC

*** This bug has been marked as a duplicate of bug 374259 ***