Gaute Hope <eg@gaute.vetsj.com> writes: > as far as I can see, there is _no_ way to catch this error without > completely crashing the application. I would have to isolate this code > in a separate process or trap SIGABRT (which is certainly messy). I'm not sure what you expect libnotmuch to do here. There's a fatal "should not happen" error in the memory allocator; it isn't really the sort of thing one can recover from. It's also not in code we control. Of course _why_ this error is happening could still be notmuch's fault. Can you reproduce the problem under valgrind? d