Ok, this is a simple PHP wrong code. It's an infinite loop.
Now if u try the example, IIS will HANG , the CPU will go to 100% and
IIS will not crash, so its'nt possible debug what application has caused
this type of problem.
The same thing is with an ASP snippet. The application is in high isolated
mode.

while (list ($header, $value) = $test){
if ($header!="operazione") {
$INSERT.=$header;
$VALUES.="'$value'";
$test = each ($dati);
if ($test) {
$INSERT.=",";
$VALUES.=",";
}
}
}

Now i can't think that IIS is so idiot that it can't handle this type of
problem. Please tell me that i need to do some configuration or i need
install some SP, please please please....!

jaco@jaco.it

Re: simple infinite loop crash iis!!! ITS'NT POSSIBLE! by Ken

Ken
Sat Dec 06 18:18:47 CST 2003

a) What version of IIS?
b) Surely this is not IIS being idiotic, this is the fault of the programmer
writing the code.

Cheers
Ken

"jaco" <jaco@jaco.it> wrote in message
news:pan.2003.12.06.23.57.07.445312@jaco.it...
: Ok, this is a simple PHP wrong code. It's an infinite loop.
: Now if u try the example, IIS will HANG , the CPU will go to 100% and
: IIS will not crash, so its'nt possible debug what application has caused
: this type of problem.
: The same thing is with an ASP snippet. The application is in high isolated
: mode.
:
: while (list ($header, $value) = $test){
: if ($header!="operazione") {
: $INSERT.=$header;
: $VALUES.="'$value'";
: $test = each ($dati);
: if ($test) {
: $INSERT.=",";
: $VALUES.=",";
: }
: }
: }
:
: Now i can't think that IIS is so idiot that it can't handle this type of
: problem. Please tell me that i need to do some configuration or i need
: install some SP, please please please....!
:
: jaco@jaco.it



Re: simple infinite loop crash iis!!! ITS'NT POSSIBLE! by Jerry

Jerry
Sun Dec 07 04:07:09 CST 2003

a) It is possible to attach a debugger and debug. I don't know where jaco
got the idea that you can only debug crashed programs.

b) Mommy, mommy, my car will not stop when I steer it into a wall, the
people who make cars are a bunch of idiots...

Jerry

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:O1IaveFvDHA.1756@TK2MSFTNGP09.phx.gbl...
> a) What version of IIS?
> b) Surely this is not IIS being idiotic, this is the fault of the
programmer
> writing the code.
>
> Cheers
> Ken
>
> "jaco" <jaco@jaco.it> wrote in message
> news:pan.2003.12.06.23.57.07.445312@jaco.it...
> : Ok, this is a simple PHP wrong code. It's an infinite loop.
> : Now if u try the example, IIS will HANG , the CPU will go to 100% and
> : IIS will not crash, so its'nt possible debug what application has caused
> : this type of problem.
> : The same thing is with an ASP snippet. The application is in high
isolated
> : mode.
> :
> : while (list ($header, $value) = $test){
> : if ($header!="operazione") {
> : $INSERT.=$header;
> : $VALUES.="'$value'";
> : $test = each ($dati);
> : if ($test) {
> : $INSERT.=",";
> : $VALUES.=",";
> : }
> : }
> : }
> :
> : Now i can't think that IIS is so idiot that it can't handle this type of
> : problem. Please tell me that i need to do some configuration or i need
> : install some SP, please please please....!
> :
> : jaco@jaco.it
>
>



Re: simple infinite loop crash iis!!! ITS'NT POSSIBLE! by jaco

jaco
Sun Dec 07 17:43:50 CST 2003

Il Sun, 07 Dec 2003 11:18:47 +1100, Ken Schaefer ha scritto:

> a) What version of IIS?

IIS 5

> b) Surely this is not IIS being idiotic, this is the fault of the
> programmer writing the code.

Ok, i'm agree about this. The programmer has developed a wrong code, but
this snippet is so simple that i can't believe that IIS can't handle an
infinite loop!

