This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13725] New: __gconv_lock missing pthread_atfork handler
- From: "wingo at pobox dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 22 Feb 2012 21:18:27 +0000
- Subject: [Bug libc/13725] New: __gconv_lock missing pthread_atfork handler
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13725
Bug #: 13725
Summary: __gconv_lock missing pthread_atfork handler
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: wingo@pobox.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
Consider a multithreaded program that forks while another thread is doing an
iconv_open. This program might deadlock on the __gconv_lock, for obvious
reasons.
I realize that POSIX does not define the behavior of a program that calls
non-async-signal-safe functions after a fork. However glibc does install
thread_atfork handlers for a number of other subsystems, including malloc, a
non-async-signal-safe call.
Suggestion: add a thread_atfork handler for the __gconv_lock.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.