Closed jtojnar closed 2 months ago
Logging into CI using tmate I can reproduce the segfault:
$ make coverage phpdbg -qrr vendor/bin/codecept run --coverage-xml Codeception PHP Testing Framework v5.1.2 https://stand-with-ukraine.pp.ua In Selector.php line 41: No code coverage driver available run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--phpunit-xml [PHPUNIT-XML]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--shard SHARD] [--filter FILTER] [--grep GREP] [--bootstrap [BOOTSTRAP]] [--no-redirect] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-cobertura [COVERAGE-COBERTURA]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast [FAIL-FAST]] [--no-rebuild] [--seed SEED] [--no-artifacts] [--] [<suite> [<test>]] make: *** [Makefile:26: coverage] Segmentation fault (core dumped)
Stack trace obtained using export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com" and coredumpctl gdb:
export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"
coredumpctl gdb
#0 0x00007f096c04275b in kill () at ../sysdeps/unix/syscall-template.S:120 No locals. #1 0x000055bfb7df569b in zend_signal_handler (signo=signo@entry=11, siginfo=siginfo@entry=0x7ffcb0156cf0, context=context@entry=0x7ffcb0156bc0) at ./Zend/zend_signal.c:208 errno_save = 0 sa = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0 <repeats 12 times>, 4, 0, 15622380845581240832, 11}}, sa_flags = 67108868, sa_restorer = 0x7f096c042520 <__restore_rt>} sigset = {__val = {1024, 3, 0, 139678453063917, 0, 139678453063917, 16, 140723262680816, 64, 0, 94278827114500, 206158430232, 140723262681472, 140723262681280, 0, 5}} p_sig = <optimized out> #2 0x000055bfb7df57a3 in zend_signal_handler_defer (signo=11, siginfo=0x7ffcb0156cf0, context=0x7ffcb0156bc0) at ./Zend/zend_signal.c:105 errno_save = 0 queue = <optimized out> qtmp = <optimized out> #3 <signal handler called> No locals. #4 0x000055bfb7e098c2 in zend_observer_fcall_end (execute_data=execute_data@entry=0x7f0969a18020, return_value=return_value@entry=0x0) at ./Zend/zend_observer.c:220 func = <optimized out> handler = 0x7f096180efa8 possible_handlers_end = 0x7f096180efb0 #5 0x000055bfb7e099b0 in zend_observer_fcall_end_all () at ./Zend/zend_observer.c:240 ex = 0x7f0969a18020 #6 0x000055bfb7d0b00c in php_request_shutdown (dummy=dummy@entry=0x0) at ./main/main.c:1809 report_memleaks = true #7 0x000055bfb7bb00f2 in main (argc=5, argv=0x7ffcb01585b8) at ./sapi/phpdbg/phpdbg.c:1720 __orig_bailout = 0x0 __bailout = {{__jmpbuf = {-8, 2504706928790203610, -8, 140723262686648, 139678403547144, 94281914180672, 8522098586813459674, 2504736827797794010}, __mask_was_saved = 0, __saved_mask = {__val = {0, 0, 0, 1152, 5153960759809, 144, 18, 2, 519691042940, 1009317314688, 4607, 7813586406938797358, 139678445579392, 73728, 4607, 7813586406938797358}}}} mm_heap = <optimized out> phpdbg = 0x55bfb7ff0460 <phpdbg_sapi_module> sapi_name = <optimized out> ini_entries = <optimized out> ini_entries_len = <optimized out> zend_extensions = 0x0 zend_extensions_len = 0 ini_ignore = false ini_override = <optimized out> exec = 0x0 first_command = 0x0 init_file = <optimized out> init_file_len = <optimized out> init_file_default = <optimized out> flags = 9126969344 php_optarg = 0x0 php_optind = 3 opt = <optimized out> show_banner = 0 cleaning = -1 quit_immediately = true settings = 0x0 bp_tmp = 0x0 print_opline_func = 0x7ffcb0158170 "" ext_stmt = false is_exit = <optimized out> exit_status = <optimized out> read_from_stdin = <optimized out> backup_phpdbg_compile = 0x0 show_help = false show_version = false _malloc = 0x0 _free = 0x0 _realloc = 0x0 wrapper = {wops = 0x7ffcb0157af0, abstract = 0x0, is_url = 0} wops = {stream_opener = 0x55bfb7e59800 <phpdbg_stream_url_wrap_php>, stream_closer = 0x0, stream_stat = 0x0, url_stat = 0x0, dir_opener = 0x0, label = 0x55bfb7eb0fbc "PHP", unlink = 0x0, rename = 0x0, stream_mkdir = 0x0, stream_rmdir = 0x0, stream_metadata = 0x0} signal_struct = {__sigaction_handler = {sa_handler = 0x55bfb7e5a2c0 <phpdbg_signal_handler>, sa_sigaction = 0x55bfb7e5a2c0 <phpdbg_signal_handler>}, sa_mask = {__val = {1825804464, 140720308486145, 16, 94278827114497, 139678457236368, 2954197936, 0, 94278827114497, 2243802607, 140723262684480, 139678443494810, 139678452825504, 140723262684320, 140723262684336, 139678457291281, 10}}, sa_flags = 1073741828, sa_restorer = 0x1}
Resolved in #106 by properly enabling xdebug.
Logging into CI using tmate I can reproduce the segfault:
Stack trace obtained using
export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"
andcoredumpctl gdb
: