#36084 [Fbk->Opn]: apache2 segfaults on phpinfo()

From: Date: Fri, 20 Jan 2006 08:47:13 +0000
Subject: #36084 [Fbk->Opn]: apache2 segfaults on phpinfo()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92261@lists.php.net to get a copy of this message
ID: 36084 User updated by: clive at darkarts dot co dot za Reported By: clive at darkarts dot co dot za -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: FreeBSD PHP Version: 5.1.2 New Comment: commandline for both versions (again): rm config.cache ; ./configure --disable-all --disable-cgi --enable-maintainer-zts --with-apxs2=/usr/local/sbin/apxs && make clean && make && sapi/cli/php -r 'phpinfo();' no segfaulting, runs fine. Previous Comments: ------------------------------------------------------------------------ [2006-01-20 09:22:41] sniper@php.net Now try the same but add --with-apxs2=/usr/local/sbin/apxs to the configure options. ------------------------------------------------------------------------ [2006-01-20 08:19:42] clive at darkarts dot co dot za commandline as follows was used: % rm config.cache ; ./configure --disable-all --disable-cgi --enable-maintainer-zts && make clean && make && sapi/cli/php -r 'phpinfo();' this runs fine, without segfaulting, on both 5.1.2 as well as the snapshot 5.1-200601191130. 'sapi/cli/php -v' on 5.1.2 gives: PHP 5.1.2 (cli) (built: Jan 20 2006 09:28:25) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies 'sapi/cli/php -v' on 5.1.200601191130 gives: PHP 5.1.3-dev (cli) (built: Jan 20 2006 09:19:48) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies ------------------------------------------------------------------------ [2006-01-19 16:16:41] sniper@php.net Try adding --enable-maintainer-zts to that previous configure line. Does it still crash? What does this output: # sapi/cli/php -v And 'make clean' is _mandatory_ always. (remember to 'rm config.cache' before running the configure line too!) ------------------------------------------------------------------------ [2006-01-19 16:11:40] tony2001@php.net >undefined reference to `spl_ce_Countable' Yeah, make clean is required before make. ------------------------------------------------------------------------ [2006-01-19 16:07:54] clive at darkarts dot co dot za Ah, I did not know about ZTS, thank you. as per your instructions:: on php-5.1.2: ext/standard/.libs/array.o(.text+0x5ba): In function `zif_count': /usr/ports/lang/php5/work/php-5.1.2/ext/standard/array.c:326: undefined reference to `spl_ce_Countable' on php-5.1-200601191130: runs perfectly, no segfault (I'm sorry if my next answers come much later, I have to leave now and wont be near a PC again for about 16 hours. I will answer any questions then as fully as possible. Thanks ) ------------------------------------------------------------------------ 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 http://bugs.php.net/36084 -- Edit this bug report at http://bugs.php.net/?id=36084&edit=1

« previous php.bugs (#92261) next »