Bug #81612 [Opn]: Segmentation fault on PHP 8.1

From: Date: Fri, 12 Nov 2021 11:01:12 +0000
Subject: Bug #81612 [Opn]: Segmentation fault on PHP 8.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237715@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81612&edit=1

 ID:                 81612
 Updated by:         nikic@php.net
 Reported by:        bartos dot developer152 at gmail dot com
 Summary:            Segmentation fault on PHP 8.1
 Status:             Open
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Ubuntu 20.04.3
 PHP Version:        8.1Git-2021-11-11 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Would it be possible to test with pcov not enabled? Looking at the bug tracker there, https://github.com/krakjoe/pcov/issues/73 seems
to indicate that there may be a compatibility issue between pcov and PHP 8.1.


Previous Comments:
------------------------------------------------------------------------
[2021-11-12 10:55:23] bartos dot developer152 at gmail dot com

Danack at basereality dot com:
Thank you it seems to work now. Unfortunately it added only this to output

> [Inferior 1 (process 3171) exited with code 02]
> No stack.

https://github.com/orisai/nette-console/runs/4188618661?check_suite_focus=true#step:13:117


nikic@php.net:
My full command was this, hopefully it will be helpful
XDEBUG_MODE=off php -d pcov.enabled=1 -d pcov.directory=./src "vendor/bin/paratest" -c
tools/phpunit.xml --runner=WrapperRunner -p16 --coverage-clover=var/coverage/clover.xml

------------------------------------------------------------------------
[2021-11-12 09:41:29] nikic@php.net

I wasn't able to reproduce this locally (using nette-console). I used this command:

~/php/php-8.1/sapi/cli/php vendor/bin/paratest -c tools/phpunit.xml --runner=WrapperRunner -p32

Not seeing any warnings under valgrind either.

------------------------------------------------------------------------
[2021-11-12 01:13:34] Danack at basereality dot com

In CI, I think you need to run gdb in batch mode e.g. like:

gdb -batch -ex "run" -ex "bt" --args /usr/bin/make coverage-clover

as that queues up the run and backtrace command.

------------------------------------------------------------------------
[2021-11-11 20:09:51] bartos dot developer152 at gmail dot com

cmb@php.net: That's exactly the page I was following. Still don't understand what I should
do differently 
https://github.com/orisai/nette-console/commit/6a903996a84b3597455007938181a993d942c4df#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133ddR355-R358

------------------------------------------------------------------------
[2021-11-11 15:25:09] cmb@php.net

> I am sorry for not providing gdb backtrace, I don't really know
> how to do it properly.

See <https://bugs.php.net/bugs-generating-backtrace.php>.

------------------------------------------------------------------------


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=81612


--
Edit this bug report at https://bugs.php.net/bug.php?id=81612&edit=1


Thread (11 messages)

« previous php.bugs (#237715) next »