Bug 4369 - Crash on display of a distinct mail
Summary: Crash on display of a distinct mail
Status: RESOLVED WORKSFORME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI (show other bugs)
Version: 3.17.6
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2020-07-29 09:28 UTC by Mathias Behrle
Modified: 2020-08-03 11:35 UTC (History)
1 user (show)

See Also:


Attachments
Mail in IMAP INBOX (7.28 KB, message/rfc822)
2020-07-29 09:28 UTC, Mathias Behrle
no flags Details

Description Mathias Behrle 2020-07-29 09:28:31 UTC
Created attachment 2073 [details]
Mail in IMAP INBOX

Hello,

the attached mail caused a frozen interface, perhaps pointing to some security issue with unsanitized content.
Comment 1 Paul 2020-07-29 10:03:29 UTC
The mail doesn't cause any problems for me.

More information is needed.

Re-open if you can provide more info, such as debug output and backtrace.
Comment 2 Mathias Behrle 2020-07-29 10:33:08 UTC
Debug output:

summaryview.c:1292:called inc_lock (lock count 1)
summaryview.c:1391:Ordner INBOX wird durchsucht ...
msgcache.c:271:TIMING msgcache_get_msg_list : 0s000ms
summaryview.c:1254:TIMING summary_check_consistency : 0s000ms
summaryview.c:1503:TIMING summary_show removing hidden: 0s000ms
summaryview.c:3263:Setting summary from message data...
addr_compl.c:401:read 3971 items in (null)
addr_compl.c:462:start_address_completion((null)) ref count 1
procmsg.c:302:TIMING procmsg_get_thread_tree thread by subject: 0s000ms
procmsg.c:312:TIMING procmsg_get_thread_tree : 0s000ms
summaryview.c:3304:TIMING summary_set_ctree_from_list threaded: 0s000ms
addr_compl.c:772:end_address_completion ref count 0
summaryview.c:3351:Setting summary from message data done.
summaryview.c:3354:	msgid hash table size = 7
summaryview.c:3357:	subject hash table size = 0
summaryview.c:3096:Sorting summary...
summaryview.c:3110:Sorting summary done.
summaryview.c:3117:TIMING summary_sort : 0s004ms
summaryview.c:3373:TIMING summary_set_ctree_from_list bold_unread: 0s000ms
summaryview.c:3378:TIMING summary_set_ctree_from_list : 0s026ms
imap.c:1579:trying to fetch cached /home/mathiasb/.claws-mail/imapcache/imaps/mathiasb@m9s.biz/INBOX/45705
imap.c:1589:message 45705 has been already cached.
imap.c:1625:getting session...
imap.c:527:locking session 0x1eca1f0 (0)
imap.c:1635:IMAP fetching messages
imap.c:1646:getting message 45705...
imap-thread.c:2684:imap fetch_content - begin
imap-thread.c:457:found imap 0x1f9d790
imap-thread.c:457:found imap 0x1f9d790
[2020-07-29 10:27:47] IMAP> 134 UID FETCH 45705 BODY.PEEK[] 
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:27:47] IMAP< [FETCH data - 486 bytes]
file-utils.c:58:TIMING safe_fclose : 0s000ms
imap-thread.c:2673:imap fetch_content run - end 0
imap-thread.c:473:generic_cb
imap-thread.c:457:found imap 0x1f9d790
imap-thread.c:2697:imap fetch_content - end
imap.c:540:unlocking session 0x1eca1f0
file-utils.c:58:TIMING safe_fclose : 0s000ms
procmsg.c:1952:Setting flags for message 45705 in folder INBOX
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
    message/rfc822 (offset:0 length:7450 encoding: 6)
        multipart/alternative (offset:2853 length:4597 encoding: 0)
            text/plain (offset:2973 length:1727 encoding: 0)
            text/html (offset:4819 length:2583 encoding: 0)
procheader.c:174:generic_get_one_field: empty line
messageview.c:1291:found part 6/alternative
procheader.c:197:generic_get_one_field: empty line
textview.c:692:TIMING textview_add_part : 0s003ms
textview.c:658:TIMING textview_add_part : 0s000ms
textview.c:1165:Viewing text content of type: plain (length: 1727)


there it hangs forever
Comment 3 Paul 2020-07-29 10:36:20 UTC
Maybe someone also using debian can reproduce it, because I can't.
Comment 4 Mathias Behrle 2020-07-29 10:46:19 UTC
Output with gdb:

[...]

