Custom Query (1409 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (16 - 18 of 1409)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Ticket Resolution Summary Owner Reporter
#3957 fixed IMAP IDLE hangs in gnutls after resume from ram brendan thomasmey
Description

Hi,

mutt hangs in gnutls after resume from ram.

backtrace is:

130│ static int tls_socket_read (CONNECTION* conn, char* buf, size_t len) 131│ { 132│ tlssockdata *data = conn->sockdata; 133│ int ret; 134│ 135│ if (!data) 136│ { 137│ mutt_error (_("Error: no TLS socket open")); 138│ mutt_sleep (2); 139│ return -1; 140│ } 141│ 142│ do { 143├> ret = gnutls_record_recv (data->state, buf, len); 144│ if (ret < 0 && gnutls_error_is_fatal(ret) == 1) 145│ { 146│ mutt_error ("tls_socket_read (%s)", gnutls_strerror (ret)); 147│ mutt_sleep (4); 148│ return -1; 149│ } 150│ }

151│ while (ret == GNUTLS_E_AGAIN
ret == GNUTLS_E_INTERRUPTED);

152│ 153│ return ret; 154│ }

/usr/src/debug/mutt-1.8.3/mutt_ssl_gnutls.c (gdb) bt #0 0x00007ff5c566d93d in recv () from /lib64/libc.so.6 #1 0x00007ff5c627a3e8 in _gnutls_io_read_buffered () from /lib64/libgnutls.so.30 #2 0x00007ff5c627457a in _gnutls_recv_in_buffers () from /lib64/libgnutls.so.30 #3 0x00007ff5c6275f19 in _gnutls_recv_int () from /lib64/libgnutls.so.30 #4 0x000055f2a9c55f89 in tls_socket_read (conn=<optimized out>, buf=0x55f2ab35bf40 "+ entering idle mode\r\n.\r\nWhat isn't clear is if this approach will work for LDAP (JNDI)\r\nconnection s or kerberos setups, SSO setups, etc. It may also be\r\nversion specific to tomcat (running 7.0.76 at "..., len=1024) at mutt_ssl_gnutls.c:143 #5 0x000055f2a9c583b1 in mutt_sasl_conn_read (conn=0x55f2ab35bd30, buf=0x55f2ab35bf40 "+ entering idle mode\r\n.\r\nWhat isn't clear is if this approach will work for LDAP (JNDI)\r\nconnect ions or kerberos setups, SSO setups, etc. It may also be\r\nversion specific to tomcat (running 7.0.76 at "..., len=1024) at mutt_sasl.c:558 #6 0x000055f2a9c55369 in mutt_socket_readchar (conn=conn@entry=0x55f2ab35bd30, c=c@entry=0x7ffcc52a7287 "") at mutt_socket.c:172 #7 0x000055f2a9c554a8 in mutt_socket_readln_d (buf=0x55f2ab74cb50 "+ entering idle mode", buflen=512, conn=0x55f2ab35bd30, dbg=dbg@entry=2) at mutt_socket.c:202 #8 0x000055f2a9c5dba9 in imap_cmd_step (idata=0x55f2ab35d7d0) at command.c:114 #9 0x000055f2a9c5f3a8 in imap_cmd_idle (idata=idata@entry=0x55f2ab35d7d0) at command.c:317 #10 0x000055f2a9c61742 in imap_check_mailbox (ctx=ctx@entry=0x55f2b1e9e1d0, index_hint=index_hint@entry=0x7ffcc52a73ac, force=force@entry=0) at imap.c:1446 #11 0x000055f2a9c61ebe in imap_check_mailbox_reopen (ctx=0x55f2b1e9e1d0, index_hint=0x7ffcc52a73ac) at imap.c:1492 #12 0x000055f2a9bd81ee in mutt_index_menu () at curs_main.c:557 #13 0x000055f2a9bbed93 in main (argc=<optimized out>, argv=0x7ffcc52a87f8, environ=<optimized out>) at main.c:1246

the gnutls library seems to provide a timeout function "gnutls_record_set_timeout" but this method doesn't seem to get used in the mutt source code.

A fix would be to set a session timeout for all gnutls sessions and install a call back according to the function documentation of "gnutls_record_set_timeout".

#3956 fixed mutt 1.8.3 hangs on accessing Exchange via IMAP, when Outlook is used simultaneously brendan davee
Description

Mutt 1.8.3 works fine connecting to Exchange via IMAP, runs happily for days at a time. However if I also run Outlook connecting to the same account on Exchange, certain operations appear to provoke Mutt to freeze. I haven't been able to nail down exactly which these operations are, unfortunately. It seems to be related to performing calendar activities, e.g. setting up & accepting meeting requests [That's because this is the only thing I use Outlook for!]

