LINUX.ORG.RU

php-fpm core dump

 , ,


0

1

добавил

cat /proc/sys/kernel/core_pattern
/tmp/core.%e.%p.%t

в конфиг php-fpm.conf

rlimit_core = unlimited

ulimit -c unlimite

все перезапустил

в логах

WARNING: [pool www] child 9193 exited on signal 11 (SIGSEGV - core dumped) after 40.309703 seconds from start
NOTICE: [pool www] child 10337 started

но в /tmp/ пусто

попробовал еще добавить в /etc/sysctl.conf

kernel.core_pattern = /tmp/core.%e.%p.%h.%t
fs.suid_dumpable = 1
kernel.core_uses_pid = 1

в /etc/security/limits.conf

*       -       core    unlimited
root    -       core    unlimited

попробовал через тестовый файл сделать core файл, все создается в /tmp, но от php-fpm нет coredump, почему он не создается?


Ответ на: комментарий от turtle_bazon

нет, вот модули какие стоят

10-opcache.ini   20-curl.ini      20-gd.ini       20-json.ini      20-phar.ini       20-xml.ini        30-pdo_mysql.ini   40-igbinary.ini  40-zip.ini
20-bcmath.ini    20-dom.ini       20-gettext.ini  20-ldap.ini      20-simplexml.ini  20-xmlwriter.ini  30-pdo_sqlite.ini  40-imagick.ini   50-memcached.ini
20-bz2.ini       20-exif.ini      20-gmp.ini      20-mbstring.ini  20-sockets.ini    20-xsl.ini        30-wddx.ini        40-memcache.ini  50-mysql.ini
20-calendar.ini  20-fileinfo.ini  20-iconv.ini    20-mysqlnd.ini   20-sqlite3.ini    30-mcrypt.ini     30-xmlreader.ini   40-msgpack.ini   50-pq.ini
20-ctype.ini     20-ftp.ini       20-intl.ini     20-pdo.ini       20-tokenizer.ini  30-mysqli.ini     30-xmlrpc.ini      40-raphf.ini     opcache-default.blacklist

Garcia ()
Последнее исправление: Garcia (всего исправлений: 1)

если systemd то он сохраняет дампы в /tmp/systemd-private-4ac05b50c37043e888e0994b455e42dc-php-fpm.service-qAgAgH/tmp/

теперь надо понять в чем проблема, почему падает php-fpm

GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/php-fpm...Reading symbols from /usr/lib/debug/usr/sbin/php-fpm.debug...done.
done.
[New LWP 20501]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

warning: the debug information found in "/usr/lib/debug//lib64/libfastlz.so.0.debug" does not match "/lib64/libfastlz.so.0" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/lib64/libfastlz.so.0.debug" does not match "/lib64/libfastlz.so.0" (CRC mismatch).

Core was generated by `php-fpm: pool www'.
Program terminated with signal 11, Segmentation fault.
#0  match (
    eptr=0x7f2540ccb003 "\\u0447\\u0435\\u0441\\u043a\\u0438\\u0439 (\\u0432\\u0435\\u0440\\u0445\\u043d\\u0438\\u0439) \\u0434\\u0443\\u0448 [PROPERTY_PROP_145_EXPORT]\\u003C\\/option\\u003E\\n\\t\\t\\t\\t\\t\\t\\t\\u003Coption\\n\\t\\t\\t\\t\\tvalue=\\u0022P"..., ecode=0x563194b60b65 "y",
    mstart=0x7f2540cc1046 "\"\\t\\u003Ctd class=\\u0022name\\u0022\\u003E\\n\\t\\t\\u003Cselect\\n\\t\\t\\tname=\\u0022ELEMENT_FILELDS[PROPERTY][#N#]\\u0022\\n\\t\\t\\tstyle=\\u0022width:100%\\u0022\\n\\t\\t\\tclass=\\u0022sproperty\\u0022\\n\\t\\t\\u003E\\n\\t"..., offset_top=2, md=0x7ffed6057f00, eptrb=0x0, rdepth=15847) at /usr/src/debug/php-7.2.19/ext/pcre/pcrelib/pcre_exec.c:516
516     {
Missing separate debuginfos, use: debuginfo-install fastlz-0.1.0-0.1.20070619svnrev12.el7.x86_64

Garcia ()