From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD11E3858C5E; Thu, 9 Mar 2023 20:21:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD11E3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678393313; bh=MaYazk5Xr7W9dTkpa+GPHjTqjgIAefRODq1ZVzzpo2w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MxcTKjeSDEFlRW5T4HSPgnBQoWyrnm6I3k45yx3SqBBttY+aHHvQsbrqwQXn/tAY1 V8IHXeDaFLdhEeC9m9z3DmbB4T5uTkvT2z10LkTPw8MBJ/lzpH4JgrKAA2G0vo9UUY kawKlm/iFzeILWJpDsghNk5Nq6qzGb/owemWoTwM= From: "simon.marchi at polymtl dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/30207] GDB crashes on processing Apache2 crash dump Date: Thu, 09 Mar 2023 20:21:53 +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: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon.marchi at polymtl 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30207 Simon Marchi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simon.marchi at polymtl do= t ca --- Comment #5 from Simon Marchi --- (In reply to Erlandas from comment #4) > Have removed version 12.1 which comes with "apt install gdb" >=20 > Built version 13.1 from source. But I do not see gdb-dbgsym executable. A= m I > missing something or did I have to build it with some additional config? If you build it from source, you wouldn't use the dbgsym package. The dbgs= ym packages contain debug info matching the binaries distributed in the distro packages. When configuring (./configure) GDB, pass: CFLAGS=3D"-g -O0" CXXFLAGS=3D"-g -O0" That will make it build with no optimizations (it will be slower, but easie= r to debug) and with debug info directly inside the binary. Btw, since you are using Ubuntu 22.04, you could have also configured the top-level GDB to use debuginfod, as described here: https://wiki.ubuntu.com/Debug%20Symbol%20Packages#Debuginfod This is pretty cool, it makes GDB download debug info for distro packages transparently, when it needs it. --=20 You are receiving this mail because: You are on the CC list for the bug.=