public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30712] New: [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case)
@ 2023-08-01 11:34 vries at gcc dot gnu.org
2023-08-01 11:35 ` [Bug symtab/30712] " vries at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-01 11:34 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30712
Bug ID: 30712
Summary: [gdb/symtab, native-extended-gdbserver] segfault in
gdb.base/index-cache.exp (extended test-case)
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Created attachment 15031
--> https://sourceware.org/bugzilla/attachment.cgi?id=15031&action=edit
Tentative patch
Using this tentative patch for gdb.base/index-cache.exp I run into a segfault
with target board native-extended-gdbserver.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug symtab/30712] [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case)
2023-08-01 11:34 [Bug symtab/30712] New: [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case) vries at gcc dot gnu.org
@ 2023-08-01 11:35 ` vries at gcc dot gnu.org
2023-08-02 14:59 ` vries at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-01 11:35 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30712
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 15032
--> https://sourceware.org/bugzilla/attachment.cgi?id=15032&action=edit
gdb.log
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug symtab/30712] [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case)
2023-08-01 11:34 [Bug symtab/30712] New: [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case) vries at gcc dot gnu.org
2023-08-01 11:35 ` [Bug symtab/30712] " vries at gcc dot gnu.org
@ 2023-08-02 14:59 ` vries at gcc dot gnu.org
2023-08-04 13:03 ` cvs-commit at gcc dot gnu.org
2023-08-04 13:09 ` vries at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-02 14:59 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30712
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2023-August/201271.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug symtab/30712] [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case)
2023-08-01 11:34 [Bug symtab/30712] New: [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case) vries at gcc dot gnu.org
2023-08-01 11:35 ` [Bug symtab/30712] " vries at gcc dot gnu.org
2023-08-02 14:59 ` vries at gcc dot gnu.org
@ 2023-08-04 13:03 ` cvs-commit at gcc dot gnu.org
2023-08-04 13:09 ` vries at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-04 13:03 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30712
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b44293099e215d6558a8d91b5eaab137218d2e27
commit b44293099e215d6558a8d91b5eaab137218d2e27
Author: Tom de Vries <tdevries@suse.de>
Date: Fri Aug 4 15:02:43 2023 +0200
[gdb/testsuite] Extend gdb.base/index-cache.exp
The test-case gdb.base/index-cache.exp uses only one source file, which
contains main.
While doing "file $exec", in set_initial_language a symbol lookup of "main"
is
done, causing the symtab containing main to be expanded.
Handling of main is special, and a future optimization may skip the lookup
and
expansion.
Reliably exercise:
- the lookup of main, expanding the symtab containing main, by doing
"ptype main", and
- the lookup of another symbol, expanding a symtab not containing main, by:
- adding another source file containing function foo, and
- doing "ptype foo".
This triggered a segfault with target board native-extended-gdbserver,
filed
as PR symtab/30712, but that seems to be fixed by a previous commit in this
series.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30712
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug symtab/30712] [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case)
2023-08-01 11:34 [Bug symtab/30712] New: [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case) vries at gcc dot gnu.org
` (2 preceding siblings ...)
2023-08-04 13:03 ` cvs-commit at gcc dot gnu.org
@ 2023-08-04 13:09 ` vries at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-04 13:09 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30712
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.1
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-04 13:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 11:34 [Bug symtab/30712] New: [gdb/symtab, native-extended-gdbserver] segfault in gdb.base/index-cache.exp (extended test-case) vries at gcc dot gnu.org
2023-08-01 11:35 ` [Bug symtab/30712] " vries at gcc dot gnu.org
2023-08-02 14:59 ` vries at gcc dot gnu.org
2023-08-04 13:03 ` cvs-commit at gcc dot gnu.org
2023-08-04 13:09 ` vries at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).