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-10-31
+PHP Version: 5.2CVS-2008-11-02
New Comment:
jani,
i reran my original configuration with '--disable debug' and got you
more information from the backtrace
[snip]
Core was generated by `/usr/local/src/php5.2-200811022130/sapi/cli/php
-n -c /usr/local/src/php5.2-200'.
Program terminated with signal 11, Segmentation fault.
#0 php_session_start () at
/usr/local/src/php5.2-200811022130/ext/session/session.c:621
621 if (PG(register_long_arrays)) {
(gdb) bt
#0 php_session_start () at
/usr/local/src/php5.2-200811022130/ext/session/session.c:621
#1 0x08190660 in zif_session_start (ht=0, return_value=0xb7c15b14,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
at /usr/local/src/php5.2-200811022130/ext/session/session.c:1824
#2 0x082b923a in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe7d78c)
at /usr/local/src/php5.2-200811022130/Zend/zend_vm_execute.h:200
#3 0x082a8c2f in execute (op_array=0xb7c15f94) at
/usr/local/src/php5.2-200811022130/Zend/zend_vm_execute.h:92
#4 0x08288190 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/local/src/php5.2-200811022130/Zend/zend.c:1134
#5 0x08240eb3 in php_execute_script (primary_file=0xbfe7fb88) at
/usr/local/src/php5.2-200811022130/main/main.c:2023
#6 0x0831041e in main (argc=108, argv=0xbfe7fca4) at
/usr/local/src/php5.2-200811022130/sapi/cli/php_cli.c:1134
(gdb) frame 3
#3 0x082a8c2f in execute (op_array=0xb7c15f94) at
/usr/local/src/php5.2-200811022130/Zend/zend_vm_execute.h:92
92 if (EX(opline)->handler(&execute_data
TSRMLS_CC) > 0) {
(gdb) print (char
*)(executor_globals.function_state_ptr->function)->common.function_name
$1 = 0x8436fdc "session_start"
(gdb) print (char *)executor_globals.active_op_array->function_name
$2 = 0x0
(gdb) print (char *)executor_globals.active_op_array->filename
$3 = 0xb7c16060
"/usr/local/src/php5.2-200811022130/ext/session/tests/016.php"
(gdb) frame 2
#2 0x082b923a in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe7d78c)
at /usr/local/src/php5.2-200811022130/Zend/zend_vm_execute.h:200
200 ((zend_internal_function *)
EX(function_state).function)->handler(opline->extended_value,
EX_T(opline->result.u.var).var.ptr,
EX(function_state).function->common.return_reference?&EX_T(opline->result.u.var).var.ptr:NULL,
EX(object), return_value_used TSRMLS_CC);
(gdb) print (char
*)(executor_globals.function_state_ptr->function)->common.function_name
$4 = 0x8436fdc "session_start"
(gdb) print (char *)executor_globals.active_op_array->function_name
$5 = 0x0
(gdb) print (char *)executor_globals.active_op_array->filename
$6 = 0xb7c16060
"/usr/local/src/php5.2-200811022130/ext/session/tests/016.php"
Previous Comments:
------------------------------------------------------------------------
[2008-11-04 00:52:04] hostmaster at uuism dot net
# make test
Build complete.
Don't forget to run 'make test'.
+-----------------------------------------------------------+
| ! 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. |
+-----------------------------------------------------------+
[EMAIL PROTECTED] php5.2-200811022130]# TEST_PHP_EXECUTABLE=sapi/cli/php
sapi/cli/php ./run-tests.php -v ext/session/tests/016.phpt
+-----------------------------------------------------------+
|
! 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. |
+-----------------------------------------------------------+
[EMAIL PROTECTED]
php5.2-200811022130]# sapi/cli/php ext/session/tests/016.php
I live
i can rerun configure with --with-pcre-regex added if you want.
jim
------------------------------------------------------------------------
[2008-11-03 08:42:39] [EMAIL PROTECTED]
Try this configure line (exactly this):
# ./configure --disable-all --disable-cgi --enable-session
# make clean && make test
------------------------------------------------------------------------
[2008-11-02 00:55:56] hostmaster at uuism dot net
Modules: mbstring.so; mysql.so; mysqli.so; soap.so; and xmlrpc.so
I reran the test without any modules and the results were the same.
Configuration string:
--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 --disable-rpath --with-bz2 --with-curl
--with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr
--enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp
--with-iconv --with-jpeg-dir=/usr --with-openssl --with-pspell
--with-pcre-regex=/usr/local --with-zlib --with-layout=GNU --enable-exif
--enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem
--enable-sysvshm --enable-sysvmsg --enable-wddx
--with-pear=/usr/share/pear --with-kerberos --enable-ucd-snmp-hack
--with-unixODBC=shared,/usr --enable-shmop --enable-calendar
--with-mime-magic=/etc/httpd/conf/magic --without-sqlite
--with-libxml-dir=/usr/local --enable-force-cgi-redirect --enable-pcntl
--with-imap=shared --with-imap-ssl --enable-mbstring=shared
--enable-mbregex --with-ncurses=shared --with-gd=shared
--enable-bcmath=shared --enable-dba=shared --with-db4=/usr
--with-xmlrpc=shared --with-ldap=shared --with-mysql=shared,/usr
--with-mysqli=shared,/usr/bin/mysql_config --enable-dom=shared
--with-pgsql=shared --with-snmp=shared,/usr --enable-soap=shared
--with-xsl=shared,/usr --enable-fastcgi --with-pcre-dir=/usr/local
--enable-xmlreader=shared --with-mcrypt --with-mhash
--with-config-file-path=/etc/php-5.2.6
--with-config-file-scan-dir=/etc/php-5.2.6/php.d
Should it make any difference that I used --disable-debug?
I went back and ran configure again with --enable-debug and all the
same other parameters. This time the test PASSED.
I don't understand.
Jim
Jim
------------------------------------------------------------------------
[2008-11-01 23:21:35] [EMAIL PROTECTED]
And what was the configure line you used to compile PHP?
------------------------------------------------------------------------
[2008-11-01 23:20:54] [EMAIL PROTECTED]
Are you loading any shared extensions?
------------------------------------------------------------------------
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