-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
glibc-2.39-57.el10
-
No
-
Low
-
ZStream
-
-
2
-
rhel-pt-c-libs
-
ssg_platform_tools
-
1
-
False
-
False
-
-
Yes
-
PT Libraries 2025 S11, PT C Libraries 2025 S12
-
Pass
-
Automated
-
Bug Fix
-
-
Done
-
Done
-
Done
-
None
This is a clone of issue RHEL-72011 to use for version rhel-10.0
–
Original description:
The ctype.h macros (isdigit, isspace, etc.) segfault if called from a secondary thread (created in the base namespace) and dlmopen'd namespace.
In this scenario `*_ctype_b_loc()` is a zero pointer which causes the segfault. AFAICT `_ctype_init()` is only called for the base namespace during `start_thread()`, the dlmopen'd namespace's locale TLS is left default-initialized to a zero pointer that then gets dereferenced in the `isdigit()` macro and segfaults.
This has already been filed upstream https://sourceware.org/bugzilla/show_bug.cgi?id=32483 and appears to affect all versions of glibc including upstream glibc.
A RH glibc engineer has already done an initial evaluation and posted a patch upstream https://sourceware.org/pipermail/libc-alpha/2024-December/162893.html
The customer request is to backport this upstream patch and include it in RHEL8.10 (current production), RHEL 9.5 (currently in testing), and make sure that it is included in RHEL10.
Kindly let me know if we need to raise separate Jira's for RHEL 9 and RHEL 10.
Also, the customer has shared reproducer programs as attachment "reproducer.tar.gz" which I have attached to this Jira now.
- clones
-
RHEL-72011 glibc: ctype.h macros segfault in multithreaded programs with multiple libc.so [rhel-8]
-
- Planning
-
- depends on
-
RHEL-109536 glibc: Import bug fixes: 2.39 → c10s (snapshot 7)
-
- Release Pending
-
- is depended on by
-
RHEL-72011 glibc: ctype.h macros segfault in multithreaded programs with multiple libc.so [rhel-8]
-
- Planning
-
-
RHEL-72017 glibc: ctype.h macros segfault in multithreaded programs with multiple libc.so [rhel-9]
-
- Release Pending
-
- links to
-
RHBA-2025:149437 glibc bug fix and enhancement update