RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1499480 - CLOCK_MONOTONIC does not work in clock_gettime() - broken monotonic support
Summary: CLOCK_MONOTONIC does not work in clock_gettime() - broken monotonic support
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: glibc
Version: 7.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: glibc team
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-07 19:57 UTC by Chris Caron
Modified: 2017-10-08 06:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-08 06:57:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Reproducable source code showing problem (738 bytes, text/x-csrc)
2017-10-07 19:57 UTC, Chris Caron
no flags Details

Description Chris Caron 2017-10-07 19:57:34 UTC
Created attachment 1335773 [details]
Reproducable source code showing problem

Description of problem:
clock_gettime(CLOCK_MONOTONIC, (struct timespec) does not work.

Version-Release number of selected component (if applicable):

How reproducible:
every time

Steps to Reproduce:
1. See attached c file
2. type: gcc monotonic.c -o monotonic
3. execute the produced binary (monotonic) : ./monotonic

Actual results:
the word 'dupe' will fill your screen

Expected results:
a quick silent execution

Additional info:
This is fixed in later versions as i do not have this problem in Fedora 26.

Comment 2 Florian Weimer 2017-10-07 20:08:37 UTC
This is likely a kernel or VM configuration/hypervisor issue.

What is the version of your kernel package?  What do “uname -a” and “lscpu” show?

Comment 3 Chris Caron 2017-10-07 21:47:28 UTC
Thanks for the fast reply.  I'm not using a virtual machine; this is just a barebone install.

****
uname -a
Linux upstairs.lead2gold.local 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

***
lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                6
On-line CPU(s) list:   0-5
Thread(s) per core:    1
Core(s) per socket:    6
Socket(s):             1
NUMA node(s):          1
Vendor ID:             AuthenticAMD
CPU family:            16
Model:                 10
Model name:            AMD Phenom(tm) II X6 1090T Processor
Stepping:              0
CPU MHz:               800.000
BogoMIPS:              6400.44
Virtualization:        AMD-V
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K
L3 cache:              6144K
NUMA node0 CPU(s):     0-5

Comment 4 Florian Weimer 2017-10-08 06:57:22 UTC
(In reply to Chris Caron from comment #3)
> Model name:            AMD Phenom(tm) II X6 1090T Processor

I'm sorry, but this is not a supported AMD CPU: https://access.redhat.com/articles/65431


Note You need to log in before you can comment on or make changes to this bug.