Slurmctld service stopped with fatal glibc error
How to solve GLIBC version incompatible issue?
Issues with glibc?
glibc detected error out of a sudden - OpenEdge General - Forum - Progress Community Archive
Videos
It is often possible to compile up a fresher libc, and have one piece of software use a different library to everyone else.
The biggest painpoint between libc versions is thread local storage, IIRC. If you're passing this milestone, all bets are off.
Having said all that - I would strongly recommend that you simply upgrade the distro to something modern. Doing piecemeal upgrades is likely to lead to the sort of pain that has you chasing your tail for months.
You can refer to the compatibility table to determine binary-compatible versions.
Usually it's not a problem to upgrade glibc to a newer version, but you should build it with the same configuration flags as used in your distribution (see spec file in the appropriate SRPM package).

The following error is throwed when I run deno on a Centos 7 hpc cluster,
/lib64/libc.so.6: version `GLIBC_2.18' not found
Most solutions I found on the internet is either use container or some complicated setup. I know that I could workaround this problem by building a singularity container. But I am just wondering is there any easier way to fix this problem, for example, by creating a environment module to override the default libc.so?
Even if you're not allocating memory directly, it happens under the hood in vector code and you most likely corrupted some portion of memory by writing where you are not supposed to. The most likely reasons I can think of are:
- Writing to an element that is out of bounds
- Using a pointer/reference to an element that is no longer valid -- note that inserting more elements can invalidate earlier references
Of course, I can't say for sure unless you post some relevant code. Or try using valgrind to find the source of the problem.
This means you called free on a non valid pointer (ie: a pointer not allocated via malloc, or that you already freed).
Paste some code, else it's impossible to say why this happens.