[질문] core dump

akfgoakfgo의 이미지

프로그램이 memory falut와 같은 이유로 종료될 때, core dump가 안 만들어 집니다.
어떻게 하면 core dump가 만들어 지나요.

mach의 이미지

akfgoakfgo wrote:
프로그램이 memory falut와 같은 이유로 종료될 때, core dump가 안 만들어 집니다.
어떻게 하면 core dump가 만들어 지나요.

signal()에 대해서 자세히 알아보세요.

참고 url = http://www.squarebox.co.uk/cgi-squarebox/manServer/signal.7

------------------ P.S. --------------
지식은 오픈해서 검증받아야 산지식이된다고 동네 아저씨가 그러더라.

짱이의 이미지

$ulimit -c 2048000
코어사이즈가 2048000으로 변경
$ulimit -a
코어사이즈가 변경되었는지 확인

metalwolf의 이미지

shell 에서 ulimit 으로 설정하시면 그 해당 셀밖에 되지 않습니다.

/etc/profile 의

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

초기값이 대부분 이렇게 되어 있을텐데 0을 한 1000000 정도

잡으세요.

^__^;

^____^; 방가여

akfgoakfgo의 이미지

mach wrote:
akfgoakfgo wrote:
프로그램이 memory falut와 같은 이유로 종료될 때, core dump가 안 만들어 집니다.
어떻게 하면 core dump가 만들어 지나요.

signal()에 대해서 자세히 알아보세요.

참고 url = http://www.squarebox.co.uk/cgi-squarebox/manServer/signal.7

위에서 말씀하신 사이트의 내용대로 signal을 이용해서, coredump를 생성해 보았습니다.

그런데, 컴퓨터 2대에서 똑같은 프로그램을 실행시키고 signal 3을 보냈는데..

한곳에서는 coredump가 생기고, 한쪽에서는 안생깁니다.

또다른 옵션이 있나요 ???

mach의 이미지

akfgoakfgo wrote:

또다른 옵션이 있나요 ???

shell 레벨에서 앞으로 생성될 코어덤프 파일에 대한 최대 사이즈를
지정하게 됩니다.
metalwolf님이 이미 앞에서 설명해주셨네요.

Quote:

$ man bash[엔터 하시고]
:에서

/ulimit 쳐보세요

현재의 ulimit 설정을 보려면 다음과 같이 하면됩니다.

Quote:
$ ulimit -a
core file size 0 <== 아마도 0 이겠지요.
어쩌구....
저쩌구....
....

** 참고로 사용하는 쉘의 종류 및 시스템에 따라 코어파일사이즈를 지정하는 방식이
다를 수 있습니다.
** 또한, 대용량 서버 프로그램등을 작성 또는 운영하는 경우, setrlimit()등을 참고하셔서
서버를 튜닝해 주실필요가 생길 수 있습니다.

------------------ P.S. --------------
지식은 오픈해서 검증받아야 산지식이된다고 동네 아저씨가 그러더라.

akfgoakfgo의 이미지

아하..그런 뜻이였군요..

감사..합니다..
도움 많이 되었습니다...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.