[Bug time/26097] New: Support calling time functions (localtime, ctime etc.) after multi-threaded fork

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug time/26097] New: Support calling time functions (localtime, ctime etc.) after multi-threaded fork

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26097

            Bug ID: 26097
           Summary: Support calling time functions (localtime, ctime etc.)
                    after multi-threaded fork
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
             Flags: security-

The current implementation based on locks can deadlock in the child process if
fork and any of the time functions are called concurrently in a multi-threaded
process.

This is not a bug in glibc because POSIX makes this behavior undefined, but it
would be convenient to support this as an extension. A solution for bug 16145
cold probably help here as well.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug time/26097] Support calling time functions (localtime, ctime etc.) after multi-threaded fork

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26097

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1845463
                 CC|                            |fweimer at redhat dot com

--
You are receiving this mail because:
You are on the CC list for the bug.