Simply browsing through the inbox in Outlook is fine, although Mutt may occasionally tell me that the mailbox has been modified, that's expected and not a problem.

When the freeze happens, a message similar to this is always in the status bar:

Fetching message... 0K/2.6K (0%)

And the results of 'mutt -d 5' during the few seconds before when this happened, sanitized only for the email content of the message and some of the headers: this is a logcheck message from a server 'phobos'. 'nemesis' is my workstation on which Mutt is running. Message comes in via University of Oxford's mail relays and also passes through our Watchguard firewall appliance.

[...]
[2017-07-13 12:23:57] 4> a7163 NOOP
[2017-07-13 12:23:57] 4< * 6 FETCH (FLAGS (\Seen \Recent))
[2017-07-13 12:23:57] Handling FETCH
[2017-07-13 12:23:57] Message UID 2120 updated
[2017-07-13 12:23:57] imap_fetch_message: parsing FLAGS
[2017-07-13 12:23:57] Fetching message...
[2017-07-13 12:23:57] message.c:471: mutt_mktemp returns "/tmp/mutt-nemesis-1001-29102-1425355567289062470".
[2017-07-13 12:23:57] 4> a7164 UID FETCH 2120 BODY.PEEK[]
[2017-07-13 12:23:57] 4< a7163 OK NOOP completed.
[2017-07-13 12:23:57] 4< * 6 FETCH (BODY[] {2704}
[2017-07-13 12:23:57] Handling FETCH
[2017-07-13 12:23:57] FETCH response ignored for this message
[2017-07-13 12:23:57] updating progress: 0K
[2017-07-13 12:23:57] Fetching message... 0K/2.6K (0%)
[2017-07-13 12:23:57] imap_read_literal: reading 2704 bytes
[2017-07-13 12:23:57] updating progress: 0K
[2017-07-13 12:23:57] Fetching message... 0K/2.6K (0%)

[... email single message content here ...]

[2017-07-13 12:23:57] 4<  UID 2120)
[2017-07-13 12:23:57] 4< a7164 OK FETCH completed.
[2017-07-13 12:23:57] IMAP queue drained
[2017-07-13 12:23:57] pattern.c:166: mutt_mktemp returns "/tmp/mutt-nemesis-1001-29102-15172943841740161185".
[2017-07-13 12:23:57] WEED is Not
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] Reorder: x = 0; hdr_count = 1
[2017-07-13 12:23:57] mwoh: buf[from exchange3.OURDOMAIN (10.132.0.28) by EXCHANGE1.OURDOMAIN (10.132.0.25) with Microsoft SMTP Server (TLS) id 15.0.1156.6 via Mailbox Transport; Thu, 13 Jul 2017 11:45:07 +0100
] too long, max width = 196 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[Received], flags=20 value=[from exchange3.OURDOMAIN (10.132.0.28) by EXCHANGE1.OURDOMAIN (10.132.0.25) with Microsoft SMTP Server (TLS) id 15.0.1156.6 via Mailbox Transport; Thu, 13 Jul 2017 11:45:07 +0100
]
[2017-07-13 12:23:57] mwoh: word=[from], col=10, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ exchange3.OURDOMAIN], col=14, w=24, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (10.132.0.28)], col=38, w=14, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ by], col=52, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ EXCHANGE1.OURDOMAIN], col=55, w=24, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (10.132.0.25)], col=24, w=14, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ with], col=38, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Microsoft], col=43, w=10, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ SMTP], col=53, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Server], col=58, w=7, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (TLS)], col=65, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ id], col=71, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 15.0.1156.6], col=74, w=12, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ via], col=12, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Mailbox], col=16, w=8, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Transport;], col=24, w=11, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Thu,], col=35, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 13], col=40, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Jul], col=43, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 2017], col=47, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 11:45:07], col=52, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ +0100], col=61, w=6, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[from exchange3.OURDOMAIN (10.132.0.28) by exchange3.OURDOMAIN (10.132.0.28) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Thu, 13 Jul 2017 11:45:07 +0100
] too long, max width = 174 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[Received], flags=20 value=[from exchange3.OURDOMAIN (10.132.0.28) by exchange3.OURDOMAIN (10.132.0.28) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Thu, 13 Jul 2017 11:45:07 +0100
]
[2017-07-13 12:23:57] mwoh: word=[from], col=10, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ exchange3.OURDOMAIN], col=14, w=24, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (10.132.0.28)], col=38, w=14, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ by], col=52, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ exchange3.OURDOMAIN], col=55, w=24, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (10.132.0.28)], col=24, w=14, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ with], col=38, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Microsoft], col=43, w=10, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ SMTP], col=53, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Server], col=58, w=7, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (TLS)], col=65, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ id], col=71, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 15.0.1156.6;], col=74, w=13, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Thu,], col=13, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 13], col=18, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Jul], col=21, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 2017], col=25, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 11:45:07], col=30, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ +0100], col=39, w=6, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[from relay14.UPSTREAMDOMAIN (x.y.2.162) by exchange3.OURDOMAIN (10.132.0.28) with Microsoft SMTP Server (TLS) id 15.0.1156.6 via Frontend Transport; Thu, 13 Jul 2017 11:45:07 +0100
] too long, max width = 195 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[Received], flags=20 value=[from relay14.UPSTREAMDOMAIN (x.y.2.162) by exchange3.OURDOMAIN (10.132.0.28) with Microsoft SMTP Server (TLS) id 15.0.1156.6 via Frontend Transport; Thu, 13 Jul 2017 11:45:07 +0100
]
[2017-07-13 12:23:57] mwoh: word=[from], col=10, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ relay14.UPSTREAMDOMAIN], col=14, w=22, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (x.y.2.162)], col=36, w=14, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ by], col=50, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ exchange3.OURDOMAIN], col=53, w=24, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (10.132.0.28)], col=77, w=14, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ with], col=14, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Microsoft], col=19, w=10, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ SMTP], col=29, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Server], col=34, w=7, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (TLS)], col=41, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ id], col=47, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 15.0.1156.6], col=50, w=12, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ via], col=62, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Frontend], col=66, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Transport;], col=75, w=11, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Thu,], col=11, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 13], col=16, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Jul], col=19, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 2017], col=23, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 11:45:07], col=28, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ +0100], col=37, w=6, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[from smtp5.UPSTREAMDOMAIN ([x.y.2.207]) by relay14.UPSTREAMDOMAIN with esmtp (Exim 4.89) (envelope-from <logcheck@phobos.OURDOMAIN>) id 1dVbcI-0006rs-mJ for network.reports@OURDOMAIN; Thu, 13 Jul 2017 11:45:07 +0100
] too long, max width = 233 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[Received], flags=20 value=[from smtp5.UPSTREAMDOMAIN ([x.y.2.207]) by relay14.UPSTREAMDOMAIN with esmtp (Exim 4.89) (envelope-from <logcheck@phobos.OURDOMAIN>) id 1dVbcI-0006rs-mJ for network.reports@OURDOMAIN; Thu, 13 Jul 2017 11:45:07 +0100
]
[2017-07-13 12:23:57] mwoh: word=[from], col=10, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ smtp5.UPSTREAMDOMAIN], col=14, w=20, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ ([x.y.2.207])], col=34, w=16, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ by], col=50, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ relay14.UPSTREAMDOMAIN], col=53, w=22, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ with], col=75, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ esmtp], col=5, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (Exim], col=11, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 4.89)], col=17, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (envelope-from], col=23, w=15, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ <logcheck@phobos.OURDOMAIN>)], col=38, w=33, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ id], col=71, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 1dVbcI-0006rs-mJ], col=74, w=17, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ for], col=17, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ network.reports@OURDOMAIN;], col=21, w=31, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Thu,], col=52, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 13], col=57, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Jul], col=60, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 2017], col=64, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 11:45:07], col=69, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ +0100], col=9, w=6, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[from gateway.OURDOMAIN ([x.y.206.129] helo=phobos.OURDOMAIN) by smtp5.UPSTREAMDOMAIN with esmtp (Exim 4.80) (envelope-from <logcheck@phobos.OURDOMAIN>) id 1dVbcI-0006En-J2 for network.reports@OURDOMAIN; Thu, 13 Jul 2017 11:45:06 +0100
] too long, max width = 261 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[Received], flags=20 value=[from gateway.OURDOMAIN ([x.y.206.129] helo=phobos.OURDOMAIN) by smtp5.UPSTREAMDOMAIN with esmtp (Exim 4.80) (envelope-from <logcheck@phobos.OURDOMAIN>) id 1dVbcI-0006En-J2 for network.reports@OURDOMAIN; Thu, 13 Jul 2017 11:45:06 +0100
]
[2017-07-13 12:23:57] mwoh: word=[from], col=10, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ gateway.OURDOMAIN], col=14, w=22, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ ([x.y.206.129]], col=36, w=17, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ helo=phobos.OURDOMAIN)], col=53, w=27, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ by], col=27, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ smtp5.UPSTREAMDOMAIN], col=30, w=20, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ with], col=50, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ esmtp], col=55, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (Exim], col=61, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 4.80)], col=67, w=6, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ (envelope-from], col=73, w=15, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ <logcheck@phobos.OURDOMAIN>)], col=15, w=33, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ id], col=48, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 1dVbcI-0006En-J2], col=51, w=17, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ for], col=68, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ network.reports@OURDOMAIN;], col=72, w=31, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Thu,], col=31, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 13], col=36, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Jul], col=39, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 2017], col=43, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ 11:45:06], col=48, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ +0100], col=57, w=6, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[To: network.reports@OURDOMAIN
] short enough, max width = 33 <= 78
[2017-07-13 12:23:57] mwoh: buf[Subject: phobos.OURDOMAIN 13.07.2017 11:45 log events
] short enough, max width = 57 <= 78
[2017-07-13 12:23:57] mwoh: buf[Message-ID: <E1dVbcI-0001d6-Oq@phobos.OURDOMAIN>
] short enough, max width = 52 <= 78
[2017-07-13 12:23:57] mwoh: buf[From: Phobos Logcheck <logcheck@phobos.OURDOMAIN>
] short enough, max width = 53 <= 78
[2017-07-13 12:23:57] mwoh: buf[Date: Thu, 13 Jul 2017 11:45:06 +0100
] short enough, max width = 37 <= 78
[2017-07-13 12:23:57] mwoh: buf[score=0.4 tests=NO_DNS_FOR_FROM  0.4 NO_DNS_FOR_FROM        DNS: Envelope sender has no MX or A DNS records
] too long, max width = 129 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[X-Oxmail-Spam-Status], flags=20 value=[score=0.4 tests=NO_DNS_FOR_FROM  0.4 NO_DNS_FOR_FROM        DNS: Envelope sender has no MX or A DNS records
]
[2017-07-13 12:23:57] mwoh: word=[score=0.4], col=22, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ tests=NO_DNS_FOR_FROM], col=31, w=22, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[  0.4], col=53, w=5, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ NO_DNS_FOR_FROM], col=58, w=16, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[        DNS:], col=74, w=12, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ Envelope], col=12, w=9, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ sender], col=21, w=7, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ has], col=28, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ no], col=32, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ MX], col=35, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ or], col=38, w=3, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ A], col=41, w=2, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ DNS], col=43, w=4, next=[0x020]
[2017-07-13 12:23:57] mwoh: word=[ records], col=47, w=8, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[X-Oxmail-Spam-Level: /
] short enough, max width = 22 <= 78
[2017-07-13 12:23:57] mwoh: buf[str=0001.0A0B0203.59674F33.00A0,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0
] too long, max width = 106 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[X-WatchGuard-Spam-ID], flags=20 value=[str=0001.0A0B0203.59674F33.00A0,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0
]
[2017-07-13 12:23:57] mwoh: word=[str=0001.0A0B0203.59674F33.00A0,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0], col=22, w=84, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:57] mwoh: buf[X-WatchGuard-Spam-Score: 0, clean; 0, virus threat unknown
] short enough, max width = 58 <= 78
[2017-07-13 12:23:57] mwoh: buf[X-WatchGuard-Mail-Client-IP: x.y.2.162
] short enough, max width = 40 <= 78
[2017-07-13 12:23:57] mwoh: buf[X-WatchGuard-Mail-From: logcheck@phobos.OURDOMAIN
] short enough, max width = 53 <= 78
[2017-07-13 12:23:57] mwoh: buf[X-WatchGuard-AntiVirus: part scanned. clean action=allow
] short enough, max width = 56 <= 78
[2017-07-13 12:23:57] mwoh: buf[Return-Path: logcheck@phobos.OURDOMAIN
] short enough, max width = 42 <= 78
[2017-07-13 12:23:57] mwoh: buf[Content-Type: text/plain
] short enough, max width = 24 <= 78
[2017-07-13 12:23:57] mwoh: buf[70c828c7-c999-4600-c2c6-08d4c9dc3a49
] too long, max width = 83 > 78
[2017-07-13 12:23:57] mwoh: pfx=[(null)], tag=[X-MS-Exchange-Organization-Network-Message-Id], flags=20 value=[70c828c7-c999-4600-c2c6-08d4c9dc3a49
]
[2017-07-13 12:23:57] mwoh: word=[70c828c7-c999-4600-c2c6-08d4c9dc3a49], col=47, w=36, next=[0x0a]
[2017-07-13 12:23:57] mwoh: word=[
], col=0, w=1, next=[0x00]
[2017-07-13 12:23:58] mwoh: buf[X-MS-Exchange-Organization-AVStamp-Enterprise: 1.0
] short enough, max width = 50 <= 78
[2017-07-13 12:23:58] mwoh: buf[X-Auto-Response-Suppress: DR, OOF, AutoReply
] short enough, max width = 44 <= 78
[2017-07-13 12:23:58] mwoh: buf[X-MS-Exchange-Organization-AuthSource: exchange3.OURDOMAIN
] short enough, max width = 62 <= 78
[2017-07-13 12:23:58] mwoh: buf[X-MS-Exchange-Organization-AuthAs: Anonymous
] short enough, max width = 44 <= 78
[2017-07-13 12:23:58] mwoh: buf[MIME-Version: 1.0
] short enough, max width = 17 <= 78
[2017-07-13 12:23:58] IMAP queue drained

