Re: [RFA_v4 1/8] Add helper functions parse_flags and parse_flags_qcs

Tom Tromey
2018-07-30T21:10:44Z

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> | (gdb) command 1
Joel> | Type commands for breakpoint(s) 1, one per line.
Joel> | End with a line saying just "end".
Joel> | >end
Joel> | ==119811== Invalid read of size 1
Joel> | [snip]
Joel> | ==119811== Address 0x65c1349 is 9 bytes inside a block of size 10 free'd

Joel> Before this patch, no such valgrind error.

Joel> We detected this issue, because, with one of our Ada testcase, we actually
Joel> get an error:

Joel> I will look into tomorrow - this is just a heads up so someone else
Joel> doesn't spend time investigating the same issue.

Hi Joel.

I also found this bug this weekend, while trying out -fsanitize=address.

I have a patch for this one. I haven't written the ChangeLog yet but I
will try to do it as soon as possible.

Actually I have patches to make gdb nearly -fsanitize=address clean; or
at least, the ordinary test suite on my machine is down to 1 failure
(there are some additional gdbserver failures in bugzilla that I haven't
looked at yet). My series also addresses much of -fsanitize=undefined
as well.

Tom