From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CA2E385841B; Fri, 10 Sep 2021 19:38:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CA2E385841B From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug build/27536] aarch64-linux-hw-point.c fails to compile after updating to glibc-2.33 Date: Fri, 10 Sep 2021 19:38:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: kevinb at redhat dot com X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 19:38:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27536 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #7 from Mehmet gelisin --- we hit an internal error when loading a binary the standard way and then loading it with the -readnow option: http://www-look-4.com/ $ ./gdb -nx -q --data-directory=3Ddata-directory ~/a.out -ex "set c= onfirm off" -ex "file -readnow ~/a.out" Reading symbols from /home/simark/a.out... http://www.compilatori.c= om/ Reading symbols from ~/a.out... /home/simark/src/binutils-gdb/gdb/dwarf2/read.c:8098: internal-erro= r: void create_all_comp_units(dwarf2_per_objfile*): Assertion `per_objfile- http://www.wearelondonmade.com/ >per_bfd->all_comp_units.empty ()' failed. This is a recurring problem that exposes a design issue in the DWARF per-BFD sharing feature. Things work http://www.jopspeech.com/ well wh= en loading a binary with the same method (with/without index, with/without readnow) twice in a http://joerg.li/=20 row. But they don't work so well when loading a binary with different methods. See this previous fix, for example: http://connstr.net/=20 efb763a5ea35 ("gdb: check for partial symtab presence in dwarf2_initialize_objfile") http://embermanchester.uk/=20 That one handled the case where the first load is normal (uses partial symbols) and the second load uses an index. http://www.slipstone.co.uk/=20 The problem is that when loading an objfile with a method A, we create a dwarf2_per_bfd and some dwarf2_per_cu_data and initialize them with the data belonging to that method. http://www.logoarts.co.uk/ When loading another obfile sharing the same BFD but with a different method B, it's not clear how to re-use the dwarf2_per_bfd/dwarf2_per_cu_data previously created, because they contain the data specific to method A. http://www.acpirateradio.co.uk/=20 I think the most sensible fix would be to not share a dwarf2_per_bfd between two objfiles loaded with different methods. That means that two objfiles sharing the same BFD and loaded the same way would share a dwarf2_per_bfd. Two objfiles sharing the same BFD but loaded with https://waytowhatsnext.com/=20 different methods would use two different dwarf2_per_bfd structures. However, this isn't a trivial change. So to fix the known issue quickly (including in the gdb 10 branch), this patch just disables all https://www.webb-dev.co.uk/=20 dwarf2_per_bfd sharing for objfiles using READNOW. Generalize the gdb.base/index-cache-load-twice.exp test to test all https://komiya-dental.com/=20 the possible combinations of loading a file with partial symtabs, index and readnow. Move it to gdb.dwarf2, since it really exercises features of the DWARF reader. http://www.iu-bloomington.com/ gdb/ChangeLog: --=20 You are receiving this mail because: You are on the CC list for the bug.=