That 'IMAP queue drained' is the last message which appears in the debug log after Mutt freezes.

My Mutt, built myself:

$ mutt -v
Mutt 1.8.3 (2017-05-23)
Copyright (C) 1996-2016 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 3.13.0-116-generic (x86_64)
ncurses: ncurses 5.9.20140118 (compiled with 5.9)
libidn: 1.28 (compiled with 1.28)
hcache backend: tokyocabinet 1.4.48

Compiler:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 

Configure options: '--prefix=/usr/local' '--enable-sidebar' '--sysconfdir=/etc' '--with-mailpath=/var/mail' '--disable-dependency-tracking' '--enable-compressed' '--enable-debug' '--enable-fcntl' '--enable-hcache' '--enable-imap' '--enable-smtp' '--with-curses' '--with-gnutls' '--with-gss' '--with-idn' '--with-mixmaster' '--with-sasl'

Compilation CFLAGS: -Wall -pedantic -Wno-long-long -g -O2

Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL  -USE_FLOCK   
-USE_POP  +USE_IMAP  +USE_SMTP  
-USE_SSL_OPENSSL  +USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  +HAVE_GETADDRINFO  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  +USE_SIDEBAR  +USE_COMPRESSED  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <mutt-dev@mutt.org>.
To report a bug, please visit http://bugs.mutt.org/.

