Skip to content

SIGSEGV in php-fpm #275

@abalage

Description

@abalage

Hello,

I'd like to get some help troubleshooting and fixing this issue I have.
As a base image I am using the '5-fpm-alpine' variant of the images, latest version as of today.
I have added several core and pecl modules with the way as it is described in it's docker hub page.

php-fpm servs - among others - an ownCloud installation which is constantly causing php-fpm to fail with SIGSEGV.

I managed to get core files - however even though I recompiled php with --enable-debug and skipped stripping the symbols from the binaries - but gdb shows nothing useful for me. (I am not a developer)


bash-4.3# gdb -c coredump-php-fpm.11 /usr/local/sbin/php-fpm
GNU gdb (GDB) 7.11
Copyright (C) 2016 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-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/php-fpm...done.
[New LWP 11]

warning: Can't read pathname for load map: No error information.
Core was generated by `php-fpm:'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007ffa3365e80f in free () from /lib/ld-musl-x86_64.so.1

(gdb) bt
#0 0x00007ffa3365e80f in free () from /lib/ld-musl-x86_64.so.1
#1 0x0000000000000020 in ?? ()
#2 0x00007ffa3365f0e8 in memalign () from /lib/ld-musl-x86_64.so.1
#3 0x00005647f095a0a0 in ?? ()
#4 0x00005647f0899680 in ?? ()
#5 0x00005647f0959fc0 in ?? ()
#6 0x0000000000000001 in ?? ()
#7 0x0000000000000000 in ?? ()

(gdb)

dmesg:

[403674.575650] traps: php-fpm[7246] general protection ip:7ffa3365e80f sp:7ffeca2ed950 error:0 in ld-musl-x86_64.so.1[7ffa3363b000+88000]
[403675.578962] traps: php-fpm[7247] general protection ip:7ffa3365e80f sp:7ffeca2ed950 error:0 in ld-musl-x86_64.so.1[7ffa3363b000+88000]


syslog:

Jul 29 11:50:36 localhost docker/balagedocker_php5-fpm_1[15585]: [29-Jul-2016 09:50:36] WARNING: [pool www] child 11 exited on signal 11 (SIGSEGV - core dumped) after 81.363321 seconds from start
Jul 29 11:50:36 localhost docker/balagedocker_php5-fpm_1[15585]: [29-Jul-2016 09:50:36] NOTICE: [pool www] child 27 started
Jul 29 11:50:37 localhost docker/balagedocker_php5-fpm_1[15585]: [29-Jul-2016 09:50:37] WARNING: [pool www] child 12 exited on signal 11 (SIGSEGV - core dumped) after 82.337205 seconds from start
Jul 29 11:50:37 localhost docker/balagedocker_php5-fpm_1[15585]: [29-Jul-2016 09:50:37] NOTICE: [pool www] child 28 started

That's all I got.

I am attaching the Dockerfile I used to build the image. Also some core files if

cores.zip
supervisord.txt
Dockerfile.txt

Host is openSUSE Leap 42.1 x86_64 (kernel 4.1.27-27-default)

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions