[Bug 1615] New: _POSIX_Keys_Run_destructors() is broken
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Tue Jul 13 11:42:12 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1615
Summary: _POSIX_Keys_Run_destructors() is broken
Product: RTEMS
Version: 4.10
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: sebastian.huber at embedded-brains.de
Created an attachment (id=882)
--> (https://www.rtems.org/bugzilla/attachment.cgi?id=882)
Patch.
Problem 1:
According to The Open Group we have:
At thread exit, if a key value has a non-NULL destructor pointer, and the
thread has a non-NULL value associated with that key, the value of the key is
set to NULL, and then the function pointed to is called with the previously
associated value as its sole argument.
The current implementation does not set the value to NULL before calling the
destructor and thus calls it multiple times with the same value.
Problem 2:
The current implementation stops the iteration after some time. This may lead
to resource leaks. If continuous iterations produce an infinite loop this is
better than the silent error suppression.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list