RE: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Sean R. Bright

sarcasm
Yes, I found this feature of PHP quite useful when I wanted to crash the
server.  There are many places on the web that you can download these very
useful applications that call functions infinitely.  The applications for
this type of code are innumerable.
/sarcasm

Sean
--
===
Sean Bright
[EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/
===

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 06, 2001 5:18 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
 function calls causes seg fault


 From: [EMAIL PROTECTED]
 Operating system: red hat 7.0
 PHP version:  4.0.4pl1
 PHP Bug Type: Reproduceable crash
 Bug description:  simple script with infinite function calls
 causes seg fault

 ---
 %

 function a () {
 b();
 }

 function b () {
 a();
 }

 a();

 %

 h1done/h1
 -

 The simple script above causes a seg fault.  If you need more
 info on configuration etc please mail me.  We made this
 simple example from a more compilcated instance.  This bug
 was also present in 4.0.3pl1, we upgraded to try and stop the
 seg fault...

 thanks!


 --
 Edit Bug report at: http://bugs.php.net/?id=9136edit=1



 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Zak Greant

Dear Sean,

Your resume indicates that you have a wealth of skills that can be applied
to this problem. It would also seem that you understand the open source
ethic.  Why would you not look at solving the problem yourself?

--zak



- Original Message -
From: "Sean R. Bright" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 06, 2001 3:17 PM
Subject: RE: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
function calls causes seg fault


 sarcasm
 Yes, I found this feature of PHP quite useful when I wanted to crash the
 server.  There are many places on the web that you can download these
very
 useful applications that call functions infinitely.  The applications for
 this type of code are innumerable.
 /sarcasm

 Sean
 --
 ===
 Sean Bright
 [EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/
 ===

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 06, 2001 5:18 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
  function calls causes seg fault
 
 
  From: [EMAIL PROTECTED]
  Operating system: red hat 7.0
  PHP version:  4.0.4pl1
  PHP Bug Type: Reproduceable crash
  Bug description:  simple script with infinite function calls
  causes seg fault
 
  ---
  %
 
  function a () {
  b();
  }
 
  function b () {
  a();
  }
 
  a();
 
  %
 
  h1done/h1
  -
 
  The simple script above causes a seg fault.  If you need more
  info on configuration etc please mail me.  We made this
  simple example from a more compilcated instance.  This bug
  was also present in 4.0.3pl1, we upgraded to try and stop the
  seg fault...
 
  thanks!
 
 
  --
  Edit Bug report at: http://bugs.php.net/?id=9136edit=1
 
 
 
  --
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 


 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Sean R. Bright

Dear Zak:

Because I don't consider it a problem that needs solving.  I am probably
overlooking some notoriously famous algorithm, but I can't think of a valid
reason for such functionality to exist unless someone is purposely trying to
bring a system to its knees.

Sean

 -Original Message-
 From: Zak Greant [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 06, 2001 5:40 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
 function calls causes seg fault


 Dear Sean,

 Your resume indicates that you have a wealth of skills that
 can be applied
 to this problem. It would also seem that you understand the
 open source
 ethic.  Why would you not look at solving the problem yourself?

 --zak



 - Original Message -
 From: "Sean R. Bright" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 06, 2001 3:17 PM
 Subject: RE: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
 function calls causes seg fault


  sarcasm
  Yes, I found this feature of PHP quite useful when I wanted
 to crash the
  server.  There are many places on the web that you can
 download these
 very
  useful applications that call functions infinitely.  The
 applications for
  this type of code are innumerable.
  /sarcasm
 
  Sean
  --
  ===
  Sean Bright
  [EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/
  ===
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, February 06, 2001 5:18 PM
   To: [EMAIL PROTECTED]
   Subject: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
   function calls causes seg fault
  
  
   From: [EMAIL PROTECTED]
   Operating system: red hat 7.0
   PHP version:  4.0.4pl1
   PHP Bug Type: Reproduceable crash
   Bug description:  simple script with infinite function calls
   causes seg fault
  
   ---
   %
  
   function a () {
   b();
   }
  
   function b () {
   a();
   }
  
   a();
  
   %
  
   h1done/h1
   -
  
   The simple script above causes a seg fault.  If you need more
   info on configuration etc please mail me.  We made this
   simple example from a more compilcated instance.  This bug
   was also present in 4.0.3pl1, we upgraded to try and stop the
   seg fault...
  
   thanks!
  
  
   --
   Edit Bug report at: http://bugs.php.net/?id=9136edit=1
  
  
  
   --
   PHP Development Mailing List http://www.php.net/
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
   [EMAIL PROTECTED]
  
 
 
  --
  PHP Development Mailing List http://www.php.net/
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 
 


 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Zak Greant

Sean wrote:
 Dear Zak:

 Because I don't consider it a problem that needs solving.  I am probably
 overlooking some notoriously famous algorithm, but I can't think of a
valid
 reason for such functionality to exist unless someone is purposely trying
to
 bring a system to its knees.

I don't think that this is feature (or a bug FTM) - this is just how things
were implemented - a side effect of needing both recursion and allowing
functions to call other functions.

--zak


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Anil Madhavapeddy

Sean R. Bright wrote:

 Because I don't consider it a problem that needs solving.  I am probably
 overlooking some notoriously famous algorithm, but I can't think of a
valid
 reason for such functionality to exist unless someone is purposely trying
to
 bring a system to its knees.


How about ... no PHP script should ever cause the webserver to segfault?
Segfaults are bad.

Anil


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Sean R. Bright

I never said that recursion or the ability for a function to call another
function was a feature/bug.  I agree that they are necessary to the
language.  My point is simply that I don't think PHP needs to be "fixed" so
that this user's mistake is somehow valid.

Take this example (in C):
/***/
#include stdio.h

int a(void);
int b(void);

int main(int argc, char **argv) {
a();
return;
}

int a(void) {
b();
}

int b(void) {
a();
}
/***/

If compiled and run this results in a segfault under linux2.2.18 (glibc2).
gcc doesn't warn me that this is invalid.

I am not really sure what we are arguing at this point...

Sean

 -Original Message-
 From: Zak Greant [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 06, 2001 6:22 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite
 function calls causes seg fault


 Sean wrote:
  Dear Zak:
 
  Because I don't consider it a problem that needs solving.
 I am probably
  overlooking some notoriously famous algorithm, but I can't
 think of a
 valid
  reason for such functionality to exist unless someone is
 purposely trying
 to
  bring a system to its knees.

 I don't think that this is feature (or a bug FTM) - this is
 just how things
 were implemented - a side effect of needing both recursion
 and allowing
 functions to call other functions.

 --zak




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9136: simple script with infinite function calls causes seg fault

2001-02-06 Thread Zak Greant

Sean wrote:
 I am not really sure what we are arguing at this point...

Errr... - twitch - well... blush... sigh.

Well, I am trying to prove that I lack the basic skill to read email
correctly.
I followed the thread a bit oddly and thought that you were the original
poster.

I love things like this that keep me humble... ;)

--zak



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]