file-utils.c:58:TIMING safe_fclose : 0s000ms
procheader.c:197:generic_get_one_field: empty line
imap.c:5601:IMAP switching away from batch mode
filtering.c:198:checking 1 messages
filtering.c:235:no more messages to move/copy/del
folder.c:4507:called inc_unlock (lock count 0)
folder.c:2073:TIMING folder_item_open : 0s051ms
summaryview.c:1087:showing  To, must show From 
summaryview.c:1097:switching columns
summaryview.c:1292:called inc_lock (lock count 1)
summaryview.c:1391:Ordner INBOX wird durchsucht ...
msgcache.c:271:TIMING msgcache_get_msg_list : 0s000ms
summaryview.c:1254:TIMING summary_check_consistency : 0s000ms
summaryview.c:1503:TIMING summary_show removing hidden: 0s000ms
summaryview.c:3263:Setting summary from message data...
addr_compl.c:401:read 3971 items in (null)
addr_compl.c:462:start_address_completion((null)) ref count 1
procmsg.c:302:TIMING procmsg_get_thread_tree thread by subject: 0s000ms
procmsg.c:312:TIMING procmsg_get_thread_tree : 0s000ms
summaryview.c:3304:TIMING summary_set_ctree_from_list threaded: 0s000ms
addr_compl.c:772:end_address_completion ref count 0
summaryview.c:3351:Setting summary from message data done.
summaryview.c:3354:	msgid hash table size = 1
summaryview.c:3357:	subject hash table size = 0
summaryview.c:3096:Sorting summary...
summaryview.c:3110:Sorting summary done.
summaryview.c:3117:TIMING summary_sort : 0s010ms
summaryview.c:3373:TIMING summary_set_ctree_from_list bold_unread: 0s000ms
summaryview.c:3378:TIMING summary_set_ctree_from_list : 0s017ms
imap.c:1579:trying to fetch cached /home/mathiasb/.claws-mail/imapcache/imaps/mathiasb@m9s.biz/INBOX/45706
imap.c:1589:message 45706 has been already cached.
imap.c:1625:getting session...
imap.c:527:locking session 0xa8a240 (0)
imap.c:1635:IMAP fetching messages
imap.c:1646:getting message 45706...
imap-thread.c:2684:imap fetch_content - begin
imap-thread.c:457:found imap 0x909f00
imap-thread.c:457:found imap 0x909f00
[2020-07-29 10:44:35] IMAP> 143 UID FETCH 45706 BODY.PEEK[] 
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 1024 bytes]
[2020-07-29 10:44:35] IMAP< [FETCH data - 461 bytes]
[2020-07-29 10:44:35] IMAP< 143 OK Fetch completed. 
file-utils.c:58:TIMING safe_fclose : 0s000ms
imap-thread.c:2673:imap fetch_content run - end 0
imap-thread.c:473:generic_cb
imap-thread.c:457:found imap 0x909f00
imap-thread.c:2697:imap fetch_content - end
imap.c:540:unlocking session 0xa8a240
file-utils.c:58:TIMING safe_fclose : 0s000ms
procmsg.c:1952:Setting flags for message 45706 in folder INBOX
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
    message/rfc822 (offset:0 length:7450 encoding: 6)
        multipart/alternative (offset:2853 length:4597 encoding: 0)
            text/plain (offset:2973 length:1727 encoding: 0)
            text/html (offset:4819 length:2583 encoding: 0)
procheader.c:174:generic_get_one_field: empty line
messageview.c:1291:found part 6/alternative
procheader.c:197:generic_get_one_field: empty line
textview.c:692:TIMING textview_add_part : 0s003ms
textview.c:658:TIMING textview_add_part : 0s000ms
textview.c:1165:Viewing text content of type: plain (length: 1727)

hanging...
Comment 5 Mathias Behrle 2020-07-29 10:49:53 UTC
> Maybe someone also using debian can reproduce it, because I can't.

JFTR filed under

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966480
Comment 6 Paul 2020-07-29 10:58:03 UTC
The debug output tells nothing useful.
Comment 7 Michael Rasmussen 2020-07-29 14:01:49 UTC
Hi,

I am on Debian Sid (Unstable) using latest from git (3.17.6git1). Dropped your attached email to my MH test mail box and opened the mail in claws, both the text part and the HTML with LiteHTML_viewer, and no problems what so ever.

Regards Michael.
Comment 8 Mathias Behrle 2020-08-03 09:17:22 UTC
> Hi,
> 
> I am on Debian Sid (Unstable) using latest from git (3.17.6git1). Dropped your attached email to my MH test mail box and opened the mail in claws, both the text part and the HTML with LiteHTML_viewer, and no problems what so ever.
>
> Regards Michael.

Hello Michael,

thanks for testing, I did the very same test: copied the file to ~/Mail/inbox, renamed to the correct sequence and still had the same problem: frozen interface.

Quite strange, since I am on Debian testing, so our systems *should* be quite similar.

It seems you are compiling claws-mail (3.17.6git1), while I am using the Debian package

@:~$ apt-cache policy claws-mail
claws-mail:
  Installiert:           3.17.6-1
  Installationskandidat: 3.17.6-1
  Versionstabelle:
 *** 3.17.6-1 800
        800 http://deb.debian.org/debian testing/main amd64 Packages
        700 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status

Applied patches are 
https://salsa.debian.org/claws-mail-team/claws-mail/-/tree/master/debian/patches ,
they don't look like they could be related to the problem.

Can you confirm, that you do not use the Debian package, but compile yourself?
Comment 9 Michael Rasmussen 2020-08-03 11:35:22 UTC
Yes, I compile from git.

In your situation I would look at filter and action rules or perhaps some other plugin which work on mails. It is not related to claws core so either as I explained or else a problem locally on your computer.

Note You need to log in before you can comment on or make changes to this bug.