Bug #70805 [NEW]: Segmentation faults whilst running Drupal 8 test suite

From: Date: Wed, 28 Oct 2015 13:07:25 +0000
Subject: Bug #70805 [NEW]: Segmentation faults whilst running Drupal 8 test suite
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196855@lists.php.net to get a copy of this message
From:             alex dot a dot pott at gmail dot com
Operating system: OS X & Linux
PHP version:      7.0.0RC5
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Segmentation faults whilst running Drupal 8 test suite

Description:
------------
When running certain Drupal 8 tests on PHP7 we get a segmentation fault.
This does not occur on PHP5.*

* thread #1: tid = 0x0000, 0x00000001055c6264 php`_emalloc_56 + 36 at
zend_alloc.c:1291, stop reason = signal SIGSTOP
    frame #0: 0x00000001055c6264 php`_emalloc_56 + 36 at
zend_alloc.c:1291
   1288
   1289		if (EXPECTED(heap->free_slot[bin_num] != NULL)) {
   1290			zend_mm_free_slot *p = heap->free_slot[bin_num];
-> 1291			heap->free_slot[bin_num] = p->next_free_slot;
   1292			return (void*)p;
   1293		} else {
   1294			return zend_mm_alloc_small_slow(heap, bin_num
ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);


  * frame #0: 0x00000001055c6264 php`_emalloc_56 + 36 at
zend_alloc.c:1291
    frame #1: 0x00000001055c6240 php`_emalloc_56 + 16 at
zend_alloc.c:2361
    frame #2: 0x0000000105601f36
php`zend_array_dup(source=0x0000000106d208c0) + 22 at zend_hash.c:1716
    frame #3: 0x000000010566b840
php`ZEND_ASSIGN_DIM_SPEC_VAR_UNUSED_HANDLER(execute_data=0x000000010681aee0)
+ 112 at zend_vm_execute.h:18975
    frame #4: 0x0000000105630298 php`execute_ex(ex=<unavailable>) + 40
at zend_vm_execute.h:417
    frame #5: 0x00000001056306be
php`zend_execute(op_array=<unavailable>, return_value=<unavailable>) +
1038 at zend_vm_execute.h:458
    frame #6: 0x00000001055ef3ab php`zend_execute_scripts(type=8,
retval=0x0000000000000000, file_count=3) + 315 at zend.c:1428
    frame #7: 0x000000010558b7f4
php`php_execute_script(primary_file=0x00007fff5a9f82b0) + 852 at
main.c:2471
    frame #8: 0x0000000105682b60 php`do_cli(argc=<unavailable>,
argv=<unavailable>) + 4048 at php_cli.c:974
    frame #9: 0x0000000105681a17 php`main(argc=<unavailable>,
argv=<unavailable>) + 1399 at php_cli.c:1345
    frame #10: 0x00007fff8a9e65c9 libdyld.dylib`start + 1

Test script:
---------------
1. Install Drupal 8 from https://www.drupal.org/node/3060 (you will need
a lamp stack or equivalent)
2. create the directory sites/simpletest
3. Enable the simpletest module once you have installed Drupal 8
(http://YOURSITE/admin/modules)
4a. Run the BasicAuthTest test from
http://YOURSITE/admin/config/development/testing
OR
4b. Run from the command line using php ./core/scripts/run-tests.sh
--color --non-html --url http://YOURSITE/ --verbose --class
'Drupal\basic_auth\Tests\Authentication\BasicAuthTest'



-- 
Edit bug report at https://bugs.php.net/bug.php?id=70805&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70805&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70805&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70805&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70805&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70805&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70805&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70805&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70805&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70805&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70805&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70805&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70805&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70805&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70805&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70805&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70805&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70805&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70805&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70805&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70805&r=mysqlcfg



Thread (23 messages)

« previous php.bugs (#196855) next »