public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
@ 2020-09-02 13:52 msc at linux dot ibm.com
  2020-09-04 22:11 ` [Bug nptl/26566] " adhemerval.zanella at linaro dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: msc at linux dot ibm.com @ 2020-09-02 13:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

            Bug ID: 26566
           Summary: nptl/tst-thread-exit-clobber fails on
                    powerpc/powerpc64 with GCC 10.2
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: msc at linux dot ibm.com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

FAIL: nptl/tst-thread-exit-clobber
original exit status 1
info: unsigned int, direct pthread_exit call
error: tst-thread-exit-clobber.cc:125: not true: value ==
magic_values_double.v4
error: tst-thread-exit-clobber.cc:122: not true: value ==
magic_values_double.v3
error: tst-thread-exit-clobber.cc:119: not true: value ==
magic_values_double.v2
error: tst-thread-exit-clobber.cc:116: not true: value ==
magic_values_double.v1
error: tst-thread-exit-clobber.cc:113: not true: value ==
magic_values_double.v0
error: 5 test failures

I can only reproduce this error on ppc and ppc64, not ppc64le. Also, it works
with GCC 9.3, but fails with GCC 10.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
@ 2020-09-04 22:11 ` adhemerval.zanella at linaro dot org
  2020-09-15 15:10 ` tuliom at ascii dot art.br
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2020-09-04 22:11 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I can't reproduce it with gcc-10 from the build-many-glibcs.py on the gccfarm
gcc203.  I also tried with -fstack-clash-protection (as indicated by the test
itself where it was added due
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83641) but it also work as
expected.

In any case, this seems most likely a compiler or libgcc issue, could you check
if it is the case?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
  2020-09-04 22:11 ` [Bug nptl/26566] " adhemerval.zanella at linaro dot org
@ 2020-09-15 15:10 ` tuliom at ascii dot art.br
  2024-01-22 15:51 ` carlos at redhat dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tuliom at ascii dot art.br @ 2020-09-15 15:10 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tuliom at ascii dot art.br

