Bug #62071 [Fbk->NoF]: CLI Programs Hang Forever
Edit report at https://bugs.php.net/bug.php?id=62071&edit=1
ID: 62071
Updated by: php-bugs@lists.php.net
Reported by: ewilde at bsmdevelopment dot com
Summary: CLI Programs Hang Forever
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
Operating System: CentOS 5.8
PHP Version: 5.4.3
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2013-12-05 17:19:26] mike@php.net
Yup, strace or it didn't happen.
------------------------------------------------------------------------
[2013-06-28 07:30:23] shm@php.net
May you strace the process?
------------------------------------------------------------------------
[2012-07-08 13:40:11] ewilde at bsmdevelopment dot com
I tried both exit and die.
When I added "exit(1)" to the test program, it still hung.
When I added "die("The end")" to the test program, I saw the string "The
end" but then the program hung after that.
It seems that the hang is in the program exit/cleanup code of PHP, not the logic of the program
itself.
Any other ideas about what you'd like to test?
------------------------------------------------------------------------
[2012-05-31 20:19:21] riptide dot tempora at opinehub dot com
Would I wrong in assuming that exit; or die(); would properly kill the program in your situation?
------------------------------------------------------------------------
[2012-05-21 18:57:43] ewilde at bsmdevelopment dot com
Well, that figures. Its way too simple a test to have slipped through your regression testing.
I have other programs that are more complicated which fail in exactly the same way. In all cases,
absolutely all of the work, whatever it is, gets done to completion. All that happens is they hang
on exit or when the code falls through the end of the script.
It sounds like one of those exec/wait problems whereby the wait in a mother task fails to complete
when the daughter task, that's doing all of the work, ends. This could easily be OS-dependent
or build-dependent and, hence, hard for you to reproduce.
If you want to contact me offline about where to look, I'll try to debug the problem on the
test system where its failing.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=62071
--
Edit this bug report at https://bugs.php.net/bug.php?id=62071&edit=1
Thread (8 messages)