ID:               46444
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hostmaster at uuism dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Fedora Core 4
 PHP Version:      5.2CVS-2008-11-02
 New Comment:

Now you add options one by one to see which one causes the problem.


Previous Comments:
------------------------------------------------------------------------

[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

------------------------------------------------------------------------

[2008-11-05 05:39:47] hostmaster at uuism dot net

jani,

i ran this;

# ./configure --disable-all --disable-cgi --enable-session
# make clean && make test

it complained that i did not have --with-pcre-regex

however, i ran ext/session/tests/016.phpt and it failed.

i can rerun ./configure with -with-pcre-regex if you want

jim

------------------------------------------------------------------------

[2008-11-04 02:59:38] hostmaster at uuism dot net

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"

------------------------------------------------------------------------

[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

------------------------------------------------------------------------

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

Reply via email to