public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols
@ 2020-10-28  9:14 vries at gcc dot gnu.org
  2020-10-31 18:23 ` [Bug symtab/26797] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2020-10-28  9:14 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26797

            Bug ID: 26797
           Summary: [readnow] Dwarf error result in no minimal symbols
           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: ---

Normally we have:
...
(gdb) file dw2-error^M
Reading symbols from dw2-error...^M
Dwarf Error: wrong version in compilation unit header (is 153, should be 2, 3,
4 or 5) [in module dw2-error]^M
(No debugging symbols found in dw2-error)^M
(gdb) PASS: gdb.dwarf2/dw2-error.exp: file dw2-error
break -q main^M
Breakpoint 1 at 0x4004ab^M
(gdb) PASS: gdb.dwarf2/dw2-error.exp: break -q main
...

But with with -readnow, we have instead:
...
(gdb) file dw2-error^M
Reading symbols from dw2-error...^M
Dwarf Error: wrong version in compilation unit header (is 153, should be 2, 3,
4 or 5) [in module dw2-error]^M
(gdb) PASS: gdb.dwarf2/dw2-error.exp: file dw2-error
break -q main^M
No symbol table is loaded.  Use the "file" command.^M
(gdb) FAIL: gdb.dwarf2/dw2-error.exp: break -q main
...

So, with -readnow, we somehow also end up without minimal symbols.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/26797] [readnow] Dwarf error result in no minimal symbols
  2020-10-28  9:14 [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols vries at gcc dot gnu.org
@ 2020-10-31 18:23 ` tromey at sourceware dot org
  2023-09-08 10:27 ` cvs-commit at gcc dot gnu.org
  2023-11-06  7:54 ` vries at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2020-10-31 18:23 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26797

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I think there's another bug on this topic somewhere...
basically the DWARF reader should try harder when it
encounters invalid DWARF.  For example we could issue
a warning but still accept some of the DWARF (say CUs
that do not cause failures); and in any case not
reject the entire objfile.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/26797] [readnow] Dwarf error result in no minimal symbols
  2020-10-28  9:14 [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols vries at gcc dot gnu.org
  2020-10-31 18:23 ` [Bug symtab/26797] " tromey at sourceware dot org
@ 2023-09-08 10:27 ` cvs-commit at gcc dot gnu.org
  2023-11-06  7:54 ` vries at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-09-08 10:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26797

--- Comment #2 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=92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0

commit 92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Sep 8 12:27:02 2023 +0200

    [gdb/testsuite] Add kfail in gdb.dwarf2/dwzbuildid.exp

    When running test-case gdb.dwarf2/dwzbuildid.exp using target board
readnow, I
    get:
    ...
    (gdb) file dwzbuildid-mismatch^M
    Reading symbols from dwzbuildid-mismatch...^M
    warning: File "dwzbuildid5.o" has a different build-id, file skipped^M
    could not find '.gnu_debugaltlink' file for dwzbuildid-mismatch^M
    (gdb) delete breakpoints^M
    (gdb) info breakpoints^M
    No breakpoints or watchpoints.^M
    (gdb) break -qualified main^M
    No symbol table is loaded.  Use the "file" command.^M
    Make breakpoint pending on future shared library load? (y or [n]) n^M
    (gdb) FAIL: gdb.dwarf2/dwzbuildid.exp: mismatch: gdb_breakpoint: set
breakpoint at main
    ...

    This is PR symtab/26797: when using readnow, a failure in reading the dwarf
    results in the minimal symbols not being available.

    Add a corresponding KFAIL.

    Tested on x86_64-linux.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/26797] [readnow] Dwarf error result in no minimal symbols
  2020-10-28  9:14 [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols vries at gcc dot gnu.org
  2020-10-31 18:23 ` [Bug symtab/26797] " tromey at sourceware dot org
  2023-09-08 10:27 ` cvs-commit at gcc dot gnu.org
@ 2023-11-06  7:54 ` vries at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-11-06  7:54 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26797

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |15.1

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=91874afabcd6491a00c4b6b79ac21c2b23061c36

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-06  7:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28  9:14 [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols vries at gcc dot gnu.org
2020-10-31 18:23 ` [Bug symtab/26797] " tromey at sourceware dot org
2023-09-08 10:27 ` cvs-commit at gcc dot gnu.org
2023-11-06  7:54 ` 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).