2 ms·
Is there a way to bundle and use an more up-to-date version of glibc inside my docker containers? Is it a straightforward matter of creating an intermediate bu
by metadat 4y ago
Is there a way to bundle and use an more up-to-date version of glibc inside my docker containers? Is it a straightforward matter of creating an intermediate build-base-image where glibc gets compiled and copying over the resulting glibc .so artifact files to the final image?
I suspect there may be additional concerns, but I'm not a glibc expert and have not needed to mess with it much.
Also, does musl libc [0] have less bugs, on average?
[0] https://musl.libc.org/ https://musl.libc.org/
- sanxiyn 4y agoYes. In fact, musl 1.2.0's pthread_mutex_t was verified in 2021 without changes. The same work found a bug in seL4 (obviously in unverified part, but still). The author remarks that this is in part because musl is conservative, and identifies barriers in musl that can be removed. But I think musl should get credits for being conservative here. Also in benchmarks, redundant barriers showed no performance impact. https://people.mpi-sws.org/~viktor/papers/asplos2021-vsync.pdf https://people.mpi-sws.org/~viktor/papers/asplos2021-vsync.p...