I'll happily undertake further troubleshooting if someone can suggest what form that should take.

Thanks,

Dave.

#3955 fixed regex checking crashes on long lines with UTF-8 locale mutt-dev thorsten
Description

The regex

color body brightblue default "[[:space:]][^[:space:]]+\\*"

lets mutt crash when viewing the attached mail. The mail was composed with mutt and has a plain-text attachment with a very long line (with spaces and stars).

For locales C and en_US, mutt does not crash, but with en_US.UTF-8 it crashes:

LC_ALL=en_US.UTF-8 ./mutt -F /dev/null \
 -e 'color body brightblue default "[[:space:]][^[:space:]]+\\*"' \
 -e 'push <display-message>' -f crash.mbox > /dev/null

I can reproduce the crash with the released 1.8.3 and with todays hg tip 952e4fcf1e2b (default branch) compiled with

./configure --enable-debug  --with-regex && make

The backtrace is the following:

$ LC_ALL=en_US.UTF-8 gdb -q ./mutt
Reading symbols from ./mutt...done.
(gdb) r -F /dev/null \
 -e 'color body brightblue default "[[:space:]][^[:space:]]+\\*"' \
 -e 'push <display-message>' -f crash.mbox > /dev/null
Starting program: /home/thorsten/git/mutt/mutt -F /dev/null  -e 'color body brightblue default "[[:space:]][^[:space:]]+\\*"'  -e 'push <display-message>' -f crash.mbox > /dev/null
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
                                                    0x0000000000481815 in re_match_2_internal (bufp=bufp@entry=0x7fffffffb010, string1=<optimized out>, string1@entry=0x0, size1=size1@entry=0, 
    string2=string2@entry=0x94cf70 "(equal_c SAT (some rr (and (some rr (and (some rr (and (all rr (or (all rr (or (not p3) (or (not p2) (or (all rr (or (some rr (and p6 (and (some rr (and *BOTTOM* (and (not p3) (and p2 (and p4 (and p4 "..., size2=size2@entry=1827888, pos=pos@entry=8, regs=0x7fffffffaff0, 
    stop=1827888) at regex.c:4652
