SchrodingerZhu / snmalloc-rs

rust bindings of snmalloc
MIT License
122 stars 16 forks source link

Snmalloc 2 #164

Closed SchrodingerZhu closed 2 years ago

SchrodingerZhu commented 3 years ago

@mjp41 local build passed.

mjp41 commented 3 years ago

Looks like it can't find atexit, which we use to remove the libstc++ requirement. Which C runtime is being linked in?

Alternatively, using -DSNMALLOC_CLEANUP=CXX11_DESTRUCTORS will not use atexit. But requires the C++ runtime to be linked.

SchrodingerZhu commented 3 years ago

I found sth interesting: https://stackoverflow.com/questions/43825971/call-atexit-when-linking-to-libc-dynamically-on-linux

SchrodingerZhu commented 3 years ago

what happened to github actions

SchrodingerZhu commented 3 years ago

I cannot reproduce the error for ubuntu at my local minimal 20.04 docker.

SchrodingerZhu commented 2 years ago

@mjp41 ubuntu really packages libc badly...