Re: [evolution-patches] 36778, file descriptor usage problems
- From: Not Zed <notzed ximian com>
- To: asdf <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] 36778, file descriptor usage problems
- Date: Mon, 21 Mar 2005 11:38:21 +0800
committed to all branches (2.8, 2.10 and head)
On Fri, 2005-03-18 at 13:00 +0800, Not Zed wrote:
    
    this patch fixes a bug where a file descriptor is closed twice every time a mbox mailbox is synced.
    
    normally this is harmless, but if there is a lot of threading going on, it could lead to data corruption, and possibly this is the cause of bug 36778, and some 'summary mismatch' type bugs, and who knows what else.
    
    i.e.
    open() = 12
    do processing
    close(12)
    -> context switch
        open () = 12
    <- context switch
    close(12)
    -> context switch
          any processing on file descriptor  will fail (spurious failures)
    <- context switch
    open some other file = 12
    -> context switch
        any processing on file will corrupt it or interfere with it
    
    etc.
    
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]