--- Comment #2 from Tulio Magno Quites Machado Filho <tuliom at ascii dot art.br> ---
(In reply to Adhemerval Zanella from comment #1)
> I can't reproduce it with gcc-10 from the build-many-glibcs.py on the
> gccfarm gcc203.

I reproduced on gcc203 with a normal build using:
configure --prefix=/usr --with-cpu=power8 CC=gcc-10 CXX=g++-10

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
  2020-09-04 22:11 ` [Bug nptl/26566] " adhemerval.zanella at linaro dot org
  2020-09-15 15:10 ` tuliom at ascii dot art.br
@ 2024-01-22 15:51 ` carlos at redhat dot com
  2024-03-21 12:59 ` mmatti at linux dot vnet.ibm.com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: carlos at redhat dot com @ 2024-01-22 15:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-01-22
                 CC|                            |carlos at redhat dot com
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #3 from Carlos O'Donell <carlos at redhat dot com> ---
This came up again when reviewing the test results for glibc 2.39.

The problem is still present.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
                   ` (2 preceding siblings ...)
  2024-01-22 15:51 ` carlos at redhat dot com
@ 2024-03-21 12:59 ` mmatti at linux dot vnet.ibm.com
  2024-04-24  5:49 ` mmatti at linux dot vnet.ibm.com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmatti at linux dot vnet.ibm.com @ 2024-03-21 12:59 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

Manjunath S Matti <mmatti at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at linux dot ibm.com,
                   |                            |mmatti at linux dot vnet.ibm.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
                   ` (3 preceding siblings ...)
  2024-03-21 12:59 ` mmatti at linux dot vnet.ibm.com
@ 2024-04-24  5:49 ` mmatti at linux dot vnet.ibm.com
  2024-05-08  6:15 ` mmatti at linux dot vnet.ibm.com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmatti at linux dot vnet.ibm.com @ 2024-04-24  5:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

--- Comment #4 from Manjunath S Matti <mmatti at linux dot vnet.ibm.com> ---
I observe this failure even with gcc version 13.2.0, but only when glibc is
configured with either --with-cpu=power8 or --with-cpu=power9. But when I
simply configure glibc without mention of any specific Architecture like 

../glibc/configure --enable-debug --prefix=/usr then I am unable to reproduce
this failure.

I suspect that the code generated is causing the issue

107 void
108 check_magic (int index, double value)
109 {
110   switch (index)
111     {
112     case 0:
113       TEST_VERIFY (value == magic_values_double.v0);

Assembly :

  5d4:  7c 69 1b 78     mr      r9,r3
- 5d8:  7f 64 db 78     mr      r4,r27
+ 5d8:  7b 64 00 20     clrldi  r4,r27,32 -->generating this code fixes the
issue
  5dc:  38 60 ff ff     li      r3,-1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
                   ` (4 preceding siblings ...)
  2024-04-24  5:49 ` mmatti at linux dot vnet.ibm.com
@ 2024-05-08  6:15 ` mmatti at linux dot vnet.ibm.com
  2024-05-08  6:16 ` mmatti at linux dot vnet.ibm.com
  2024-05-08  9:58 ` fweimer at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: mmatti at linux dot vnet.ibm.com @ 2024-05-08  6:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

--- Comment #5 from Manjunath S Matti <mmatti at linux dot vnet.ibm.com> ---
I have some more info here:

I have run make check on both x86 and PPC64le, this particular testcase is
marked as
UNSUPPORTED: nptl/tst-thread-exit-clobber


Also this testcase compares 2 doubles is this ok ?

106 __attribute__ ((noinline, noclone, weak))
107 void
108 check_magic (int index, double value)
109 {
110   switch (index)
111     {
112     case 0:
113       TEST_VERIFY (value == magic_values_double.v0); -> here
114       break;

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
                   ` (5 preceding siblings ...)
  2024-05-08  6:15 ` mmatti at linux dot vnet.ibm.com
@ 2024-05-08  6:16 ` mmatti at linux dot vnet.ibm.com
  2024-05-08  9:58 ` fweimer at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: mmatti at linux dot vnet.ibm.com @ 2024-05-08  6:16 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

Manjunath S Matti <mmatti at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeevitha at linux dot ibm.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug nptl/26566] nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2
  2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
                   ` (6 preceding siblings ...)
  2024-05-08  6:16 ` mmatti at linux dot vnet.ibm.com
@ 2024-05-08  9:58 ` fweimer at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2024-05-08  9:58 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26566

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #6 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Manjunath S Matti from comment #5)
> I have some more info here:
> 
> I have run make check on both x86 and PPC64le, this particular testcase is
> marked as
> UNSUPPORTED: nptl/tst-thread-exit-clobber

I think this happens because it's a C++ tested, and you either do not have a
g++ installed, or libstdc++-static is missing (yes, we should probably fixed
that, and not disable all C++ tests if C++ static linking is unsupported).

> Also this testcase compares 2 doubles is this ok ?
> 
> 106 __attribute__ ((noinline, noclone, weak))
> 107 void
> 108 check_magic (int index, double value)
> 109 {
> 110   switch (index)
> 111     {
> 112     case 0:
> 113       TEST_VERIFY (value == magic_values_double.v0); -> here
> 114       break;

Are you asking because of a general rule that says not to compare floating
point numbers for equality? In this case, we want to make sure that the test
case preserves the bit pattern exactly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-05-08  9:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02 13:52 [Bug nptl/26566] New: nptl/tst-thread-exit-clobber fails on powerpc/powerpc64 with GCC 10.2 msc at linux dot ibm.com
2020-09-04 22:11 ` [Bug nptl/26566] " adhemerval.zanella at linaro dot org
2020-09-15 15:10 ` tuliom at ascii dot art.br
2024-01-22 15:51 ` carlos at redhat dot com
2024-03-21 12:59 ` mmatti at linux dot vnet.ibm.com
2024-04-24  5:49 ` mmatti at linux dot vnet.ibm.com
2024-05-08  6:15 ` mmatti at linux dot vnet.ibm.com
2024-05-08  6:16 ` mmatti at linux dot vnet.ibm.com
2024-05-08  9:58 ` fweimer at redhat dot com

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).