IIS can handle many sites on a single server, so is normal that some sites
could use wrong code of this type. I think that the server would be
protected against fault code. And really i think that i need to
install a SP or make some tunings that i don't know. I can't believe that
IIS is so fragile.

> Cheers
> Ken
>
> "jaco" <jaco@jaco.it> wrote in message
> news:pan.2003.12.06.23.57.07.445312@jaco.it...
> : Ok, this is a simple PHP wrong code. It's an infinite loop. Now if u
> : try the example, IIS will HANG , the CPU will go to 100% and IIS will
> : not crash, so its'nt possible debug what application has caused this
> : type of problem.
> : The same thing is with an ASP snippet. The application is in high
> : isolated mode.
> :
> : while (list ($header, $value) = $test){
> : if ($header!="operazione") {
> : $INSERT.=$header;
> : $VALUES.="'$value'";
> : $test = each ($dati);
> : if ($test) {
> : $INSERT.=",";
> : $VALUES.=",";
> : }
> : }
> : }
> : }
> : Now i can't think that IIS is so idiot that it can't handle this type
> : of problem. Please tell me that i need to do some configuration or i
> : need install some SP, please please please....!
> :
> : jaco@jaco.it


Re: simple infinite loop crash iis!!! ITS'NT POSSIBLE! by jaco

jaco
Sun Dec 07 17:50:31 CST 2003

Il Sun, 07 Dec 2003 02:07:09 -0800, Jerry III ha scritto:

> a) It is possible to attach a debugger and debug. I don't know where jaco
> got the idea that you can only debug crashed programs.

I've tried with iistate but it seems don't detect this type of hang.

> b) Mommy, mommy, my car will not stop when I steer it into a wall, the
> people who make cars are a bunch of idiots...

:) ahahhaha, naaaa. Sorry for my poor english. I don't want to say that
IIS is a not good product. I love IIS and i think that Microsoft and their
programmers has done a great job! My question was: "what can i do to avoid
that an infinite loop, developed by a not good programmer, crash my IIS
Server?" There is a way? or simply its'nt possible?




> Jerry
>
> "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> news:O1IaveFvDHA.1756@TK2MSFTNGP09.phx.gbl...
>> a) What version of IIS?
>> b) Surely this is not IIS being idiotic, this is the fault of the
> programmer
>> writing the code.
>>
>> Cheers
>> Ken
>>
>> "jaco" <jaco@jaco.it> wrote in message
>> news:pan.2003.12.06.23.57.07.445312@jaco.it...
>> : Ok, this is a simple PHP wrong code. It's an infinite loop.
>> : Now if u try the example, IIS will HANG , the CPU will go to 100% and
>> : IIS will not crash, so its'nt possible debug what application has caused
>> : this type of problem.
>> : The same thing is with an ASP snippet. The application is in high
> isolated
>> : mode.
>> :
>> : while (list ($header, $value) = $test){
>> : if ($header!="operazione") {
>> : $INSERT.=$header;
>> : $VALUES.="'$value'";
>> : $test = each ($dati);
>> : if ($test) {
>> : $INSERT.=",";
>> : $VALUES.=",";
>> : }
>> : }
>> : }
>> :
>> : Now i can't think that IIS is so idiot that it can't handle this type of
>> : problem. Please tell me that i need to do some configuration or i need
>> : install some SP, please please please....!
>> :
>> : jaco@jaco.it
>>
>>


Re: simple infinite loop crash iis!!! ITS'NT POSSIBLE! by Pat

Pat
Mon Dec 08 02:47:34 CST 2003

1) IISState can 'see' the system thread, but does not have heuristics to
provide php debug output (as it does for asp). It can, however, let you know
the thread times (USER and KERNEL time taken).
2) IIS is actually only providing network services to PHP, it doesn't
actually run them per se. The PHP interpreter is given free reign to run
how it wishes (as is ASP for that matter).

That said, if you wanted to debug the issue (not just PHP, but any script
engine), you would need to:
1) Obtain a dump of the process in question.
2) Open the dump in WinDBG
3) Identify the thread that was using