Bug #32220 [Asn->Opn]: [PATCH] thread_resources for thread not getting freed when apache kills thread

From: Date: Tue, 24 Oct 2017 07:50:52 +0000
Subject: Bug #32220 [Asn->Opn]: [PATCH] thread_resources for thread not getting freed when apache kills thread
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212161@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=32220&edit=1

 ID:                 32220
 Updated by:         kalle@php.net
 Reported by:        kameshj at fastmail dot fm
 Summary:            [PATCH] thread_resources for thread not getting
                     freed when apache kills thread
-Status:             Assigned
+Status:             Open
 Type:               Bug
 Package:            Apache2 related
 Operating System:   *
 PHP Version:        5.*, 6CVS (2008-08-15)
-Assigned To:        dmitry
+Assigned To:        
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2008-08-13 12:56:19] kameshj at fastmail dot fm

It is 2.75 years since I touched PHP code

Anyways from my backup, I copied the patch to.
http://pastebin.ca/1169665

------------------------------------------------------------------------
[2008-08-12 16:54:21] jani@php.net

The patch is no longer available..?

------------------------------------------------------------------------
[2005-12-05 09:03:14] kameshj at fastmail dot fm

Yes you are correct that only IIS sapi is making use of ts_free_thread. But If you look at my patch
you can see that I am registering this ts_free_thread function to pthread_push_cleanup to make sure
the pthread subsystem to do the cleanup for us as soon as the thread is getting killed not to wait
for the main thread to free the full thread_resources.

------------------------------------------------------------------------
[2005-12-01 15:51:41] dmitry@php.net

I confirm that PHP doesn't call ts_free_thread() if Web Server (except IIS) kills some thread.
As a result all thread resources are not freed before server shutdown.

The proposed patch is invalid and even cannot be compiled on Linux.

------------------------------------------------------------------------
[2005-11-10 18:36:39] sniper@php.net

Yes, but did you check out the patch..?


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


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=32220


--
Edit this bug report at https://bugs.php.net/bug.php?id=32220&edit=1


Thread (14 messages)

« previous php.bugs (#212161) next »