public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/17890] New: gdb needs to punt when it sees a dwarf line table version it doesn't understand
@ 2015-01-27 22:42 dje at google dot com
2015-01-29 18:31 ` [Bug symtab/17890] " cvs-commit at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dje at google dot com @ 2015-01-27 22:42 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17890
Bug ID: 17890
Summary: gdb needs to punt when it sees a dwarf line table
version it doesn't understand
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: dje at google dot com
I'm currently adding support for Two Level Linetables,
and noticed gdb going into an infinite loop on programs
compiled with them.
http://wiki.dwarfstd.org/index.php?title=TwoLevelLineTables
There are two bugs here:
1) gdb should punt when it sees a line table header version it doesn't
understand. The format could be different, there could be new fields
or whatever, and blindly continuing is asking for trouble.
2) with the line table errantly read some fields like lh->range are
getting a value of zero resulting in a SIGFPE (divide-by-zero).
GDB's handling of SIGFPE it to mark the event with the async handler
and return. Eh?
This results in an infinite loop of SIGFPE->handle_sigfpe->SIGFPE
->handle_sigfpe->...
[filed as a separate bug, the number to be recorded once I know it]
--
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/17890] gdb needs to punt when it sees a dwarf line table version it doesn't understand
2015-01-27 22:42 [Bug symtab/17890] New: gdb needs to punt when it sees a dwarf line table version it doesn't understand dje at google dot com
@ 2015-01-29 18:31 ` cvs-commit at gcc dot gnu.org
2015-01-30 9:18 ` cvs-commit at gcc dot gnu.org
2024-01-11 18:51 ` ssbssa at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-01-29 18:31 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17890
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Doug Evans <devans@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd366ee8c6ca1dfe8aa11540402904b64775b208
commit cd366ee8c6ca1dfe8aa11540402904b64775b208
Author: Doug Evans <dje@google.com>
Date: Thu Jan 29 10:26:38 2015 -0800
PR symtab/17890
gdb/ChangeLog:
PR symtab/17890
* dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
--
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/17890] gdb needs to punt when it sees a dwarf line table version it doesn't understand
2015-01-27 22:42 [Bug symtab/17890] New: gdb needs to punt when it sees a dwarf line table version it doesn't understand dje at google dot com
2015-01-29 18:31 ` [Bug symtab/17890] " cvs-commit at gcc dot gnu.org
@ 2015-01-30 9:18 ` cvs-commit at gcc dot gnu.org
2024-01-11 18:51 ` ssbssa at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-01-30 9:18 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17890
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-7.9-branch branch has been updated by Doug Evans
<devans@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a3f9dcee8f15d634b742ad69d3c78a067a1ed2c
commit 0a3f9dcee8f15d634b742ad69d3c78a067a1ed2c
Author: Doug Evans <dje@google.com>
Date: Thu Jan 29 10:31:21 2015 -0800
PR symtab/17890
gdb/ChangeLog:
PR symtab/17890
* dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
--
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/17890] gdb needs to punt when it sees a dwarf line table version it doesn't understand
2015-01-27 22:42 [Bug symtab/17890] New: gdb needs to punt when it sees a dwarf line table version it doesn't understand dje at google dot com
2015-01-29 18:31 ` [Bug symtab/17890] " cvs-commit at gcc dot gnu.org
2015-01-30 9:18 ` cvs-commit at gcc dot gnu.org
@ 2024-01-11 18:51 ` ssbssa at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: ssbssa at sourceware dot org @ 2024-01-11 18:51 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17890
Hannes Domani <ssbssa at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ssbssa at sourceware dot org
Target Milestone|--- |7.9
Resolution|--- |FIXED
--- Comment #3 from Hannes Domani <ssbssa at sourceware dot org> ---
Fixed since gdb-7.9.
--
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:[~2024-01-11 18:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 22:42 [Bug symtab/17890] New: gdb needs to punt when it sees a dwarf line table version it doesn't understand dje at google dot com
2015-01-29 18:31 ` [Bug symtab/17890] " cvs-commit at gcc dot gnu.org
2015-01-30 9:18 ` cvs-commit at gcc dot gnu.org
2024-01-11 18:51 ` ssbssa at sourceware dot 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).