Re: crash on macOS with dlsym RTLD_LOCAL

2021-09-26 Thread Aleix Conchillo Flaqué
Alright. Problem found and fixed. The issue was the way libgcrypt was linked in macOS 11.x. See: https://dev.gnupg.org/T5610 A libgcrypt's libtool.m4 patch has been applied upstream. The patch already existed in Homebrew's libtool, so I just provided it and they have applied it to libgcrypt (and

Re: crash on macOS with dlsym RTLD_LOCAL

2021-09-14 Thread Aleix Conchillo Flaqué
I have posted a message to Apple's forums to see if there's any luck: https://developer.apple.com/forums/thread/689991 Aleix On Sat, Sep 11, 2021 at 10:14 PM Aleix Conchillo Flaqué wrote: > > I did a little bit more research. The combination that actually fails > is RTLD_LAZY | RTLD_GLOBAL (wha

Re: crash on macOS with dlsym RTLD_LOCAL

2021-09-11 Thread Aleix Conchillo Flaqué
I did a little bit more research. The combination that actually fails is RTLD_LAZY | RTLD_GLOBAL (what guile uses). So, you can actually use: - RTLD_LAZY | RTLD_GLOBAL - RTLD_NOW | RTLD_GLOBAL - RTLD_NOW | RTLD_LOCAL I found the source code of dyld https://opensource.apple.com/source/dyld/dyl