Last modified: 2013-01-24 19:09:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46306, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44306 - Unit tests segfaulting often
Unit tests segfaulting often
Status: RESOLVED DUPLICATE of bug 43972
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.21.x
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-24 11:04 UTC by Niklas Laxström
Modified: 2013-01-24 19:09 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2013-01-24 11:04:58 UTC
Here's one I caught with gdb:

(1732) TitleMethodsTest::testInNamespace: 
Program received signal SIGSEGV, Segmentation fault.
zval_mark_grey (pz=0x1082a830) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:368
368     /build/buildd/php5-5.3.10/Zend/zend_gc.c: No such file or directory.
        in /build/buildd/php5-5.3.10/Zend/zend_gc.c
(gdb) bt
#0  zval_mark_grey (pz=0x1082a830) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:368
#1  0x00000000006c2e7e in zval_mark_grey (pz=0x1082a830) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:379
#2  0x00000000006c3965 in gc_collect_cycles () at /build/buildd/php5-5.3.10/Zend/zend_gc.c:435
#3  0x00000000006c3b94 in gc_zval_possible_root (zv=0x1082a830) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:166
#4  0x00000000006b2328 in zend_hash_destroy (ht=0xfd6ee08) at /build/buildd/php5-5.3.10/Zend/zend_hash.c:729
#5  0x00000000006a492f in _zval_dtor_func (zvalue=0x1082a460) at /build/buildd/php5-5.3.10/Zend/zend_variables.c:46
#6  0x00000000004789c0 in php_pcre_match_impl (pce=0x7fffffffb868, subject=0x1082a038 "/@requires\\s+(?P<name>function|extension)\\s(?P<value>([^ ]+))\\r?$/m", subject_len=0, return_value=0x50000000f, subpats=0x1082a460, 
    global=1, use_flags=4688957, flags=0, start_offset=0) at /build/buildd/php5-5.3.10/Zend/zend_variables.h:35
#7  0x0000000000478c3d in php_do_pcre_match (ht=3, return_value=0x107f1170, return_value_ptr=0xc733d7c4e84a74cf, this_ptr=0xdcbc48, return_value_used=276997216, global=1) at /build/buildd/php5-5.3.10/ext/pcre/php_pcre.c:519
#8  0x00000000006f682a in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7e9e850) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:320
#9  0x00000000006cdd30 in execute (op_array=0x2296968) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:107
#10 0x000000000069ad48 in zend_call_function (fci=0x7fffffffbbb0, fci_cache=0x7ffff7e9bf10) at /build/buildd/php5-5.3.10/Zend/zend_execute_API.c:969
#11 0x00000000005d8387 in zif_call_user_func_array (ht=276998192, return_value=0x10822f20, return_value_ptr=0xc733d7c4e84a74cf, this_ptr=0xdcbc48, return_value_used=276997216)
    at /build/buildd/php5-5.3.10/ext/standard/basic_functions.c:4803
#12 0x00000000006f682a in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7e9bf10) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:320
#13 0x00000000006cdd30 in execute (op_array=0xc7e15c0) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:107
#14 0x00000000006a4c2d in zend_execute_scripts (type=32767, retval=0x7fffffffbdf0, file_count=3) at /build/buildd/php5-5.3.10/Zend/zend.c:1308
#15 0x000000000064f878 in php_execute_script (primary_file=0x1) at /build/buildd/php5-5.3.10/main/main.c:2323
#16 0x00000000007374ae in main (argc=0, argv=0x1) at /build/buildd/php5-5.3.10/sapi/cli/php_cli.c:1188

PHP 5.3.10-1ubuntu2ppa6~lucid with Suhosin-Patch (cli) (built: Mar 10 2012 19:43:26) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

