Not sure what led to this. I recreated the xapian database and it works fine now, so there is no concern there.

I first noticed it in emacs/notmuch doing a search. I got the below error. Other searches would work/complete.

[Mon Nov  8 11:56:59 2021]
notmuch exited with status segmentation fault (core dumped)
command: notmuch search --format\=sexp --format-version\=5 --sort\=oldest-first 
folder\:hobbies.mutt_hobby
exit signal: segmentation fault (core dumped)


I then ran the same query in notmuch cli and seg fault. That trace is appended below.

I am running:
kern.version=OpenBSD 7.0-current (GENERIC.MP) #69: Thu Nov 4 09:11:32 MDT 2021
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
debug-emacs-27.2p3-gtk3 (installed)
debug-notmuch-0.33.2 (installed)



desktop(~)$: egdb notmuch notmuch_20211108.core GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-openbsd7.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from notmuch...
Reading symbols from /usr/local/bin/.debug/notmuch.dbg...
[New process 234001]
Core was generated by `notmuch'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000dde58b24c91 in notmuch_tags_valid (tags=0x0) at lib/tags.c:51
51      lib/tags.c: No such file or directory.
(gdb) bt
#0  0x00000dde58b24c91 in notmuch_tags_valid (tags=0x0) at lib/tags.c:51
#1 0x00000dde58b39153 in _thread_add_message (thread=<optimized out>, message=0xddec7f06c60, exclude_terms=0xddec7f233e0, omit_exclude=NOTMUCH_EXCLUDE_TRUE) at lib/thread.cc:254 #2 _notmuch_thread_create (ctx=0xddec7f11060, notmuch=<optimized out>, seed_doc_id=117767, match_set=0xddec7f11278, exclude_terms=0xddec7f233e0, omit_excluded=NOTMUCH_EXCLUDE_TRUE, sort=NOTMUCH_SORT_NEWEST_FIRST) at lib/thread.cc:631
#3  0x00000dde58b34f91 in notmuch_threads_get (threads=<optimized out>) at 
lib/query.cc:572
#4  0x00000ddc1af61949 in do_search_threads (ctx=<optimized out>) at 
notmuch-search.c:149
#5  notmuch_search_command (notmuch=<optimized out>, argc=<optimized out>, 
argv=<optimized out>)
    at notmuch-search.c:845
#6  0x00000ddc1af5964c in main (argc=<optimized out>, argv=0x7f7fffff08e0) at 
notmuch.c:583
(gdb)

Reply via email to