{"id":1728,"date":"2011-05-05T19:38:15","date_gmt":"2011-05-05T19:38:15","guid":{"rendered":"http:\/\/really.zonky.org\/?p=1728"},"modified":"2011-05-05T19:38:15","modified_gmt":"2011-05-05T19:38:15","slug":"making-a-core-dump-of-a-running-process","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=1728","title":{"rendered":"Making A Core Dump Of A Running Process"},"content":{"rendered":"<p>For my own future reference &#8230;<\/p>\n<p>Today I encountered an interesting little issue where I could not send an ABORT signal to a running process to kill it with a core dump because the process had a limit of 0 for the core dump size. Try as I might, I could not find a way to change that process&#8217;s core dump limit.<\/p>\n<p>Turns out there is another way of tackling the problem, which is to use <em>gdb<\/em> to generate a core image :-<\/p>\n<pre>gdb\r\n&gt;attach PID\r\n&gt;gcore \/var\/tmp\/core.PID<\/pre>\n<p>There is of course the <em>gcore<\/em> shell script wrapper for this, but that may not work if the working directory of the process no longer exists.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For my own future reference &#8230; Today I encountered an interesting little issue where I could not send an ABORT signal to a running process to kill it with a core dump because the process had a limit of 0 for the core dump size. Try as I might, I could not find a way <a href='https:\/\/really.zonky.org\/?p=1728' class='excerpt-more'>[&#8230;]<\/a><\/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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[209],"tags":[827,826,43],"class_list":["post-1728","post","type-post","status-publish","format-standard","hentry","category-linux-it","tag-core","tag-gdb","tag-linux","category-209-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-rS","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/1728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1728"}],"version-history":[{"count":1,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/1728\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/1728\/revisions\/1729"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}