From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B21793858C3A; Tue, 21 Sep 2021 12:34:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B21793858C3A From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug remote/28360] segfault in bfd_get_elf_phdr_upper_bound Date: Tue, 21 Sep 2021 12:34:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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: 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: Tue, 21 Sep 2021 12:34:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28360 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |palves at sourceware dot o= rg --- Comment #2 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > With this: > ... > diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c > index ae2f7c14f6d..d7eaa75a34a 100644 > --- a/gdb/linux-tdep.c > +++ b/gdb/linux-tdep.c > @@ -2327,7 +2327,7 @@ linux_vsyscall_range_raw (struct gdbarch *gdbarch, > struct mem_ra > nge *range) > /* It doesn't make sense to access the host's /proc when debugging a > core file. Instead, look for the PT_LOAD segment that matches > the vDSO. */ > - if (!target_has_execution ()) > + if (!target_has_execution () && core_bfd !=3D nullptr) > { > long phdrs_size; > int num_phdrs, i; > ... > we have instead: > ... > (gdb) set sysroot remote:^M > warning: "remote:" is deprecated, use "target:" instead.^M > warning: sysroot set to "target:".^M > warning: unable to open /proc file '/proc/0/task/0/maps'^M > (gdb) PASS: gdb.server/server-exec-info.exp: set sysroot remote: > info files^M > (gdb) FAIL: gdb.server/server-exec-info.exp: info files > ... Not sure if this is correct, and if this is a fix or a workaround. --=20 You are receiving this mail because: You are on the CC list for the bug.=