{"id":71,"date":"2007-12-31T08:46:59","date_gmt":"2007-12-31T00:46:59","guid":{"rendered":"http:\/\/blog.urdada.net\/2007\/12\/31\/71\/"},"modified":"2008-01-27T10:35:40","modified_gmt":"2008-01-27T02:35:40","slug":"enable-core-dump-in-linux-and-freebsd","status":"publish","type":"post","link":"https:\/\/dada.tw\/blog\/2007\/12\/31\/71\/","title":{"rendered":"Enable core dump in Linux and FreeBSD"},"content":{"rendered":"<p>Just a note.<\/p>\n<p>You can enable <a href=http:\/\/en.wikipedia.org\/wiki\/Core_dump target=_blank>core dump<\/a> by:<\/p>\n<p>[bash] edit \/etc\/profile<\/p>\n<pre class=mono>\r\nulimit -c unlimited\r\n<\/pre>\n<p>[csh\/tcsh] edit \/etc\/csh.cshrc<\/p>\n<pre class=mono>\r\nlimit coredumpsize unlimited\r\n<\/pre>\n<p>You can disable <a href=http:\/\/en.wikipedia.org\/wiki\/Core_dump target=_blank>core dump<\/a> by:<\/p>\n<p>[bash] edit \/etc\/profile<\/p>\n<pre class=mono>\r\nulimit -c 0\r\n<\/pre>\n<p>[csh\/tcsh] edit \/etc\/csh.cshrc<\/p>\n<pre class=mono>\r\nlimit coredumpsize 0\r\n<\/pre>\n<p>On FreeBSD, you also need to check the setting of kern.coredump:<\/p>\n<pre class=mono>\r\n# sysctl -a |grep kern.coredump\r\nkern.coredump: 0\r\n# sysctl kern.coredump=1\r\nkern.coredump: 0 -> 1\r\n# sysctl -a | grep kern.coredump\r\nkern.coredump: 1\r\n<\/pre>\n<p>You can enforce this setting in \/etc\/sysctl.conf<\/p>\n<p>[2008\/01\/01] Thanks for the <a href=http:\/\/blog.gslin.org\/archives\/2007\/12\/31\/1400\/ target=_blank>complement<\/a> from <a href=http:\/\/blog.gslin.org\/ target=_blank>gslin<\/a>, kern.sugid_coredump controls the core dump for setuid\/setgid process in FreeBSD.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a note. You can enable core dump by: [bash] edit \/ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-os"],"views":7800,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pubdi-19","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":72,"url":"https:\/\/dada.tw\/blog\/2008\/01\/02\/72\/","url_meta":{"origin":71,"position":0},"title":"Change the core dump file name in Linux and FreeBSD","author":"dada","date":"2008-01-02","format":false,"excerpt":"Following the previous notes about enabling core d\u2026","rel":"","context":"\u5728\u300c\u4f5c\u696d\u7cfb\u7d71\u300d\u4e2d","block_context":{"text":"\u4f5c\u696d\u7cfb\u7d71","link":"https:\/\/dada.tw\/blog\/category\/comp\/os\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7,"url":"https:\/\/dada.tw\/blog\/2006\/10\/24\/7\/","url_meta":{"origin":71,"position":1},"title":"\u8e29\u5230 FreeBSD 6.1 \u7684\u5730\u96f7&#8230;","author":"dada","date":"2006-10-24","format":false,"excerpt":"\u6628\u5929\u88dd\u4e86\u53f0\u6a5f\u5668\uff0c\u7531\u65bc\u6709\u5169\u53f0\u76f8\u540c\u5bb9\u91cf\u7684 18G \u786c\u789f\uff0c\u6b64\u88dd\u597d\u4e4b\u5f8c\u9806\u624b\u66ff root partition \u2026","rel":"","context":"\u5728\u300c\u4f5c\u696d\u7cfb\u7d71\u300d\u4e2d","block_context":{"text":"\u4f5c\u696d\u7cfb\u7d71","link":"https:\/\/dada.tw\/blog\/category\/comp\/os\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":84,"url":"https:\/\/dada.tw\/blog\/2008\/04\/18\/84\/","url_meta":{"origin":71,"position":2},"title":"Bypass the 2GB file size limit on 32-bit Linux","author":"dada","date":"2008-04-18","format":false,"excerpt":"Bypass the 2GB file size limit on 32-bit Linux (\u5728 \u2026","rel":"","context":"\u5728\u300c\u4f5c\u696d\u7cfb\u7d71\u300d\u4e2d","block_context":{"text":"\u4f5c\u696d\u7cfb\u7d71","link":"https:\/\/dada.tw\/blog\/category\/comp\/os\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":45,"url":"https:\/\/dada.tw\/blog\/2005\/06\/05\/45\/","url_meta":{"origin":71,"position":3},"title":"\u5728 FreeBSD \u4e0b\u5b89\u88dd MySQL 4.1 &#8230;","author":"dada","date":"2005-06-05","format":false,"excerpt":"\u5728 FreeBSD \u4e0b\u9762\u7528 ports \u5b89\u88dd MySQL 4.1 \u5982\u679c\u4f60\u53ea\u8981\u7528 UTF-8 \u7684\u8a71\u5c31\u7b97\u2026","rel":"","context":"\u5728\u300c\u8edf\u9ad4\u300d\u4e2d","block_context":{"text":"\u8edf\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15,"url":"https:\/\/dada.tw\/blog\/2006\/07\/25\/15\/","url_meta":{"origin":71,"position":4},"title":"\u4f7f\u7528 bcompiler \u4f86\u7de8\u8b6f\uff08\u52a0\u5bc6\uff09\u60a8\u7684 PHP \u539f\u59cb\u78bc","author":"dada","date":"2006-07-25","format":false,"excerpt":"Using bcomipler to compile (encode) your PHP scrip\u2026","rel":"","context":"\u5728\u300c\u7a0b\u5f0f\u8a9e\u8a00\u300d\u4e2d","block_context":{"text":"\u7a0b\u5f0f\u8a9e\u8a00","link":"https:\/\/dada.tw\/blog\/category\/comp\/language\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69,"url":"https:\/\/dada.tw\/blog\/2007\/12\/24\/69\/","url_meta":{"origin":71,"position":5},"title":"Script: \u53d6\u5f97 FreeBSD CVSUP \u7684\u66f4\u65b0\u72c0\u614b","author":"dada","date":"2007-12-24","format":false,"excerpt":"\u9019\u662f\u4eca\u5e741\u6708\u5beb\u7684 script... \u7528\u4f86\u76e3\u63a7\u5404\u5927 FreeBSD CVSUP mirror \u7db2\u7ad9\u7684\u2026","rel":"","context":"\u5728\u300c\u8edf\u9ad4\u300d\u4e2d","block_context":{"text":"\u8edf\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":0,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}