public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/29567] New: when `dlopen` glibc itself, it needs `__ctype_init`
@ 2022-09-13  8:17 linjy0410 at gmail dot com
  2022-09-13  9:04 ` [Bug dynamic-link/29567] " fweimer at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: linjy0410 at gmail dot com @ 2022-09-13  8:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29567

            Bug ID: 29567
           Summary: when `dlopen` glibc itself, it needs `__ctype_init`
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: linjy0410 at gmail dot com
  Target Milestone: ---

We met an issue that while `dlopen("libc.so.6")` and using dlsym to call the
functions inside, some will crash because of ctype TLS is not initialized, e.g.
`iconv` that uses `isspace` which would access ctype.
By manual dlsym and calling `__ctype_init`, it can work normally.
I'm not sure whether this is a bug or dlopen a glibc is not intended.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-14  7:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13  8:17 [Bug dynamic-link/29567] New: when `dlopen` glibc itself, it needs `__ctype_init` linjy0410 at gmail dot com
2022-09-13  9:04 ` [Bug dynamic-link/29567] " fweimer at redhat dot com
2022-09-14  5:28 ` linjy0410 at gmail dot com
2022-09-14  7:03 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).