Selective core dump in Linux - How can I select the dumped sections?

前端 未结 2 1032
天涯浪人
天涯浪人 2021-02-02 01:25

I am looking for a way to select the sections and memory regions included in a core dump.
My application\'s core dump size is about 30GB, most of it is in preallocated buffe

2条回答
  •  遥遥无期
    2021-02-02 02:10

    I'm not sure if it is possible to set which part of the memory to dump.

    From man 5 core

    disk file containing an image of the process's memory at the time of termination

    As an option you can truncate core file using setrlimit with a RLIMIT_CORE parameter.

提交回复
热议问题