Bug #81391 [Com]: Segfault in a forked process
Edit report at https://bugs.php.net/bug.php?id=81391&edit=1
ID: 81391
Comment by: mrskman at gmail dot com
Reported by: mrskman at gmail dot com
Summary: Segfault in a forked process
Status: Open
Type: Bug
Package: *General Issues
Operating System: Ubuntu 18.04
PHP Version: 8.0.10
Block user comment: N
Private report: N
New Comment:
Using Xdebug I can confirm that to cause of this issue was deep recursion (nesting level 769).
I'm still uncertain if segfault in this case is expected.
Previous Comments:
------------------------------------------------------------------------
[2021-08-27 12:47:07] cmb@php.net
You can try with Xdebug, which has a setting[1] that is supposed
to catch deep/infinite recursion, and throws an Error exception in
that case.
[1] <https://xdebug.org/docs/all_settings#max_nesting_level>
------------------------------------------------------------------------
[2021-08-27 10:06:45] mrskman at gmail dot com
Is there any way how to find out on which line is it causing the segfault? From my point of view the
recursion isn't that deep. But there are thousands lines of code and I want to be sure.
------------------------------------------------------------------------
[2021-08-27 09:14:47] cmb@php.net
> On the other hand deep recursion seems plausible.
In which case this likely is a WONTFIX.
------------------------------------------------------------------------
[2021-08-27 08:44:43] mrskman at gmail dot com
I wouldn't say that this is an infinite recursion problem. In that case it wouldn't finish
successfuly on 2 other servers. On the other hand deep recursion seems plausible.
------------------------------------------------------------------------
[2021-08-27 08:08:40] nikic@php.net
This looks like a stack overflow (due to infinite recursion or too deep recursion) to me. Does that
sound plausible?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=81391
--
Edit this bug report at https://bugs.php.net/bug.php?id=81391&edit=1
Thread (9 messages)