Edit report at https://bugs.php.net/bug.php?id=60462&edit=1
ID: 60462 Comment by: nathan dot renniewaldock at gmail dot com Reported by: henrik at bjrnskov dot dk Summary: When APC is enabled segfault Status: Open Type: Bug Package: FPM related Operating System: Mac OS X 10.7 PHP Version: 5.4.0RC2 Block user comment: N Private report: N New Comment: Same problem for me with PHP 5.4 and APC trunk (r324082) $ gdb --args php5-fpm -v GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 Copyright (C) 2011 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 "i686-linux-gnu". For bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>... Reading symbols from /usr/sbin/php5-fpm...(no debugging symbols found)...done. (gdb) run Starting program: /usr/sbin/php5-fpm -v [Thread debugging using libthread_db enabled] [New Thread 0x9fb41b70 (LWP 6130)] [Thread 0x9fb41b70 (LWP 6130) exited] PHP 5.4.0-1build1~ppa1~oneiric (fpm-fcgi) (built: Mar 8 2012 22:19:01) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies *** glibc detected *** /usr/sbin/php5-fpm: free(): invalid pointer: 0xa29877e0 *** ======= Backtrace: ========= /lib/i386-linux-gnu/libc.so.6(+0x6ff22)[0xa2b42f22] /lib/i386-linux-gnu/libc.so.6(+0x70bc2)[0xa2b43bc2] /lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0xa2b46cad] /usr/sbin/php5-fpm(destroy_zend_class+0x228)[0x8314f88] /usr/sbin/php5-fpm(zend_hash_clean+0x6d)[0x832ddfd] /usr/lib/php5/20100525+lfs/apc.so(apc_interned_strings_shutdown+0x32) [0xa1b5c102] /usr/lib/php5/20100525+lfs/apc.so(apc_module_shutdown+0x12d)[0xa1b5514d] /usr/lib/php5/20100525+lfs/apc.so(+0x7e47)[0xa1b49e47] /usr/sbin/php5-fpm[0x8326ec8] /usr/sbin/php5-fpm[0x832c482] /usr/sbin/php5-fpm(zend_hash_graceful_reverse_destroy+0x27)[0x832def7] /usr/sbin/php5-fpm(zend_destroy_modules+0x39)[0x8325849] /usr/sbin/php5-fpm[0x831f303] /usr/sbin/php5-fpm(php_module_shutdown+0x42)[0x82baaa2] /usr/sbin/php5-fpm[0x806b97b] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xa2aec113] /usr/sbin/php5-fpm[0x806d0e5] ======= Memory map: ======== 08048000-0870f000 r-xp 00000000 08:01 917815 /usr/sbin/php5-fpm 0870f000-08770000 r--p 006c6000 08:01 917815 /usr/sbin/php5-fpm 08770000-08777000 rw-p 00727000 08:01 917815 /usr/sbin/php5-fpm 08777000-0893b000 rw-p 00000000 00:00 0 [heap] 9f329000-9f334000 r-xp 00000000 08:01 14160350 /lib/i386-linux- gnu/libnss_files-2.13.so 9f334000-9f335000 r--p 0000a000 08:01 14160350 /lib/i386-linux- gnu/libnss_files-2.13.so 9f335000-9f336000 rw-p 0000b000 08:01 14160350 /lib/i386-linux- gnu/libnss_files-2.13.so 9f341000-9f342000 ---p 00000000 00:00 0 9f342000-9fb42000 rw-p 00000000 00:00 0 9fb42000-a1b42000 rw-s 00000000 00:04 853555167 /dev/zero (deleted) a1b42000-a1b63000 r-xp 00000000 08:01 787347 /usr/lib/php5/20100525+lfs/apc.so a1b63000-a1b64000 r--p 00021000 08:01 787347 /usr/lib/php5/20100525+lfs/apc.so a1b64000-a1b65000 rw-p 00022000 08:01 787347 /usr/lib/php5/20100525+lfs/apc.so a1b65000-a1b6a000 rw-p 00000000 00:00 0 a1b83000-a1c61000 r-xp 00000000 08:01 788829 /usr/lib/i386-linux- gnu/libstdc++.so.6.0.16 a1c61000-a1c62000 ---p 000de000 08:01 788829 /usr/lib/i386-linux- gnu/libstdc++.so.6.0.16 a1c62000-a1c66000 r--p 000de000 08:01 788829 /usr/lib/i386-linux- gnu/libstdc++.so.6.0.16 a1c66000-a1c67000 rw-p 000e2000 08:01 788829 /usr/lib/i386-linux- gnu/libstdc++.so.6.0.16 a1c67000-a1c6e000 rw-p 00000000 00:00 0 a1d42000-a1d5e000 r-xp 00000000 08:01 14155889 /lib/i386-linux- gnu/libgcc_s.so.1 a1d5e000-a1d5f000 r--p 0001b000 08:01 14155889 /lib/i386-linux- gnu/libgcc_s.so.1 a1d5f000-a1d60000 rw-p 0001c000 08:01 14155889 /lib/i386-linux- gnu/libgcc_s.so.1 a2600000-a2621000 rw-p 00000000 00:00 0 a2621000-a2700000 ---p 00000000 00:00 0 a274c000-a2774000 rw-p 00000000 00:00 0 a2774000-a2974000 r--p 00000000 08:01 787732 /usr/lib/locale/locale-archive a2974000-a2a75000 rw-p 00000000 00:00 0 a2ab6000-a2ab8000 rw-p 00000000 00:00 0 a2ab8000-a2acf000 r-xp 00000000 08:01 14160355 /lib/i386-linux-gnu/libpthread- 2.13.so a2acf000-a2ad0000 r--p 00016000 08:01 14160355 /lib/i386-linux-gnu/libpthread- 2.13.so a2ad0000-a2ad1000 rw-p 00017000 08:01 14160355 /lib/i386-linux-gnu/libpthread- 2.13.so a2ad1000-a2ad3000 rw-p 00000000 00:00 0 a2ad3000-a2c4b000 r-xp 00000000 08:01 14160341 /lib/i386-linux-gnu/libc- 2.13.so a2c4b000-a2c4d000 r--p 00178000 08:01 14160341 /lib/i386-linux-gnu/libc- 2.13.so a2c4d000-a2c4e000 rw-p 0017a000 08:01 14160341 /lib/i386-linux-gnu/libc- 2.13.so a2c4e000-a2c51000 rw-p 00000000 00:00 0 a2c51000-a2d98000 r-xp 00000000 08:01 786491 /usr/lib/libxml2.so.2.7.8 a2d98000-a2d9c000 r--p 00147000 08:01 786491 /usr/lib/libxml2.so.2.7.8 a2d9c000-a2d9d000 rw-p 0014b000 08:01 786491 /usr/lib/libxml2.so.2.7.8 a2d9d000-a2d9e000 rw-p 00000000 00:00 0 a2d9e000-a2da1000 r-xp 00000000 08:01 14160344 /lib/i386-linux-gnu/libdl- 2.13.so a2da1000-a2da2000 r--p 00002000 08:01 14160344 /lib/i386-linux-gnu/libdl- 2.13.so a2da2000-a2da3000 rw-p 00003000 08:01 14160344 /lib/i386-linux-gnu/libdl- 2.13.so a2da3000-a2da4000 rw-p 00000000 00:00 0 a2da4000-a2dcc000 r-xp 00000000 08:01 14160345 /lib/i386-linux-gnu/libm- 2.13.so a2dcc000-a2dcd000 r--p 00028000 08:01 14160345 /lib/i386-linux-gnu/libm- 2.13.so a2dcd000-a2dce000 rw-p 00029000 08:01 14160345 /lib/i386-linux-gnu/libm- 2.13.so a2dce000-a2dd5000 r-xp 00000000 08:01 14160357 /lib/i386-linux-gnu/librt- 2.13.so a2dd5000-a2dd6000 r--p 00006000 08:01 14160357 /lib/i386-linux-gnu/librt- 2.13.so a2dd6000-a2dd7000 rw-p 00007000 08:01 14160357 /lib/i386-linux-gnu/librt- 2.13.so a2dd7000-a2e14000 r-xp 00000000 08:01 14156450 /lib/i386-linux- gnu/libpcre.so.3.12.1 a2e14000-a2e15000 r--p 0003c000 08:01 14156450 /lib/i386-linux- gnu/libpcre.so.3.12.1 a2e15000-a2e16000 rw-p 0003d000 08:01 14156450 /lib/i386-linux- gnu/libpcre.so.3.12.1 a2e16000-a2e25000 r-xp 00000000 08:01 14155800 /lib/libbz2.so.1.0.4 a2e25000-a2e26000 r--p 0000e000 08:01 14155800 /lib/libbz2.so.1.0.4 a2e26000-a2e27000 rw-p 0000f000 08:01 14155800 /lib/libbz2.so.1.0.4 a2e27000-a2e73000 r-xp 00000000 08:01 788510 /usr/lib/libqdbm.so.14.13.0 a2e73000-a2e74000 r--p 0004c000 08:01 788510 /usr/lib/libqdbm.so.14.13.0 a2e74000-a2e75000 rw-p 0004d000 08:01 788510 /usr/lib/libqdbm.so.14.13.0 a2e75000-a2e76000 rw-p 00000000 00:00 0 a2e76000-a2ff8000 r-xp 00000000 08:01 787483 /usr/lib/i386-linux-gnu/libdb- 5.1.so a2ff8000-a2ffc000 r--p 00182000 08:01 787483 /usr/lib/i386-linux-gnu/libdb- 5.1.so a2ffc000-a2ffd000 rw-p 00186000 08:01 787483 /usr/lib/i386-linux-gnu/libdb- 5.1.so a2ffd000-a3045000 r-xp 00000000 08:01 14156028 /lib/i386-linux- gnu/libssl.so.1.0.0 a3045000-a3047000 r--p 00047000 08:01 14156028 /lib/i386-linux- gnu/libssl.so.1.0.0 a3047000-a304a000 rw-p 00049000 08:01 14156028 /lib/i386-linux- gnu/libssl.so.1.0.0 a304a000-a31d7000 r-xp 00000000 08:01 14155831 /lib/i386-linux- gnu/libcrypto.so.1.0.0 a31d7000-a31e5000 r--p 0018c000 08:01 14155831 /lib/i386-linux- gnu/libcrypto.so.1.0.0 a31e5000-a31eb000 rw-p 0019a000 08:01 14155831 /lib/i386-linux- gnu/libcrypto.so.1.0.0 a31eb000-a31ee000 rw-p 00000000 00:00 0 a31ee000-a3234000 r-xp 00000000 08:01 793282 /usr/lib/libonig.so.2.0.0 a3234000-a3237000 rw-p 00045000 08:01 793282 /usr/lib/libonig.so.2.0.0 a3237000-a324a000 r-xp 00000000 08:01 14160356 /lib/i386-linux-gnu/libresolv- 2.13.so a324a000-a324b000 r--p 00012000 08:01 14160356 /lib/i386-linux-gnu/libresolv- 2.13.so a324b000-a324c000 rw-p 00013000 08:01 14160356 /lib/i386-linux-gnu/libresolv- 2.13.so a324c000-a324f000 rw-p 00000000 00:00 0 a324f000-a3262000 r-xp 00000000 08:01 14156461 /lib/i386-linux- gnu/libz.so.1.2.3.4 a3262000-a3263000 r--p 00012000 08:01 14156461 /lib/i386-linux- gnu/libz.so.1.2.3.4 a3263000-a3264000 rw-p 00013000 08:01 14156461 /lib/i386-linux- gnu/libz.so.1.2.3.4 a3264000-a326c000 r-xp 00000000 08:01 14160343 /lib/i386-linux-gnu/libcrypt- 2.13.so a326c000-a326d000 r--p 00007000 08:01 14160343 /lib/i386-linux-gnu/libcrypt- 2.13.so a326d000-a326e000 rw-p 00008000 08:01 14160343 /lib/i386-linux-gnu/libcrypt- 2.13.so a326e000-a3295000 rw-p 00000000 00:00 0 a329e000-a329f000 r--p 0029a000 08:01 787732 /usr/lib/locale/locale-archive a329f000-a32a0000 r--p 00000000 00:00 0 a32a0000-a32a2000 rw-p 00000000 00:00 0 a32a2000-a32a3000 r-xp 00000000 00:00 0 [vdso] a32a3000-a32c1000 r-xp 00000000 08:01 14160338 /lib/i386-linux-gnu/ld-2.13.so a32c1000-a32c2000 r--p 0001d000 08:01 14160338 /lib/i386-linux-gnu/ld-2.13.so a32c2000-a32c3000 rw-p 0001e000 08:01 14160338 /lib/i386-linux-gnu/ld-2.13.so b90e7000-b9109000 rw-p 00000000 00:00 0 [stack] Program received signal SIGABRT, Aborted. 0xa32a2430 in __kernel_vsyscall () (gdb) bt full #0 0xa32a2430 in __kernel_vsyscall () No symbol table info available. #1 0xa2b00c8f in raise () from /lib/i386-linux-gnu/libc.so.6 No symbol table info available. #2 0xa2b042b5 in abort () from /lib/i386-linux-gnu/libc.so.6 No symbol table info available. #3 0xa2b3815c in ?? () from /lib/i386-linux-gnu/libc.so.6 No symbol table info available. #4 0xa2b42f22 in ?? () from /lib/i386-linux-gnu/libc.so.6 No symbol table info available. #5 0xa2b43bc2 in ?? () from /lib/i386-linux-gnu/libc.so.6 No symbol table info available. #6 0xa2b46cad in free () from /lib/i386-linux-gnu/libc.so.6 No symbol table info available. #7 0x08314f88 in destroy_zend_class () No symbol table info available. #8 0x0832ddfd in zend_hash_clean () No symbol table info available. #9 0xa1b5c102 in apc_interned_strings_shutdown () at /home/nathan/source/php/apc/apc-trunk/apc_string.c:232 No locals. #10 0xa1b5514d in apc_module_shutdown () at /home/nathan/source/php/apc/apc- trunk/apc_main.c:891 No locals. #11 0xa1b49e47 in zm_shutdown_apc (type=1, module_number=51) at /home/nathan/source/php/apc/apc-trunk/php_apc.c:373 No locals. Previous Comments: ------------------------------------------------------------------------ [2012-03-08 06:28:45] un+phpbugs at rob dot mx I can confirm the same issue on Mac OS X 10.7, APC 3.1.9 and PHP 5.4.0 . Installing from trunk helps, but the logging of the error persists. ------------------------------------------------------------------------ [2012-01-12 20:04:04] josh at joshbutts dot com Happens also in 5.4RC5 with APC from pecl on OSX 10.7.3 ------------------------------------------------------------------------ [2011-12-28 15:50:26] henrik at bjrnskov dot dk Just tried compiling a 5.4RC4 manually and installing apc from svn and pecl. both php-fpm and apache2 module segfaults. OS X Lion 10.7.3 ------------------------------------------------------------------------ [2011-12-17 11:14:35] lolautruche at gmail dot com Here : http://svn.php.net/repository/pecl/apc/ ------------------------------------------------------------------------ [2011-12-17 11:10:53] henrik at bjrnskov dot dk Where is apc svn ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60462 -- Edit this bug report at https://bugs.php.net/bug.php?id=60462&edit=1