[neomutt-users] Crash of neomutt with imap

Jörg Sommer joerg at jo-so.de
Thu May 30 19:58:01 CEST 2024


Hello,

I'm using neomutt with Office365 and experience crashes sometimes. Here is a
stacktrace of a crash:

```
           PID: 1072635 (neomutt)
           UID: 1001 (joerg_sommer)
           GID: 1001 (joerg_sommer)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-05-30 16:51:15 CEST (3h 2min ago)
  Command Line: neomutt
    Executable: /usr/bin/neomutt
 Control Group: /user.slice/user-1001.slice/user at 1001.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-a50b898f-8433-4b57-a6f0-f99820b3ad9c.scope
          Unit: user at 1001.service
     User Unit: vte-spawn-a50b898f-8433-4b57-a6f0-f99820b3ad9c.scope
         Slice: user-1001.slice
     Owner UID: 1001 (joerg_sommer)
       Boot ID: dbe9351b1af5471da1f56c16192c30fa
    Machine ID: 63a9d135023b4f848857bdabb99a0f87
      Hostname: npc090
       Storage: /var/lib/systemd/coredump/core.neomutt.1001.dbe9351b1af5471da1f56c16192c30fa.1072635.1717080675000000.zst (present)
     Disk Size: 1.6M
       Message: Process 1072635 (neomutt) of user 1001 dumped core.
                
                Found module linux-vdso.so.1 with build-id: c3b6337f80a46b720a90fb56864441cf0aa37fce
                Found module libnss_mdns4_minimal.so.2 with build-id: a976800e191c9353f1e93a5b436c126f2d672ffb
                Found module ISO8859-1.so with build-id: 3dbb88067c672ce35ba7b3040a9c4e91963590db
                Found module libblkid.so.1 with build-id: ecc1dfaec3a7241b41b76c3590fa135fb3c8ddfa
                Found module libselinux.so.1 with build-id: 6fa53202ce676297de24873c886443b2759bfd8a
                Found module libmount.so.1 with build-id: a339abbcd0eb8dadcbd09c372ffac2f0eb31eeaa
                Found module libgmodule-2.0.so.0 with build-id: 4663e16af8ee20469e2ed5937b1aeb3b50df0af1
                Found module libuuid.so.1 with build-id: 2ad45e51f4ac4fc8b5f4ef938a18ca8e0a05e4af
                Found module libpcre.so.3 with build-id: 3982f316c887e3ad9598015fa5bae8557320476a
                Found module libffi.so.8 with build-id: 59c2a6b204f74f358ca7711d2dfd349d88711f6a
                Found module libpthread.so.0 with build-id: 81f46d553e2f7c999e43c3eede73a822bc8d5d93
                Found module libgio-2.0.so.0 with build-id: 9fc3ec50ff6302f82ac43f1b28e67909662dc914
                Found module libresolv.so.2 with build-id: 01c8e0c8389941a2ff675b7e41799362d24cd30b
                Found module libkeyutils.so.1 with build-id: ff27227afa5eeddccab180dd29bd7fcff94aea7c
                Found module libbz2.so.1.0 with build-id: e56b62c27bcc7ace8f9be36b255bd7b31bfde405
                Found module libgmp.so.10 with build-id: f110719303ddbea25a5e89ff730fec520eed67b0
                Found module libhogweed.so.6 with build-id: 3cc4a3474de72db89e9dcc93bfb95fe377f48c37
                Found module libnettle.so.8 with build-id: 3d9c6bf106ef53d625b7b1c8bb1300e84598a74a
                Found module libtasn1.so.6 with build-id: 2fde6ecb43c586fe4077118f771077aa1298e7ea
                Found module libunistring.so.2 with build-id: ca5149da8d5a298b8f286ffca3d6e2402ec0fe01
                Found module libp11-kit.so.0 with build-id: a0ffe1d002de5812dc718186172efb78604ddf2c
                Found module libntlm.so.0 with build-id: bf46ffa938208f6519b4d27972396cacc0528838
                Found module libidn.so.12 with build-id: 44f4f976098c75526d17d7d9bf3ea6e0a5ededa7
                Found module libgpg-error.so.0 with build-id: 3fbec71c67bee60d8aef00697ee187079b0fb307
                Found module libassuan.so.0 with build-id: 6576f1e90e9cbc143a696846874f00a68d77441e
                Found module ld-linux-x86-64.so.2 with build-id: 246ac0d8deba5a40c63e9a1a87d4d779d8eb589f
                Found module libgcc_s.so.1 with build-id: e3a44e0da9c6e835d293ed8fd2882b4c4a87130c
                Found module libstdc++.so.6 with build-id: e37fe1a879783838de78cbc8c80621fa685d58a2
                Found module libsexp.so.1 with build-id: b90145bc94cb3942eade065f2e0aa9d63cd2cb71
                Found module libxapian.so.30 with build-id: f04077664035464affcab09450f5d683c05c53ea
                Found module libtalloc.so.2 with build-id: 1e2ffe1a4a92985f044eb972fbba12548b8a1605
                Found module libglib-2.0.so.0 with build-id: 224ac2a88b72bc8e2fe8566ee28fae789fc69241
                Found module libgobject-2.0.so.0 with build-id: 9e8e57082c3651843713c59ecf2976863d6d1dcd
                Found module libgmime-3.0.so.0 with build-id: 21da0b1e239679c3ee8fc40cdfbe58e5bde52dab
                Found module libm.so.6 with build-id: b55ba6d8b5954b479fab2a69a54b9f56451fbee0
                Found module libkrb5support.so.0 with build-id: 384ac9986064cbae89ac8b2e33eb3604b5ab0395
                Found module libcom_err.so.2 with build-id: ce0901f10854b3c9276066b98d9a72303206e0d5
                Found module libk5crypto.so.3 with build-id: f7765f61555fd50c7960ea84cbb9609e7062a667
                Found module libkrb5.so.3 with build-id: fa7fe8222982647202746ba1275861042f966623
                Found module libc.so.6 with build-id: 962015aa9d133c6cbcfb31ec300596d7f44d3348
                Found module libzstd.so.1 with build-id: 5d9d0d946a3154a748e87e17af9d14764519237b
                Found module liblz4.so.1 with build-id: a85971851cd059f1af80d553c8e7170d42ec59a1
                Found module libtokyocabinet.so.9 with build-id: 80fd2688fdd648f6658038594e6b3b83a884bab4
                Found module liblmdb.so.0 with build-id: c59152fe6894c9a84d353942871a5c13df246366
                Found module libpcre2-8.so.0 with build-id: 184a841c55fb7fe5e3873fcda8368c71016cd54c
                Found module libidn2.so.0 with build-id: 45b73e0e1c46a76be22f572ee98c60af5768bf8f
                Found module libgnutls.so.30 with build-id: 97b8f99f392f1fd37b969a7164bcea884e23649b
                Found module liblua5.4.so.0 with build-id: 948595e5b18d0db76403ef2b852a7db3e2a15cb0
                Found module libgsasl.so.7 with build-id: f01b6db774a04075dea79890951e395089a7701a
                Found module libgpgme.so.11 with build-id: 066c509ae563478588801b6de0da3fd6f4701941
                Found module libnotmuch.so.5 with build-id: a6a9f8c50ee9cc6d8c78f0193fb30d0709dd0fba
                Found module libsqlite3.so.0 with build-id: 87d00c07f9d8a822a4251d4f053484e5c0e4ead8
                Found module libz.so.1 with build-id: 30840b79ac329ecbf1dec0bb60180eed256d319f
                Found module libtinfo.so.6 with build-id: e22ba7829a55a0dec2201a0b6dac7ba236118561
                Found module libncursesw.so.6 with build-id: 56b44b383cd0421391abda5262b002a36e0d3108
                Found module libgssapi_krb5.so.2 with build-id: 0204867906c20c8d6c55fb2a7a9950fa96c34b53
                Found module neomutt with build-id: fb4335595fb7c1d269491bf7a80d0d3e3fe7d556
                Stack trace of thread 1072635:
                #0  0x0000575d0f8c80a0 select_email_uids.part.0.constprop.0.isra.0 (neomutt + 0x1660a0)
                #1  0x0000575d0f886489 imap_sync_mailbox (neomutt + 0x124489)
                #2  0x0000575d0f7b9cbe mx_mbox_close (neomutt + 0x57cbe)
                #3  0x0000575d0f7ce938 op_quit.lto_priv.0 (neomutt + 0x6c938)
                #4  0x0000575d0f7d629d index_function_dispatcher (neomutt + 0x7429d)
                #5  0x0000575d0f7cd2d5 dlg_index (neomutt + 0x6b2d5)
                #6  0x0000575d0f7937db main (neomutt + 0x317db)
                #7  0x00007b4896c29d90 __libc_start_call_main (libc.so.6 + 0x29d90)
                #8  0x00007b4896c29e40 __libc_start_main_impl (libc.so.6 + 0x29e40)
                #9  0x0000575d0f794ad5 _start (neomutt + 0x32ad5)

[New LWP 1072635]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `neomutt'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  select_email_uids.part.0.constprop.0.isra.0 (emails=<optimized out>, num_emails=<optimized out>, flag=MUTT_DELETED, changed=true, invert=<optimized out>, uida=0x7ffe8976fa80) at ../imap/imap.c:239

