From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF450385840C; Mon, 18 Mar 2024 18:05:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF450385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710785124; bh=i9oXwy33Q/9sNN5BKfs9j80yZGvkHzZ02bxQRCTArdY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Lh/rxdDrpNULCRRSSog0JV6SiRzBPA6oB10cx928ZSm+CpApUaCeyMYGNOwRjdcg9 gpEqaGIxAwJL0oW6/3wyJvbASJXb3ViaNut8otiUvIOfoFMGWtKK9kEtXQeCqyh4kQ moSRTXASVhoWlqtiFrlU3xIsO7KnXEHyZLYROdlI= From: "sungdgdhtryrt at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/31497] gdb internal fatal error while opening a core dump; binary built with '-gsplit-dwarf' Date: Mon, 18 Mar 2024 18:05:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sungdgdhtryrt 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: 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=3D31497 --- Comment #4 from Hans --- Indeed the core file is not necessary to provoke the bug. Here is a minimal setup for the bug to occur. cat > main.cpp << EOF #include int main() { printf("hello world\n"); return 0; } EOF clang++-16 -g -gsplit-dwarf -c main.cpp -o main.o clang++-16 main.o -o main llvm-dwp-16 -e main -o main.dwp ./main clang++-16 tooling uses dwarf version 5 by default. The "--readnow" option = is not necessary. Thank you again for the hint. I will try to send a gdb patch for this. --=20 You are receiving this mail because: You are on the CC list for the bug.=