From: andre at roaldseth dot net Operating system: Linux PHP version: 5.4.14 Package: Reproducible crash Bug Type: Bug Bug description:apc_store() in CLI with apc.enable_cli=0 segfaults.
Description: ------------ CentOS 6.4 with php-pecl-apcu.x86_64 from remi repo. It crashes consistently on apc_store() if apc.enable_cli=0. Test script: --------------- var_dump(apc_store("foo", "bar")); Expected result: ---------------- It should result in true. Actual result: -------------- It segfaults. andrer@vg-dev-01:~/VGF (/trunk)$ gdb --args php -r 'apc_store("foo", "bar");' GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/php...(no debugging symbols found)...done. Missing separate debuginfos, use: debuginfo-install php-cli-5.4.14- 1.el6.remi.x86_64 (gdb) run Starting program: /usr/bin/php -r apc_store\(\"foo\",\ \"bar\"\)\; [Thread debugging using libthread_db enabled] [New Thread 0x7fffdef53700 (LWP 18656)] [Thread 0x7fffdef53700 (LWP 18656) exited] Program received signal SIGSEGV, Segmentation fault. 0x00007fffedb2b691 in apc_cache_serializer () from /usr/lib64/php/modules/apcu.so (gdb) thread apply all backtrace Thread 1 (Thread 0x7ffff7fe17e0 (LWP 18637)): #0 0x00007fffedb2b691 in apc_cache_serializer () from /usr/lib64/php/modules/apcu.so #1 0x00007fffedb2ab44 in ?? () from /usr/lib64/php/modules/apcu.so #2 0x000000000065bfcc in ?? () #3 0x00000000006497d8 in execute () #4 0x00000000005d2d1e in zend_eval_stringl () #5 0x00000000005d2df9 in zend_eval_stringl_ex () #6 0x000000000068ad44 in ?? () #7 0x000000000068b768 in ?? () #8 0x00007ffff4f0ccdd in __libc_start_main () from /lib64/libc.so.6 #9 0x0000000000423f89 in _start () -- Edit bug report at https://bugs.php.net/bug.php?id=64708&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64708&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64708&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64708&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64708&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64708&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64708&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64708&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64708&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64708&r=support Expected behavior: https://bugs.php.net/fix.php?id=64708&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64708&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64708&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64708&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64708&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64708&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64708&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64708&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64708&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64708&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64708&r=mysqlcfg