warning: Source file is more recent than executable.
239	    if (changed && !e->changed)
#0  select_email_uids.part.0.constprop.0.isra.0 (emails=<optimized out>, num_emails=<optimized out>, flag=MUTT_DELETED, changed=true, invert=<optimized out>, uida=0x7ffe8976fa80) at ../imap/imap.c:239
        e = 0x0
        edata = <optimized out>
        match = <optimized out>
        i = <optimized out>
#1  0x0000575d0f886489 in select_email_uids (uida=0x7ffe8976fa80, invert=false, changed=true, flag=MUTT_DELETED, num_emails=<optimized out>, emails=<optimized out>) at ../imap/imap.c:230
        uida = {size = 0, capacity = 0, entries = 0x0}
        emails = 0x0
        rc = <optimized out>
        adata = <optimized out>
        mdata = 0x575d10fc6440
        check = MX_STATUS_OK
        c_message_cache_clean = <optimized out>
        __func__ = "imap_sync_mailbox"
#2  imap_sync_mailbox (m=0x575d10fc8420, expunge=<optimized out>, close=<optimized out>) at ../imap/imap.c:1500
        uida = {size = 0, capacity = 0, entries = 0x0}
        emails = 0x0
        rc = <optimized out>
        adata = <optimized out>
        mdata = 0x575d10fc6440
        check = MX_STATUS_OK
        c_message_cache_clean = <optimized out>
        __func__ = "imap_sync_mailbox"
