Skip to content

Commit

Permalink
fix CI failures caused by unsafe signal handler (#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Dec 30, 2021
1 parent 818e97b commit b61f79f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ext/segfault_backtrace_enabled.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ Dump backtrace when segmentation fault signal is raised and config enables it
<?php
if (!extension_loaded('posix')) die('skip: posix extension required');
if (getenv('SKIP_ASAN') || getenv('USE_ZEND_ALLOC') === '0') die("skip: intentionally causes segfaults");
if (getenv('PHP_PEAR_RUNTESTS') === '1') die("skip: pecl run-tests does not support XFAIL");
if (file_exists("/etc/os-release") && preg_match("/alpine/i", file_get_contents("/etc/os-release"))) die("skip Unsupported LIBC");
?>
--XFAIL--
Code called in the segv handler is not signal safe, this will sometimes result in a segfault.
--ENV--
DD_LOG_BACKTRACE=1
--FILE--
Expand Down

0 comments on commit b61f79f

Please sign in to comment.