Change https://gerrit.wikimedia.org/r/#/c/43775/ made against mediawiki/core.git on branch 1.21wmf7, cause our PHPUnit tests to segfault (exit code 139).
Under the misc tests https://integration.mediawiki.org/ci/job/mediawiki-core-phpunit-misc/1244/console :
phpunit-misc:
[echo] Builddir: /var/lib/jenkins/jobs/mediawiki-core-phpunit-misc/workspace [echo] Logdir..: /var/lib/jenkins/jobs/mediawiki-core-phpunit-misc/workspace/logs/ [echo] Indir...: /var/lib/jenkins/jobs/mediawiki-core-phpunit-misc/workspace/tests/phpunit [echo] Opts....: --group Database --exclude-group API,Dump,Parser,Broken,ParserFuzz,Stub -- [exec] PHPUnit 3.7.10 by Sebastian Bergmann. [exec] [exec] Configuration read from /var/lib/jenkins/jobs/mediawiki-core-phpunit-misc/workspace/tests/phpunit/suite.xml [exec] [exec] ......................................... [exec] .................... 61 / 5298 ( 1%)
BUILD FAILED
/var/lib/jenkins/jobs/_shared/build.xml:452: The following error occurred while executing this line:
/var/lib/jenkins/jobs/_shared/build.xml:473: exec returned: 139
Tim ran the test under gdb and it showed a segfault in preg_match_all() in
PHPUnit_Util_Test::getRequirements(), when running
self::REGEX_REQUIRES. Since we don't seem to use @requires, I just
replaced getRequirements() with "return array()", and then my
changeset passed all tests.
Here's the full backtrace:
Program received signal SIGSEGV, Segmentation fault.
zval_mark_grey (pz=0xa7f82a0) at
/root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c:368
368 /root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c: No such file
or directory.
(gdb) bt
#0 zval_mark_grey (pz=0xa7f82a0) at
/root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c:368
#1 0x00000000006b73ac in zval_mark_grey (pz=<optimized out>)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c:379
#2 0x00000000006b7e75 in gc_mark_roots () at
/root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c:435
#3 gc_collect_cycles () at
/root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c:664
#4 0x00000000006b8174 in gc_zval_possible_root (zv=<optimized out>)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_gc.c:166
#5 0x00000000006a7e30 in zend_hash_destroy (ht=0xa7f80f0)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_hash.c:729
#6 0x00000000006994df in _zval_dtor_func (zvalue=0xa7e7598)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_variables.c:46
#7 0x0000000000473c08 in _zval_dtor (zvalue=0xa7e7598)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_variables.h:35
#8 php_pcre_match_impl (pce=0x8fbfcb0,
subject=0xa7aba48 "/**\n * These tests should work regardless of
$wgCapitalLinks\n * @group Database\n */\n/**\n\t * Make sure
MediaWikiTestCase extending classes have called their\n\t * parent
setUp method\n\t */", subject_len=184, return_value=0xa7ec5e0,
subpats=0xa7e7598, global=1, use_flags=0,
flags=0, start_offset=0) at
/root/wikimedia/php5/php5-5.3.10/ext/pcre/php_pcre.c:549
#9 0x0000000000473e6b in php_do_pcre_match (ht=3,
return_value=0xa7ec5e0, global=1,
return_value_ptr=<optimized out>, this_ptr=<optimized out>,
return_value_used=<optimized out>)
at /root/wikimedia/php5/php5-5.3.10/ext/pcre/php_pcre.c:519
#10 0x000000000070f80d in zend_do_fcall_common_helper_SPEC
(execute_data=0x7ffff7ee1f00)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_vm_execute.h:320
#11 0x00000000006c037b in execute (op_array=0x1d5f6c0)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_vm_execute.h:107
#12 0x000000000068d8bc in zend_call_function (fci=0x7fffffffba60,
fci_cache=<optimized out>)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_execute_API.c:969
#13 0x00000000005d0178 in zif_call_user_func_array (ht=<optimized
out>, return_value=0xa722870,
return_value_ptr=<optimized out>, this_ptr=<optimized out>,
return_value_used=<optimized out>)
at
/root/wikimedia/php5/php5-5.3.10/ext/standard/basic_functions.c:4803
#14 0x000000000070f80d in zend_do_fcall_common_helper_SPEC
(execute_data=0x7ffff7edf5c0)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_vm_execute.h:320
#15 0x00000000006c037b in execute (op_array=0x901c008)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend_vm_execute.h:107
#16 0x000000000069b8e0 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /root/wikimedia/php5/php5-5.3.10/Zend/zend.c:1308
#17 0x0000000000647f53 in php_execute_script (primary_file=0x7fffffffe1d0)
at /root/wikimedia/php5/php5-5.3.10/main/main.c:2323
#18 0x000000000042c797 in main (argc=10, argv=0x7fffffffe3d8)
at /root/wikimedia/php5/php5-5.3.10/sapi/cli/php_cli.c:1188
Version: unspecified
Severity: major