#40751 [Opn-Fbk]: Apache segmentation fault

2007-03-09 Thread tony2001
 ID:   40751
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sti-pe2 at online dot no
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3-RELEASE
 PHP Version:  4.4.6
 New Comment:

Do you have open_basedir set?


Previous Comments:


[2007-03-09 09:02:42] sti-pe2 at online dot no

I installed older versions of PHP, and 4.3.10(!) actually works... All
newer versions result in the same error.

Are there any known issues regarding sessions when upgrading from
4.3.10 to 4.3.11? Any config in Apache that may be a problem?



[2007-03-08 07:37:27] sti-pe2 at online dot no

Recompiled without --enable-versioning, but I still get the same error.



[2007-03-07 21:57:46] [EMAIL PROTECTED]

After 10 thousands requests with ab I still can't see anything except
does this work?.
--enable-versioning - could you please remove this option?




[2007-03-07 21:39:16] sti-pe2 at online dot no

Description:

When running some of my php-pages, I get segmentation faults in Apache.

I think I have narrowed it down to session-handling in php, see
reproduce code. Pages not including sessions works fine.
I have upgraded both Apache, PHP and MySQL lately, but don't know if
this is related to the errors I experience.

Systeminfo:
FreeBSD 5.3-RELEASE
Apache 1.3.37
PHP 4.4.6
ZendOptimizer 3.2.2 (disabled for now)
MySQL 4.1.22 

register_globals=on
Tests with register_globals=off does not make any difference.

PHP compile options:
./configure --enable-versioning --enable-memory-limit --with-layout=GNU
--with-config-file-scan-dir=/usr/local/etc/php --disable-all
--with-regex=php --with-apxs=/usr/local/sbin/apxs --disable-ipv6
--prefix=/usr/local

Reproduce code:
---
?
  session_register(test_sessie);

  echo does this work?;
? 

Expected result:

Output to screen/browser: 
does this work?

Actual result:
--
The browser returns a blank page, command line returns Segmentation
fault (core dumped).

/var/log/messages:
kernel: pid 459 (httpd), uid 80: exited on signal 11 

Apache's error.log:
child pid 458 exit signal Segmentation fault (11) 

# gdb php
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-marcel-freebsd...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Program received signal SIGSEGV, Segmentation fault.
0x080cae9a in _zval_ptr_dtor (zval_ptr=0x282e7928) at
/root/dl/php-4.4.6/Zend/zend_execute_API.c:287
287 (*zval_ptr)-refcount--;
(gdb)






-- 
Edit this bug report at http://bugs.php.net/?id=40751edit=1


#40751 [Opn-Fbk]: Apache segmentation fault

2007-03-09 Thread tony2001
 ID:   40751
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sti-pe2 at online dot no
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3-RELEASE
 PHP Version:  4.4.6
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:


[2007-03-09 11:21:45] sti-pe2 at online dot no

No, my php.ini says
;open_basedir =



[2007-03-09 10:42:39] [EMAIL PROTECTED]

Do you have open_basedir set?



[2007-03-09 09:02:42] sti-pe2 at online dot no

I installed older versions of PHP, and 4.3.10(!) actually works... All
newer versions result in the same error.

Are there any known issues regarding sessions when upgrading from
4.3.10 to 4.3.11? Any config in Apache that may be a problem?



[2007-03-08 07:37:27] sti-pe2 at online dot no

Recompiled without --enable-versioning, but I still get the same error.



[2007-03-07 21:57:46] [EMAIL PROTECTED]

After 10 thousands requests with ab I still can't see anything except
does this work?.
--enable-versioning - could you please remove this option?




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/40751

-- 
Edit this bug report at http://bugs.php.net/?id=40751edit=1


#40751 [Opn-Fbk]: Apache segmentation fault

2007-03-09 Thread tony2001
 ID:   40751
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sti-pe2 at online dot no
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3-RELEASE
 PHP Version:  4.4.6
 New Comment:

I'm still unable to reproduce it.