4652	          PUSH_FAILURE_POINT (p + mcnt, d, -2);
(gdb) bt
#0  0x0000000000481815 in re_match_2_internal (bufp=bufp@entry=0x7fffffffb010, string1=<optimized out>, string1@entry=0x0, size1=size1@entry=0, 
    string2=string2@entry=0x94cf70 "(equal_c SAT (some rr (and (some rr (and (some rr (and (all rr (or (all rr (or (not p3) (or (not p2) (or (all rr (or (some rr (and p6 (and (some rr (and *BOTTOM* (and (not p3) (and p2 (and p4 (and p4 "..., size2=size2@entry=1827888, pos=pos@entry=8, regs=0x7fffffffaff0, 
    stop=1827888) at regex.c:4652
#1  0x0000000000486626 in re_search_2 (bufp=bufp@entry=0x7fffffffb010, string1=string1@entry=0x0, size1=size1@entry=0, 
    string2=string2@entry=0x94cf70 "(equal_c SAT (some rr (and (some rr (and (some rr (and (all rr (or (all rr (or (not p3) (or (not p2) (or (all rr (or (some rr (and p6 (and (some rr (and *BOTTOM* (and (not p3) (and p2 (and p4 (and p4 "..., size2=size2@entry=1827888, startpos=<optimized out>, 
    startpos@entry=0, range=1827880, regs=0x7fffffffaff0, stop=1827888) at regex.c:3586
