Tips & theory

gdb core 파일이 생성되지 않을 때

wyv3rn 2022. 9. 16. 16:08
728x90
반응형

core file size가 0이면 생성되지 않는다.

[assassin@localhost assassin]$ ulimit -a
core file size (blocks)     0
data seg size (kbytes)      unlimited
file size (blocks)          unlimited
max locked memory (kbytes)  unlimited
max memory size (kbytes)    unlimited
open files                  1024
pipe size (512 bytes)       8
stack size (kbytes)         8192
cpu time (seconds)          unlimited
max user processes          2048
virtual memory (kbytes)     unlimited

그러므로

[assassin@localhost assassin]$ ulimit -c unlimited
[assassin@localhost assassin]$ ulimit -a
core file size (blocks)     1000000
data seg size (kbytes)      unlimited
file size (blocks)          unlimited
max locked memory (kbytes)  unlimited
max memory size (kbytes)    unlimited
open files                  1024
pipe size (512 bytes)       8
stack size (kbytes)         8192
cpu time (seconds)          unlimited
max user processes          2048
virtual memory (kbytes)     unlimited

간단 해결.

728x90
반응형