[Bug c++/86469] Dwarf Error: Offset (1678049557) greater than or equal to .debug_str size (5846).
jg at jguk dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 12 12:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469
--- Comment #7 from Jonny Grant <jg at jguk dot org> ---
(In reply to rguenther@suse.de from comment #6)
> On Thu, 12 Jul 2018, jg at jguk dot org wrote:
>
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469
> >
> > --- Comment #5 from Jonny Grant <jg at jguk dot org> ---
> > Richard,
> > Ok I will have a look at that soon...
> >
> > Could I ask, do you know if GCC already has dwarf sanity checks when outputting
> > .debug_str size to check offsets are not larger than the size?
>
> It does have a lot of sanity checks but I don't remember any specific
> one for offsets into sections.
Would be good to add some sanity checks.. offsets into a buffer are always
risky...
> Note you are using a pre-release of GCC 8.1 so maybe make sure to update
> that.
>
> What version of binutils are you using?
$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.30
yes, I'm using 8.0.1 from Ubuntu.. wish distros had latest releases of things
like GCC...
More information about the Gcc-bugs
mailing list