Encountered this error while trying to run CI tests on Github Actions for a Zig project, using the Zig nightly bundle provided here: https://ziglang.org/builds/zig-linux-x86_64-0.7.1+dfacac916.tar.xz. Linking with musl makes the problem go away.
The latest glibc version available in Github Actions is 2.27.
root@dew:/github/workspace# ldd ./zig-cache/o/ea49ec9c878272fe2410dfdf1fc66939/test
linux-vdso.so.1 (0x00007ffe5b38e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa3c72c5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa3c6f27000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa3c6d08000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa3c6b04000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fa3c68fc000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa3c76b6000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fa3c66f9000)
root@dew:/github/workspace# nm -D /lib/x86_64-linux-gnu/libpthread.so.0 | grep pthread_sig
000000000000f290 T pthread_sigmask
000000000000f3e0 T pthread_sigqueue
root@dew:/github/workspace# nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep pthread_sig
root@dew:/github/workspace#
Reproduction requires an 18.2GB Docker image that emulates the Github Actions CI Environment, which can be found here: https://hub.docker.com/layers/nektos/act-environments-ubuntu/18.04/images/sha256-4d991875312e2ad084ff5350aa193e8a7dbdc4c144476d48df6a69e1e3404427
References to pthread symbols in built executable:
root@dew:/github/workspace# objdump -T ./zig-cache/o/ea49ec9c878272fe2410dfdf1fc66939/test | grep pthread
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.2 pthread_cond_destroy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.2 pthread_cond_init
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.2 pthread_cond_signal
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.2 pthread_cond_wait
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_create
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_getspecific
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_join
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_key_create
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_key_delete
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.12 pthread_mutex_consistent
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutex_destroy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutex_init
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutex_lock
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutex_unlock
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_destroy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_init
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutexattr_setpshared
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.12 pthread_mutexattr_setrobust
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_self
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_setspecific
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_sigmask
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_atfork
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 pthread_mutex_trylock
Encountered this error while trying to run CI tests on Github Actions for a Zig project, using the Zig nightly bundle provided here: https://ziglang.org/builds/zig-linux-x86_64-0.7.1+dfacac916.tar.xz. Linking with musl makes the problem go away.
The latest glibc version available in Github Actions is 2.27.
Reproduction requires an 18.2GB Docker image that emulates the Github Actions CI Environment, which can be found here: https://hub.docker.com/layers/nektos/act-environments-ubuntu/18.04/images/sha256-4d991875312e2ad084ff5350aa193e8a7dbdc4c144476d48df6a69e1e3404427
References to
pthreadsymbols in built executable: