#46444 [Opn]: invalid session.save_path crashes

From: Date: Mon, 17 Nov 2008 16:45:30 +0000
Subject: #46444 [Opn]: invalid session.save_path crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131038@lists.php.net to get a copy of this message
ID: 46444 User updated by: hostmaster at uuism dot net Reported By: hostmaster at uuism dot net Status: Open Bug Type: Session related Operating System: Fedora Core 4 PHP Version: 5.2CVS-2008-11-02 New Comment: I run these commands: #rm config.cache #./configure --disable-all --disable-cgi --enable-session --disable-debug --with-pcre-regex --with-pic #make clean #make test TESTS=ext/session/tests/016.phpt [snip] ===================================================================== PHP : /usr/local/src/php5.2-200811022130/sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.2.7RC3-dev ZEND_VERSION: 2.2.0 PHP_OS : Linux - Linux host.uuserver.net 2.6.20.1 #16 SMP Thu Nov 8 14:19:44 EST 2007 i686 INI actual : /usr/local/src/php5.2-200811022130/tmp-php.ini More .INIs : CWD : /usr/local/src/php5.2-200811022130 Extra dirs : VALGRIND : Not used ===================================================================== Running selected tests. FAIL invalid session.save_path should not cause a segfault [ext/session/tests/016.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 1 (100.0%) (100.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 0 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- invalid session.save_path should not cause a segfault [ext/session/tests/016.phpt] ===================================================================== Previous Comments: ------------------------------------------------------------------------ [2008-11-17 14:48:07] hostmaster at uuism dot net I get the same error message as when I tried to configure php without pcre before: +-----------------------------------------------------------+ | ! ERROR ! | | The test-suite requires that you have pcre extension | | enabled. To enable this extension either compile your PHP | | with --with-pcre-regex or if you've compiled pcre as a | | shared module load it via php.ini. | +-----------------------------------------------------------+ ------------------------------------------------------------------------ [2008-11-11 18:49:02] jani@php.net Try this: # rm config.cache # ./configure --disable-all --disable-cgi --enable-session --disable- debug --with-pic # make test TESTS=ext/session/tests/016.phpt ------------------------------------------------------------------------ [2008-11-09 00:12:51] hostmaster at uuism dot net jani, It appears to be related to the -with-pic option. Here are the results: Case 1: PASS ext/session/tests/016.phpt (ran twice) ./configure --disable-all --disable-cgi --enable-session --with-pcre-regex --build=i386-redhat-linux --host=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug Case 2: FAIL ext/session/tests/016.phpt ./configure --disable-all --disable-cgi --enable-session --with-pcre-regex --build=i386-redhat-linux --host=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic Jim ------------------------------------------------------------------------ [2008-11-08 19:20:30] jani@php.net Now you add options one by one to see which one causes the problem. ------------------------------------------------------------------------ [2008-11-06 05:21:06] hostmaster at uuism dot net jani, I ran configure again as: # ./configure --disable-all --disable-cgi --enable-session --with-pcre-regex # make clean && make test This time, the test PASSED: # TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php run-tests.php ext/session/tests/016.phpt ===================================================================== PHP : sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.2.7RC3-dev ZEND_VERSION: 2.2.0 PHP_OS : Linux - Linux host.uuserver.net 2.6.20.1 #16 SMP Thu Nov 8 14:19:44 EST 2007 i686 INI actual : /usr/local/src/php5.2-200811022130 More .INIs : CWD : /usr/local/src/php5.2-200811022130 Extra dirs : VALGRIND : Not used ===================================================================== Running selected tests. PASS invalid session.save_path should not cause a segfault [ext/session/tests/016.phpt] ===================================================================== What now? Jim ------------------------------------------------------------------------ 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/46444 -- Edit this bug report at http://bugs.php.net/?id=46444&edit=1

« previous php.bugs (#131038) next »