On 10/3/21 6:33 AM, Simon McVittie wrote:
On Sat, 02 Oct 2021 at 20:48:55 +1000, ‍小太 wrote:
Perhaps jack_firewire.so and/or glibmm should be linked with -Wl,-z,nodelete
to prevent it from being removed from the address space even after
dlclose()? That would ensure that its static strings remain in memory.

I think my code only showed a dlopen() with a single call, but my backtrace shows that it attempts to load the library twice (with caught exceptions), followed by a possible success the third time, then the glibmm init and segfault. I don't know why the library load is failing. Since I did a stack allocation instead, I'd think that memory would become invalid if the library unloaded before the glibmm init.

I'd mainly have to play with it in gdb more to see what's happening. nos...@kota.moe might've done more debugging than I did.

--
Ryan Thoryk
r...@thoryk.com
r...@tliquest.net

Reply via email to