Bug #69566 [NEW]: Conditional jump or move depends on uninitialised value in extension trait

From: Date: Sun, 03 May 2015 21:38:37 +0000
Subject: Bug #69566 [NEW]: Conditional jump or move depends on uninitialised value in extension trait
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192465@lists.php.net to get a copy of this message
From: jbboehr at gmail dot com Operating system: Ubuntu 14.04 PHP version: 5.6.8 Package: Unknown/Other Function Bug Type: Bug Bug description:Conditional jump or move depends on uninitialised value in extension trait Description: ------------ I've been trying to make a trait in a PHP extension, and there doesn't seem to be any APIs for it, but I did manage to get it working, however when running TEST_PHP_ARGS=-m make test I'm getting this: ==12138== Conditional jump or move depends on uninitialised value(s) ==12138== at 0x86FF52: zend_fixup_trait_method (zend_compile.c:4102) ==12138== by 0x8A9BB7: zend_hash_apply_with_argument (zend_hash.c:666) ==12138== by 0x87AE1E: zend_do_bind_traits (zend_compile.c:4369) ==12138== by 0x8E2273: ZEND_BIND_TRAITS_SPEC_HANDLER (zend_vm_execute.h:1163) ==12138== by 0x8D988A: execute_ex (zend_vm_execute.h:363) ==12138== by 0x89C9B2: zend_execute_scripts (zend.c:1341) ==12138== by 0x82B739: php_execute_script (main.c:2597) ==12138== by 0x94F0E4: do_cli (php_cli.c:994) ==12138== by 0x446BE5: main (php_cli.c:1378) ==12138== It still compiles and passes the tests, but I'm worried about undefined handling. Test script: --------------- Unfortunately, it's in an extension, so to reproduce compile https://github.com/jbboehr/php-psr and run TEST_PHP_ARGS=-m make test -- Edit bug report at https://bugs.php.net/bug.php?id=69566&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69566&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69566&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69566&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69566&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69566&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69566&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69566&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69566&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69566&r=support Expected behavior: https://bugs.php.net/fix.php?id=69566&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69566&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69566&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69566&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69566&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69566&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69566&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69566&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69566&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69566&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69566&r=mysqlcfg

« previous php.bugs (#192465) next »