[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix for bug in pthread_key_delete

From: Timo Teräs
Subject: [PATCH] Fix for bug in pthread_key_delete
Date: Tue, 22 Jul 2003 14:58:18 +0300
User-agent: Mutt/1.5.4i


I've investigating originally a PHP related bug, but it turns out the
real bug lies within pthreads implementation.

The situation is that the PHP code uses thread specific data always
but in some circumtances it didn't create any threads at all. This
revealed that pthread_key_delete didn't work in those coditions properly;
it fails to clear the TSD value.

I have attached a program that reproduces the bug. I've also attached
a patch that should fix the problem. However I haven't been able to
test the patch so I'm not sure about that one.

Please double check the patch and apply if it seems ok.


Timo Teräs

Attachment: keydelete-bug.c
Description: Text Data

Attachment: keydelete-fix.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]