Thread overview
[Issue 17591] SIGSEGV in pthread_mutex_destroy after dlopen'ing a shared library with -defaultlib=libphobos2.so
Jul 03, 2017
Timothee Cour
Dec 17, 2022
Iain Buclaw
July 03, 2017
https://issues.dlang.org/show_bug.cgi?id=17591

Timothee Cour <timothee.cour2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2@gmail.com

--- Comment #1 from Timothee Cour <timothee.cour2@gmail.com> ---
* NOTE 1:

commenting out:
```
int ret=dlclose(handle);
assert(!ret);
```
will avoid the error but this will leak resources

* NOTE 2:
adding:
```
enum RTLD_NODELETE=0x01000;
auto flag=RTLD_LAZY | RTLD_LOCAL | RTLD_NODELETE;
```

will also avoid the error but my understanding is it'll also leak resources
(and RTLD_NODELETE isn't defined in core.sys.posix.dlfcn for X86_64 so i had to
add the above defined enum)
Is that safe?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=17591

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
December 13
https://issues.dlang.org/show_bug.cgi?id=17591

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19273

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--