https://issues.dlang.org/show_bug.cgi?id=16856
--- Comment #12 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/ce863ecdd9ba0e56a40c8afa7b247946702f2995 Fix issue 16856: Don't use dlopen from the fini sections In case finalizers are called from the runtime linker we shouldn't try to get handle to and reference the dying shared object. This was used just for the asserting, so this simply removes the assert making it working on the platforms where this is strictly forbiden (e.g. FreeBSD 12). https://github.com/dlang/druntime/commit/1d983500f8d66b2bcb8fac514b2b23394ab60b37 Merge pull request #1862 from Burgos/dso Fis issue 16856: Don't use dlopen from the fini sections merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzb...@gmail.com> --