Some googling seems to point that disabling GC might help, but I haven't tried.
Comment 1 Niklas Laxström 2013-01-24 11:25:08 UTC
Seems to be always for the same cause for me. Here is another one:
(3266) MagicVariableTest::testLocalmonthIsZeroPadded: 
Program received signal SIGSEGV, Segmentation fault.
zval_mark_grey (pz=0x13d1f010) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:368
368     /build/buildd/php5-5.3.10/Zend/zend_gc.c: No such file or directory.
        in /build/buildd/php5-5.3.10/Zend/zend_gc.c
(gdb) bt
#0  zval_mark_grey (pz=0x13d1f010) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:368
#1  0x00000000006c2e7e in zval_mark_grey (pz=0x13d1f010) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:379
#2  0x00000000006c3965 in gc_collect_cycles () at /build/buildd/php5-5.3.10/Zend/zend_gc.c:435
#3  0x00000000006c3b94 in gc_zval_possible_root (zv=0x13d1f010) at /build/buildd/php5-5.3.10/Zend/zend_gc.c:166
#4  0x00000000006b2328 in zend_hash_destroy (ht=0x13414640) at /build/buildd/php5-5.3.10/Zend/zend_hash.c:729
#5  0x00000000006a492f in _zval_dtor_func (zvalue=0x13d1ee10) at /build/buildd/php5-5.3.10/Zend/zend_variables.c:46
#6  0x00000000004789c0 in php_pcre_match_impl (pce=0x7fffffffb868, subject=0x13d1f630 "/@requires\\s+(?P<name>function|extension)\\s(?P<value>([^ ]+))\\r?$/m", subject_len=0, return_value=0x50000000f, subpats=0x13d1ee10, 
    global=1, use_flags=4688957, flags=0, start_offset=0) at /build/buildd/php5-5.3.10/Zend/zend_variables.h:35
#7  0x0000000000478c3d in php_do_pcre_match (ht=3, return_value=0x13d1f6a8, return_value_ptr=0x0, this_ptr=0xdcbc48, return_value_used=332525072, global=1) at /build/buildd/php5-5.3.10/ext/pcre/php_pcre.c:519
#8  0x00000000006f682a in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7e9e850) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:320
#9  0x00000000006cdd30 in execute (op_array=0x2296968) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:107
#10 0x000000000069ad48 in zend_call_function (fci=0x7fffffffbbb0, fci_cache=0x7ffff7e9bf10) at /build/buildd/php5-5.3.10/Zend/zend_execute_API.c:969
#11 0x00000000005d8387 in zif_call_user_func_array (ht=332525584, return_value=0x1355e778, return_value_ptr=0x0, this_ptr=0xdcbc48, return_value_used=332525072) at /build/buildd/php5-5.3.10/ext/standard/basic_functions.c:4803
#12 0x00000000006f682a in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7e9bf10) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:320
#13 0x00000000006cdd30 in execute (op_array=0xc7dc3e0) at /build/buildd/php5-5.3.10/Zend/zend_vm_execute.h:107
#14 0x00000000006a4c2d in zend_execute_scripts (type=32767, retval=0x7fffffffbdf0, file_count=3) at /build/buildd/php5-5.3.10/Zend/zend.c:1308
#15 0x000000000064f878 in php_execute_script (primary_file=0xffffffff) at /build/buildd/php5-5.3.10/main/main.c:2323
#16 0x00000000007374ae in main (argc=0, argv=0x1) at /build/buildd/php5-5.3.10/sapi/cli/php_cli.c:1188
Comment 2 Antoine "hashar" Musso (WMF) 2013-01-24 17:35:36 UTC
Both stacktraces show up a call to _zval_dtor_func which ultimately get a segfault in the garbage collector.

That is an exact duplicate of bug 43972 which was open against the continuous integration server.

See https://bugzilla.wikimedia.org/show_bug.cgi?id=43972#c11 for a workaround.

PHP bug is https://bugs.php.net/bug.php?id=63055

*** This bug has been marked as a duplicate of bug 43972 ***
Comment 3 Niklas Laxström 2013-01-24 19:09:11 UTC
Thanks for the info, Antoine.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links