public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/31798] New: pidfd_getpid.c is miscompiled by GCC 6.4
@ 2024-05-25 11:03 hjl.tools at gmail dot com
  2024-05-25 12:00 ` [Bug libc/31798] " hjl.tools at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2024-05-25 11:03 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 31798
           Summary: pidfd_getpid.c is miscompiled by GCC 6.4
           Product: glibc
           Version: 2.40
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
            Target: i686

On i686, pidfd_getpid.c in glibc 2.40 master branch is miscompiled by GCC 6.4:

FAIL: misc/tst-pidfd
FAIL: misc/tst-pidfd_getpid

../sysdeps/unix/sysv/linux/tst-pidfd.c:128: numeric comparison failure
   left: 3063298 (0x2ebe02); from: pidfork
  right: -1 (0xffffffff); from: pid
../sysdeps/unix/sysv/linux/tst-pidfd.c:141: numeric comparison failure
   left: 9 (0x9); from: errno
  right: 3 (0x3); from: ESRCH
../sysdeps/unix/sysv/linux/tst-pidfd.c:165: numeric comparison failure
   left: -1 (0xffffffff); from: querypid
  right: 3063299 (0x2ebe03); from: pid
error: 3 test failures

GCC 7.4 is OK.

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

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

end of thread, other threads:[~2024-05-27 14:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-25 11:03 [Bug libc/31798] New: pidfd_getpid.c is miscompiled by GCC 6.4 hjl.tools at gmail dot com
2024-05-25 12:00 ` [Bug libc/31798] " hjl.tools at gmail dot com
2024-05-25 12:08 ` hjl.tools at gmail dot com
2024-05-26  7:12 ` sam at gentoo dot org
2024-05-27 13:53 ` cvs-commit at gcc dot gnu.org
2024-05-27 14:42 ` cvs-commit at gcc dot gnu.org
2024-05-27 14:42 ` hjl.tools at gmail 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).