Bug #63407 [NEW]: segmentation fault in zval_mark_grey()
From: berdir
Operating system: linux
PHP version: 5.4.8
Package: Reproducible crash
Bug Type: Bug
Bug description:segmentation fault in zval_mark_grey()
Description:
------------
I'm experiencing segfaults in the mentioned function while working on
Drupal 8.
Here's what I found out so far:
- Happens both with the default ubuntu 12.04 php 5.3.10 and php 5.4.8 from
https://launchpad.net/~ondrej/+archive/php5
- See http://drupal.org/node/512026#comment-6673974
for the backtrace
- Happens both on my local installation and our automated testbots
- The segfault does not happen if zend.enable_gc is Off.
It's non-trivial to set up, see "script" below, so just tell me what
commands to
run in gdb to give you additional information if required.
Test script:
---------------
git clone git@git.drupal.org:project/drupal.git --branch=8.x
# Install Drupal, enable Testing module.
wget http://drupal.org/files/form-state-keyvalue-512026-98.patch
git apply form-state-keyvalue-512026-98.patch
php core/scripts/run-tests.sh --class
"Drupal\views\Tests\Handler\FilterStringTest"
Expected result:
----------------
Drupal test run
---------------
Tests to be run:
- (Drupal\views\Tests\Handler\FilterStringTest)
Test run started:
Wednesday, October 31, 2012 - 23:50
Test summary
------------
Filter: String n passes, 0 fails, and 0 exception
Test run duration: n sec
Actual result:
--------------
Drupal test run
---------------
Tests to be run:
- (Drupal\views\Tests\Handler\FilterStringTest)
Test run started:
Wednesday, October 31, 2012 - 23:50
Test summary
------------
Segmentation fault (core dumped)
FATAL Drupal\views\Tests\Handler\FilterStringTest: test runner returned a
non-
zero error code (139).
- Found database prefix 'simpletest916618' for test ID 372.
- Removed test files directory.
- Removed 43 leftover tables.
Test run duration: 11 sec
--
Edit bug report at https://bugs.php.net/bug.php?id=63407&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63407&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63407&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63407&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63407&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63407&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63407&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63407&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63407&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63407&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63407&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63407&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63407&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63407&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63407&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63407&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63407&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63407&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63407&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63407&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63407&r=mysqlcfg
Thread (5 messages)
- berdir@php.net