Re: pushed: Add support for DWARF-based fixed point types

Simon Marchi
2020-11-17T14:25:34Z

On 2020-11-16 6:48 p.m., Pedro Alves wrote:
> Hi Joel,
>
> On 11/15/20 8:35 AM, Joel Brobecker wrote:
>> Hi everyone,
>>
>> I just finished pusing the following patch series to branch master.
>
> I noticed that a new unit test added by this series is failing for me on
> Ubuntu 20.04, which has libgmp.so.10.4.0 :
>
> $ ./gdb -ex "maint selftest gdb_mpq_write_fixed_point"
> GNU gdb (GDB) 11.0.50.20201116-git
> ...
> Running selftest gdb_mpq_write_fixed_point.
> *** stack smashing detected ***: terminated
> Aborted (core dumped)
> $
>
> I've built a clean gdb from scratch to confirm.
>
> The test passes on Fedora 27, which has libgmp.so.10.3.2:
>
> $ ./gdb -ex "maint selftest gdb_mpq_write_fixed_point"
> GNU gdb (GDB) 11.0.50.20201116-git
> Running selftest gdb_mpq_write_fixed_point.
> Ran 1 unit tests, 0 failed
>
> Anyone else seeing this?
>

I didn't see it in my -O0 compiled GDB, but I do see it in my -O2 compiled GDB.

Simon