Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8167017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:04:24+00:00 2026-06-06T20:04:24+00:00

So just recently, my async server code which relies on pthread_mutex_timedlock seem to have

  • 0

So just recently, my async server code which relies on pthread_mutex_timedlock seem to have timed out prematurely. I thought it was just my bug at first, but seeing that there was some leap seconds issues with the linux kernel, it seems that I’m not the only one: https://lkml.org/lkml/2012/7/1/11

What is the current fix for this? Restart the server, or update kernel? My server’s relying on the timedlock mechanism to wait for events from other threads, and with this premature timeout, the CPU usage has been at 100% because it never rests at the timed lock.

I’m currently running ubuntu server 10.04.4, with kernel version 2.6.39.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:04:25+00:00Added an answer on June 6, 2026 at 8:04 pm

    Well, I came across http://forums.pentaho.com/showthread.php?98217-Java-leap-second-bug-how-to-fix-your-broken-servers&s=5836d11a51327406f965c66fddc9149d&p=286479#post286479

    And this under sudo did the trick:

    /etc/init.d/ntp stop; date; date `date +"%m%d%H%M%C%y.%S"`; date; /etc/init.d/ntp start
    

    (#kernel at freenode says date -s "\date\" fixes it)

    Which was also confirmed by the drop in CPU usage from right around 100% to 0.5%. So I guess that’s that, until the next leap second insertion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just recently found myself writing this line of code, which i did not
I have just recently battled a bug in Python. It was one of those
I just recently started toying with output buffering and seem to have run into
Just recently, my Android XML files which define my layout and etc have stopped
I just recently started learning Java. I have a question which is more about
I just recently finished Michael Feathers' book Working Effectively with Legacy Code . It
Just recently, my client's blog http://robertnogueira.com/ encountered a bug. If you look at the
Just recently learned the correct application of inheritance of classes in Java and thought
Just recently Google made available Maps GL on the GMaps platform. We have an
I just recently started using Hudson as a CI server for a project of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.