Previous Comments:


[2007-03-09 11:56:55] sti-pe2 at online dot no

Installed latest snapshot, but I still get the same error.



[2007-03-09 11:34:20] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2007-03-09 11:21:45] sti-pe2 at online dot no

No, my php.ini says
;open_basedir =



[2007-03-09 10:42:39] [EMAIL PROTECTED]

Do you have open_basedir set?



[2007-03-09 09:02:42] sti-pe2 at online dot no

I installed older versions of PHP, and 4.3.10(!) actually works... All
newer versions result in the same error.

Are there any known issues regarding sessions when upgrading from
4.3.10 to 4.3.11? Any config in Apache that may be a problem?



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/40751

-- 
Edit this bug report at http://bugs.php.net/?id=40751edit=1


#40751 [Opn-Fbk]: Apache segmentation fault

2007-03-09 Thread tony2001
 ID:   40751
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sti-pe2 at online dot no
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3-RELEASE
 PHP Version:  4.4.6
 New Comment:

Any other information?
A working reproduce code? Full backtrace? Valgrind report? Anything?


Previous Comments:


[2007-03-09 21:06:09] sti-pe2 at online dot no

These are loaded, in this order:
mysql.so
pcre.so
bz2.so
session.so
xml.so

And guess what? Yes, it crashes even if just session is loaded...



[2007-03-09 14:43:35] scottmacvicar at ntlworld dot com

What other extensions do you load in php.ini an what order are they
loaded?

If you disable all apart from session do you still get the crash?



[2007-03-09 12:22:04] [EMAIL PROTECTED]

I'm still unable to reproduce it.



[2007-03-09 11:56:55] sti-pe2 at online dot no

Installed latest snapshot, but I still get the same error.



[2007-03-09 11:34:20] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





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/40751

-- 
Edit this bug report at http://bugs.php.net/?id=40751edit=1


#40751 [Opn-Fbk]: Apache segmentation fault

2007-03-07 Thread tony2001
 ID:   40751
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sti-pe2 at online dot no
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 5.3-RELEASE
 PHP Version:  4.4.6
 New Comment:

After 10 thousands requests with ab I still can't see anything except
does this work?.
--enable-versioning - could you please remove this option?



Previous Comments:


[2007-03-07 21:39:16] sti-pe2 at online dot no

Description:

When running some of my php-pages, I get segmentation faults in Apache.

I think I have narrowed it down to session-handling in php, see
reproduce code. Pages not including sessions works fine.
I have upgraded both Apache, PHP and MySQL lately, but don't know if
this is related to the errors I experience.

Systeminfo:
FreeBSD 5.3-RELEASE
Apache 1.3.37
PHP 4.4.6
ZendOptimizer 3.2.2 (disabled for now)
MySQL 4.1.22 

register_globals=on
Tests with register_globals=off does not make any difference.

PHP compile options:
./configure --enable-versioning --enable-memory-limit --with-layout=GNU
--with-config-file-scan-dir=/usr/local/etc/php --disable-all
--with-regex=php --with-apxs=/usr/local/sbin/apxs --disable-ipv6
--prefix=/usr/local

Reproduce code:
---
?
  session_register(test_sessie);

  echo does this work?;
? 

Expected result:

Output to screen/browser: 
does this work?

Actual result:
--
The browser returns a blank page, command line returns Segmentation
fault (core dumped).

/var/log/messages:
kernel: pid 459 (httpd), uid 80: exited on signal 11 

Apache's error.log:
child pid 458 exit signal Segmentation fault (11) 

# gdb php
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as i386-marcel-freebsd...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Program received signal SIGSEGV, Segmentation fault.
0x080cae9a in _zval_ptr_dtor (zval_ptr=0x282e7928) at
/root/dl/php-4.4.6/Zend/zend_execute_API.c:287
287 (*zval_ptr)-refcount--;
(gdb)






-- 
Edit this bug report at http://bugs.php.net/?id=40751edit=1