Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #31765 : PHP crashes when executing certain code
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 8th March 02:10
php-bugs
External User
 
Posts: 1
Default #31765 : PHP crashes when executing certain code



From: zizka at seznam dot cz
Operating system: All
PHP version: 4.3.10
PHP Bug Type: Reproducible crash
Bug description: PHP crashes when executing certain code

Description:
------------
PHP crashes on my code.

Reproduced on:
Windows 2000 / Apache 1.3.29 / PHP 4.3.6 (Apache mod)
Windows 2000 / Apache 1.3.29 / PHP 4.3.10 (Apache mod)
Windows 2000 / Apache 2.0.52 / PHP 4.3.10 (Apache mod)
Linux hercules 2.4.25 / Apache 1.3.33 / PHP 4.3.10 (Apache mod)
Windows NT 5.2 / Microsoft-IIS 6.0 / PHP Version 4.3.1 (CGI)

Windows 2000's report (transl. from Czech):
Event type: Chyba
Event source: Service Control Manager
Kategorie události: Není k dispozici
Event ID: 7024
Date: 29.1.2005
Time: 14:44:00
User: N/A
Computer: WDN
Description:
Service Apache2 was terminated with specific error 1.

I have reduced the code into two files, but I'm sorry I have no time to
create minimal test case. One file is a lib with 450 lines, second just
creates the object and calls the methods.
The bug appears when I do certain wild operations with tree made of arrays
of objects.
I know which block of code to comment out to get it work.
Also I have found the line where it crashes, although it tells nothing (to
me):
if($oTreeSub->sTag == 'text'){

Reproduce code:
---------------
I can not put the files here publicly because of security reasons, but I
can send them to someone who will shorten it to the bug's core and put it
here.

Please contact me at
ondra x dynawest. cz
zizka x seznam. cz
http://ondra.zizka.cz

Expected result:
----------------
Not to crash

Actual result:
--------------
Crashes.

And at last, I would like to bring attention to my feat.req. ->
http://bugs.php.net/bug.php?id=30228 . The answer is insufficient, I would
really like to know the reason why PHP4 cant run along with PHP5 on a
single apache, or, more specifically, why PHP team does not want it to.
Please put there some link to that "forums", thanks.

--
Edit bug report at http://bugs.php.net/?id=31765&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31765&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31765&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31765&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31765&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31765&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31765&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31765&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31765&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31765&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31765&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31765&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31765&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31765&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31765&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31765&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31765&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31765&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31765&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31765&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31765&r=mysqlcfg
  Reply With Quote


  sponsored links


2 8th March 05:52
php-bugs
External User
 
Posts: 1
Default #31765 : PHP crashes when executing certain code



ID: 31765
Comment by: ondra at dynawest dot cz
Reported By: zizka at seznam dot cz
Status: Open
Bug Type: Reproducible crash
Operating System: All
PHP Version: 4.3.10
New Comment:

Don't use zizka at seznam. cz - it doesn't work properly... Use ondra
ta dynawest. cz


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

[2005-01-30 18:42:24] zizka at seznam dot cz

Description:
------------
PHP crashes on my code.

Reproduced on:
Windows 2000 / Apache 1.3.29 / PHP 4.3.6 (Apache mod)
Windows 2000 / Apache 1.3.29 / PHP 4.3.10 (Apache mod)
Windows 2000 / Apache 2.0.52 / PHP 4.3.10 (Apache mod)
Linux hercules 2.4.25 / Apache 1.3.33 / PHP 4.3.10 (Apache mod)
Windows NT 5.2 / Microsoft-IIS 6.0 / PHP Version 4.3.1 (CGI)

Windows 2000's report (transl. from Czech):
Event type: Chyba
Event source: Service Control Manager
Kategorie události: Není k dispozici
Event ID: 7024
Date: 29.1.2005
Time: 14:44:00
User: N/A
Computer: WDN
Description:
Service Apache2 was terminated with specific error 1.

I have reduced the code into two files, but I'm sorry I have no time to
create minimal test case. One file is a lib with 450 lines, second just
creates the object and calls the methods.
The bug appears when I do certain wild operations with tree made of
arrays of objects.
I know which block of code to comment out to get it work.
Also I have found the line where it crashes, although it tells nothing
(to me):
if($oTreeSub->sTag == 'text'){

Reproduce code:
---------------
I can not put the files here publicly because of security reasons, but
I can send them to someone who will shorten it to the bug's core and
put it here.

Please contact me at
ondra x dynawest. cz
zizka x seznam. cz
http://ondra.zizka.cz

Expected result:
----------------
Not to crash

Actual result:
--------------
Crashes.

And at last, I would like to bring attention to my feat.req. ->
http://bugs.php.net/bug.php?id=30228 . The answer is insufficient, I
would really like to know the reason why PHP4 cant run along with PHP5
on a single apache, or, more specifically, why PHP team does not want
it to. Please put there some link to that "forums", thanks.


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


--
Edit this bug report at http://bugs.php.net/?id=31765&edit=1
  Reply With Quote
3 8th March 05:53
External User
 
Posts: 1
Default #31765 : PHP crashes when executing certain code


ID: 31765
Updated by: iliaa@php.net
Reported By: zizka at seznam dot cz
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: All
PHP Version: 4.3.10
New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Please supply a SHORT 10-20 line script that can be used to replicate
the problem.


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

[2005-01-31 14:19:03] ondra at dynawest dot cz

Don't use zizka at seznam. cz - it doesn't work properly... Use ondra
ta dynawest. cz

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

[2005-01-30 18:42:24] zizka at seznam dot cz

Description:
------------
PHP crashes on my code.

Reproduced on:
Windows 2000 / Apache 1.3.29 / PHP 4.3.6 (Apache mod)
Windows 2000 / Apache 1.3.29 / PHP 4.3.10 (Apache mod)
Windows 2000 / Apache 2.0.52 / PHP 4.3.10 (Apache mod)
Linux hercules 2.4.25 / Apache 1.3.33 / PHP 4.3.10 (Apache mod)
Windows NT 5.2 / Microsoft-IIS 6.0 / PHP Version 4.3.1 (CGI)

Windows 2000's report (transl. from Czech):
Event type: Chyba
Event source: Service Control Manager
Kategorie události: Není k dispozici
Event ID: 7024
Date: 29.1.2005
Time: 14:44:00
User: N/A
Computer: WDN
Description:
Service Apache2 was terminated with specific error 1.

I have reduced the code into two files, but I'm sorry I have no time to
create minimal test case. One file is a lib with 450 lines, second just
creates the object and calls the methods.
The bug appears when I do certain wild operations with tree made of
arrays of objects.
I know which block of code to comment out to get it work.
Also I have found the line where it crashes, although it tells nothing
(to me):
if($oTreeSub->sTag == 'text'){

Reproduce code:
---------------
I can not put the files here publicly because of security reasons, but
I can send them to someone who will shorten it to the bug's core and
put it here.

Please contact me at
ondra x dynawest. cz
zizka x seznam. cz
http://ondra.zizka.cz

Expected result:
----------------
Not to crash

Actual result:
--------------
Crashes.

And at last, I would like to bring attention to my feat.req. ->
http://bugs.php.net/bug.php?id=30228 . The answer is insufficient, I
would really like to know the reason why PHP4 cant run along with PHP5
on a single apache, or, more specifically, why PHP team does not want
it to. Please put there some link to that "forums", thanks.


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


--
Edit this bug report at http://bugs.php.net/?id=31765&edit=1
  Reply With Quote
4 9th March 23:56
php-bugs
External User
 
Posts: 1
Default #31765 : PHP crashes when executing certain code


ID: 31765
User updated by: zizka at seznam dot cz
Reported By: zizka at seznam dot cz
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: All
PHP Version: 4.3.10
New Comment:

Here is the code reduced to 30 lines. It still crashes PHP module, but
I haven't tested it on other platforms. But I suppose the nature of the
bug is the same so it would crash everywhere again.

http://paste.phpfi.com/49791


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

[2005-01-31 19:36:20] iliaa@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Please supply a SHORT 10-20 line script that can be used to replicate
the problem.

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

[2005-01-31 14:19:03] ondra at dynawest dot cz

Don't use zizka at seznam. cz - it doesn't work properly... Use ondra
ta dynawest. cz

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

[2005-01-30 18:42:24] zizka at seznam dot cz

Description:
------------
PHP crashes on my code.

Reproduced on:
Windows 2000 / Apache 1.3.29 / PHP 4.3.6 (Apache mod)
Windows 2000 / Apache 1.3.29 / PHP 4.3.10 (Apache mod)
Windows 2000 / Apache 2.0.52 / PHP 4.3.10 (Apache mod)
Linux hercules 2.4.25 / Apache 1.3.33 / PHP 4.3.10 (Apache mod)
Windows NT 5.2 / Microsoft-IIS 6.0 / PHP Version 4.3.1 (CGI)

Windows 2000's report (transl. from Czech):
Event type: Chyba
Event source: Service Control Manager
Kategorie události: Není k dispozici
Event ID: 7024
Date: 29.1.2005
Time: 14:44:00
User: N/A
Computer: WDN
Description:
Service Apache2 was terminated with specific error 1.

I have reduced the code into two files, but I'm sorry I have no time to
create minimal test case. One file is a lib with 450 lines, second just
creates the object and calls the methods.
The bug appears when I do certain wild operations with tree made of
arrays of objects.
I know which block of code to comment out to get it work.
Also I have found the line where it crashes, although it tells nothing
(to me):
if($oTreeSub->sTag == 'text'){

Reproduce code:
---------------
I can not put the files here publicly because of security reasons, but
I can send them to someone who will shorten it to the bug's core and
put it here.

Please contact me at
ondra x dynawest. cz
zizka x seznam. cz
http://ondra.zizka.cz

Expected result:
----------------
Not to crash

Actual result:
--------------
Crashes.

And at last, I would like to bring attention to my feat.req. ->
http://bugs.php.net/bug.php?id=30228 . The answer is insufficient, I
would really like to know the reason why PHP4 cant run along with PHP5
on a single apache, or, more specifically, why PHP team does not want
it to. Please put there some link to that "forums", thanks.


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


--
Edit this bug report at http://bugs.php.net/?id=31765&edit=1
  Reply With Quote
5 10th March 03:24
External User
 
Posts: 1
Default #31765 : PHP crashes when executing certain code


ID: 31765
Updated by: iliaa@php.net
Reported By: zizka at seznam dot cz
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: All
PHP Version: 4.3.10
New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the do***entation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Your code ends up executing an recusrsive function (method) call, which
smashes the stack. This is a know behaviour/issue, avoid recursive
function/method calls with over 100-200 recursion levels.

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

[2005-02-06 17:31:12] zizka at seznam dot cz

Here is the code reduced to 30 lines. It still crashes PHP module, but
I haven't tested it on other platforms. But I suppose the nature of the
bug is the same so it would crash everywhere again.

http://paste.phpfi.com/49791

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

[2005-01-31 19:36:20] iliaa@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Please supply a SHORT 10-20 line script that can be used to replicate
the problem.

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

[2005-01-31 14:19:03] ondra at dynawest dot cz

Don't use zizka at seznam. cz - it doesn't work properly... Use ondra
ta dynawest. cz

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

[2005-01-30 18:42:24] zizka at seznam dot cz

Description:
------------
PHP crashes on my code.

Reproduced on:
Windows 2000 / Apache 1.3.29 / PHP 4.3.6 (Apache mod)
Windows 2000 / Apache 1.3.29 / PHP 4.3.10 (Apache mod)
Windows 2000 / Apache 2.0.52 / PHP 4.3.10 (Apache mod)
Linux hercules 2.4.25 / Apache 1.3.33 / PHP 4.3.10 (Apache mod)
Windows NT 5.2 / Microsoft-IIS 6.0 / PHP Version 4.3.1 (CGI)

Windows 2000's report (transl. from Czech):
Event type: Chyba
Event source: Service Control Manager
Kategorie události: Není k dispozici
Event ID: 7024
Date: 29.1.2005
Time: 14:44:00
User: N/A
Computer: WDN
Description:
Service Apache2 was terminated with specific error 1.

I have reduced the code into two files, but I'm sorry I have no time to
create minimal test case. One file is a lib with 450 lines, second just
creates the object and calls the methods.
The bug appears when I do certain wild operations with tree made of
arrays of objects.
I know which block of code to comment out to get it work.
Also I have found the line where it crashes, although it tells nothing
(to me):
if($oTreeSub->sTag == 'text'){

Reproduce code:
---------------
I can not put the files here publicly because of security reasons, but
I can send them to someone who will shorten it to the bug's core and
put it here.

Please contact me at
ondra x dynawest. cz
zizka x seznam. cz
http://ondra.zizka.cz

Expected result:
----------------
Not to crash

Actual result:
--------------
Crashes.

And at last, I would like to bring attention to my feat.req. ->
http://bugs.php.net/bug.php?id=30228 . The answer is insufficient, I
would really like to know the reason why PHP4 cant run along with PHP5
on a single apache, or, more specifically, why PHP team does not want
it to. Please put there some link to that "forums", thanks.


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


--
Edit this bug report at http://bugs.php.net/?id=31765&edit=1
  Reply With Quote
6 10th March 06:51
php-bugs
External User
 
Posts: 1
Default #31765 : PHP crashes when executing certain code


ID: 31765
User updated by: zizka at seznam dot cz
Reported By: zizka at seznam dot cz
Status: Bogus
Bug Type: Reproducible crash
Operating System: All
PHP Version: 4.3.10
New Comment:

I see. Thanks for explanation. I thought that PHP handles this
gracefully.


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

[2005-02-06 22:40:55] iliaa@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the do***entation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Your code ends up executing an recusrsive function (method) call, which
smashes the stack. This is a know behaviour/issue, avoid recursive
function/method calls with over 100-200 recursion levels.


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

[2005-02-06 17:31:12] zizka at seznam dot cz

Here is the code reduced to 30 lines. It still crashes PHP module, but
I haven't tested it on other platforms. But I suppose the nature of the
bug is the same so it would crash everywhere again.

http://paste.phpfi.com/49791

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

[2005-01-31 19:36:20] iliaa@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Please supply a SHORT 10-20 line script that can be used to replicate
the problem.

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

[2005-01-31 14:19:03] ondra at dynawest dot cz

Don't use zizka at seznam. cz - it doesn't work properly... Use ondra
ta dynawest. cz

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

[2005-01-30 18:42:24] zizka at seznam dot cz

Description:
------------
PHP crashes on my code.

Reproduced on:
Windows 2000 / Apache 1.3.29 / PHP 4.3.6 (Apache mod)
Windows 2000 / Apache 1.3.29 / PHP 4.3.10 (Apache mod)
Windows 2000 / Apache 2.0.52 / PHP 4.3.10 (Apache mod)
Linux hercules 2.4.25 / Apache 1.3.33 / PHP 4.3.10 (Apache mod)
Windows NT 5.2 / Microsoft-IIS 6.0 / PHP Version 4.3.1 (CGI)

Windows 2000's report (transl. from Czech):
Event type: Chyba
Event source: Service Control Manager
Kategorie události: Není k dispozici
Event ID: 7024
Date: 29.1.2005
Time: 14:44:00
User: N/A
Computer: WDN
Description:
Service Apache2 was terminated with specific error 1.

I have reduced the code into two files, but I'm sorry I have no time to
create minimal test case. One file is a lib with 450 lines, second just
creates the object and calls the methods.
The bug appears when I do certain wild operations with tree made of
arrays of objects.
I know which block of code to comment out to get it work.
Also I have found the line where it crashes, although it tells nothing
(to me):
if($oTreeSub->sTag == 'text'){

Reproduce code:
---------------
I can not put the files here publicly because of security reasons, but
I can send them to someone who will shorten it to the bug's core and
put it here.

Please contact me at
ondra x dynawest. cz
zizka x seznam. cz
http://ondra.zizka.cz

Expected result:
----------------
Not to crash

Actual result:
--------------
Crashes.

And at last, I would like to bring attention to my feat.req. ->
http://bugs.php.net/bug.php?id=30228 . The answer is insufficient, I
would really like to know the reason why PHP4 cant run along with PHP5
on a single apache, or, more specifically, why PHP team does not want
it to. Please put there some link to that "forums", thanks.


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


--
Edit this bug report at http://bugs.php.net/?id=31765&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666