Bug #76275 [NEW]: assert

From: Date: Fri, 27 Apr 2018 08:21:57 +0000
Subject: Bug #76275 [NEW]: assert
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214921@lists.php.net to get a copy of this message
From: mate at sla dot hu Operating system: ubuntu 16 PHP version: 7.2.5 Package: opcache Bug Type: Bug Bug description:assert Description: ------------ code below stripped from paragonie/random_compat/lib/random.php this my first compilation on 16.04 gcc toolchain, and i dont know my toolchain has a problem, or this is a bug, becaouse the original downloaded binary version works without problem on this file, but my compilation fails $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) ; /home/sla/workspace/its3/test6.php:1-22 L0 (4): RETURN null random_bytes: ; (lines=6, args=1, vars=1, tmps=1) ; (after optimizer) ; /home/sla/workspace/its3/test6.php:12-19 L0 (12): CV0($length) = RECV 1 L1 (14): UNSET_CV CV0($length) L2 (15): V1 = NEW 1 string("Exception") L3 (16): SEND_VAL_EX string("There is no suitable CSPRNG installed on your system") 1 L4 (16): DO_FCALL L5 (16): THROW V1 php: /home/mate/php-7.2.5/ext/opcache/zend_file_cache.c:506: zend_file_cache_serialize_op_array: Assertion `(((char*)(op_array->try_catch_array) >= (char*)script->mem && (char*)(op_array->try_catch_array) < (char*)script->mem + script->size) || ((char*)(op_array->try_catch_array) >= (accel_shared_globals->interned_strings_start) && (char*)(op_array->try_catch_array) < (accel_shared_globals->interned_strings_end)))' failed. Aborted (core dumped) Test script: --------------- <?php if (PHP_VERSION_ID >= 70000) { return; } if (!is_callable('random_bytes')) { try { } catch (com_exception $e) { } function random_bytes($length) { unset($length); // Suppress "variable not used" warnings. throw new Exception( 'There is no suitable CSPRNG installed on your system' ); return ''; } } -- Edit bug report at https://bugs.php.net/bug.php?id=76275&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76275&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76275&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76275&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76275&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76275&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76275&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76275&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76275&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76275&r=support Expected behavior: https://bugs.php.net/fix.php?id=76275&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76275&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76275&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76275&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76275&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76275&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76275&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76275&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76275&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76275&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76275&r=mysqlcfg

« previous php.bugs (#214921) next »