I figured out a way to run this under valgrind:
cp /usr/lib/x86_64-linux-gnu/simplescreenrecorder/libssr-glinject.so . chmod a+rx libssr-glinject.so valgrind ./libssr-glinject.so This provide something semi-sensible from valgrind. No idea what the mapped region is, might have to build the library with debug information for this. Installing simplescreenrecorder-dbgsym and simplescreenrecorder-lib-dbgsym did not help to get more sensible information about where it crashes. Perhaps printf debugging is the only option? ==125603== Memcheck, a memory error detector ==125603== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==125603== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info ==125603== Command: ./libssr-glinject.so ==125603== ==125603== ==125603== Process terminating with default action of signal 11 (SIGSEGV) ==125603== Bad permissions for mapped region at address 0x108000 ==125603== at 0x108000: ??? (in /scratch/pere/src/opencamlib-salsa/libssr-glinject.so) ==125603== ==125603== HEAP SUMMARY: ==125603== in use at exit: 0 bytes in 0 blocks ==125603== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==125603== ==125603== All heap blocks were freed -- no leaks are possible ==125603== ==125603== For lists of detected and suppressed errors, rerun with: -s ==125603== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Segmentation fault (core dumped) -- Happy hacking Petter Reinholdtsen