Core dump

From 탱이의 잡동사니
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

Linux/Unix core dump 내용 정리

Piping core dump to a program

리눅스 커널 2.6.19 버전부터 사용 가능하다. /proc/sys/kernel/core_pattern 에 설정된 내용의 첫번째 문자가 '|'로 시작할 경우, 생성된 코어 덤프를 파일로 쓰는 것이 아닌(디스크에 저장을 하지않고), 지정된 프로그램의 실행 인자값으로 넘겨지게 된다.

  • 반드시 절대 경로로 프로그램을 지정해야 한다.
  • The command-line arguments can include any of the % specifiers listed above. For example, to pass the PID of the process that is being dumped, specifiy %p in an argument.

See also