[Issue 24427] Crash when dlopen'ed library not dlclose'd explicitly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 1 23:09:23 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24427

--- Comment #11 from Carl Sturtivant <sturtivant at gmail.com> ---
(In reply to Carl Sturtivant from comment #10)
> (In reply to Richard Cattermole from comment #9)

====
$ ldc2 -c main.d
$ ldc2 -of=main -L-E main.o -L-ldl
$ ldc2 -c --relocation-model=pic dynamic_lib.d
$ ldc2 -of=dynamic_lib.so -shared -relocation-model=pic dynamic_lib.o
(dmd-2.107.0)carl at palmtree ~/Documents/dprogs/dl $ main
Aborting from rt/sections_elf_shared.d(605) Only one D shared object allowed
for static runtime. Link with shared runtime via LDC switch
'-link-defaultlib-shared'.Aborted (core dumped)
====

--- looks like the crash options are the default: not shared for main and
shared for the dynamic library.

--


More information about the Digitalmars-d-bugs mailing list