get a wrong time information in multi-threaded application

Solution Verified - Updated -

Issue

  • Sometimes customer's application gots wrong timestamp when using localtime() call.
  • It didn't happen in the system time and hwclock command. It only happened in their own application, so a wrong implmenetation must be a root cause.
  • Customer confirmed that they use localtime() function as their system gathering method and use multi-thread.

Environment

  • OS : Red Hat Enterprise Linux 5 Update 2
  • glibc version is not provided

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content