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

From: Date: Fri, 12 Nov 2021 10:55:23 +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-237713@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
 User updated by:    bartos dot developer152 at gmail dot com
 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:

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


Previous Comments:
------------------------------------------------------------------------
[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>.

------------------------------------------------------------------------
[2021-11-11 14:18:15] bartos dot developer152 at gmail dot com

Description:
------------
I started to test my packages with PHP 8.1 and ran into segfault issues.

I am sorry for not providing gdb backtrace, I don't really know how to do it properly. My
standard way of executing tests is:

git clone ...
composer install
make tests

Failed Github Actions runs:
https://github.com/orisai/nette-console/runs/4178441932?check_suite_focus=true
https://github.com/orisai/nette-monolog/runs/4178461063?check_suite_focus=true
https://github.com/orisai/localization/runs/4149714489?check_suite_focus=true
https://github.com/orisai/data-sources/runs/4136306913?check_suite_focus=true



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



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


Thread (11 messages)

« previous php.bugs (#237713) next »