This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/75402] std::condition_variable::wait_until wakes up constantly


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75402

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I can't reproduce this with any version of GCC, so either you have a weird
config, or a weird kernel, or something else that is impossible to tell without
the requested info.

I see a single futex wait and the expected output:

futex(0x7ffc8707f5d4, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1,
{1471338875, 919280648}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0fb8b88000
write(1, "new_now - now = 2000 ms\n", 24new_now - now = 2000 ms
) = 24
write(1, "Done.\n", 6Done.
)                  = 6
futex(0x7ffc8707f600, FUTEX_WAKE_PRIVATE, 1) = 0
exit_group(0)                           = ?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]