#3  0x0000575d0f7b9cbe in mx_mbox_close (m=0x575d10fc8420) at ../mx.c:816
        check = <optimized out>
        c_mail_check_recent = <optimized out>
        i = <optimized out>
        read_msgs = <optimized out>
        rc = MX_STATUS_ERROR
        move_messages = <optimized out>
        purge = MUTT_YES
        mbox = 0x0
        buf = 0x575d10af7e60
        c_keep_flagged = false
        c_move = <optimized out>
        c_maildir_trash = <optimized out>
        c_mark_old = <optimized out>
        c_trash = <optimized out>
        m_trash = <optimized out>
        c_save_empty = <optimized out>
        __func__ = "mx_mbox_close"
#4  0x0000575d0f7ce938 in op_quit (op=<optimized out>, priv=0x575d10b49960, shared=0x575d10fc3b70) at ../index/functions.c:2122
        check = MX_STATUS_OK
        __func__ = "op_quit"
#5  op_quit (shared=0x575d10fc3b70, priv=0x575d10b49960, op=<optimized out>) at ../index/functions.c:2108
        __func__ = "op_quit"
#6  0x0000575d0f7d629d in index_function_dispatcher (win=<optimized out>, op=204) at ../index/functions.c:3288
        fn = <optimized out>
        i = <optimized out>
        dlg = <optimized out>
        rc = <optimized out>
        result = <optimized out>
        __func__ = "index_function_dispatcher"
#7  0x0000575d0f7cd2d5 in dlg_index (dlg=<optimized out>, m_init=<optimized out>) at ../index/dlg_index.c:1341
        c_arrow_cursor = <optimized out>
        c_auto_tag = <optimized out>
        c_braille_friendly = <optimized out>
        shared = 0x575d10fc3b70
        panel_index = <optimized out>
        priv = 0x575d10b49960
        op = 204
        old_focus = <optimized out>
        c_collapse_all = <optimized out>
        rc = <optimized out>
        __func__ = "dlg_index"
