{"id":5157,"date":"2022-04-12T07:28:57","date_gmt":"2022-04-11T22:28:57","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=5157"},"modified":"2024-02-06T07:20:08","modified_gmt":"2024-02-05T22:20:08","slug":"rhel%e3%81%a7%e3%82%b3%e3%82%a2%e3%83%80%e3%83%b3%e3%83%97%e3%81%ae%e5%87%ba%e5%8a%9b%e3%82%92%e5%88%b6%e5%be%a1%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/5157","title":{"rendered":"RHEL 8\u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u51fa\u529b\u3092\u5236\u5fa1\u3059\u308b\uff01"},"content":{"rendered":"<p>RHEL 8\u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u51fa\u529b\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30b3\u30a2\u30c0\u30f3\u30d7\u304c\u51fa\u529b\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u30b3\u30a2\u30c0\u30f3\u30d7\u304c\u51fa\u529b\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ulimit -c\r\nunlimited\r\n<\/pre>\n<h2>\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u51fa\u529b\u5148\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@vmsaca01 sysctl.d]# cat \/proc\/sys\/kernel\/core_pattern \r\n|\/usr\/lib\/systemd\/systemd-coredump %P %u %g %s %t %c %h %e\r\n<\/pre>\n<h2>\u30b3\u30a2\u30c0\u30f3\u30d7\u3092\u51fa\u529b\u3059\u308b\uff01<\/h2>\n<p>SEGV\u30b7\u30b0\u30ca\u30eb\u3092\u30d7\u30ed\u30bb\u30b9\u306b\u9001\u4fe1\u3057\u3001\u30b3\u30a2\u30c0\u30f3\u30d7\u304c\u51fa\u529b\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [3]; title: ; notranslate\" title=\"\">\r\n# coredumpctl list\r\nNo coredumps found.\r\n# kill -SEGV 13694\r\nSegmentation fault (core dumped)\r\n# coredumpctl list\r\nTIME                            PID   UID   GID SIG COREFILE  EXE\r\nTue 2022-04-05 20:31:33 JST   13694     0     0  11 present   \/usr\/bin\/bash\r\n<\/pre>\n<h2>\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\/var\/log\/messages\u306b\u30b3\u30a2\u304c\u51fa\u529b\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3059\u60c5\u5831\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# grep coredump \/var\/log\/messages\r\nApr  5 20:31:32 vmsaca01 systemd&#x5B;1]: Created slice system-systemd\\x2dcoredump.slice.\r\nApr  5 20:31:33 vmsaca01 systemd-coredump&#x5B;20869]: Process 13694 (bash) of user 0 dumped core.#012#012Stack trace of thread 13694:#012#0  0x00007f2839ff2c3b kill (libc.so.6)#012#1  0x000055c4d16d3ae2 execute_command (bash)#012#2  0x000055c4d16bb409 reader_loop (bash)#012#3  0x000055c4d16b9bdb main (bash)#012#4  0x00007f2839fde813 __libc_start_main (libc.so.6)#012#5  0x000055c4d16ba39e _start (bash)\r\nApr  5 20:31:33 vmsaca01 systemd&#x5B;1]: systemd-coredump@0-20868-0.service: Succeeded.\r\n<\/pre>\n<p>\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u8a73\u7d30\u306a\u60c5\u5831\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u51fa\u529b\u5148\u304c\u3001\u300c\/var\/lib\/systemd\/coredump\u300d\u3067\u3042\u308b\u3053\u3068\u3082\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# coredumpctl info -1\r\n           PID: 13694 (bash)\r\n           UID: 0 (root)\r\n           GID: 0 (root)\r\n        Signal: 11 (SEGV)\r\n     Timestamp: Tue 2022-04-05 20:31:32 JST (17min ago)\r\n  Command Line: -bash\r\n    Executable: \/usr\/bin\/bash\r\n Control Group: \/user.slice\/user-1000.slice\/session-5.scope\r\n          Unit: session-5.scope\r\n         Slice: user-1000.slice\r\n       Session: 5\r\n     Owner UID: 1000 (sysadm00)\r\n       Boot ID: d9feecec47a74b75affd1bbcc3725376\r\n    Machine ID: 47755988a6524804831f1f1ae20426dc\r\n      Hostname: vmsaca01\r\n       Storage: \/var\/lib\/systemd\/coredump\/core.bash.0.d9feecec47a74b75affd1bbcc3725376.13694.1649158292000000.lz4\r\n       Message: Process 13694 (bash) of user 0 dumped core.\r\n                \r\n                Stack trace of thread 13694:\r\n                #0  0x00007f2839ff2c3b kill (libc.so.6)\r\n                #1  0x000055c4d16d3ae2 execute_command (bash)\r\n                #2  0x000055c4d16bb409 reader_loop (bash)\r\n                #3  0x000055c4d16b9bdb main (bash)\r\n                #4  0x00007f2839fde813 __libc_start_main (libc.so.6)\r\n                #5  0x000055c4d16ba39e _start (bash)\r\n<\/pre>\n<h2>\u30b3\u30a2\u30c0\u30f3\u30d7\u3092\u7121\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>\u30b3\u30a2\u30c0\u30f3\u30d7\u306f\u3001\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u3053\u3068\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u3001\u51fa\u529b\u3057\u305f\u304f\u306a\u3044\u60c5\u5831\u304c\u542b\u307e\u308c\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3053\u3068\u304b\u3089\u7121\u52b9\u5316\u3057\u305f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\/etc\/security\/limits.conf\u3068\u3044\u3046pam_limits.so\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u8a2d\u5b9a\u7b87\u6240\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# grep &quot;hard core&quot; \/etc\/security\/limits.conf \/etc\/security\/limits.d\/*\r\n<\/pre>\n<p>limits.conf\u306b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/security\/limits.conf\r\n...\r\n* hard core 0\r\n<\/pre>\n<p>OS\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ulimit -c\r\n0\r\n<\/pre>\n<p>SID\u3067\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3063\u305f\u5834\u5408\u3067\u3082\u3001\u51fa\u529b\u3057\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u7b87\u6240\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# grep &quot;fs\\.suid_dumpable&quot; \/etc\/sysctl.conf \/etc\/sysctl.d\/*\r\n<\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3067\u3001\u8a2d\u5b9a\u306e\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u300c0\u300d\u3067\u3042\u308c\u3070\u51fa\u529b\u3057\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# sysctl suid_dumpable\r\nfs.suid_dumpable = 0\r\n<\/pre>\n<p>\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u7121\u52b9\u5316\u3092\u78ba\u5b9f\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nvi \/etc\/sysctl.conf \r\n...\r\nfs.suid_dumpable = 0\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>RHEL 8\u3067\u306f\u3001\u30b3\u30a2\u30c0\u30f3\u30d7\u3092\u7ba1\u7406\u3059\u308b\u5c02\u7528\u306e\u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.redhat.com\/en\/technologies\/linux-platforms\/enterprise-linux\" target=\"_blank\" rel=\"noopener\">Red Hat Enterprise Linux<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/4965\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_rhel_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H8WqP7\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41Hsgz5kRSL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RHEL 8\u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u306e\u51fa\u529b\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5291,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239],"tags":[308,327],"class_list":["post-5157","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rhel-8","tag-rhel","tag-327"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=5157"}],"version-history":[{"count":2,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5157\/revisions"}],"predecessor-version":[{"id":15902,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5157\/revisions\/15902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5291"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=5157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=5157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=5157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}