#2  0x0000000000486b16 in re_search (regs=0x7fffffffaff0, range=<optimized out>, startpos=0, size=<optimized out>, 
    string=0x94cf70 "(equal_c SAT (some rr (and (some rr (and (some rr (and (all rr (or (all rr (or (not p3) (or (not p2) (or (all rr (or (some rr (and p6 (and (some rr (and *BOTTOM* (and (not p3) (and p2 (and p4 (and p4 "..., bufp=0x7fffffffb010) at regex.c:3457
#3  regexec (preg=preg@entry=0x785e30, 
    string=string@entry=0x94cf70 "(equal_c SAT (some rr (and (some rr (and (some rr (and (all rr (or (all rr (or (not p3) (or (not p2) (or (all rr (or (some rr (and p6 (and (some rr (and *BOTTOM* (and (not p3) (and p2 (and p4 (and p4 "..., nmatch=nmatch@entry=1, pmatch=pmatch@entry=0x7fffffffb130, 
    eflags=eflags@entry=0) at regex.c:5675
#4  0x0000000000446e56 in resolve_types (q_classify=2, force_redraw=0x7fffffffb8c0, q_level=0x7fffffffb8cc, QuoteList=0x7fffffffb8d0, 
    last=<optimized out>, n=37, lineInfo=<optimized out>, raw=<optimized out>, 
    buf=0x94cf70 "(equal_c SAT (some rr (and (some rr (and (some rr (and (all rr (or (all rr (or (not p3) (or (not p2) (or (all rr (or (some rr (and p6 (and (some rr (and *BOTTOM* (and (not p3) (and p2 (and p4 (and p4 "...) at pager.c:879
