[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kant
Subject:    Bug#42353: file close race with altered file
From:       pasaojan () cc ! jyu ! fi
Date:       2002-05-08 23:43:06
[Download RAW message or body]

Package: kate
Version: 1.0 (using KDE 2.2.2 )
Severity: normal
Installed from:    Debian Package 4:2.2.2-13 (3.0)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:                Linux (i686) release 2.4.19-pre8
OS/Compiler notes: 

Let's say, I have two files open in Kate:
One must be a relatively large file,
like a syslog but I guess it can be any.
The other one doesn't matter. Open those 
files in Kate and leave the other file 
with focus in it.

Come back after a while when you can
assume the syslog file has got a new
entry in it and hit C-w quickly twice
to close both of the files. The other
file closes just fine but then a dialog
appears asking if you want to reload
the contents of the altered syslog
file in Kate. Hit yes and you get
a page violation.

I guess the problem is Kate closing
the syslog file before it notices
it had been altered out of the process
and then it erraneously tries to
reload an already closed file.

Backtrace follows:

(no debugging symbols found)...(no debugging symbols found)...
.
.
.
0x40d4aa69 in wait4 () from /lib/libc.so.6
#0  0x40d4aa69 in wait4 () from /lib/libc.so.6
#1  0x40dc1e48 in __check_rhosts_file () from /lib/libc.so.6
#2  0x4058f4d8 in KCrash::defaultCrashHandler () from /usr/lib/libkdecore.so.3
#3  0x40cd36e8 in sigaction () from /lib/libc.so.6
#4  0x40f6f7ec in KateDocument::currentColumn () from /usr/lib/libkatecore.so
#5  0x40fae368 in KateView::currentColumn () from /usr/lib/libkatecore.so
#6  0x40f9d00e in KateViewManager::statusMsg () from /usr/lib/libkatecore.so
#7  0x40f9c804 in KateViewManager::activateView () from /usr/lib/libkatecore.so
#8  0x40f9c870 in KateViewManager::activateView () from /usr/lib/libkatecore.so
#9  0x40fd1899 in KateFileList::slotActivateView ()
   from /usr/lib/libkatecore.so
#10 0x4091aa4f in QListBox::highlighted () from /usr/lib/libqt.so.2
#11 0x4087f998 in QListBox::takeItem () from /usr/lib/libqt.so.2
#12 0x40880981 in QListBoxItem::~QListBoxItem () from /usr/lib/libqt.so.2
#13 0x40fd1f7c in KateFileListItem::~KateFileListItem ()
   from /usr/lib/libkatecore.so
#14 0x408816de in QListBox::removeItem () from /usr/lib/libqt.so.2
#15 0x40fd183a in KateFileList::slotDocumentDeleted ()
   from /usr/lib/libkatecore.so
#16 0x40f6934f in KateDocManager::documentDeleted ()
   from /usr/lib/libkatecore.so
#17 0x40f6950c in KateDocManager::deleteDoc () from /usr/lib/libkatecore.so
#18 0x40f9cd7e in KateViewManager::closeDocWithAllViews ()
   from /usr/lib/libkatecore.so
#19 0x40f9d96e in KateViewManager::slotDocumentClose ()
   from /usr/lib/libkatecore.so


(Submitted via bugs.kde.org)
(Called from KBugReport dialog)

_______________________________________________
kde-kant mailing list
kde-kant@
http://mail.kde.org/mailman/listinfo/kde-kant
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic