public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data
@ 2014-01-10 16:48 azanella at linux dot vnet.ibm.com
2014-01-10 16:54 ` [Bug libc/16430] " azanella at linux dot vnet.ibm.com
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-10 16:48 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Bug ID: 16430
Summary: PowerPC: ftime gettimeofday internal call returning
bogus data
Product: glibc
Version: 2.19
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: azanella at linux dot vnet.ibm.com
CC: drepper.fsp at gmail dot com
The testcase:
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/timeb.h>
int
main ()
{
struct timeval tv;
struct timeb s, slast;
int c = 0;
ftime (&slast);
while (c < 10)
{
ftime (&s);
if (s.time < slast.time
|| (s.time == slast.time && s.millitm < slast.millitm))
exit (1);
if (s.time != slast.time)
++c;
slast.time = s.time;
slast.millitm = s.millitm;
}
exit (0);
}
Is failing for PPC32 after ef26eece6331a1f6d959818e37c438cc7ce68e53 (PowerPC:
gettimeofday optimization by using IFUNC). This is due the fact linker is not
setting the gettimeofday call from ftime through a PLT, as PPC64; and thus
calling __gettimeofday ifunc resolver directly.
A possible fix would be detect a PPC32 build and set the internal symbol
'__GI___gettimeofday' to a different implementation than the ifunc resolver.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
@ 2014-01-10 16:54 ` azanella at linux dot vnet.ibm.com
2014-01-10 16:55 ` adconrad at 0c3 dot net
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-10 16:54 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |azanella 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] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
2014-01-10 16:54 ` [Bug libc/16430] " azanella at linux dot vnet.ibm.com
@ 2014-01-10 16:55 ` adconrad at 0c3 dot net
2014-01-10 19:51 ` azanella at linux dot vnet.ibm.com
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: adconrad at 0c3 dot net @ 2014-01-10 16:55 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Adam Conrad <adconrad at 0c3 dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adconrad at 0c3 dot net
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
2014-01-10 16:54 ` [Bug libc/16430] " azanella at linux dot vnet.ibm.com
2014-01-10 16:55 ` adconrad at 0c3 dot net
@ 2014-01-10 19:51 ` azanella at linux dot vnet.ibm.com
2014-01-13 12:03 ` azanella at linux dot vnet.ibm.com
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-10 19:51 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |azanella 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] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (2 preceding siblings ...)
2014-01-10 19:51 ` azanella at linux dot vnet.ibm.com
@ 2014-01-13 12:03 ` azanella at linux dot vnet.ibm.com
2014-01-16 13:18 ` azanella at linux dot vnet.ibm.com
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-13 12:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |CoreyMutter at eaton dot com
--- Comment #1 from Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> ---
*** Bug 16257 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (3 preceding siblings ...)
2014-01-13 12:03 ` azanella at linux dot vnet.ibm.com
@ 2014-01-16 13:18 ` azanella at linux dot vnet.ibm.com
2014-01-16 16:41 ` carlos at redhat dot com
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-16 13:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> ---
Fixed upstream by 736c304a1ab4cee36a2f3343f1698bc0abae4608. I will keep the bug
report open to remind me to add a similar testcase when 2.20 opens.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (4 preceding siblings ...)
2014-01-16 13:18 ` azanella at linux dot vnet.ibm.com
@ 2014-01-16 16:41 ` carlos at redhat dot com
2014-01-16 16:58 ` adconrad at 0c3 dot net
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: carlos at redhat dot com @ 2014-01-16 16:41 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
--- Comment #3 from Carlos O'Donell <carlos at redhat dot com> ---
Does this need backporting to other branches say 2.18 or 2.17?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (5 preceding siblings ...)
2014-01-16 16:41 ` carlos at redhat dot com
@ 2014-01-16 16:58 ` adconrad at 0c3 dot net
2014-01-16 17:05 ` CoreyMutter at eaton dot com
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: adconrad at 0c3 dot net @ 2014-01-16 16:58 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
--- Comment #4 from Adam Conrad <adconrad at 0c3 dot net> ---
This seemed to regress with ef26eece6331a1f6d959818e37c438cc7ce68e53, so if
there was any backporting to be done, it would only be to 2.18.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (6 preceding siblings ...)
2014-01-16 16:58 ` adconrad at 0c3 dot net
@ 2014-01-16 17:05 ` CoreyMutter at eaton dot com
2014-01-17 11:34 ` azanella at linux dot vnet.ibm.com
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: CoreyMutter at eaton dot com @ 2014-01-16 17:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
--- Comment #5 from Corey Mutter <CoreyMutter at eaton dot com> ---
The problem definitely applies in 2.18, see 16257. Definitely not in 2.15, and
I haven't used intermediate versions :-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (7 preceding siblings ...)
2014-01-16 17:05 ` CoreyMutter at eaton dot com
@ 2014-01-17 11:34 ` azanella at linux dot vnet.ibm.com
2014-02-07 3:24 ` [Bug libc/16430] [powerpc] " jsm28 at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2014-01-17 11:34 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.19 |2.20
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] [powerpc] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (8 preceding siblings ...)
2014-01-17 11:34 ` azanella at linux dot vnet.ibm.com
@ 2014-02-07 3:24 ` jsm28 at gcc dot gnu.org
2014-06-13 9:04 ` fweimer at redhat dot com
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-07 3:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Host| |powerpc*-*-*
Summary|PowerPC: ftime gettimeofday |[powerpc] PowerPC: ftime
|internal call returning |gettimeofday internal call
|bogus data |returning bogus data
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] [powerpc] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (9 preceding siblings ...)
2014-02-07 3:24 ` [Bug libc/16430] [powerpc] " jsm28 at gcc dot gnu.org
@ 2014-06-13 9:04 ` fweimer at redhat dot com
2015-01-23 13:00 ` azanella at linux dot vnet.ibm.com
2015-08-27 22:20 ` [Bug time/16430] " jsm28 at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 9:04 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/16430] [powerpc] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (10 preceding siblings ...)
2014-06-13 9:04 ` fweimer at redhat dot com
@ 2015-01-23 13:00 ` azanella at linux dot vnet.ibm.com
2015-08-27 22:20 ` [Bug time/16430] " jsm28 at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2015-01-23 13:00 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
--- Comment #6 from Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> ---
It is being fixed and GLIBC 2.20 added a test for internal gettimeofday usage
(through ftime) in commit fe1cc35abb6e968d0b12d7ff3ef78cf821a5f48d. Do we
intend to backport the fix and testcase for 2.18? If not I think we should
close the bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug time/16430] [powerpc] PowerPC: ftime gettimeofday internal call returning bogus data
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
` (11 preceding siblings ...)
2015-01-23 13:00 ` azanella at linux dot vnet.ibm.com
@ 2015-08-27 22:20 ` jsm28 at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16430
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libc |time
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-08-27 22:20 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10 16:48 [Bug libc/16430] New: PowerPC: ftime gettimeofday internal call returning bogus data azanella at linux dot vnet.ibm.com
2014-01-10 16:54 ` [Bug libc/16430] " azanella at linux dot vnet.ibm.com
2014-01-10 16:55 ` adconrad at 0c3 dot net
2014-01-10 19:51 ` azanella at linux dot vnet.ibm.com
2014-01-13 12:03 ` azanella at linux dot vnet.ibm.com
2014-01-16 13:18 ` azanella at linux dot vnet.ibm.com
2014-01-16 16:41 ` carlos at redhat dot com
2014-01-16 16:58 ` adconrad at 0c3 dot net
2014-01-16 17:05 ` CoreyMutter at eaton dot com
2014-01-17 11:34 ` azanella at linux dot vnet.ibm.com
2014-02-07 3:24 ` [Bug libc/16430] [powerpc] " jsm28 at gcc dot gnu.org
2014-06-13 9:04 ` fweimer at redhat dot com
2015-01-23 13:00 ` azanella at linux dot vnet.ibm.com
2015-08-27 22:20 ` [Bug time/16430] " jsm28 at gcc dot gnu.org
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).