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

Commit

Permalink
Fix issue 16856: Don't use dlopen from the fini sections
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Burgos committed Jul 9, 2017
1 parent d19ba06 commit ce863ec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rt/sections_elf_shared.d
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ extern(C) void _d_dso_registry(CompilerDSOData* data)
}
}

assert(pdso._handle == handleForAddr(data._slot));
unsetDSOForHandle(pdso, pdso._handle);
pdso._handle = null;
}
Expand Down

0 comments on commit ce863ec

Please sign in to comment.