Bug #70843 [Opn->Fbk]: Segmentation fault on MacOSX with opcache.file_cache_only=1

From: Date: Tue, 03 Nov 2015 16:05:59 +0000
Subject: Bug #70843 [Opn->Fbk]: Segmentation fault on MacOSX with opcache.file_cache_only=1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196997@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70843&edit=1

 ID:                 70843
 Updated by:         laruence@php.net
 Reported by:        for-bugs at hnw dot jp
 Summary:            Segmentation fault on MacOSX with
                     opcache.file_cache_only=1
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            opcache
 Operating System:   MacOSX 10.9.5
 PHP Version:        7.0.0RC6
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2015-11-03 14:32:53] for-bugs at hnw dot jp

Description:
------------
I tried file-based opcache with PHP 7.0.0RC6(cli) on MacOSX.

OPcache settings:

opcache.enable_cli=1
opcache.file_cache=/var/tmp/php/opcache
opcache.file_cache_only=1

All scripts run fine, however test script crashes after execution.

In addition, no problem occurs with same script on Linux.


Test script:
---------------
<?php
$sum = array(); // No segv if commented out this line
$sum[0] = 0;
var_dump($sum);

Expected result:
----------------
array(1) {
  [0]=>
  int(0)
}

Actual result:
--------------
array(1) {
  [0]=>
  int(0)
}
Segmentation fault: 11


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70843&edit=1


Thread (5 messages)

« previous php.bugs (#196997) next »