March 01 [Issue 24427] Crash when dlopen'ed library not dlclose'd explicitly | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24427 --- Comment #11 from Carl Sturtivant <sturtivant@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@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. -- |
March 01 [Issue 24427] Crash when dlopen'ed library not dlclose'd explicitly | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24427 --- Comment #12 from Richard Cattermole <alphaglosined@gmail.com> --- Okay, ldc and dmd have differing implementations of ``rt.sections_elf_shared``. With ldc yes, you need to stick with only shared library build of druntime, it cannot be mixed. >From what I can tell it's an ordering problem due to not explicitly loading then unloading druntime in the right order. -- |
March 01 [Issue 24427] Crash when dlopen'ed library not dlclose'd explicitly | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24427 --- Comment #13 from Carl Sturtivant <sturtivant@gmail.com> --- (In reply to Richard Cattermole from comment #12) > From what I can tell it's an ordering problem due to not explicitly loading then unloading druntime in the right order. That's intuitively reasonable. -- |
Copyright © 1999-2021 by the D Language Foundation