From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A2E123858C2D; Tue, 12 Apr 2022 15:18:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2E123858C2D From: "alex_y_xu at yahoo dot ca" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29039] _dl_tlsdesc_dynamic (sometimes) returns garbage offsets Date: Tue, 12 Apr 2022 15:18:31 +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.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex_y_xu at yahoo dot ca 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: 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, 12 Apr 2022 15:18:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29039 --- Comment #2 from alex_y_xu at yahoo dot ca --- (In reply to Florian Weimer from comment #1) > Is there a way to get glibc debugging information on archlinux? I enabled > debuginfod, and it downloaded some debugging information, but not for gli= bc. >=20 > It looks like the fast path in _dl_tlsdesc_dynamic is taken, and I need to > check what the data structures look like. Thanks for looking into this! As far as I know, Arch Linux currently doesn't have any public debug symbols for the distro-packaged glibc. If you're more familiar with Ubuntu, that ma= y be preferable. It was originally reported on Ubuntu, but I had some issues installing old Mesa packages on Ubuntu, whereas it is a single command on A= rch. I think Ubuntu has debug symbols for glibc though. If you'd like to continue using Arch, following these steps should build and install a standard glibc package with debug symbols: sed -i -e '/^BUILDENV=3D/s/check/!check/' -e '/^OPTIONS=3D/s/!debug/debug/'= -e 's/^#MAKEFLAGS=3D"-j2"$/MAKEFLAGS=3D"-j'$(nproc)'"' /etc/makepkg.conf pacman -S base-devel asp sudo sed -i -e 's/# %wheel ALL=3D(ALL:ALL) NOPASSWD: ALL/%wheel ALL=3D(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers su - user asp checkout glibc cd glibc/trunk gpg --recv-keys 16792B4EA25340F8 makepkg -si I tested approximately this method and was able to reproduce the issue on b= are metal. Alternatively, it may be possible to manually install glibc with ./configure; make; make install. I didn't test this method; it may be neces= sary to source /etc/makepkg.conf; export CFLAGS LDFLAGS in order to reproduce the issue. --=20 You are receiving this mail because: You are on the CC list for the bug.=