[lkml]   [2007]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 0/4] coredump: core dump masking support v3

    David Howells wrote:

    > Kawai, Hidehiro <> wrote:
    >>To avoid the above situation we can limit the core file size by
    >>setrlimit(2) or ulimit(1). But this method can lose important data
    >>such as stack because core dumping is terminated halfway.
    >>So I suggest keeping shared memory segments from being dumped for
    >>particular processes.
    > A better way might be to place the shared memory segments last if that's
    > possible (I'm not sure ELF supports out-of-order segments).

    Placing the shared memory segments last and limiting by ulimit -c
    is one of the solutions. But there is no guarantee that the memory
    segments other than anonymous shared memory are always dumped.
    So your idea cannot alternate my suggesting feature.
    But if your idea has a merit which my idea doesn't have, I try to
    consider coexistence of both idea.

    >>Because the shared memory attached to processes is common in them, we don't
    >>need to dump the shared memory every time.
    > So there's no guarantee that they'll be dumped at all... I'm not sure there's
    > any way around that, however.

    Indeed. However, some people don't want to dump anonymous shared memory
    at all. Taking into account this requirement, I don't guarantee that.
    But this feature allows per-process setting. So if you want to dump
    the shared memory at least once, you can manage to do that in userland.

    Hidehiro Kawai
    Hitachi, Ltd., Systems Development Laboratory

    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: 2007-02-20 10:51    [W:0.032 / U:208.676 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site