#8  0x0000575d0f7937db in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../main.c:1432
        dlg = 0x575d10b459f0
        m = 0x575d10c7fd10
        c_read_only = <optimized out>
        m_cur = <optimized out>
        subject = <optimized out>
        include_file = <optimized out>
        draft_file = <optimized out>
        new_type = <optimized out>
        dlevel = <optimized out>
        dfile = <optimized out>
        cli_nntp = <optimized out>
        e = 0x0
        attach = {stqh_first = 0x0, stqh_last = 0x7ffe8976fe60}
        commands = {stqh_first = 0x0, stqh_last = 0x7ffe8976fe50}
        queries = {stqh_first = 0x0, stqh_last = 0x7ffe8976fe40}
        alias_queries = {stqh_first = 0x0, stqh_last = 0x7ffe8976fe30}
        cc_list = {stqh_first = 0x0, stqh_last = 0x7ffe8976fe20}
        bcc_list = {stqh_first = 0x0, stqh_last = 0x7ffe8976fe10}
        sendflags = 0
        flags = <optimized out>
        version = <optimized out>
        i = <optimized out>
        explicit_folder = <optimized out>
        dump_variables = <optimized out>
        one_liner = <optimized out>
        hide_sensitive = <optimized out>
        batch_mode = <optimized out>
        edit_infile = <optimized out>
        double_dash = <optimized out>
        nargc = <optimized out>
        rc = 1
        repeat_error = true
        folder = 0x575d10af8460
        expanded_infile = 0x575d10af8520
        tempfile = 0x575d10af8600
        cs = 0x575d10b1c070
        rc2 = 0
        c_autocrypt = <optimized out>
        c_folder = <optimized out>
        __func__ = "main"
--- END ---
```

This happend with a self built version of
19490720f3fe3589236b6a286660dcf3c64e28bb (with some changes in
contrib/oauth2/mutt_oauth2.py) on an Ubuntu 22.04.

```
NeoMutt 20240425-91-ecfd20-dirty
Copyright (C) 2015-2024 Richard Russon and friends
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: Linux 6.5.0-35-generic (x86_64)
ncurses: ncurses 6.3.20211021 (compiled with 6.3.20211021)
libidn2: 2.3.2 (compiled with 2.3.2)
GPGME: 1.16.0
GnuTLS: 3.7.3
libnotmuch: 5.6.0
PCRE2: 10.39 2021-10-29
storage: tokyocabinet, lmdb
compression: lz4, zlib, zstd

Configure options: --build=x86_64-linux-gnu --prefix=/usr {--includedir=${prefix}/include} {--mandir=${prefix}/share/man} {--infodir=${prefix}/share/info} --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules {--libdir=${prefix}/lib/x86_64-linux-gnu} --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --mandir=/usr/share/man --libexecdir=/usr/libexec --with-mailpath=/var/mail --autocrypt --full-doc --gnutls --gpgme --gsasl --gss --lmdb --lua --lz4 --notmuch --mixmaster --pcre2 --sqlite --tokyocabinet --zlib --zstd

Compilation CFLAGS: -g -O2 -ffile-prefix-map=/home/joerg_sommer/git/neomutt=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -std=c11 -fno-delete-null-pointer-checks -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -D_XOPEN_SOURCE_EXTENDED -I/usr/include/lua5.4 -I/usr/include -I/usr/include -I/usr/include -DNCURSES_WIDECHAR -I/usr/include -I/usr/include/p11-kit-1 -I/usr/include -isystem /usr/include/mit-krb5 -O2

Compile options:
  +autocrypt +fcntl -flock -fmemopen +futimens +getaddrinfo +gnutls +gpgme 
  +gsasl +gss +hcache -homespool +idn +inotify -locales_hack +lua +mixmaster 
  +nls +notmuch -openssl +pcre2 +pgp -sasl +smime +sqlite +truecolor 

MAILPATH="/var/mail"
MIXMASTER="mixmaster"
PKGDATADIR="/usr/share/neomutt"
SENDMAIL="/usr/sbin/sendmail"
SYSCONFDIR="/etc"

To learn more about NeoMutt, visit: https://neomutt.org
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or send an email to: <neomutt-devel at neomutt.org>
```

It's nothing I can surely reproduce. It happens sometimes.

Bye, Jörg

-- 
Just because you’re paranoid doesn’t mean they’re not after you.
                                                  (Henry Kissinger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 269 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20240530/67ff007c/attachment.sig>


More information about the neomutt-users mailing list