Bug #78280 [Asn]: _emalloc causes segfaults
| From: | grzegorz129 at gmail dot com | Date: | Fri, 12 Jul 2019 18:27:54 +0000 |
| Subject: | Bug #78280 [Asn]: _emalloc causes segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221743@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78280&edit=1
ID: 78280
User updated by: grzegorz129 at gmail dot com
Reported by: grzegorz129 at gmail dot com
Summary: _emalloc causes segfaults
Status: Assigned
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 7.3.7
Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
And another valgrind output: https://pastebin.com/KVBjEeq5
Previous Comments:
------------------------------------------------------------------------
[2019-07-12 17:45:26] grzegorz129 at gmail dot com
As expected it crashed. The valgrind output still has a lot of "??"s but I'm not sure
if that's expected: https://pastebin.com/ygvC5aws
------------------------------------------------------------------------
[2019-07-12 17:13:39] grzegorz129 at gmail dot com
Re-running with the options provided. After disabling opcache the result is the same. In fact
I've got one crash after just seconds of running which is very short: https://pastebin.com/zxefix13
Another one took longer but crashed again: https://pastebin.com/hsC6nqGn
So I think opcache is not a factor here. To be precise about parallel it's not a parallelized
on php level, but rather run with GNU Parallel.
------------------------------------------------------------------------
[2019-07-12 17:01:06] nikic@php.net
Assigning to Joe as it seems likely that this is related to parallel.
The valgrind log is cut off due to too many spurious zend_string_equal_val errors. Could you please
rerun with the suppressions file at https://gist.github.com/nikic/8d404c6799a1532b0c10280f5e57a888
and
USE_ZEND_ALLOC=0 ZEND_DONT_UNLOAD_MODULES=1 valgrind --suppressions=php73.supp php script.php
------------------------------------------------------------------------
[2019-07-12 16:51:39] grzegorz129 at gmail dot com
I asked around and the error is not a regress from a recent release. The code is pretty new so the
last logged crash was on 7.3.3, it also happens on 7.3.6 from Ubuntu PPA.
------------------------------------------------------------------------
[2019-07-12 16:48:15] grzegorz129 at gmail dot com
The code runs in CLI only via parallel. There's usually 5-8 copies running over different files
and always one of them crashes withing 10-15 minutes.
I checked the cli and it looks like opcache is enabled. I will try to disable it since it serves no
purpose in CLI (correct me if I'm wrong). I'm not sure if environment variable populated
properly but after longer than usual run I've got such a valgrind dump: https://pastebin.com/FA4vVxzz
------------------------------------------------------------------------
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=78280
--
Edit this bug report at https://bugs.php.net/bug.php?id=78280&edit=1