From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B3698385800B; Tue, 28 Dec 2021 17:32:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3698385800B From: "alex_y_xu at yahoo dot ca" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28453] ld.so segfaults when relocating x86 libstdc++.so compiled with -fno-plt Date: Tue, 28 Dec 2021 17:32:05 +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: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex_y_xu at yahoo dot ca 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2021 17:32:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28453 --- Comment #15 from alex_y_xu at yahoo dot ca --- (In reply to H.J. Lu from comment #14) > (In reply to alex_y_xu from comment #13) > > Although I have not tested it, the linked patch does not appear to reso= lve > > this issue. While I think the patch is a good idea, this issue is not > > actually about invoking ld.so directly on the library. All programs lin= ked > > against this library also segfault on execution. > >=20 > > $ docker run -it --rm fedora > > [ ... ] > > # dnf install g++ glibc-devel.i686 libstdc++-devel.i686 > > [ ... ] > > # curl -o libstdc++.so.6 > > https://sourceware.org/bugzilla/attachment.cgi?id=3D13721 > > [ ... ] > > # echo 'int main() {}' | g++ -m32 -x c++ - > > # ./a.out; echo $? > > 0 > > # LD_LIBRARY_PATH=3D. ./a.out; echo $? > > Segmentation fault (core dumped) > > 139 >=20 > Try: >=20 > https://sourceware.org/pipermail/libc-alpha/2021-December/134004.html I wasn't able to apply this to glibc 2.34 or glibc master. Are you sure it = will fix the issue of a.out crashing in the above example? --=20 You are receiving this mail because: You are on the CC list for the bug.=