Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12323

What could be the reason for nanosleep system call to hang?

$
0
0

Once in several months, a multi-threaded daemon is getting hanged while executing the nanosleep system call. The usleep value is a static 50ms but the execution doesn't return for at least 80 seconds (where the situation is detected by a watchdog thread and the process get restarted).The system is not loaded or busy when this happens.Any idea regarding a possible reason for this will be welcomed. Thanks!

gef➤  where#0  0x00002b6f126d5b0d in nanosleep () at ../sysdeps/unix/syscall-template.S:82#1  0x00002b6f1270ae04 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:33...gef➤  f 1#1  0x00002b6f1270ae04 in usleep (useconds=<optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:33gef➤  p/d ts$5 = {  tv_sec = 0,  tv_nsec = 50000000}# uname -aLinux localhost.localdomain 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Dec 2 11:36:55 PST 2020 x86_64 x86_64 x86_64 GNU/Linux

Viewing all articles
Browse latest Browse all 12323

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>