Austin Group Bug Tracker
2014-06-26 23:34:46 UTC
The following issue has been SUBMITTED.
======================================================================
http://austingroupbugs.net/view.php?id=851
======================================================================
Reported By: dancol
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 851
Category: System Interfaces
Type: Omission
Severity: Comment
Priority: normal
Status: New
Name: Daniel Colascione
Organization:
User Reference:
Section: (section number or name, can be interface name)
Page Number: (page or range of pages)
Line Number: (Line or range of lines)
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-06-26 23:34 UTC
Last Modified: 2014-06-26 23:34 UTC
======================================================================
Summary: pthread_atfork orphans handlers in unloaded shared
libraries
Description:
pthread_atfork is used to register functions to be called before and after
a fork operation. The intent of the facility is to ensure that the child
receives consistent copies of mutexes and other pieces of shared state. If
a process loads a shared library, registers pthread_atfork handlers for
that library, then unloads the library, the process will likely segfault
the next time it calls fork. Some implementations automatically unregister
handlers in this scenario, but there is no requirement to do so, and many
implementations malfunction in the way described above.
Desired Action:
Please either requirement dlclose to automatically unregister
pthread_atfork handlers or provide an explicit interface for unregistering
these handlers manually. I would prefer the explicit interface.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-06-26 23:34 dancol New Issue
2014-06-26 23:34 dancol Name => Daniel Colascione
2014-06-26 23:34 dancol Section => (section number or
name, can be interface name)
2014-06-26 23:34 dancol Page Number => (page or range of
pages)
2014-06-26 23:34 dancol Line Number => (Line or range of
lines)
======================================================================
======================================================================
http://austingroupbugs.net/view.php?id=851
======================================================================
Reported By: dancol
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 851
Category: System Interfaces
Type: Omission
Severity: Comment
Priority: normal
Status: New
Name: Daniel Colascione
Organization:
User Reference:
Section: (section number or name, can be interface name)
Page Number: (page or range of pages)
Line Number: (Line or range of lines)
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-06-26 23:34 UTC
Last Modified: 2014-06-26 23:34 UTC
======================================================================
Summary: pthread_atfork orphans handlers in unloaded shared
libraries
Description:
pthread_atfork is used to register functions to be called before and after
a fork operation. The intent of the facility is to ensure that the child
receives consistent copies of mutexes and other pieces of shared state. If
a process loads a shared library, registers pthread_atfork handlers for
that library, then unloads the library, the process will likely segfault
the next time it calls fork. Some implementations automatically unregister
handlers in this scenario, but there is no requirement to do so, and many
implementations malfunction in the way described above.
Desired Action:
Please either requirement dlclose to automatically unregister
pthread_atfork handlers or provide an explicit interface for unregistering
these handlers manually. I would prefer the explicit interface.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-06-26 23:34 dancol New Issue
2014-06-26 23:34 dancol Name => Daniel Colascione
2014-06-26 23:34 dancol Section => (section number or
name, can be interface name)
2014-06-26 23:34 dancol Page Number => (page or range of
pages)
2014-06-26 23:34 dancol Line Number => (Line or range of
lines)
======================================================================