Open Lyapsus opened 6 months ago
I've also just had btop hang in a high-cpu situation.
It's running, there are three processes, and strace says:
$ sudo strace -fp 1096961
[pid 1096961] futex(0x7fd7d9ea3910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 1097857, {tv_sec=5, tv_nsec=140565086823507}, FUTEX_BITSET_MATCH_ANY) = -1 EINVAL (Invalid argument)
[pid 1096961] futex(0x7fd7d9ea3910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 1097857, {tv_sec=5, tv_nsec=140565086823507}, FUTEX_BITSET_MATCH_ANY) = -1 EINVAL (Invalid argument)
[pid 1096961] futex(0x7fd7d9ea3910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 1097857, {tv_sec=5, tv_nsec=140565086823507}, FUTEX_BITSET_MATCH_ANY) = -1 EINVAL (Invalid argument)
[pid 1096961] futex(0x7fd7d9ea3910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 1097857, {tv_sec=5, tv_nsec=140565086823507}, FUTEX_BITSET_MATCH_ANY) = -1 EINVAL (Invalid argument)
[pid 1096961] futex(0x7fd7d9ea3910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 1097857, {tv_sec=5, tv_nsec=140565086823507}, FUTEX_BITSET_MATCH_ANY) = -1 EINVAL (Invalid argument)
[pid 1096961] futex(0x7fd7d9ea3910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 1097857, {tv_sec=5, tv_nsec=140565086823507}, FUTEX_BITSET_MATCH_ANY) = -1 EINVAL (Invalid argument)
^C) = -1 EINVAL (Invalid argument)
strace: Process 1096961 detached
strace: Process 1096963 detached
strace: Process 1097857 detached
The futex() calls are streaming by as fast as possible, all on the main process of the three.
The second process is just waiting for input:
# strace -p 1096963
strace: Process 1096963 attached
read(0, ^Cstrace: Process 1096963 detached
<detached ...>
The third process is waiting on a futex:
# strace -p 1097857
strace: Process 1097857 attached
futex(0x557b550eab64, FUTEX_WAIT, 0, NULL^Cstrace: Process 1097857 detached
<detached ...>
Describe the bug
Well title is quite enough of description - after some time of high cpu usage btop slows and eventually hangs, sometimes even unresponsive to Ctrl+C. Sometimes it crashes instead.
To Reproduce
Expected behavior
btop doesn't hang in high cpu usage scenario
Info
Additional context