#5  display_line (f=0x78cbe0, last_pos=last_pos@entry=0x7fffffffb8d8, lineInfo=lineInfo@entry=0x7fffffffb978, n=37, last=last@entry=0x7fffffffb8b4, 
    max=max@entry=0x7fffffffb8b0, flags=66, QuoteList=0x7fffffffb8d0, q_level=0x7fffffffb8cc, force_redraw=0x7fffffffb8c0, SearchRE=0x7fffffffb910, 
    pager_window=0x78d860) at pager.c:1369
#6  0x000000000044778a in pager_menu_redraw (pager_menu=0x78d880) at pager.c:1807
#7  0x00000000004481e1 in mutt_pager (banner=banner@entry=0x0, fname=fname@entry=0x7fffffffbea0 "/tmp/mutt-faui8thorsten-1000-28734-7744702671431236879", 
    flags=flags@entry=66, extra=extra@entry=0x7fffffffbe70) at pager.c:1991
#8  0x0000000000412359 in mutt_display_message (cur=0x78a9f0) at commands.c:214
#9  0x000000000041d373 in mutt_index_menu () at curs_main.c:1337
#10 0x0000000000405323 in main (argc=<optimized out>, argv=0x7fffffffd728, environ=<optimized out>) at main.c:1252
(gdb) 

You can find the core.28734 file attached.

This bug sounds related to https://dev.mutt.org/trac/ticket/3850, however this is on archlinux and I have the configuration option --with-regex.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Note: See TracQuery for help on using queries.