zend_string_init error: Cannot access memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php7.2 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I'm using php7.2-fpm to run the Simple Machines Community Forum. I have an fpm pool dedicated to the forum. Every so often I see an error like this in my fpm log:
[01-Mar-2020 01:18:15] WARNING: [pool smf] child 23384 exited on signal 7 (SIGBUS - core dumped) after 0.708817 seconds from start
Here's a backtrace:
[New LWP 23384]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Core was generated by `php-fpm: pool smf'.
Program terminated with signal SIGBUS, Bus error.
#0 __memcpy_ssse3 () at ../sysdeps/
620 ../sysdeps/
(gdb) bt
#0 __memcpy_ssse3 () at ../sysdeps/
#1 0x000055feb96ec706 in memcpy (__len=38654, __src=0x7f220d2
at /usr/include/
#2 zend_string_init (persistent=0, len=38654, str=0x7f220d2bf06b <error: Cannot access memory at address 0x7f220d2bf06b>)
at ./Zend/
#3 lex_scan (zendlval=
#4 0x000055feb970140e in zendlex (elem=elem@
#5 0x000055feb96e4dff in zendparse () at ./Zend/
#6 0x000055feb96e7457 in zend_compile (type=type@entry=2) at Zend/zend_
#7 0x000055feb96e898a in compile_file (file_handle=
#8 0x00007f21fd0b3ecc in ?? () from /usr/lib/
#9 0x00007f22072ba29c in ?? () from /usr/lib/
#10 0x00007f22072bbf58 in ?? () from /usr/lib/
#11 0x000055feb96e8a32 in compile_filename (type=type@entry=2, filename=
#12 0x000055feb978925b in zend_include_
#13 0x000055feb97c9483 in ZEND_INCLUDE_
#14 0x000055feb97cef97 in execute_ex (ex=0x7f22078a1020) at ./Zend/
#15 0x000055feb97d5f77 in zend_execute (op_array=
at ./Zend/
#16 0x000055feb9724702 in zend_execute_
file_
#17 0x000055feb96c0160 in php_execute_script (primary_
#18 0x000055feb956f7bb in main (argc=<optimized out>, argv=<optimized out>) at ./sapi/
(gdb)
I haven't found a specific way to reproduce the error beyond letting the software run for several hours. More info:
$ lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04
$ apt-cache policy php7.2-fpm
php7.2-fpm:
Installed: 7.2.24-
Candidate: 7.2.24-
Version table:
*** 7.2.24-
500 http://
500 http://
100 /var/lib/
7.2.3-1ubuntu1 500
500 http://
$
tags: | added: server-triage-discuss |
Changed in php7.2 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | removed: server-triage-discuss |
Can you attach the core dump? Or the crash file, if you have one in /var/crash about this.