On 5/7/22 17:52, Stuart Henderson wrote:
On 2022/05/07 14:30, Sven Wolf wrote:


On 5/7/22 12:11, Stuart Henderson wrote:
Do you also get a crash from e.g. "php-8.0 -i"?

If so, can you run that under gdb and try and get a backtrace?

pkg_add gdb
egdb php-8.0
set args -i
run
bt


php-8.0 -i runs without any problems.

In that case, can you try and get php-fpm to save a core??

sysctl kern.nosuidcoredump=3
mkdir /var/crash/php-fpm-8.0
(trigger the crash)

Hopefully you'll have a core in /var/crash/php-fpm-8.0; if so,
point gdb at it and backtrace:

egdb php-fpm-8.0 /var/crash/php-fpm-8.0/12345.core
bt


I got the crash dumps, but for me there are no useful informations :(

cat /var/log/php-fpm.log
[07-May-2022 19:12:16] NOTICE: fpm is running, pid 89312
[07-May-2022 19:12:16] NOTICE: ready to handle connections
[07-May-2022 19:12:16] WARNING: [pool www] child 3047 exited on signal 10 (SIGBUS - core dumped) after 0.664546 seconds from start
[07-May-2022 19:12:16] NOTICE: [pool www] child 66691 started
[07-May-2022 19:12:17] WARNING: [pool www] child 80860 exited on signal 10 (SIGBUS - core dumped) after 0.980099 seconds from start
[07-May-2022 19:12:17] NOTICE: [pool www] child 62432 started
[07-May-2022 19:12:17] WARNING: [pool www] child 66691 exited on signal 10 (SIGBUS - core dumped) after 0.370234 seconds from start
[07-May-2022 19:12:17] NOTICE: [pool www] child 89043 started
...

For the pid 89312 there is not crashdump


egdb php-fpm-8.0 /var/crash/php-fpm-8.0/3047.core

GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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 "arm-unknown-openbsd7.0".
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 php-fpm-8.0...(no debugging symbols found)...done.
[New process 413320]
Core was generated by `php-fpm-8.0'.
Program terminated with signal SIGBUS, Bus error.
#0  0x0510a0fc in ?? ()
(gdb) bt
#0  0x0510a0fc in ?? ()
#1  0x0510a0e4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


sbc3# egdb php-fpm-8.0 /var/crash/php-fpm-8.0/66691.core

GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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 "arm-unknown-openbsd7.0".
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 php-fpm-8.0...(no debugging symbols found)...done.
[New process 456848]
Core was generated by `php-fpm-8.0'.
Program terminated with signal SIGBUS, Bus error.
#0  0x0510a0fc in ?? ()
(gdb) bt
#0  0x0510a0fc in ?? ()
#1  0x0510a0e4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


sbc3# egdb php-fpm-8.0 /var/crash/php-fpm-8.0/80860.core

GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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 "arm-unknown-openbsd7.0".
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 php-fpm-8.0...(no debugging symbols found)...done.
[New process 546453]
bCore was generated by `php-fpm-8.0'.
Program terminated with signal SIGBUS, Bus error.
#0  0x0510a0fc in ?? ()
t(gdb) bt
#0  0x0510a0fc in ?? ()
#1  0x0510a0e4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Reply via email to