Bug #81391 [NEW]: Segfault in a forked process
| From: | mrskman at gmail dot com | Date: | Fri, 27 Aug 2021 07:52:01 +0000 |
| Subject: | Bug #81391 [NEW]: Segfault in a forked process | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-236101@lists.php.net to get a copy of this message | ||
From: mrskman at gmail dot com
Operating system: Ubuntu 18.04
PHP version: 8.0.10
Package: *General Issues
Bug Type: Bug
Bug description:Segfault in a forked process
Description:
------------
I run pcntl_fork() to process large arrays in background. One of arrays
is causing segfaults on 2 of 4 servers. I tried to increase memory limit
to a 10x higher value just to be sure this is not a memory issue but it
still segfaults on 2 servers.
I was not able to create a test script. The only thing I have is a
backtrace from attached gdb.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0x0000564372710a35 in execute_ex ()
(gdb) bt
#0 0x0000564372710a35 in execute_ex ()
#1 0x00005643725ac1cd in zend_call_function ()
#2 0x000056437238beb9 in zif_array_map ()
#3 0x00005643727133c4 in execute_ex ()
#4 0x00005643725ac1cd in zend_call_function ()
#5 0x000056437238beb9 in zif_array_map ()
#6 0x00005643727133c4 in execute_ex ()
#7 0x00005643725ac1cd in zend_call_function ()
#8 0x000056437238beb9 in zif_array_map ()
#9 0x00005643727133c4 in execute_ex ()
#10 0x00005643725ac1cd in zend_call_function ()
#11 0x000056437238beb9 in zif_array_map ()
#12 0x00005643727133c4 in execute_ex ()
#13 0x00005643725ac1cd in zend_call_function ()
#14 0x000056437238beb9 in zif_array_map ()
#15 0x00005643727133c4 in execute_ex ()
...
#1593 0x00005643727133c4 in execute_ex ()
#1594 0x00005643725ac1cd in zend_call_function ()
#1595 0x000056437238beb9 in zif_array_map ()
#1596 0x00005643727133c4 in execute_ex ()
#1597 0x00005643725ac1cd in zend_call_function ()
#1598 0x000056437238beb9 in zif_array_map ()
#1599 0x00005643727133c4 in execute_ex ()
#1600 0x00005643725ac1cd in zend_call_function ()
#1601 0x000056437238beb9 in zif_array_map ()
#1602 0x00005643727133c4 in execute_ex ()
#1603 0x00005643725ac1cd in zend_call_function ()
#1604 0x000056437238beb9 in zif_array_map ()
#1605 0x00005643727133c4 in execute_ex ()
#1606 0x00005643725ac1cd in zend_call_function ()
#1607 0x000056437238beb9 in zif_array_map ()
#1608 0x00005643727133c4 in execute_ex ()
#1609 0x00005643725ac1cd in zend_call_function ()
#1610 0x000056437238beb9 in zif_array_map ()
#1611 0x00005643727133c4 in execute_ex ()
#1612 0x00005643725ac1cd in zend_call_function ()
#1613 0x000056437238beb9 in zif_array_map ()
#1614 0x00005643727133c4 in execute_ex ()
#1615 0x00005643725ac1cd in zend_call_function ()
#1616 0x000056437238beb9 in zif_array_map ()
#1617 0x00005643727133c4 in execute_ex ()
#1618 0x00005643725ac1cd in zend_call_function ()
#1619 0x000056437238beb9 in zif_array_map ()
#1620 0x00005643727133c4 in execute_ex ()
#1621 0x00005643725ac1cd in zend_call_function ()
#1622 0x000056437238beb9 in zif_array_map ()
#1623 0x00005643727133c4 in execute_ex ()
#1624 0x00005643725ac1cd in zend_call_function ()
#1625 0x000056437238beb9 in zif_array_map ()
#1626 0x00005643727133c4 in execute_ex ()
#1627 0x00005643725ac1cd in zend_call_function ()
#1628 0x000056437238beb9 in zif_array_map ()
#1629 0x00005643727133c4 in execute_ex ()
#1630 0x00005643725ac1cd in zend_call_function ()
#1631 0x000056437239fce8 in zif_call_user_func_array ()
#1632 0x00005643727133c4 in execute_ex ()
#1633 0x00005643725ac1cd in zend_call_function ()
#1634 0x000056437239fce8 in zif_call_user_func_array ()
#1635 0x00005643727133c4 in execute_ex ()
#1636 0x000056437272b53d in zend_execute ()
#1637 0x00005643725cf6d9 in zend_execute_scripts ()
#1638 0x000056437250a213 in php_execute_script ()
#1639 0x000056437278ee1f in do_cli ()
#1640 0x00005643727901e6 in main ()
--
Edit bug report at https://bugs.php.net/bug.php?id=81391&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81391&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81391&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81391&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81391&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81391&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81391&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81391&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81391&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81391&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81391&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81391&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81391&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81391&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81391&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81391&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81391&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81391&r=mysqlcfg