Mongodb crashes on F44

Until now I have been using the mongodb packages for RedHat / CentOS 9.3 x64 and they worked without issues on f43.

After the upgrade to f44, the mongodb service crashes with a coredump.

Has anyone experienced the same and has a solution?

P.S.: I am currently not able to use podman/docker. However, I am working on fixing this. Until then I need a solution to run it not containerized.

Maybe an analysis of the crash wil lead to a insight into what is wrong?

Yep, I have done that, but the only solution I see is to use podman to run mongod.

But I am not infallible. I hoped someone would have another solution. I mean this forum is read wordwide. There must be millions of people reading, even though I know that only a few might read this post. But I cannot believe that I am the only one in the world with this problem.
The people who encountered the crash most likely already figured out that it is a glibc and boost ABI issue hinting towards threading/TLS/allocator incompatibility.

My thinking when creating the post was more in the line of:

Maybe somebody

  • compiled the mongodb server community code on F44.
  • has a completely statically linked version laying around.
  • found a solution I am not aware of.

After an entire afternoon of testing and debugging with baremetal and podman, Intel and AMD, I found a solution.

GLIBC_TUNABLES=glibc.pthread.rseq=1

I added this to my systemd unit file and now the el9 binary runs without any issues on Fedora 44.

Apparently there are multiple issues that can be encountered separately or in combination:

  • kernel >= 6.19
  • on AMD hardware shadow stacks clashing with coroutines (glibc.cpu.hwcaps=-SHSTK could fix it, but didn’t for me)
  • boost ABI and pthreads mismatch