#50585 [NEW]: infinite recursive call in ob_011.phpt crashes solaris

2009-12-27 Thread michael at schmidt2 dot de
From: michael at schmidt2 dot de
Operating system: Solaris 10, sparc
PHP version:  5.3.1
PHP Bug Type: Reproducible crash
Bug description:  infinite recursive call in ob_011.phpt crashes solaris

Description:

When you call :

make test TESTS=./tests/output/ob_011.phpt

The system crashes within 10 seconds.

(CPU usage goes to 100% and system freezes in about 10 seconds.
No ping. Console access is dead too.)


see also bug: 49292


Reproduce code:
---
tests/output/ob_011.phpt


Expected result:

   PID USERNAME  SIZE   RSS STATE  PRI NICE  TIME  CPU PROCESS/NLWP
   745 root  326M  317M run 100   0:00:08  100% php/1





-- 
Edit bug report at http://bugs.php.net/?id=50585&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50585&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50585&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50585&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50585&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50585&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50585&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=50585&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=50585&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=50585&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=50585&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=50585&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=50585&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=50585&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50585&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=50585&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=50585&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=50585&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=50585&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=50585&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=50585&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=50585&r=mysqlcfg



#49292 [Com]: infinite recursive call in ob_011.phpt

2009-12-27 Thread michael at schmidt2 dot de
 ID:   49292
 Comment by:   michael at schmidt2 dot de
 Reported By:  dmendo...@php.net
 Status:   No Feedback
 Bug Type: Output Control
 Operating System: Linux
 PHP Version:  5.2.11RC1
 New Comment:

I'm running Solaris 10. On that system it's worse ! Whole system 
freezes. You cannot be serious to let THIS happen.

Please remove this test.

balrog.# php -v
PHP 5.3.1 (cli) (built: Dec 27 2009 12:23:33)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
balrog.# uname -a
SunOS balrog 5.10 Generic_139555-08 sun4u sparc SUNW,UltraSPARC-IIi-
cEngine


Previous Comments:


[2009-09-25 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-09-20 09:36:19] PromyLOPh at lavabit dot com

Snapshot (php5.2-200909200830) still crashes.

Valgrind report:
$ valgrind ./sapi/cli/php tests/output/ob_011.phpt
==2561== Memcheck, a memory error detector.
==2561== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==2561== Using LibVEX rev 1854, a library for dynamic binary
translation.
==2561== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==2561== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==2561== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==2561== For more details, rerun with: -v
==2561== 
--TEST--
output buffering - fatalism
--XFAIL--
This test will fail until the fix in version 1.178 of
ext/main/output.c
is backported from php 6
--FILE--
==2561== Stack overflow in thread 1: can't grow stack to 0x7FE801FD8
==2561== 
==2561== Process terminating with default action of signal 11
(SIGSEGV)
==2561==  Access not within mapped region at address 0x7FE801FD8
==2561==at 0x720CA2: ZEND_RECV_SPEC_HANDLER (zend_execute.c:276)
==2561== Stack overflow in thread 1: can't grow stack to 0x7FE801FD0
==2561== 
==2561== Process terminating with default action of signal 11
(SIGSEGV)
==2561==  Access not within mapped region at address 0x7FE801FD0
==2561==at 0x4A1D310: _vgnU_freeres (vg_preloaded.c:56)
==2561== 
==2561== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from
3)
==2561== malloc/free: in use at exit: 8,537,327 bytes in 14,555
blocks.
==2561== malloc/free: 15,101 allocs, 546 frees, 9,428,515 bytes
allocated.
==2561== For counts of detected errors, rerun with: -v
==2561== searching for pointers to 14,555 not-freed blocks.
==2561== checked 12,431,728 bytes.
==2561== 
==2561== LEAK SUMMARY:
==2561==definitely lost: 0 bytes in 0 blocks.
==2561==  possibly lost: 0 bytes in 0 blocks.
==2561==still reachable: 8,537,327 bytes in 14,555 blocks.
==2561== suppressed: 0 bytes in 0 blocks.
==2561== Rerun with --leak-check=full to see details of leaked memory.
Speicherzugriffsfehler

Configure args:
$ ./configure --with-config-file-path=/home/www-data/conf
--prefix=/home/promyloph/testenv/php --without-openssl --with-curl=/usr
--without-pear --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr
--with-freetype-dir=/usr --with-gettext=/usr --with-mcrypt
--with-mysql=/usr/local/mysql --with-mysqli
--with-pdo-mysql=/usr/local/mysql --with-zlib=/usr --with-bz2=/usr
--disable-ipv6 --enable-cli --disable-safe-mode --enable-exif
--enable-libxml --with-libxml-dir=/usr --enable-session
--enable-magic-quotes --disable-sigchild --enable-mbstring
--enable-gd-jis-conv --enable-gd-native-ttf --enable-fastcgi
--enable-force-cgi-redirect --disable-debug --with-pcre-regex=/usr
--disable-posix

$ uname -a
Linux * 2.6.26-2-amd64 #1 SMP Wed Aug 19 22:33:18 UTC 2009 x86_64
GNU/Linux

$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-cld --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)



[2009-09-17 15:44:05] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And if it