From:             krasnov at euroweb dot ru
Operating system: FreeBSD 4.8 RELEASE
PHP version:      4.3.5
PHP Bug Type:     Reproducible crash
Bug description:  Segmentation fault (core dumped) if -DZTS

Description:
------------
If I compile PHP 4.3.5 with --enable-experimental-zts or with
--with-apxs2=/usr/local/apache2/bin/apxs (which affection are the same), I
see "Segmentation fault (core dumped)" as a result of any php script in
CLI mode.



And if I uses --with-apxs2, I get result like bug #17735, which you have
closed as Bogus, but it is not right, cause it does not depend on Apache.



Here is compilation options:



CFLAGS='-O -pipe -march=pentiumpro -D__USE_UNIX98 -D_REENTRANT
-D_THREAD_SAFE -DHAVE_BROKEN_REALPATH -I/usr/local/include/pthread

/linuxthreads -L/usr/local/lib -llthread -llgcc_r' \

LIBS='-L/usr/local/lib -llthread -llgcc_r' \

./configure \

        --prefix=/usr/local/php \

        --with-tsrm-pthreads \

        --enable-experimental-zts



Actual result:
--------------
=====================================================================

CWD         : /usr/local/src/php.new.test/php-4.3.5

PHP         : /usr/local/src/php.new.test/php-4.3.5/sapi/cli/php

PHP_SAPI    : cli

PHP_VERSION : 4.3.5

ZEND_VERSION: 1.3.0

PHP_OS      : FreeBSD - FreeBSD xx.xxx.ru 4.8-RELEASE FreeBSD 4.8-RELEASE
#0: Thu Aug i386

INI actual  : /usr/local/php/lib/php.ini

More .INIs  : Segmentation fault (core dumped)



Extra dirs  :

=====================================================================

TIME START 2004-03-30 14:25:44

=====================================================================

FAIL EXPECT [tests/run-test/test001.phpt]

FAIL EXPECTF [tests/run-test/test002.phpt]

FAIL EXPECTREGEX [tests/run-test/test003.phpt]

FAIL INI section allows '=' [tests/run-test/test004.phpt]

SKIP Error message handling (without ZendOptimizer)
[tests/run-test/test005.phpt] (reason: Zend Optimizer is
loadedSegmentation fault (core dumped))

PASS Error messages are shown [tests/run-test/test006.phpt]

FAIL dirname test [tests/run-test/test007.phpt]

FAIL Error message handling (with ZendOptimizer)
[tests/run-test/test008.phpt]

FAIL Trivial "Hello World" test [tests/basic/001.phpt]

FAIL Simple POST Method test [tests/basic/002.phpt]

FAIL GET and POST Method combined [tests/basic/003.phpt]

FAIL Two variables in POST data [tests/basic/004.phpt]

FAIL Three variables in POST data [tests/basic/005.phpt]

FAIL Add 3 variables together and print result [tests/basic/006.phpt]

FAIL Multiply 3 variables and print result [tests/basic/007.phpt]

FAIL Divide 3 variables and print result [tests/basic/008.phpt]

FAIL Subtract 3 variables and print result [tests/basic/009.phpt]

FAIL Testing | and & operators [tests/basic/010.phpt]

FAIL Testing $argc and $argv handling (GET) [tests/basic/011.phpt]

FAIL Testing $argc and $argv handling (cli) [tests/basic/012.phpt]

FAIL Bug #20539 (PHP CLI Segmentation Fault) [tests/basic/bug20539.phpt]

FAIL Methods via variable name, bug #20120 [tests/classes/bug20120.phpt]



-- 
Edit bug report at http://bugs.php.net/?id=27773&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27773&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27773&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27773&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27773&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27773&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27773&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27773&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27773&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27773&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27773&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27773&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27773&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27773&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27773&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27773&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27773&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27773&r=float

Reply via email to