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

List:       kwrite-devel
Subject:    Re: [Bug 135422] Kate destroys the data instead of saving it if the
From:       Milian Wolff <mail () milianw ! de>
Date:       2007-01-09 18:22:24
Message-ID: 200701091922.25123.mail () milianw ! de
[Download RAW message or body]

Am Dienstag, 09. Januar 2007 18:10 schrieb Matthew Woehlke:
> Dominik Haumann wrote:
> > Matthew Woehlke wrote:
> >> Here is how I can reproduce it, works every time:
> >>
> >> 1. Start Konsole and KWrite
> >> 2. Konsole: 'mkdir ~/foo'
> >> 3. KWrite: create a file, save as '~/foo/bar'
> >> 4. Konsole: 'rm -rf foo'
> >> 5. KWrite: gives message about 'file deleted on disk'
> >> 6. KWrite: Choose 'save as...', dialog should start in ~. Create new
> >> directory 'foo', then save file as 'bar' (~/foo/bar) 7. KWrite: "The
> >> file ~/foo/bar could not be loaded, as it was not possible to read from
> >> it" 8. Now you file is GONE.
> >
> > KDE 3.5.5 here. I can not reproduce comment #3... Creating the directory
> > and then saving it as foo/bar works.
>
> Well, I can absolutely reproduce it, every time. Any suggestions on
> helping to debug this? I tried 'strace -e file' but nothing is obvious. :-(
>
> Is it possible this is a race condition, e.g. kio checks the file before
> the kernel writes it to disk?

I can confirm this with kwrite 4.5.5 on KDE 3.5.5 (Kubuntu Edgy)
-- 
Milian Wolff
http://milianw.de
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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