ID: 27773 User updated by: krasnov at euroweb dot ru Reported By: krasnov at euroweb dot ru Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 4.8 RELEASE PHP Version: 4.3.5 New Comment:
I have found that php NOT crash if i remove the following code from TSRM_API void tsrm_shutdown(void) (file TSRM.c) ----------------------------------- if (resource_types_table && resource_types_table[j].dtor) { resource_types_table[j].dtor(p->storage[j], &p->storage); } ----------------------------------- Previous Comments: ------------------------------------------------------------------------ [2004-03-30 05:30:20] krasnov at euroweb dot ru And i have forgot about this option in php_config.h /* #undef HAVE_REALPATH */ ------------------------------------------------------------------------ [2004-03-30 05:29:09] krasnov at euroweb dot ru I ma really sorry it was misprint, I meant bug #27735 ------------------------------------------------------------------------ [2004-03-30 05:27:00] krasnov at euroweb dot ru 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 this bug report at http://bugs.php.net/?id=27773&edit=1