Mozilla Thunderbird currently uses gpgme interface to access key, stored on token, since rnp library doesn't support it.
On macOS it crashes since attempt to run gpgconf from gpgme fails with SIGSEGV:
GPGME 20201201T164713 6113 gpgme-dinfo: gpgconf='/usr/local/bin/gpgconf'
GPGME 20201201T164713 6113 _gpgme_io_pipe: enter: inherit_idx=1 (GPGME uses it for reading)
GPGME 20201201T164713 6113 _gpgme_io_pipe: leave: read fd=63 write fd=64
GPGME 20201201T164713 6113 _gpgme_io_spawn: enter: path=/usr/local/bin/gpgconf
GPGME 20201201T164713 6113 _gpgme_io_spawn: check: argv[ 0] = /usr/local/bin/gpgconf
GPGME 20201201T164713 6113 _gpgme_io_spawn: check: argv[ 1] = --list-dirs
GPGME 20201201T164713 6113 _gpgme_io_spawn: check: fd[0] = 0x40 -> 0x1
GPGME 20201201T164713 6113 _gpgme_io_spawn: check: waiting for child process pid=24860
GPGME 20201201T164713 6113 _gpgme_io_spawn:675: error: Undefined error: 0 (0)
However, if Thunderbird executable is run from the terminal (i.e. via /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin ), everything works fine.
Could it be something simple, related to unallocated tty/not set environment/ whatever else?
What can I do to debug this issue further?