@sergey-safarov - could be, but you didn't provide the gdb backtrace with debugging symbols, as I asked, to be able to relate to the C source code and try to figure out the issue. I saw @henningw wanted to take a different troubleshooting approach and you provided the details he requested, but I did not noticed further updates.
Anyhow, test and if the commit 9f12d314268d1d2cd990cb3c5556f79343869e47 fixes it, then you can close that case as well.