[PATCH] Compile gmon tests with $(no-stack-protector) [BZ #33121]

H.J. Lu hjl.tools@gmail.com
Mon Jun 30 11:03:34 GMT 2025


On Mon, Jun 30, 2025 at 7:00 PM Florian Weimer <fweimer@redhat.com> wrote:

> * H. J. Lu:
>
> > On Mon, Jun 30, 2025 at 5:33 PM Florian Weimer <fweimer@redhat.com>
> wrote:
> >>
> >> * H. J. Lu:
> >>
> >> > When glibc was configured with --enable-stack-protector=all and built
> >> > with GCC 16, I got:
> >> >
> >> > FAIL: gmon/tst-gmon-gprof
> >> > FAIL: gmon/tst-gmon-pie-gprof
> >> > FAIL: gmon/tst-gmon-static-gprof
> >> > FAIL: gmon/tst-gmon-static-pie-gprof
> >> >
> >> > [hjl@gnu-tgl-3 build-x86_64-linux]$ cat gmon/tst-gmon-gprof.out
> >> > --- expected
> >> > +++ actual
> >> > @@ -1,3 +1,2 @@
> >> >  f1 2000
> >> >  f2 1000
> >> > -f3 1
> >> > FAIL
> >> > [hjl@gnu-tgl-3 build-x86_64-linux]$
> >> >
> >> > Compile gmon tests with $(no-stack-protector) fixes these gmon tests.
> >> > This fixes BZ #33121.
> >>
> >> Any idea why this is happening?
> >>
> >> Thanks,
> >> Florian
> >>
> >
> > A GCC bug:
> >
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120881
>
> Shouldn't we keep the test as is to warn users that their configuration
> is broken?
>
>
I withdraw my patch.


-- 
H.J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250630/9230fa9e/attachment.htm>


More information about the Libc-alpha mailing list