lkml.org 
[lkml]   [2001]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Core dumps for threads
    On Sun, Feb 25, 2001 at 11:28:14AM +0100, Andi Kleen wrote:

    It would need a recursive mm semaphore -- core dumps can page
    fault and page faults take the semaphore again. Other alternative
    is to copy the MM like fork before dumping, but then core dumping
    could fail much quicker when you ran out of memory.

    Ouch... would creating another semaphore or flag 'dumping_core' work
    or is that jut a bad idea?

    I ask this because like it or not; people use threaded applications
    and having threaded core dumps would be cool. Requiring a copy to
    dump isn't really elegant or an option if you run a process who's RSS
    is 400M on a 512MB machine as I do.




    --cw
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:17    [W:0.020 / U:0.764 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site