From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99AC83858C53; Tue, 13 Sep 2022 08:17:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99AC83858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663057078; bh=HKOW3Swt3Cl3fd3v/T14vssG2Ch2nFYC824zVeLfCmw=; h=From:To:Subject:Date:From; b=LJ9np9dWQ4fCeR98kgNiavIBiL72CgPappmjswNCMcOmT2nZexDmYd6JE+JeBjrqT ukYDuha5suyXQkyk+iu5qV1LUOcGylFtYNHQby4oJA+IBmVimo/IHYBq577TXjZPcH bplvEN+FlWBBdNfUfUWQRnBxzUBf/gvjTxIv9iYI= From: "linjy0410 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29567] New: when `dlopen` glibc itself, it needs `__ctype_init` Date: Tue, 13 Sep 2022 08:17:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: linjy0410 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29567 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=