{"id":2044,"date":"2015-07-14T16:34:44","date_gmt":"2015-07-14T14:34:44","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2044"},"modified":"2017-05-11T12:00:47","modified_gmt":"2017-05-11T10:00:47","slug":"core-dump","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/core-dump\/","title":{"rendered":"core dump"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n# The path for core dump is like this: \/i-data\/md0\/.system\/core.*.\r\n# The path pattern is written in \/proc\/sys\/kernel\/core_pattern.\r\ncat \/proc\/sys\/kernel\/core_pattern\r\n\/i-data\/md0\/.system\/core.%e.%u.%g.%s\r\n\r\n# In order to generate core dump declare in php-fpm.conf:\r\nrlimit_core = unlimited\r\n\r\n# reading php-fpm's core dump:\r\ngdb \/ffp\/sbin\/php-fpm \/i-data\/md0\/.system\/core.php-fpm.99.99.11\r\n#the output is below (the problem seems to be zend_hash_internal_pointer_reset_ex):\r\n\tProgram terminated with signal SIGSEGV, Segmentation fault.\r\n\t#0  0x003c7898 in zend_hash_internal_pointer_reset_ex ()\r\n#in gdb console you could analyze other core dump file with:\r\ntarget core \/i-data\/md0\/.system\/core.php-fpm.99.99.11\r\n#additional info with backtrace command\r\nbacktrace\r\n\t#0  0x003c7898 in zend_hash_internal_pointer_reset_ex ()\r\n\t#1  0x412026b4 in ps_srlzr_decode_msgpack () from \/ffp\/lib\/php\/extensions\/no-debug-zts-20131226\/msgpack.so\r\n\t#2  0x00238248 in ?? ()\r\n\tBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n#x command on #2 0x00238248 address\r\nx 0x00238248\r\nquit -> for exiting from gdb console\r\n\r\n#when gallery3 fails with core dump on php-fpm than recompile msgpack\r\n#see https:\/\/adrhc.go.ro\/wordpress\/configure-command-for-building-various-software\/\r\n#Strange: gallery3 fails with core dump in msgpack only when using chrome!\r\n\r\n# http:\/\/linux.die.net\/man\/1\/strace\r\n# http:\/\/forum.nas-central.org\/viewtopic.php?f=249&t=15891&start=30\r\nnohup \/ffp\/bin\/strace -o $HOME\/temp\/strace-updatedb.log \/ffp\/bin\/updatedb --prunepaths='\/dev \/e-data \/ffp \/i-data\/60cb70cf\/.zyxel\/zy-pkgs \/i-data\/md0\/.zyxel\/zy-pkgs \/init \/linuxrc \/mnt \/proc \/ram_bin \/srv \/sys \/usr\/local\/zy-pkgs\/ffproot\/ffp\/var \/var' &\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># The path for core dump is like this: \/i-data\/md0\/.system\/core.*. # The path pattern is written in \/proc\/sys\/kernel\/core_pattern. cat \/proc\/sys\/kernel\/core_pattern \/i-data\/md0\/.system\/core.%e.%u.%g.%s # In order to generate core dump declare in php-fpm.conf: rlimit_core = unlimited # reading php-fpm&#8217;s core dump: gdb [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/core-dump\/#more-2044\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">core dump<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[118,119],"class_list":["post-2044","post","type-post","status-publish","format-standard","hentry","category-linux","tag-debug","tag-kernel"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=2044"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2044\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}