php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80443 sysvsem segfault
Submitted: 2020-11-29 13:44 UTC Modified: 2020-12-07 13:04 UTC
From: video dot ice dot power at seznam dot cz Assigned:
Status: Closed Package: Semaphore related
PHP Version: 8.0.0 OS: Linux/docker-alpine
Private report: No CVE-ID: None
 [2020-11-29 13:44 UTC] video dot ice dot power at seznam dot cz
Description:
------------
when sysvsem ext is not installed (and excluded from dev dependency from composer.json), there is no segfault, thus I am strongly belive there is an issue in "sysvsem"

on php 7.4, there is no issue

Test script:
---------------
docker-php-ext-install pcntl sysvsem
composer remove --no-update ext-memcached --dev
composer remove --no-update ext-sysvsem --dev
git clone https://github.com/php-lock/lock && cd lock && composer update

vendor/bin/phpunit --no-coverage -v

Expected result:
----------------
phpunit finishes

Actual result:
--------------
PHPUnit 9.4.3 by Sebastian Bergmann and contributors.
Runtime:       PHP 8.0.0RC4
Configuration: /builds/mahalux/php-lock-cust/phpunit.xml.dist
................SS...F...F./bin/bash: line 137:  4467 Segmentation fault      (core dumped) vendor/bin/phpunit

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-29 15:03 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2020-11-29 15:03 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Not sure which version of PHP 8 "RC4" is, but please try with the 8.0.0 GA that was released a few days ago.
 [2020-11-29 15:30 UTC] video dot ice dot power at seznam dot cz
This is from CI and I have no access to provide segfault dump for this. Only reporting this one.
 [2020-11-30 13:58 UTC] nikic@php.net
I was able to reproduce *a* segfault with JIT enabled on an older build, but no longer on current 8.0 HEAD.

So most likely this issue is already resolved, though of course it could be another unrelated segfault.
 [2020-12-07 13:04 UTC] video dot ice dot power at seznam dot cz
-Status: Feedback +Status: Closed
 [2020-12-07 13:04 UTC] video dot ice dot power at seznam dot cz
I confirm this issue is no longer present in PHP 8.0.0 release.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Dec 03 11:03:36 2021 UTC