Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ce863ec

Browse files
committed
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).
1 parent d19ba06 commit ce863ec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/rt/sections_elf_shared.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ extern(C) void _d_dso_registry(CompilerDSOData* data)
454454
}
455455
}
456456

457-
assert(pdso._handle == handleForAddr(data._slot));
458457
unsetDSOForHandle(pdso, pdso._handle);
459458
pdso._handle = null;
460459
}

0 commit comments

Comments
 (0)