[lkml]   [2001]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

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