From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F9533858C41; Thu, 2 Nov 2023 07:46:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F9533858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698911214; bh=aiWNzCRr0X+H093cskKkWKW84XXoEXDoOWcmVq46iMQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q0ldDhXvfsaDqasKvUHpBXoTDzdCzwlFfk4hVmiAIpsPIvKnsuaVSv0WIpC9Gfe9g hlFe1zKJ6FrusJUfwQe54RrRIa6wifWpLKcfPJVHS2E0MDFrkJgsrT302hzQ/N/lGW ROAa05KG4rRVmv+j4PE6CygoRST5pAJhd/ibFbhk= From: "asn at samba dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30424] Calling dlopen from preinit function inhibits proper libc initialization Date: Thu, 02 Nov 2023 07:46:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asn at samba dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D30424 --- Comment #1 from Andreas Schneider --- The libssh project uses cwrap [1] to run tests against the openssh sshd ser= ver. When trying to use AddressSanitizer with our test environment we ran into t= his issue [2]. Florian helped to debug the issue we see and tracked it down to = this problem. We have environment variables to disable RTLD_DEEPBIND in the wrappers. How= ever the envrion is empty somehow and we get RTLD_DEEPBIND: =3D=3D31700=3D=3DYou are trying to dlopen a libc.so.6 shared library with R= TLD_DEEPBIND flag which is incompatible with sanitizer runtime (see https://github.com/google/sanitizers/issues/611 for details). If you want to run libc.so.6 library under sanitizers please remove RTLD_DEEPBIND from dlo= pen flags. It would be really great to run AddressSanitzer with our testsuite but we n= eed this fixed. [1] https://cwrap.org [2] https://gitlab.com/cryptomilk/libssh-mirror/-/commits/asn-asan --=20 You are receiving this mail because: You are on the CC list for the bug.=