> > Right, so the problem really seems to be in throwing/catching > > exception. Function "_notmuch_message_remove_term" is supposed to > > catch the exception and ignore it. Which does not happen in my case. > > Yep, that was exactly what I was seeing. At the end, the issue happens only when I try to link all the libraries statically. I believe especially the problem is with linking STL library statically. So I stopped doing that :) -- Vlad