Hello,

I started seeing following error on 'notmuch new':

$ NOTMUCH_DEBUG_QUERY=1 notmuch new
add_file: A Xapian exception occurred
A Xapian exception occurred adding message: Ran off end of freelist (71890, 
244).
Processed 1 file in almost no time.
No new mail.
Note: A fatal error was encountered: A Xapian exception occurred

On tagging notmuch throws corrupt database error:

$ notmuch tag +newsletters -inbox -new -- to:'/.*annou...@example.com/'
terminate called after throwing an instance of 'Xapian::DatabaseCorruptError'
[1]    1204037 abort (core dumped)  notmuch tag +newsletters -inbox -new -- 
to:'/.*annou...@example.com/'

I also see following dump in the journalctl [2].

Any guesses what could be the reason? The failure of 'notmuch new'
suggests to me that it's not just corrupted database.

Is there way to check and repair the database by the way?

$ notmuch --versio
notmuch 0.38.3

xapian version is 1.4.27

-- 
- Andrey

-- 
[2]:
Feb 04 13:33:00 thinky systemd-coredump[1211683]: [🡕] Process 1211681 (notmuch) 
of user 1000 dumped core.
                                                  Module libunistring.so.5 
without build-id.
                                                  Module libassuan.so.0 without 
build-id.
                                                  Module libselinux.so.1 
without build-id.
                                                  Module libpcre2-8.so.0 
without build-id.
                                                  Module libffi.so.8 without 
build-id.
                                                  Module libidn2.so.0 without 
build-id.
                                                  Module libgpg-error.so.0 
without build-id.
                                                  Module libgpgme.so.11 without 
build-id.
                                                  Module libgcc_s.so.1 without 
build-id.
                                                  Module libstdc++.so.6 without 
build-id.
                                                  Module libsexp.so.1 without 
build-id.
                                                  Module libxapian.so.30 
without build-id.
                                                  Module libz.so.1 without 
build-id.
                                                  Module libtalloc.so.2 without 
build-id.
                                                  Module libgmime-3.0.so.0 
without build-id.
                                                  Module libnotmuch.so.5 
without build-id.
                                                  Module notmuch without 
build-id.
                                                  Stack trace of thread 1211681:
                                                  #0  0x00007fb3a9568a9c 
__pthread_kill_implementation (libc.so.6 + 0x92a9c)
                                                  #1  0x00007fb3a9516576 raise 
(libc.so.6 + 0x40576)
                                                  #2  0x00007fb3a94fe935 abort 
(libc.so.6 + 0x28935)
                                                  #3  0x00007fb3a8eacc2b 
_ZN9__gnu_cxx27__verbose_terminate_handlerEv.cold (libstdc++.so.6 + 0xacc2b)
                                                  #4  0x00007fb3a8ebc20a 
_ZN10__cxxabiv111__terminateEPFvvE (libstdc++.so.6 + 0xbc20a)
                                                  #5  0x00007fb3a8ebc275 
_ZSt9terminatev (libstdc++.so.6 + 0xbc275)
                                                  #6  0x00007fb3a8ebc518 
__cxa_rethrow (libstdc++.so.6 + 0xbc518)
                                                  #7  0x00007fb3a92583ee 
_ZN21GlassWritableDatabase16replace_documentEjRKN6Xapian8DocumentE.cold 
(libxapian.so.30 + 0x583ee)
                                                  #8  0x00007fb3a995b3da 
_notmuch_message_sync (libnotmuch.so.5 + 0x1f3da)
                                                  #9  0x00007fb3a995bb6c 
notmuch_message_thaw (libnotmuch.so.5 + 0x1fb6c)
                                                  #10 0x000000000041bacb 
tag_op_list_apply (notmuch + 0x1bacb)
                                                  #11 0x0000000000418e04 
tag_query (notmuch + 0x18e04)
                                                  #12 0x000000000041921c 
notmuch_tag_command (notmuch + 0x1921c)
                                                  #13 0x0000000000409a78 main 
(notmuch + 0x9a78)
                                                  #14 0x00007fb3a950027e 
__libc_start_call_main (libc.so.6 + 0x2a27e)
                                                  #15 0x00007fb3a9500339 
__libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a339)
                                                  #16 0x0000000000409db5 _start 
(notmuch + 0x9db5)
                                                  ELF object binary 
architecture: AMD x86-64

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to