php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57550 make test - all tests fail.
Submitted: 2007-02-26 16:32 UTC Modified: 2009-03-18 14:19 UTC
From: dg at artegic dot de Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.1 OS: SunOS 5.9, 32 bit
Private report: No CVE-ID: None
 [2007-02-26 16:32 UTC] dg at artegic dot de
Description:
------------
APC fails all tests. Apache 2.0.59 segfaults if started with 
apc enabled after installing the shared lib.

PHP 5.2.1 configured with
'./configure' '--disable-all' '--enable-thread-safety' '--
enable-static' '--enable-shared' '--enable-sockets' '--enabl
e-session' '--enable-libxml' '--enable-xml' '--with-libxml-
dir=/usr/local/lib' '--enable-dom' '--with-pcre-regex' '--
enable-mbregex' '--enab
le-zts' '--enable-pcntl' '--with-mysql=/usr/local/mysql' '--
with-apxs2=/usr/local/apache2/bin/apxs' '--with-openssl' '--
enable-cgi' '--with-
zlib' '--with-png' '--with-jpeg' '--with-gd' '--with-
freetype' '--enable-gd-native-ttf' '--with-curl' '--with-
iconv' '--with-curlwrappers' '
--enable-mbstring' '--with-tidy' '--enable-zend-multibyte' 
'--without-pear' '--without-sqlite' '--disable-ipv6' '--
disable-pdo' '--without-s
qlite' '--without-pdo-sqlite'


Reproduce code:
---------------
>phpize
>./configure --enable-apc-mmap --with-apxs=/usr/local/apache2/bin/apxs --with-php-config=/usr/local/bin/php-config
>make test
...
FAIL APC: apc_store/fetch with strings [tests/apc_001.phpt] 
FAIL APC: apc_store/fetch with objects [tests/apc_002.phpt] 
FAIL APC: apc_store/fetch with objects [tests/apc_003.phpt] 


Expected result:
----------------
APC 3.0.12p2 works just fine in the same configuration...


Actual result:
--------------
Sorry - no GDB on this machine.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-28 15:32 UTC] shire@php.net
Can you please show the output in tests/apc_001.out and tests/apc_001.diff files?
 [2007-03-01 07:04 UTC] dg at artegic dot de
apc_001.log:

---- EXPECTED OUTPUT
string(11) "hello world"
string(11) "hello world"
string(4) "nice"
===DONE===
---- ACTUAL OUTPUT

---- FAILED


apc_001.diff:

001+ 
001- string(11) "hello world"
002- string(11) "hello world"
003- string(4) "nice"
004- ===DONE===
 [2007-03-01 18:09 UTC] gopalv82 at yahoo dot com
I just tested it against php 5.2.1 with apache 2.0.55 prefork MPM and it seems to work just fine.

Are you using the prefork MPM and if you aren't, why exactly is php built with thread safety turned on ? (and suffer a performance hit ?)

Will test a thread-safe build of php5.2 soonish.
 [2007-06-06 19:12 UTC] jhmartin at toger dot us
Similiar situation, except solaris 8

SunOS xxxx 5.8 Generic_117350-45 sun4u sparc SUNW,Sun-Fire-V240

Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.3 

Phpize output:
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

PHP ./configure line:
'./configure' \
'--prefix=/sites/asman/php-5.2.3' \
'--with-apxs2=/sites/openldap/apache/bin/apxs' \
'--with-oci8=/sites/asman/oracle/product/10.2.0/client_1' \
'--with-pdo-oci=/sites/asman/oracle/product/10.2.0/client_1' \
'--with-ldap=/sites/openldap/openLdap' \
'--with-zlib=/usr/local' \

APC ./configure line:
'./configure' \
'--enable-apc' \
'--enable-apc-mmap' \
'--with-apxs=/sites/openldap/apache/bin/apxs' \
'--with-php-config=/sites/asman/php-5.2.3/bin/php-config' 

All tests fail in the same way as below. PHP coredumps when running 'make test'. 

#0  0xfda5946c in my_copy_zend_op (dst=0xfb00a0e4, src=0x42c230,
    allocate=0xfda5e6f0 <apc_sma_malloc>, deallocate=0xfda5e9dc <apc_sma_free>)
    at /sites/asman/APC-3.0.14/apc_compile.c:391
#1  0xfda5a930 in apc_copy_op_array (dst=0xfb009fec, src=0x42c0d0,
    allocate=0xfda5e6f0 <apc_sma_malloc>, deallocate=0xfda5e9dc <apc_sma_free>)
    at /sites/asman/APC-3.0.14/apc_compile.c:1256
#2  0xfda5d350 in my_compile_file (h=0xffbefa58, type=8)
    at /sites/asman/APC-3.0.14/apc_main.c:418
#3  0x2748c4 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /sites/asman/php-5.2.3/Zend/zend.c:1126
#4  0x22ea18 in php_execute_script (primary_file=0xffbefa58)
    at /sites/asman/php-5.2.3/main/main.c:1794
#5  0x3289a0 in main (argc=55, argv=0xffbefaf4)
    at /sites/asman/php-5.2.3/sapi/cli/php_cli.c:1138

The problem exists in 3.0.14, 3.0.13, but not in 3.0.12p2.
 [2007-07-06 02:41 UTC] francisco dot mazzeo at gmail dot com
Same thing here.

PHP 5.2.3 - cPanel server -



Build complete.
Don't forget to run 'make test'.

Error in argument 1, char 2: option not found r
X-Powered-By: PHP/5.2.3
Content-type: text/html


=====================================================================
CWD         : /usr/src/APC-3.0.14
PHP         : /usr/bin/php X-Powered-By: PHP/5.2.3
Content-type: text/html


PHP_SAPI    : cgi
PHP_VERSION : 5.2.3
ZEND_VERSION: 2.2.0
PHP_OS      : Linux - Linux swiss.navigatoris.us 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
INI actual  : /usr/local/Zend/etc/php.ini
More .INIs  :
Extra dirs  :
=====================================================================
Running selected tests.
FAIL APC: apc_store/fetch with strings [tests/apc_001.phpt]
FAIL APC: apc_store/fetch with objects [tests/apc_002.phpt]
FAIL APC: apc_store/fetch with objects [tests/apc_003.phpt]
=====================================================================
Number of tests :    3                 3
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    3 (100.0%) (100.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
APC: apc_store/fetch with strings [tests/apc_001.phpt]
APC: apc_store/fetch with objects [tests/apc_002.phpt]
APC: apc_store/fetch with objects [tests/apc_003.phpt]
=====================================================================
 [2009-02-16 20:47 UTC] shire@php.net
Is this still occurring with the latest release?  Are the backtraces the same in all cases?  What is the backtrace you get when it segfaults on apache start, ie: does it fault if you just startup load apc.so via the php.ini and run httpd -X?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 10 18:01:34 2024 UTC