[Bug libstdc++/58929] condition_variable does not wait without -pthread
matare@fh-aachen.de
gcc-bugzilla@gcc.gnu.org
Sat Apr 18 17:36:37 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58929
Victor Mataré <matare@fh-aachen.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matare@fh-aachen.de
--- Comment #8 from Victor Mataré <matare@fh-aachen.de> ---
This has just caused me major headache because the behavior is completely
unexpected. The root problem to me seems to be that pthread_cond_wait is
defined not just in libphread, but also in libc:
# objdump -TC /lib/libc.so.6 | grep cond_wait
0014a570 g DF .text 00000033 (GLIBC_2.0) pthread_cond_wait
0007f5c0 g DF .text 00000033 GLIBC_2.3.2 pthread_cond_wait
Why is that even in there? And if I apparently end up calling this
implementation, why doesn't block the way it should?
More information about the Gcc-bugs
mailing list