Bug #62071 [Opn->Fbk]: CLI Programs Hang Forever

From: Date: Thu, 05 Dec 2013 17:19:26 +0000
Subject: Bug #62071 [Opn->Fbk]: CLI Programs Hang Forever
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183147@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62071&edit=1

 ID:                 62071
 Updated by:         mike@php.net
 Reported by:        ewilde at bsmdevelopment dot com
 Summary:            CLI Programs Hang Forever
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *General Issues
 Operating System:   CentOS 5.8
 PHP Version:        5.4.3
 Block user comment: N
 Private report:     N

 New Comment:

Yup, strace or it didn't happen.


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2012-05-20 21:55:00] felipe@php.net

I can't reproduce it.

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


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)

« previous php.bugs (#183147) next »