Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail crashes on the first few times it's opened #650

Closed
wout opened this issue Aug 17, 2021 · 31 comments
Closed

Mail crashes on the first few times it's opened #650

wout opened this issue Aug 17, 2021 · 31 comments
Labels

Comments

@wout
Copy link

wout commented Aug 17, 2021

What Happened

Every time I open Mail, it crashes the first, second, third, ... times. Eventually, it'll open and stay stable.

Expected Behavior

Should not crash at all.

Steps to Reproduce

  1. Open Mail
  2. Crashes
  3. Open Mail again
  4. [repeat until stable]

Logs

Crash 1:

Aug 17 19:00:56 Rossy io.elementary.m[2578510]: MailBackendSimpleSasl has an empty CamelServiceAuthType
Aug 17 19:00:57 Rossy kernel: [129178.151985] traps: io.elementary.m[2578510] trap stack segment ip:7f20172e5428 sp:7ffd1c290900 error:0 in libcamel-1.2.so.62.0.0[7f2017298000+bc000]

Crash 2:

Aug 17 19:01:14 Rossy io.elementary.m[2579251]: MailBackendSimpleSasl has an empty CamelServiceAuthType
Aug 17 19:01:14 Rossy io.elementary.m[2579251]: message repeated 4 times: [ MailBackendSimpleSasl has an empty CamelServiceAuthType]
Aug 17 19:01:14 Rossy systemd[1]: run-docker-runtime\x2drunc-moby-d0b51e4c7cc498c34ec4bc4567eb8f09208dbcd220e506702185ea398ad6189c-runc.KGV3vh.mount: Succeeded.
Aug 17 19:01:14 Rossy systemd[1679]: run-docker-runtime\x2drunc-moby-d0b51e4c7cc498c34ec4bc4567eb8f09208dbcd220e506702185ea398ad6189c-runc.KGV3vh.mount: Succeeded.
Aug 17 19:01:14 Rossy io.elementary.m[2579251]: MailBackendSimpleSasl has an empty CamelServiceAuthType
Aug 17 19:01:17 Rossy kernel: [129197.537054] io.elementary.m[2579251]: segfault at 31 ip 00007fd3ef9f5428 sp 00007fff81a60720 error 4 in libcamel-1.2.so.62.0.0[7fd3ef9a8000+bc000]
Aug 17 19:01:17 Rossy kernel: [129197.537063] Code: 89 e0 5b 5d 41 5c c3 66 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 41 54 55 48 89 fd 48 83 ec 08 e8 1d d0 fb ff 48 85 ed 74 64 <4c> 8b 65 00 48 89 c6 4d 85 e4 74 4c 49 39 04 24 74 0c 48 89 ef e8
Aug 17 19:01:15 Rossy io.elementary.m[2579251]: message repeated 8 times: [ MailBackendSimpleSasl has an empty CamelServiceAuthType]

Crash 3:

Aug 17 19:07:39 Rossy gala[1943]: clutter_actor_remove_child: assertion 'CLUTTER_IS_ACTOR (child)' failed
Aug 17 19:07:39 Rossy gala[1943]: invalid (NULL) pointer instance
Aug 17 19:07:39 Rossy gala[1943]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Aug 17 19:07:40 Rossy io.elementary.m[2594801]: MailBackendSimpleSasl has an empty CamelServiceAuthType
Aug 17 19:07:41 Rossy io.elementary.m[2594801]: message repeated 7 times: [ MailBackendSimpleSasl has an empty CamelServiceAuthType]
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy io.elementary.m[2594801]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 17 19:07:42 Rossy kernel: [129582.647479] io.elementary.m[2594801]: segfault at 4b00000277 ip 00007f1a9a494434 sp 00007ffc99a7f0f0 error 4 in libcamel-1.2.so.62.0.0[7f1a9a447000+bc000]
Aug 17 19:07:42 Rossy kernel: [129582.647494] Code: 84 00 00 00 00 00 f3 0f 1e fa 41 54 55 48 89 fd 48 83 ec 08 e8 1d d0 fb ff 48 85 ed 74 64 4c 8b 65 00 48 89 c6 4d 85 e4 74 4c <49> 39 04 24 74 0c 48 89 ef e8 ae d9 fb ff 85 c0 74 46 49 83 bc 24

Fourth time lucky!

Platform Information

image

@casasfernando
Copy link

+1

I have two email accounts configured (Outlook.com and Gmail.com) and the application is crashing with segmentation fault for a few times until it get's more stable:

  • First run:
Aug 19 23:36:07 nbookfcs kernel: [51782.354178] io.elementary.m[49628]: segfault at 200 ip 00007f72a843c434 sp 00007ffec9066b90 error 4 in libcamel-1.2.so.62.0.0[7f72a83ef000+bc000]
  • Second run:
Aug 19 23:39:42 nbookfcs kernel: [51997.888514] io.elementary.m[49807]: segfault at 20 ip 00007f5e297e8428 sp 00007fffdb8ab140 error 4 in libcamel-1.2.so.62.0.0[7f5e2979b000+bc000]
  • Third run:
Aug 19 23:42:01 nbookfcs io.elementary.m[50083]: MailBackendSimpleSasl has an empty CamelServiceAuthType
Aug 19 23:42:01 nbookfcs io.elementary.m[50083]: message repeated 4 times: [ MailBackendSimpleSasl has an empty CamelServiceAuthType]
Aug 19 23:42:05 nbookfcs kernel: [52140.119333] io.elementary.m[50083]: segfault at 21 ip 00007f770eeb5428 sp 00007fff24a08cc0 error 4 in libcamel-1.2.so.62.0.0[7f770ee68000+bc000]
  • Fourth run:
Aug 19 23:44:12 nbookfcs io.elementary.m[50187]: MailBackendSimpleSasl has an empty CamelServiceAuthType
Aug 19 23:44:12 nbookfcs io.elementary.m[50187]: message repeated 4 times: [ MailBackendSimpleSasl has an empty CamelServiceAuthType]
Aug 19 23:44:20 nbookfcs io.elementary.m[50187]: g_object_get: assertion 'G_IS_OBJECT (object)' failed
Aug 19 23:44:20 nbookfcs io.elementary.m[50187]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 19 23:44:20 nbookfcs io.elementary.m[50187]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 19 23:44:20 nbookfcs io.elementary.m[50187]: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 19 23:44:20 nbookfcs io.elementary.m[50187]: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
Aug 19 23:44:20 nbookfcs kernel: [52275.556369] traps: io.elementary.m[50187] general protection fault ip:7f06a1231160 sp:7ffdfb5bd628 error:0 in libgobject-2.0.so.0.6400.6[7f06a1203000+36000]

On the fifth run, it stops crashing and I can finally use it.

One thing that may be relevant, is that I configured both email accounts using Online Accounts from System Settings but I just saw in the application repository in Github that:

"Currently, the easiset way to test Mail with your accounts is to set up them up in Evolution first. Ultimately, setting up an account in Online Accounts will connect it to EDS/Camel but that has not yet been implemented."

Could this be related?

Thanks

@marbetschar
Copy link
Member

marbetschar commented Aug 20, 2021

@casasfernando the hint in the README is outdated, if you are on Odin then configuring the account using Online Accounts is fine.

@casasfernando and @wout any chance you can provide a backtrace using GNU Debugger or core dump? I documented the process for both here (feel free to use whichever seems easier for you - the result at the end is the same backtrace):

@casasfernando
Copy link

@marbetschar I’m on Odin indeed.
I will try to get the dump with gdb and report back.

@casasfernando
Copy link

casasfernando commented Aug 20, 2021

Here we go.
First run after a cold boot:

fernando@nbookfcs:~$ gdb io.elementary.mail 
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 io.elementary.mail...
(No debugging symbols found in io.elementary.mail)
(gdb) run
Starting program: /usr/bin/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed07c700 (LWP 3980)]
[New Thread 0x7fffec87b700 (LWP 3981)]
[New Thread 0x7fffe7fff700 (LWP 3982)]
[New Thread 0x7fffdbfff700 (LWP 3983)]
[New Thread 0x7fffdb7fe700 (LWP 3984)]
[Detaching after vfork from child process 3985]
[New Thread 0x7fffda6d2700 (LWP 3990)]
[New Thread 0x7fffd9ed1700 (LWP 3991)]
[New Thread 0x7fffd96d0700 (LWP 3992)]
[New Thread 0x7fffd8ecf700 (LWP 3993)]
[New Thread 0x7fffc3fff700 (LWP 3994)]
[New Thread 0x7fffc37fe700 (LWP 3995)]
[New Thread 0x7fffc2ffd700 (LWP 3996)]
[New Thread 0x7fffc27fc700 (LWP 3997)]
[New Thread 0x7fffc1ffb700 (LWP 3998)]
[New Thread 0x7fffc17fa700 (LWP 4000)]

(io.elementary.mail:3976): camel-CRITICAL **: 15:05:58.778: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3976): camel-CRITICAL **: 15:05:58.799: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3976): camel-CRITICAL **: 15:05:58.799: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3976): camel-CRITICAL **: 15:05:58.804: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3976): camel-CRITICAL **: 15:05:58.804: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffd96d0700 (LWP 3992) exited]
[Thread 0x7fffc1ffb700 (LWP 3998) exited]
[Thread 0x7fffd9ed1700 (LWP 3991) exited]
[Thread 0x7fffc3fff700 (LWP 3994) exited]
[Thread 0x7fffc27fc700 (LWP 3997) exited]
[Thread 0x7fffc2ffd700 (LWP 3996) exited]
[Thread 0x7fffdbfff700 (LWP 3983) exited]
[Thread 0x7fffd8ecf700 (LWP 3993) exited]
[Thread 0x7fffc37fe700 (LWP 3995) exited]
[New Thread 0x7fffc37fe700 (LWP 4006)]
[New Thread 0x7fffd8ecf700 (LWP 4008)]
[New Thread 0x7fffdbfff700 (LWP 4009)]
[Thread 0x7fffdbfff700 (LWP 4009) exited]

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7074428 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) backtrace
#0  0x00007ffff7074428 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x00005555555891b6 in ?? ()
#2  0x00005555555891e5 in ?? ()
#3  0x000055555558b36a in ?? ()
#4  0x00007ffff7ee74fc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff7ee79df in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffff7ee88b4 in g_sequence_insert_sorted_iter () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ee8998 in g_sequence_insert_sorted () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x000055555558e734 in mail_conversation_list_store_add ()
#9  0x000055555558a76b in ?? ()
#10 0x000055555558b8b7 in ?? ()
#11 0x00007ffff7e2f802 in g_closure_invoke () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff7e43814 in ?? () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff7e4ebbe in g_signal_emit_valist () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff7e4f0f3 in g_signal_emit () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff705b90d in ?? () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#16 0x00007ffff7ecd04e in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff7ecd400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff7ecd4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff72dbfe5 in g_application_run () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#20 0x0000555555571c35 in main ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 3976] will be killed.

Quit anyway? (y or n) y
fernando@nbookfcs:~$

Second run:

fernando@nbookfcs:~$ gdb io.elementary.mail 
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 io.elementary.mail...
(No debugging symbols found in io.elementary.mail)
(gdb) run
Starting program: /usr/bin/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed07c700 (LWP 4619)]
[New Thread 0x7fffec87b700 (LWP 4620)]
[New Thread 0x7fffe7fff700 (LWP 4621)]
[New Thread 0x7fffdbfff700 (LWP 4623)]
[New Thread 0x7fffdb7fe700 (LWP 4624)]
[Detaching after vfork from child process 4625]
[New Thread 0x7fffda6d2700 (LWP 4630)]
[New Thread 0x7fffd9ed1700 (LWP 4631)]
[New Thread 0x7fffd96d0700 (LWP 4632)]
[New Thread 0x7fffd8ecf700 (LWP 4633)]
[New Thread 0x7fffc3fff700 (LWP 4634)]
[New Thread 0x7fffc37fe700 (LWP 4635)]
[New Thread 0x7fffc2ffd700 (LWP 4636)]
[New Thread 0x7fffc27fc700 (LWP 4637)]
[New Thread 0x7fffc1ffb700 (LWP 4638)]
[New Thread 0x7fffc17fa700 (LWP 4642)]

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:34.626: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:34.626: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffd9ed1700 (LWP 4631) exited]

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:35.561: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:35.565: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:35.566: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffc1ffb700 (LWP 4638) exited]
[Thread 0x7fffc27fc700 (LWP 4637) exited]
[Thread 0x7fffc37fe700 (LWP 4635) exited]
[Thread 0x7fffd8ecf700 (LWP 4633) exited]
[Thread 0x7fffdbfff700 (LWP 4623) exited]
[Thread 0x7fffda6d2700 (LWP 4630) exited]

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:39.361: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:39.364: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:39.364: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffc2ffd700 (LWP 4636) exited]
[Thread 0x7fffc3fff700 (LWP 4634) exited]

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.822: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.823: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4615): camel-CRITICAL **: 15:09:40.823: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e57160 in g_type_check_instance_is_a () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) backtrace
#0  0x00007ffff7e57160 in g_type_check_instance_is_a () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1  0x00007ffff7074442 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#2  0x00005555555891b6 in ?? ()
#3  0x00005555555891e5 in ?? ()
#4  0x00005555555891e5 in ?? ()
#5  0x00005555555891e5 in ?? ()
#6  0x00005555555891e5 in ?? ()
#7  0x00005555555891e5 in ?? ()
#8  0x00005555555891e5 in ?? ()
#9  0x00005555555891e5 in ?? ()
#10 0x00005555555891e5 in ?? ()
#11 0x00005555555891e5 in ?? ()
#12 0x00005555555891e5 in ?? ()
#13 0x00005555555891e5 in ?? ()
#14 0x00005555555891e5 in ?? ()
#15 0x00005555555891e5 in ?? ()
#16 0x00005555555891e5 in ?? ()
#17 0x00005555555891e5 in ?? ()
#18 0x00005555555891e5 in ?? ()
#19 0x00005555555891e5 in ?? ()
#20 0x00005555555891e5 in ?? ()
#21 0x00005555555891e5 in ?? ()
#22 0x00005555555891e5 in ?? ()
#23 0x00005555555891e5 in ?? ()
#24 0x00005555555891e5 in ?? ()
#25 0x00005555555891e5 in ?? ()
#26 0x00005555555891e5 in ?? ()
#27 0x00005555555891e5 in ?? ()
#28 0x00005555555891e5 in ?? ()
#29 0x00005555555891e5 in ?? ()
#30 0x00005555555891e5 in ?? ()
#31 0x00005555555891e5 in ?? ()
#32 0x00005555555891e5 in ?? ()
#33 0x00005555555891e5 in ?? ()
#34 0x00005555555891e5 in ?? ()
#35 0x00005555555891e5 in ?? ()
#36 0x00005555555891e5 in ?? ()
#37 0x00005555555891e5 in ?? ()
#38 0x00005555555891e5 in ?? ()
#39 0x00005555555891e5 in ?? ()
#40 0x00005555555891e5 in ?? ()
#41 0x00005555555891e5 in ?? ()
#42 0x00005555555891e5 in ?? ()
#43 0x00005555555891e5 in ?? ()
#44 0x00005555555891e5 in ?? ()
#45 0x000055555558b36a in ?? ()
#46 0x00007ffff7ee74fc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007ffff7ee79df in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007ffff7ee88b4 in g_sequence_insert_sorted_iter () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007ffff7ee8998 in g_sequence_insert_sorted () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x000055555558e734 in mail_conversation_list_store_add ()
#51 0x000055555558a76b in ?? ()
#52 0x000055555558c16a in ?? ()
#53 0x00007ffff72adf49 in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#54 0x00007ffff72adf8d in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#55 0x00007ffff7ecd04e in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007ffff7ecd400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007ffff7ecd4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007ffff72dbfe5 in g_application_run () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#59 0x0000555555571c35 in main ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 4615] will be killed.

Quit anyway? (y or n) y
fernando@nbookfcs:~$

On the third run the application was stable for a while, I was able to read a couple of emails but as soon as I tied to delete one, it crashed again. Not sure if it's related to the crashes on start tough but I leave the backtrace below anyway. Let me know if you want me to open different issue(s):

fernando@nbookfcs:~$ gdb io.elementary.mail 
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 io.elementary.mail...
(No debugging symbols found in io.elementary.mail)
(gdb) run
Starting program: /usr/bin/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed07c700 (LWP 4971)]
[New Thread 0x7fffec87b700 (LWP 4972)]
[New Thread 0x7fffe7fff700 (LWP 4973)]
[New Thread 0x7fffdbfff700 (LWP 4974)]
[New Thread 0x7fffdb7fe700 (LWP 4975)]
[Detaching after vfork from child process 4976]
[New Thread 0x7fffda6d2700 (LWP 4981)]
[New Thread 0x7fffd9ed1700 (LWP 4982)]
[New Thread 0x7fffd96d0700 (LWP 4983)]
[New Thread 0x7fffd8ecf700 (LWP 4984)]
[New Thread 0x7fffc3fff700 (LWP 4985)]
[New Thread 0x7fffc37fe700 (LWP 4986)]
[New Thread 0x7fffc2ffd700 (LWP 4987)]
[New Thread 0x7fffc27fc700 (LWP 4988)]
[New Thread 0x7fffc1ffb700 (LWP 4989)]
[New Thread 0x7fffc17fa700 (LWP 4991)]
[New Thread 0x7fffc0ff9700 (LWP 4992)]
[Thread 0x7fffc27fc700 (LWP 4988) exited]

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:02.727: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:02.727: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:02.924: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:02.927: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:02.927: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffc0ff9700 (LWP 4992) exited]

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:05.488: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:05.491: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:12:05.491: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffc37fe700 (LWP 4986) exited]
[Thread 0x7fffc17fa700 (LWP 4991) exited]
[Thread 0x7fffc2ffd700 (LWP 4987) exited]
[Thread 0x7fffd96d0700 (LWP 4983) exited]
[Thread 0x7fffc3fff700 (LWP 4985) exited]
[Thread 0x7fffda6d2700 (LWP 4981) exited]
[Thread 0x7fffdbfff700 (LWP 4974) exited]
[Thread 0x7fffd8ecf700 (LWP 4984) exited]
[Thread 0x7fffc1ffb700 (LWP 4989) exited]
[New Thread 0x7fffc1ffb700 (LWP 4998)]
[Thread 0x7fffd9ed1700 (LWP 4982) exited]
[New Thread 0x7fffd9ed1700 (LWP 5001)]
[New Thread 0x7fffd8ecf700 (LWP 5002)]
[New Thread 0x7fffdbfff700 (LWP 5007)]
[New Thread 0x7fffda6d2700 (LWP 5008)]
[New Thread 0x7fffc3fff700 (LWP 5009)]
[New Thread 0x7fffc17fa700 (LWP 5010)]
[Detaching after fork from child process 5011]
[New Thread 0x7fffc0ff9700 (LWP 5025)]

(io.elementary.mail:4967): Handy-WARNING **: 15:12:23.000: Failed to load icon: Not Found
[New Thread 0x7fff5fffd700 (LWP 5026)]
[Thread 0x7fffd8ecf700 (LWP 5002) exited]
[Detaching after fork from child process 5031]
[Detaching after fork from child process 5032]
[Detaching after fork from child process 5036]
[Detaching after fork from child process 5040]
[New Thread 0x7fffd8ecf700 (LWP 5041)]
[Thread 0x7fffc1ffb700 (LWP 4998) exited]
[New Thread 0x7fffc1ffb700 (LWP 5065)]
[New Thread 0x7fff5b7fc700 (LWP 5067)]

(io.elementary.mail:4967): Handy-WARNING **: 15:12:27.657: Failed to load icon: Not Found
[Thread 0x7fffd8ecf700 (LWP 5041) exited]
[Thread 0x7fffc1ffb700 (LWP 5065) exited]
[Detaching after fork from child process 5071]
[New Thread 0x7fffc1ffb700 (LWP 5072)]
[Thread 0x7fff5b7fc700 (LWP 5067) exited]
[New Thread 0x7fff5b7fc700 (LWP 5087)]
[Thread 0x7fffc0ff9700 (LWP 5025) exited]
[New Thread 0x7fffc0ff9700 (LWP 5097)]
[New Thread 0x7fffd8ecf700 (LWP 5098)]

(io.elementary.mail:4967): Handy-WARNING **: 15:12:46.005: Failed to load icon: Not Found
[Thread 0x7fffc1ffb700 (LWP 5072) exited]
[Thread 0x7fff5b7fc700 (LWP 5087) exited]
[Detaching after fork from child process 5099]
[New Thread 0x7fff5b7fc700 (LWP 5100)]
[Thread 0x7fffc0ff9700 (LWP 5097) exited]
[New Thread 0x7fffc0ff9700 (LWP 5117)]
[New Thread 0x7fffc1ffb700 (LWP 5119)]

(io.elementary.mail:4967): Handy-WARNING **: 15:12:51.602: Failed to load icon: Not Found
[Thread 0x7fff5b7fc700 (LWP 5100) exited]
[Thread 0x7fffc0ff9700 (LWP 5117) exited]
[Detaching after fork from child process 5121]
[New Thread 0x7fffc0ff9700 (LWP 5122)]
[Thread 0x7fffc1ffb700 (LWP 5119) exited]
[New Thread 0x7fffc1ffb700 (LWP 5136)]
[New Thread 0x7fff5b7fc700 (LWP 5138)]

(io.elementary.mail:4967): Handy-WARNING **: 15:12:57.324: Failed to load icon: Not Found
[Thread 0x7fffc0ff9700 (LWP 5122) exited]
[Detaching after fork from child process 5139]
[New Thread 0x7fffc0ff9700 (LWP 5140)]
[Thread 0x7fff5b7fc700 (LWP 5138) exited]
[New Thread 0x7fff5b7fc700 (LWP 5168)]

(io.elementary.mail:4967): Handy-WARNING **: 15:13:05.419: Failed to load icon: Not Found
[Thread 0x7fffc0ff9700 (LWP 5140) exited]
[Detaching after fork from child process 5169]
[New Thread 0x7fffc0ff9700 (LWP 5170)]
[Thread 0x7fff5b7fc700 (LWP 5168) exited]
[Thread 0x7fffc0ff9700 (LWP 5170) exited]
[Thread 0x7fffd9ed1700 (LWP 5001) exited]
[New Thread 0x7fffd9ed1700 (LWP 5186)]
[New Thread 0x7fffc0ff9700 (LWP 5190)]

(io.elementary.mail:4967): Handy-WARNING **: 15:13:18.489: Failed to load icon: Not Found
[Detaching after fork from child process 5191]
[New Thread 0x7fff5b7fc700 (LWP 5192)]
[Thread 0x7fffd8ecf700 (LWP 5098) exited]
[New Thread 0x7fffd8ecf700 (LWP 5218)]

(io.elementary.mail:4967): Handy-WARNING **: 15:13:21.873: Failed to load icon: Not Found
[Thread 0x7fff5b7fc700 (LWP 5192) exited]
[Thread 0x7fffd9ed1700 (LWP 5186) exited]
[Detaching after fork from child process 5219]
[New Thread 0x7fffd9ed1700 (LWP 5220)]
[Thread 0x7fffd8ecf700 (LWP 5218) exited]
[New Thread 0x7fffd8ecf700 (LWP 5234)]
[Thread 0x7fffd9ed1700 (LWP 5220) exited]
[Thread 0x7fffc1ffb700 (LWP 5136) exited]
[New Thread 0x7fffc1ffb700 (LWP 5238)]
[Thread 0x7fffc1ffb700 (LWP 5238) exited]
[New Thread 0x7fffc1ffb700 (LWP 5239)]
[Thread 0x7fffd8ecf700 (LWP 5234) exited]

(io.elementary.mail:4967): camel-CRITICAL **: 15:13:35.503: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:13:35.507: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:4967): camel-CRITICAL **: 15:13:35.507: MailBackendSimpleSasl has an empty CamelServiceAuthType
[New Thread 0x7fffd8ecf700 (LWP 5243)]
[Thread 0x7fffc1ffb700 (LWP 5239) exited]
[New Thread 0x7fffc1ffb700 (LWP 5244)]
[Thread 0x7fffc0ff9700 (LWP 5190) exited]
[New Thread 0x7fffc0ff9700 (LWP 5257)]
[New Thread 0x7fffd9ed1700 (LWP 5258)]

(io.elementary.mail:4967): Handy-WARNING **: 15:14:03.514: Failed to load icon: Not Found
[Thread 0x7fffc1ffb700 (LWP 5244) exited]
[Detaching after fork from child process 5261]
[New Thread 0x7fffc1ffb700 (LWP 5262)]
[Thread 0x7fffc0ff9700 (LWP 5257) exited]
[New Thread 0x7fffc0ff9700 (LWP 5287)]

(io.elementary.mail:4967): camel-CRITICAL **: 15:14:16.008: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:4967): camel-CRITICAL **: 15:14:16.008: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7074434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) backtrace
#0  0x00007ffff7074434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x00005555555891b6 in ?? ()
#2  0x00005555555891e5 in ?? ()
#3  0x00005555555891e5 in ?? ()
#4  0x000055555558b36a in ?? ()
#5  0x00007ffff7ee74fc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffff7ee79df in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ee88b4 in g_sequence_insert_sorted_iter () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff7ee8998 in g_sequence_insert_sorted () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x000055555558e734 in mail_conversation_list_store_add ()
#10 0x000055555558a76b in ?? ()
#11 0x000055555558b8b7 in ?? ()
#12 0x00007ffff7e2f802 in g_closure_invoke () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff7e43814 in ?? () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff7e4ebbe in g_signal_emit_valist () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff7e4f0f3 in g_signal_emit () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff705b90d in ?? () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#17 0x00007ffff7ecd04e in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff7ecd400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff7ecd4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff72dbfe5 in g_application_run () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#21 0x0000555555571c35 in main ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 4967] will be killed.

Quit anyway? (y or n) y
fernando@nbookfcs:~$

Let me know if you want me to get any other information.
Mail version: io.elementary.mail/focal,now 6.1.0+r613+pkg23~ubuntu6.1

Thanks.

@marbetschar
Copy link
Member

@tintou seems we still run into a "use after free" issue with camel_message_info_get_date_received (). Any clue why? I tried to track this down in the past, but was not successfull - obviously.

@marbetschar
Copy link
Member

Probably related to #649

@marbetschar
Copy link
Member

@casasfernando any chance you can compile and re-test my changes from the fix-crash branch to see if my changes fix this bug? I was not able to reproduce unfortunately.

Please let me know if you'd like some guidance on this - I'm happy to help!

@casasfernando
Copy link

@casasfernando any chance you can compile and re-test my changes from the fix-crash branch to see if my changes fix this bug? I was not able to reproduce unfortunately.

Please let me know if you'd like some guidance on this - I'm happy to help!

I can, no problem.

You can’t repro after the fix or ever?
I’m curious on what may cause this to not affect every user.

Anyway, I will setup a VM, repro the issue, compile from the fixed branch and test.
This may take some time tough. If I need any guidance I will let you know.

Thanks.

@marbetschar
Copy link
Member

Can't reproduce at all. Bt I suspect an issue with multiple threads fighting over the same resource.

Would be great if you can verify if the crash occurs on current master in your VM - but not in the fux-crash branch. At least thats what I'm hoping for 😉

@casasfernando
Copy link

casasfernando commented Aug 22, 2021

I finished setting up the VM but unfortunately as I was fearing, I cannot repro the problem inside the VM.
I played around reading emails from different folders in different email accounts and even under "All Mailboxes" but I couldn't repro the problem running the stock version of Mail (the one currently shipped with Odin).
To try to increase the chance of repro, I added 8 vCPUs to the VM (the host has 4 cores with HT) but that didn't help either.
I did hit a segfault once while deleting an email, but for a complete different reason it seems. Please find the backtrace below in case you find it interesting:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 io.elementary.mail...
(No debugging symbols found in io.elementary.mail)
(gdb) run
Starting program: /usr/bin/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d2700 (LWP 10271)]
[New Thread 0x7fffec8d1700 (LWP 10272)]
[New Thread 0x7fffe7fff700 (LWP 10276)]
[New Thread 0x7fffe482e700 (LWP 10277)]
[New Thread 0x7fffdbfff700 (LWP 10278)]
[Detaching after vfork from child process 10279]
[New Thread 0x7fffdab2e700 (LWP 10284)]
[New Thread 0x7fffda32d700 (LWP 10285)]
[New Thread 0x7fffd9b19700 (LWP 10286)]
[New Thread 0x7fffd9318700 (LWP 10287)]
[New Thread 0x7fffd8b17700 (LWP 10288)]
[New Thread 0x7fffbffff700 (LWP 10289)]
[New Thread 0x7fffbf7fe700 (LWP 10290)]
[New Thread 0x7fffbeffd700 (LWP 10291)]
[New Thread 0x7fffbe7fc700 (LWP 10292)]
[New Thread 0x7fffbdffb700 (LWP 10293)]
[New Thread 0x7fffbd7fa700 (LWP 10294)]
[New Thread 0x7fffbcff9700 (LWP 10295)]
[Thread 0x7fffbe7fc700 (LWP 10292) exited]
[Thread 0x7fffbf7fe700 (LWP 10290) exited]

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:03.317: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:03.318: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:03.458: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:03.462: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:03.462: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbcff9700 (LWP 10295) exited]
[Thread 0x7fffda32d700 (LWP 10285) exited]
[Thread 0x7fffbdffb700 (LWP 10293) exited]
[Thread 0x7fffd8b17700 (LWP 10288) exited]
[Thread 0x7fffdab2e700 (LWP 10284) exited]
[Thread 0x7fffbd7fa700 (LWP 10294) exited]
[Thread 0x7fffbffff700 (LWP 10289) exited]
[Thread 0x7fffd9318700 (LWP 10287) exited]
[Thread 0x7fffe482e700 (LWP 10277) exited]
[New Thread 0x7fffe482e700 (LWP 10297)]
[Thread 0x7fffbeffd700 (LWP 10291) exited]
[Thread 0x7fffe482e700 (LWP 10297) exited]
[New Thread 0x7fffe482e700 (LWP 10298)]
[New Thread 0x7fffbeffd700 (LWP 10299)]
[Thread 0x7fffe482e700 (LWP 10298) exited]
[New Thread 0x7fffe482e700 (LWP 10300)]
[New Thread 0x7fffd9318700 (LWP 10301)]
[New Thread 0x7fffbffff700 (LWP 10302)]
[Thread 0x7fffbffff700 (LWP 10302) exited]
[Thread 0x7fffbeffd700 (LWP 10299) exited]
[Thread 0x7fffd9318700 (LWP 10301) exited]
[New Thread 0x7fffd9318700 (LWP 10303)]
[New Thread 0x7fffbeffd700 (LWP 10304)]
[New Thread 0x7fffbffff700 (LWP 10305)]
[New Thread 0x7fffbf7fe700 (LWP 10306)]
[New Thread 0x7fffbdda3700 (LWP 10307)]
[Detaching after fork from child process 10308]
[New Thread 0x7fffbd5a2700 (LWP 10324)]

(io.elementary.mail:10267): Handy-WARNING **: 17:47:25.890: Failed to load icon: Not Found
[New Thread 0x7fffbcda1700 (LWP 10325)]
[Thread 0x7fffd9318700 (LWP 10303) exited]
[Detaching after fork from child process 10330]
[Detaching after fork from child process 10331]
[Detaching after fork from child process 10335]
[Detaching after fork from child process 10339]
[New Thread 0x7fffd9318700 (LWP 10340)]
[Thread 0x7fffbd5a2700 (LWP 10324) exited]
[New Thread 0x7fffbd5a2700 (LWP 10365)]
[Thread 0x7fffbd5a2700 (LWP 10365) exited]
[New Thread 0x7fffbd5a2700 (LWP 10366)]
[Thread 0x7fffe482e700 (LWP 10300) exited]
[Thread 0x7fffd9318700 (LWP 10340) exited]
[New Thread 0x7fffd9318700 (LWP 10367)]
[New Thread 0x7fffe482e700 (LWP 10369)]

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:39.892: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:39.897: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:47:39.897: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): GLib-GObject-CRITICAL **: 17:47:40.109: g_object_get: assertion 'G_IS_OBJECT (object)' failed
[New Thread 0x7fff9efff700 (LWP 10370)]
[New Thread 0x7fff9e7fe700 (LWP 10371)]
[Thread 0x7fff9e7fe700 (LWP 10371) exited]
[Thread 0x7fffbd5a2700 (LWP 10366) exited]
[Thread 0x7fff9efff700 (LWP 10370) exited]
[Thread 0x7fffd9318700 (LWP 10367) exited]
[Thread 0x7fffe482e700 (LWP 10369) exited]
[New Thread 0x7fffe482e700 (LWP 10372)]
[New Thread 0x7fffd9318700 (LWP 10373)]
[Thread 0x7fffd9318700 (LWP 10373) exited]
[New Thread 0x7fffd9318700 (LWP 10374)]
[New Thread 0x7fff9efff700 (LWP 10375)]
[New Thread 0x7fffbd5a2700 (LWP 10376)]
[Thread 0x7fffe482e700 (LWP 10372) exited]

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:16.950: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:16.954: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:16.954: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffd9b19700 (LWP 10286) exited]
[New Thread 0x7fffd9b19700 (LWP 10377)]
[Thread 0x7fffd9b19700 (LWP 10377) exited]
[Thread 0x7fffbd5a2700 (LWP 10376) exited]
[New Thread 0x7fffbd5a2700 (LWP 10378)]
[New Thread 0x7fffd9b19700 (LWP 10381)]

(io.elementary.mail:10267): Handy-WARNING **: 17:48:22.648: Failed to load icon: Not Found
[New Thread 0x7fffe482e700 (LWP 10382)]

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:23.412: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:23.417: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:23.417: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffe482e700 (LWP 10382) exited]
[Detaching after fork from child process 10383]
[New Thread 0x7fffe482e700 (LWP 10384)]
[Thread 0x7fff9efff700 (LWP 10375) exited]

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:28.256: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:10267): camel-CRITICAL **: 17:48:28.256: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00005555555891a0 in ?? ()
(gdb) backtrace
#0  0x00005555555891a0 in  ()
#1  0x00005555555891e5 in  ()
#2  0x00005555555891e5 in  ()
#3  0x000055555558b36a in  ()
#4  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x000055555558e734 in mail_conversation_list_store_add ()
#9  0x000055555558a76b in  ()
#10 0x000055555558b8b7 in  ()
#11 0x00007ffff7e3f802 in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff7e53814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007ffff7e5ebbe in g_signal_emit_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007ffff7e5f0f3 in g_signal_emit () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff706b90d in  () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#16 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#20 0x0000555555571c35 in main ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 10267] will be killed.

Quit anyway? (y or n) y

If you can think on any ideas on how to increase the chance of repro in the VM let me know and I will try it.
I don't want to mess with my laptop (host) installation.

Thanks.

PS: just to punish myself I opened Mail in the host (my laptop) and the app is crashing in a matter of seconds. I hate this scenarios!

@casasfernando
Copy link

casasfernando commented Aug 22, 2021

After a few more attempts I was able to repro the problem inside the VM. Is not as easy as on the host tough. Also having a second look at the backtrace above, it seems the reason was the same.
I will compile now master, repro to confirm the issue, and then compile fix-crash and try to repro again to confirm the fix.

@casasfernando
Copy link

casasfernando commented Aug 22, 2021

I finished testing both, master and fix-crash.

master crashed as expected and it didn't take long to do so.

fix-crash also crashed. Please find below the gdb backtrace:

[New Thread 0x7fff61da3700 (LWP 8545)]
[Thread 0x7fff61da3700 (LWP 8545) exited]
[New Thread 0x7fff61da3700 (LWP 8546)]
[Thread 0x7fff61da3700 (LWP 8546) exited]
[New Thread 0x7fff61da3700 (LWP 8547)]
[Thread 0x7fff61da3700 (LWP 8547) exited]
[New Thread 0x7fff61da3700 (LWP 8548)]
[Thread 0x7fff61da3700 (LWP 8548) exited]
[New Thread 0x7fff61da3700 (LWP 8549)]
[Thread 0x7fff61da3700 (LWP 8549) exited]
[Detaching after fork from child process 8550]
[New Thread 0x7fff61da3700 (LWP 8551)]
[Thread 0x7fffbd7fa700 (LWP 8541) exited]
[New Thread 0x7fffbd7fa700 (LWP 8568)]
[New Thread 0x7fffda3ff700 (LWP 8570)]

(io.elementary.mail:5273): Handy-WARNING **: 19:05:54.430: Failed to load icon: Not Found
[Thread 0x7fff61da3700 (LWP 8551) exited]
[Thread 0x7fffbd7fa700 (LWP 8568) exited]

** (io.elementary.mail:5273): WARNING **: 19:06:02.007: MessageListItem.vala:435: Could not get message. Operation was cancelled

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:02.007: camel_medium_get_content: assertion 'CAMEL_IS_MEDIUM (medium)' failed

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:02.568: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:02.572: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:02.572: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:03.801: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:03.805: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:5273): camel-CRITICAL **: 19:06:03.805: MailBackendSimpleSasl has an empty CamelServiceAuthType
[New Thread 0x7fffbd7fa700 (LWP 8579)]
[Thread 0x7fffbe7fc700 (LWP 8544) exited]
[New Thread 0x7fffbe7fc700 (LWP 8583)]
[Thread 0x7fffda3ff700 (LWP 8570) exited]
[New Thread 0x7fffda3ff700 (LWP 8584)]
[Thread 0x7fffbe7fc700 (LWP 8583) exited]
[New Thread 0x7fffbe7fc700 (LWP 8585)]
[Thread 0x7fffda3ff700 (LWP 8584) exited]
[New Thread 0x7fffda3ff700 (LWP 8586)]
[Thread 0x7fffbe7fc700 (LWP 8585) exited]
[New Thread 0x7fffbe7fc700 (LWP 8587)]
[Thread 0x7fffbe7fc700 (LWP 8587) exited]
[New Thread 0x7fffbe7fc700 (LWP 8588)]
[New Thread 0x7fff61da3700 (LWP 8591)]

(io.elementary.mail:5273): Handy-WARNING **: 19:06:31.505: Failed to load icon: Not Found
[Thread 0x7fffbe7fc700 (LWP 8588) exited]
[Detaching after fork from child process 8592]
[New Thread 0x7fffbe7fc700 (LWP 8593)]
[Thread 0x7fffda3ff700 (LWP 8586) exited]
[New Thread 0x7fffda3ff700 (LWP 8610)]
[Thread 0x7fffbe7fc700 (LWP 8593) exited]
[Thread 0x7fffda3ff700 (LWP 8610) exited]
[New Thread 0x7fffda3ff700 (LWP 8611)]
[Thread 0x7fffbd7fa700 (LWP 8579) exited]
[Thread 0x7fffda3ff700 (LWP 8611) exited]
[New Thread 0x7fffda3ff700 (LWP 8612)]
[New Thread 0x7fffbd7fa700 (LWP 8613)]
[New Thread 0x7fffbe7fc700 (LWP 8615)]

(io.elementary.mail:5273): Handy-WARNING **: 19:06:52.183: Failed to load icon: Not Found
[Thread 0x7fffda3ff700 (LWP 8612) exited]
[Detaching after fork from child process 8616]
[New Thread 0x7fffda3ff700 (LWP 8618)]
[Thread 0x7fffbe7fc700 (LWP 8615) exited]
[New Thread 0x7fffbe7fc700 (LWP 8634)]
[Detaching after fork from child process 8635]
[New Thread 0x7fffd9326700 (LWP 8638)]
[Thread 0x7fffd9326700 (LWP 8638) exited]
[Thread 0x7fff61da3700 (LWP 8591) exited]
[New Thread 0x7fff61da3700 (LWP 8651)]
[New Thread 0x7fffd9326700 (LWP 8652)]

(io.elementary.mail:5273): Handy-WARNING **: 19:07:17.711: Failed to load icon: Not Found
[Thread 0x7fffda3ff700 (LWP 8618) exited]
[Detaching after fork from child process 8653]
[New Thread 0x7fffda3ff700 (LWP 8654)]
[Thread 0x7fffd9326700 (LWP 8652) exited]
[Detaching after fork from child process 8672]
[New Thread 0x7fffd9326700 (LWP 8674)]
[New Thread 0x7fff62ffd700 (LWP 8676)]
[Thread 0x7fffd9326700 (LWP 8674) exited]
[Thread 0x7fff62ffd700 (LWP 8676) exited]
[Detaching after fork from child process 8689]
[New Thread 0x7fff62ffd700 (LWP 8691)]
[New Thread 0x7fffd9326700 (LWP 8693)]
[Thread 0x7fff62ffd700 (LWP 8691) exited]
[Thread 0x7fffd9326700 (LWP 8693) exited]
[New Thread 0x7fffd9326700 (LWP 8706)]

(io.elementary.mail:5273): Handy-WARNING **: 19:07:41.657: Failed to load icon: Not Found
[Thread 0x7fffda3ff700 (LWP 8654) exited]
[Detaching after fork from child process 8707]
[New Thread 0x7fffda3ff700 (LWP 8708)]
[Thread 0x7fffd9326700 (LWP 8706) exited]

(io.elementary.mail:5273): camel-CRITICAL **: 19:07:47.561: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:5273): camel-CRITICAL **: 19:07:47.562: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:5273): camel-CRITICAL **: 19:07:47.562: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:5273): camel-CRITICAL **: 19:07:47.562: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) backtrace
#0  0x00007ffff7084434 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x000055555559efe7 in mail_conversation_item_model_get_newest_timestamp (node=0x5555577521f0, highest=1446637776)
    at ../src/ConversationList/ConversationItemModel.vala:186
#2  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556346350, highest=1446637776)
    at ../src/ConversationList/ConversationItemModel.vala:191
#3  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556172450, highest=1446637776)
    at ../src/ConversationList/ConversationItemModel.vala:191
#4  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556434e00, highest=-1)
    at ../src/ConversationList/ConversationItemModel.vala:191
#5  0x00005555555a04e6 in mail_conversation_item_model_get_timestamp (self=0x55555613a690) at ../src/ConversationList/ConversationItemModel.vala:156
#6  0x00005555555a4096 in mail_conversation_list_box_thread_sort_function (item1=0x55555613a690, item2=0x55555758fe90)
    at ../src/ConversationList/ConversationListBox.vala:267
#7  0x00005555555a6374 in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x55555613a690, b=0x55555758fe90, self=0x0)
    at ConversationListBox.c:3294
#8  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00005555555a9648 in mail_conversation_list_store_add (self=0x5555559aa950, data=0x55555758fe90)
    at ../src/ConversationList/ConversationListStore.vala:88
#13 0x00005555555a3fc9 in mail_conversation_list_box_add_conversation_item
    (self=0x5555559d0220, child=0x7fffffffd520, service_uid=0x555555e34330 "7030fea84da1320f4d7e7d3948add7de79ce8204")
    at ../src/ConversationList/ConversationListBox.vala:263
#14 0x00005555555a3316 in mail_conversation_list_box_folder_changed
    (self=0x5555559d0220, change_info=0x555556164750, service_uid=0x555555e34330 "7030fea84da1320f4d7e7d3948add7de79ce8204", cancellable=0x5555574ad260)
    at ../src/ConversationList/ConversationListBox.vala:213
#15 0x00005555555a12e4 in _____________lambda21_ (_data13_=0x7fffc404d4c0, change_info=0x555556164750)
    at ../src/ConversationList/ConversationListBox.vala:147
--Type <RET> for more, q to quit, c to continue without paging--
#16 0x00005555555a1311 in ______________lambda21__camel_folder_changed (_sender=0x555555891720, changes=0x555556164750, self=0x7fffc404d4c0)
    at ../src/ConversationList/ConversationListBox.vala:147
#17 0x00007ffff7e3f802 in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff7e53814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff7e5ebbe in g_signal_emit_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#20 0x00007ffff7e5f0f3 in g_signal_emit () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff706b90d in  () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#22 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#26 0x0000555555573146 in _vala_main (args=0x7fffffffdd58, args_length1=1) at ../src/Application.vala:125
#27 0x000055555557318d in main (argc=1, argv=0x7fffffffdd58) at ../src/Application.vala:123
(gdb) 
(gdb) quit
A debugging session is active.

	Inferior 1 [process 5273] will be killed.

Quit anyway? (y or n) y

Thanks.

EDIT: after a cold boot of the VM and trying to run Mail from the fix-crash branch again it also crashed almost intermediately. So for some reason, the application will crash faster on the first runs....no idea why. Backtrace below:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 build/src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 1600)]
[New Thread 0x7fffec8cf700 (LWP 1601)]
[New Thread 0x7fffe7fff700 (LWP 1602)]
[New Thread 0x7fffe482c700 (LWP 1603)]
[New Thread 0x7fffdbfff700 (LWP 1604)]
[Detaching after vfork from child process 1605]
[New Thread 0x7fffdab29700 (LWP 1610)]
[New Thread 0x7fffda328700 (LWP 1611)]
[New Thread 0x7fffd9b27700 (LWP 1612)]
[New Thread 0x7fffd9326700 (LWP 1613)]
[New Thread 0x7fffd8b25700 (LWP 1614)]
[New Thread 0x7fffbffff700 (LWP 1615)]
[New Thread 0x7fffbf7fe700 (LWP 1616)]
[New Thread 0x7fffbeffd700 (LWP 1617)]
[New Thread 0x7fffbe7fc700 (LWP 1618)]
[New Thread 0x7fffbdffb700 (LWP 1620)]

(io.elementary.mail:1596): camel-CRITICAL **: 19:48:20.607: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1596): camel-CRITICAL **: 19:48:20.607: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1596): camel-CRITICAL **: 19:48:20.756: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1596): camel-CRITICAL **: 19:48:20.758: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1596): camel-CRITICAL **: 19:48:20.758: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbdffb700 (LWP 1620) exited]
[Thread 0x7fffdab29700 (LWP 1610) exited]
[Thread 0x7fffbffff700 (LWP 1615) exited]

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) backtrace
#0  0x00007ffff7084434 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x000055555559efe7 in mail_conversation_item_model_get_newest_timestamp (node=0x555556541e80, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:186
#2  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556572190, highest=-1) at ../src/ConversationList/ConversationItemModel.vala:191
#3  0x00005555555a04e6 in mail_conversation_item_model_get_timestamp (self=0x5555565eda90) at ../src/ConversationList/ConversationItemModel.vala:156
#4  0x00005555555a4096 in mail_conversation_list_box_thread_sort_function (item1=0x5555565eda90, item2=0x7fffa4003650) at ../src/ConversationList/ConversationListBox.vala:267
#5  0x00005555555a6374 in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x5555565eda90, b=0x7fffa4003650, self=0x0) at ConversationListBox.c:3294
#6  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00005555555a9648 in mail_conversation_list_store_add (self=0x5555559aa950, data=0x7fffa4003650) at ../src/ConversationList/ConversationListStore.vala:88
#11 0x00005555555a3fc9 in mail_conversation_list_box_add_conversation_item (self=0x5555559d0220, child=0x7fffffffd510, service_uid=0x555555e71070 "7030fea84da1320f4d7e7d3948add7de79ce8204")
    at ../src/ConversationList/ConversationListBox.vala:263
#12 0x00005555555a3316 in mail_conversation_list_box_folder_changed (self=0x5555559d0220, change_info=0x55555574c070, service_uid=0x555555e71070 "7030fea84da1320f4d7e7d3948add7de79ce8204", cancellable=0x7fffc0003e60)
    at ../src/ConversationList/ConversationListBox.vala:213
#13 0x00005555555a12e4 in _____________lambda21_ (_data13_=0x5555557980a0, change_info=0x55555574c070) at ../src/ConversationList/ConversationListBox.vala:147
#14 0x00005555555a1311 in ______________lambda21__camel_folder_changed (_sender=0x5555559577e0, changes=0x55555574c070, self=0x5555557980a0) at ../src/ConversationList/ConversationListBox.vala:147
#15 0x00007ffff7e3f802 in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff7e53814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff7e5ebbe in g_signal_emit_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff7e5f0f3 in g_signal_emit () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff706b90d in  () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#20 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#24 0x0000555555573146 in _vala_main (args=0x7fffffffdd48, args_length1=1) at ../src/Application.vala:125
#25 0x000055555557318d in main (argc=1, argv=0x7fffffffdd48) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 1596] will be killed.

Quit anyway? (y or n) y

@marbetschar
Copy link
Member

@casasfernando I updated the fix-crash branch. Can you give it another shot (please make sure you pull the latest changes)?

@casasfernando
Copy link

Still crashing a few seconds after start. :(

Backtrace:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 3233)]
[New Thread 0x7fffec8cf700 (LWP 3234)]
[New Thread 0x7fffe7fff700 (LWP 3238)]
[New Thread 0x7fffe482c700 (LWP 3239)]
[New Thread 0x7fffdbfff700 (LWP 3240)]
[Detaching after vfork from child process 3241]
[New Thread 0x7fffdab29700 (LWP 3246)]
[New Thread 0x7fffda328700 (LWP 3247)]
[New Thread 0x7fffd9b27700 (LWP 3248)]
[New Thread 0x7fffd9326700 (LWP 3249)]
[New Thread 0x7fffd8b25700 (LWP 3250)]
[New Thread 0x7fffbffff700 (LWP 3251)]
[New Thread 0x7fffbf7fe700 (LWP 3252)]
[New Thread 0x7fffbeffd700 (LWP 3253)]
[New Thread 0x7fffbe7fc700 (LWP 3254)]
[New Thread 0x7fffbdffb700 (LWP 3258)]

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:05.895: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:05.896: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:05.970: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:05.973: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:05.973: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbdffb700 (LWP 3258) exited]

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:09.122: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:09.126: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3229): camel-CRITICAL **: 17:14:09.126: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbeffd700 (LWP 3253) exited]
[Thread 0x7fffdab29700 (LWP 3246) exited]
[Thread 0x7fffbe7fc700 (LWP 3254) exited]
[Thread 0x7fffd9b27700 (LWP 3248) exited]
[Thread 0x7fffda328700 (LWP 3247) exited]
[Thread 0x7fffd9326700 (LWP 3249) exited]
[Thread 0x7fffe482c700 (LWP 3239) exited]
[Thread 0x7fffbf7fe700 (LWP 3252) exited]
[New Thread 0x7fffbf7fe700 (LWP 3259)]
[New Thread 0x7fffe482c700 (LWP 3261)]
[New Thread 0x7fffd9326700 (LWP 3262)]
[New Thread 0x7fffda328700 (LWP 3263)]
[Thread 0x7fffda328700 (LWP 3263) exited]
--Type <RET> for more, q to quit, c to continue without paging--c

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) backtrace
#0  0x00007ffff7084434 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x000055555559ef52 in mail_conversation_item_model_get_newest_timestamp (node=0x555556590910, highest=1446124647)
    at ../src/ConversationList/ConversationItemModel.vala:225
#2  0x000055555559f03a in mail_conversation_item_model_get_newest_timestamp (node=0x5555567571a0, highest=-1)
    at ../src/ConversationList/ConversationItemModel.vala:230
#3  0x00005555555a14a0 in mail_conversation_item_model_get_timestamp (self=0x555556755b00) at ../src/ConversationList/ConversationItemModel.vala:193
#4  0x00005555555a5168 in mail_conversation_list_box_thread_sort_function (item1=0x555556755b00, item2=0x7fffa4007430)
    at ../src/ConversationList/ConversationListBox.vala:267
#5  0x00005555555a74a2 in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x555556755b00, b=0x7fffa4007430, self=0x0)
    at ConversationListBox.c:3302
#6  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00005555555aa581 in mail_conversation_list_store_add (self=0x5555559b3610, data=0x7fffa4007430)
    at ../src/ConversationList/ConversationListStore.vala:81
#11 0x00005555555a509b in mail_conversation_list_box_add_conversation_item
    (self=0x5555559d0220, child=0x7fffffffd500, service_uid=0x555555e70380 "7030fea84da1320f4d7e7d3948add7de79ce8204")
    at ../src/ConversationList/ConversationListBox.vala:263
#12 0x00005555555a43e8 in mail_conversation_list_box_folder_changed
    (self=0x5555559d0220, change_info=0x555556a36180, service_uid=0x555555e70380 "7030fea84da1320f4d7e7d3948add7de79ce8204", cancellable=0x7fffc8005e20)
    at ../src/ConversationList/ConversationListBox.vala:213
#13 0x00005555555a23b6 in _____________lambda21_ (_data13_=0x5555557c3680, change_info=0x555556a36180)
    at ../src/ConversationList/ConversationListBox.vala:147
#14 0x00005555555a23e3 in ______________lambda21__camel_folder_changed (_sender=0x5555559587e0, changes=0x555556a36180, self=0x5555557c3680)
    at ../src/ConversationList/ConversationListBox.vala:147
#15 0x00007ffff7e3f802 in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff7e53814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--c
#17 0x00007ffff7e5ebbe in g_signal_emit_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff7e5f0f3 in g_signal_emit () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff706b90d in  () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#20 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#24 0x0000555555573146 in _vala_main (args=0x7fffffffdd38, args_length1=1) at ../src/Application.vala:125
#25 0x000055555557318d in main (argc=1, argv=0x7fffffffdd38) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 3229] will be killed.

Quit anyway? (y or n) y

@marbetschar
Copy link
Member

@casasfernando sad to hear :( sorry, I have to bother you again - can you give it another try with the lastest commit? I'm still not able to reproduce :(

@casasfernando
Copy link

Don’t be. You are doing your best and without a repro it can be hard (been there).
I will pull the change, test and report back.

Thanks!

@casasfernando
Copy link

Tried the latest commit. First run after a cold boot.

Backtrace:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 build/src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 2008)]
[New Thread 0x7fffec8cf700 (LWP 2009)]
[New Thread 0x7fffe7fff700 (LWP 2010)]
[New Thread 0x7fffe482c700 (LWP 2011)]
[New Thread 0x7fffdbfff700 (LWP 2012)]
[Detaching after vfork from child process 2013]
[New Thread 0x7fffdab29700 (LWP 2018)]
[New Thread 0x7fffda328700 (LWP 2019)]
[New Thread 0x7fffd9b27700 (LWP 2020)]
[New Thread 0x7fffd9326700 (LWP 2021)]
[New Thread 0x7fffd8b25700 (LWP 2022)]
[New Thread 0x7fffbffff700 (LWP 2023)]
[New Thread 0x7fffbf7fe700 (LWP 2024)]
[New Thread 0x7fffbeffd700 (LWP 2025)]
[New Thread 0x7fffbe7fc700 (LWP 2026)]
[New Thread 0x7fffbdffb700 (LWP 2030)]
[New Thread 0x7fffbd7fa700 (LWP 2031)]
[New Thread 0x7fffbcff9700 (LWP 2032)]
[Thread 0x7fffbf7fe700 (LWP 2024) exited]

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:19.566: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:19.567: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbdffb700 (LWP 2030) exited]
[Thread 0x7fffbffff700 (LWP 2023) exited]

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:24.059: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:24.063: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:24.063: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:24.107: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:24.110: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:24.111: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbd7fa700 (LWP 2031) exited]
[Thread 0x7fffd9b27700 (LWP 2020) exited]
[Thread 0x7fffe482c700 (LWP 2011) exited]
[Thread 0x7fffbcff9700 (LWP 2032) exited]
[New Thread 0x7fffbcff9700 (LWP 2033)]
[New Thread 0x7fffe482c700 (LWP 2034)]
[Thread 0x7fffe482c700 (LWP 2034) exited]

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.311: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.312: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:2004): camel-CRITICAL **: 23:08:27.312: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e67160 in g_type_check_instance_is_a () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) backtrace
#0  0x00007ffff7e67160 in g_type_check_instance_is_a () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1  0x00007ffff7084442 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#2  0x000055555559efe7 in mail_conversation_item_model_get_newest_timestamp (node=0x555556a8edc0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:186
#3  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555666ed90, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#4  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a82e90, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#5  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556519060, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#6  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555651b8a0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#7  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a64b90, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#8  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a5fb10, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#9  0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a87500, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#10 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a856d0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#11 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a7abc0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#12 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a9d430, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#13 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a74720, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#14 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a70ac0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#15 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555569ebd90, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#16 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555652e730, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#17 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556511890, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#18 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555650dc30, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#19 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a6b030, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#20 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a80650, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#21 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a687f0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
#22 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555565814f0, highest=1218479930)
    at ../src/ConversationList/ConversationItemModel.vala:191
--Type <RET> for more, q to quit, c to continue without paging--c
#23 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a4af40, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#24 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555666bb40, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#25 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a5c8c0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#26 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555569ec7a0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#27 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556519a70, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#28 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a81a70, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#29 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555655e890, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#30 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a4c500, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#31 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556530dd0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#32 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a4c600, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#33 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555655e9d0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#34 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555666c930, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#35 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a81c10, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#36 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a53410, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#37 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556519bd0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#38 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555655f4e0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#39 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555569ecb20, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#40 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555651b1f0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#41 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556796770, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#42 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a5cba0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#43 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a990c0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#44 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555666bea0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#45 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a67690, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#46 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a4b320, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#47 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555565815d0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#48 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555682e0b0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#49 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a4a5f0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#50 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a68ad0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#51 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556748db0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#52 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a80670, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#53 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a6b2b0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#54 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555569ed270, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#55 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a8e430, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#56 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555650dc70, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#57 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556511a90, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#58 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555652e8d0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#59 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555569ebe50, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#60 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555690a630, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#61 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x555556a7b610, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#62 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x5555568a59b0, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#63 0x000055555559f0cf in mail_conversation_item_model_get_newest_timestamp (node=0x55555678cf70, highest=-1) at ../src/ConversationList/ConversationItemModel.vala:191
#64 0x00005555555a04e6 in mail_conversation_item_model_get_timestamp (self=0x5555565ef790) at ../src/ConversationList/ConversationItemModel.vala:156
#65 0x00005555555a45e3 in mail_conversation_list_box_thread_sort_function (item1=0x5555565ef790, item2=0x7fffac002f50) at ../src/ConversationList/ConversationListBox.vala:277
#66 0x00005555555a71a3 in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x5555565ef790, b=0x7fffac002f50, self=0x0) at ConversationListBox.c:3684
#67 0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#70 0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00005555555aa228 in mail_conversation_list_store_add (self=0x5555559b2e10, data=0x7fffac002f50) at ../src/ConversationList/ConversationListStore.vala:81
#72 0x00005555555a437e in mail_conversation_list_box_add_conversation_item (self=0x5555559d0230, child=0x7fffffffd500, service_uid=0x555555e702b0 "7030fea84da1320f4d7e7d3948add7de79ce8204") at ../src/ConversationList/ConversationListBox.vala:271
#73 0x00005555555a357a in mail_conversation_list_box_folder_changed (self=0x5555559d0230, change_info=0x5555569a7360, service_uid=0x555555e702b0 "7030fea84da1320f4d7e7d3948add7de79ce8204", cancellable=0x5555569955a0) at ../src/ConversationList/ConversationListBox.vala:217
#74 0x00005555555a12e4 in _______________lambda21_ (_data13_=0x5555557bed60, change_info=0x5555569a7360) at ../src/ConversationList/ConversationListBox.vala:149
#75 0x00005555555a1311 in ________________lambda21__camel_folder_changed (_sender=0x5555559577e0, changes=0x5555569a7360, self=0x5555557bed60) at ../src/ConversationList/ConversationListBox.vala:149
#76 0x00007ffff7e3f802 in g_closure_invoke () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#77 0x00007ffff7e53814 in  () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#78 0x00007ffff7e5ebbe in g_signal_emit_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#79 0x00007ffff7e5f0f3 in g_signal_emit () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#80 0x00007ffff706b90d in  () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#81 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#82 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#83 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#84 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#85 0x0000555555573146 in _vala_main (args=0x7fffffffdd38, args_length1=1) at ../src/Application.vala:125
#86 0x000055555557318d in main (argc=1, argv=0x7fffffffdd38) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2004] will be killed.

Quit anyway? (y or n) y

Thanks.

@marbetschar
Copy link
Member

@davidmhewitt any tips? I'm running out of ideas here.

@davidmhewitt
Copy link
Member

I also can't reproduce this issue, but if anyone is still willing to test potential fixes to this, please try #663

@casasfernando
Copy link

I will and report back.

Thanks

@casasfernando
Copy link

casasfernando commented Aug 28, 2021

Still crashing. :(

Backtrace:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 build/src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 3538)]
[New Thread 0x7fffec8cf700 (LWP 3539)]
[New Thread 0x7fffe7fff700 (LWP 3540)]
[New Thread 0x7fffe482b700 (LWP 3541)]
[New Thread 0x7fffdbfff700 (LWP 3542)]
[Detaching after vfork from child process 3543]
[New Thread 0x7fffdab29700 (LWP 3548)]
[New Thread 0x7fffda328700 (LWP 3549)]
[New Thread 0x7fffd9b27700 (LWP 3550)]
[New Thread 0x7fffd9326700 (LWP 3551)]
[New Thread 0x7fffd8b25700 (LWP 3552)]
[New Thread 0x7fffbffff700 (LWP 3553)]
[New Thread 0x7fffbf7fe700 (LWP 3554)]
[New Thread 0x7fffbeffd700 (LWP 3555)]
[New Thread 0x7fffbe7fc700 (LWP 3556)]
[New Thread 0x7fffbdffb700 (LWP 3560)]

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:18.885: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:18.916: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:18.916: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:18.921: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:18.921: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbe7fc700 (LWP 3556) exited]
[Thread 0x7fffdab29700 (LWP 3548) exited]
[Thread 0x7fffd8b25700 (LWP 3552) exited]
[Thread 0x7fffbf7fe700 (LWP 3554) exited]

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:22.479: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:22.484: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:22.484: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffe482b700 (LWP 3541) exited]
[Thread 0x7fffbeffd700 (LWP 3555) exited]
[Thread 0x7fffbffff700 (LWP 3553) exited]
[Thread 0x7fffda328700 (LWP 3549) exited]
[Thread 0x7fffd9b27700 (LWP 3550) exited]
[New Thread 0x7fffd9b27700 (LWP 3561)]
[New Thread 0x7fffda328700 (LWP 3562)]
[Thread 0x7fffda328700 (LWP 3562) exited]
[New Thread 0x7fffda328700 (LWP 3563)]
[Thread 0x7fffd9b27700 (LWP 3561) exited]

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:26.326: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:26.330: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:3534): camel-CRITICAL **: 13:05:26.330: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffda328700 (LWP 3563) exited]
[New Thread 0x7fffda328700 (LWP 3564)]
[New Thread 0x7fffd9b27700 (LWP 3565)]
[New Thread 0x7fffbffff700 (LWP 3566)]
[Thread 0x7fffbffff700 (LWP 3566) exited]

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084428 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) backtrace
#0  0x00007ffff7084428 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x00005555555a096a in mail_conversation_item_model_get_newest_timestamp (node=0x5555567b7140, highest=1311063333)
    at ../src/ConversationList/ConversationItemModel.vala:186
#2  0x00005555555a0a52 in mail_conversation_item_model_get_newest_timestamp (node=0x55555670bdf0, highest=-1)
    at ../src/ConversationList/ConversationItemModel.vala:191
#3  0x00005555555a1e69 in mail_conversation_item_model_get_timestamp (self=0x5555566952d0) at ../src/ConversationList/ConversationItemModel.vala:156
#4  0x00005555555a623f in mail_conversation_list_box_thread_sort_function (item1=0x5555566952d0, item2=0x5555569952d0)
    at ../src/ConversationList/ConversationListBox.vala:286
#5  0x00005555555a851d in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x5555566952d0, b=0x5555569952d0, self=0x0)
    at ConversationListBox.c:3592
#6  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00005555555ab5c4 in mail_conversation_list_store_add (self=0x5555559d10d0, data=0x5555569952d0)
    at ../src/ConversationList/ConversationListStore.vala:81
#11 0x00005555555a6172 in mail_conversation_list_box_add_conversation_item
    (self=0x5555559d4220, child=0x5555559495c0, service_uid=0x5555569d0ce0 "7030fea84da1320f4d7e7d3948add7de79ce8204")
    at ../src/ConversationList/ConversationListBox.vala:282
#12 0x00005555555a5347 in mail_conversation_list_box_folder_changed_co (_data_=0x555555949470) at ../src/ConversationList/ConversationListBox.vala:230
#13 0x00005555555a492e in mail_conversation_list_box_folder_changed_ready (source_object=0x0, _res_=0x555555e11620, _user_data_=0x555555949470)
    at ../src/ConversationList/ConversationListBox.vala:196
#14 0x00007ffff72bdf49 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007ffff72bdf8d in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#16 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#20 0x00005555555731e6 in _vala_main (args=0x7fffffffdd38, args_length1=1) at ../src/Application.vala:125
#21 0x000055555557322d in main (argc=1, argv=0x7fffffffdd38) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 3534] will be killed.

Quit anyway? (y or n) y

Just to confirm with you guys, the steps and taking to compile each new version:

rm -fr build
git pull
git checkout <branch>
meson build --prefix=/usr
cd build
ninja
export WEBKIT_EXTENSION_PATH="/home/fernando/Documents/mail/build/webkit-extension"
dbg src/io.elementary.mail

Could this issue be somehow hardware related?
Maybe a bug in libcamel?

If you want me to try any new patches or debug versions, just let me know.

@davidmhewitt
Copy link
Member

And this was a crash on startup?

Could you try the same branch again but instead of backtrace in gdb, do thread apply all backtrace?

@casasfernando
Copy link

Yes. Crash on startup.

I will try again with the gdb commans above and report back.

@casasfernando
Copy link

Please find the backtrace using thread apply all backtrace below:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 build/src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 1601)]
[New Thread 0x7fffec8cf700 (LWP 1602)]
[New Thread 0x7fffe7fff700 (LWP 1603)]
[New Thread 0x7fffe482b700 (LWP 1604)]
[New Thread 0x7fffdbfff700 (LWP 1605)]
[Detaching after vfork from child process 1606]
[New Thread 0x7fffdab29700 (LWP 1611)]
[New Thread 0x7fffda328700 (LWP 1612)]
[New Thread 0x7fffd9b27700 (LWP 1613)]
[New Thread 0x7fffd9326700 (LWP 1614)]
[New Thread 0x7fffd8b25700 (LWP 1615)]
[New Thread 0x7fffbffff700 (LWP 1616)]
[New Thread 0x7fffbf7fe700 (LWP 1617)]
[New Thread 0x7fffbeffd700 (LWP 1618)]
[New Thread 0x7fffbe7fc700 (LWP 1619)]
[New Thread 0x7fffbdffb700 (LWP 1623)]

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:08.007: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:08.007: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:08.094: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:08.097: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:08.097: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbdffb700 (LWP 1623) exited]
[Thread 0x7fffbf7fe700 (LWP 1617) exited]
[Thread 0x7fffbffff700 (LWP 1616) exited]
[Thread 0x7fffd9b27700 (LWP 1613) exited]
[Thread 0x7fffda328700 (LWP 1612) exited]
[Thread 0x7fffbeffd700 (LWP 1618) exited]
[Thread 0x7fffd9326700 (LWP 1614) exited]
[New Thread 0x7fffd9326700 (LWP 1624)]
[Thread 0x7fffdab29700 (LWP 1611) exited]
[Thread 0x7fffbe7fc700 (LWP 1619) exited]
[New Thread 0x7fffbe7fc700 (LWP 1625)]
[Thread 0x7fffe482b700 (LWP 1604) exited]
[New Thread 0x7fffe482b700 (LWP 1626)]
[New Thread 0x7fffdab29700 (LWP 1627)]
[Thread 0x7fffdab29700 (LWP 1627) exited]

(io.elementary.mail:1597): GLib-GObject-CRITICAL **: 14:03:14.079: g_object_get: assertion 'G_IS_OBJECT (object)' failed

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:14.079: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:14.079: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:14.079: camel_message_info_get_date_received: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

(io.elementary.mail:1597): camel-CRITICAL **: 14:03:14.079: camel_message_info_get_date_sent: assertion 'CAMEL_IS_MESSAGE_INFO (mi)' failed

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) thread apply all backtrace

Thread 19 (Thread 0x7fffe482b700 (LWP 1626)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 18 (Thread 0x7fffbe7fc700 (LWP 1625)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7fffd9326700 (LWP 1624)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fffd8b25700 (LWP 1615)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffdbfff700 (LWP 1605)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x7fffd007a5d0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd6f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff6f95fd8 in  () at /lib/x86_64-linux-gnu/libedataserver-1.2.so.24
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
--Type <RET> for more, q to quit, c to continue without paging--c
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fffe7fff700 (LWP 1603)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x5555556274f0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffec08d99d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fffec8cf700 (LWP 1602)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x55555563d290, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd6f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7327f8a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fffed0d0700 (LWP 1601)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x555555631230, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7edd4f1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fffed163180 (LWP 1597)):
#0  0x00007ffff7084434 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x00005555555a096a in mail_conversation_item_model_get_newest_timestamp (node=0x5555569f9220, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:186
#2  0x00005555555a0a52 in mail_conversation_item_model_get_newest_timestamp (node=0x555556548340, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#3  0x00005555555a0a52 in mail_conversation_item_model_get_newest_timestamp (node=0x55555655cc30, highest=1218479930) at ../src/ConversationList/ConversationItemModel.vala:191
#4  0x00005555555a0a52 in mail_conversation_item_model_get_newest_timestamp (node=0x5555565bb260, highest=-1) at ../src/ConversationList/ConversationItemModel.vala:191
#5  0x00005555555a1e69 in mail_conversation_item_model_get_timestamp (self=0x555556607510) at ../src/ConversationList/ConversationItemModel.vala:156
#6  0x00005555555a623f in mail_conversation_list_box_thread_sort_function (item1=0x555556607510, item2=0x555556c51f90) at ../src/ConversationList/ConversationListBox.vala:286
#7  0x00005555555a851d in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x555556607510, b=0x555556c51f90, self=0x0) at ConversationListBox.c:3592
#8  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00005555555ab5c4 in mail_conversation_list_store_add (self=0x5555559d00d0, data=0x555556c51f90) at ../src/ConversationList/ConversationListStore.vala:81
#13 0x00005555555a6172 in mail_conversation_list_box_add_conversation_item (self=0x5555559d2220, child=0x5555559493c0, service_uid=0x555556c99fc0 "7030fea84da1320f4d7e7d3948add7de79ce8204") at ../src/ConversationList/ConversationListBox.vala:282
#14 0x00005555555a5347 in mail_conversation_list_box_folder_changed_co (_data_=0x555555949270) at ../src/ConversationList/ConversationListBox.vala:230
#15 0x00005555555a492e in mail_conversation_list_box_folder_changed_ready (source_object=0x0, _res_=0x5555559e9330, _user_data_=0x555555949270) at ../src/ConversationList/ConversationListBox.vala:196
#16 0x00007ffff72bdf49 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#17 0x00007ffff72bdf8d in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#18 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#22 0x00005555555731e6 in _vala_main (args=0x7fffffffdd48, args_length1=1) at ../src/Application.vala:125
#23 0x000055555557322d in main (argc=1, argv=0x7fffffffdd48) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 1597] will be killed.

Quit anyway? (y or n) y

Hope it helps.
Thanks.

@davidmhewitt
Copy link
Member

Thank you!

I've just pushed another commit to the same branch that should output a bunch of debug messages as "warnings" to the console that might help me track this down. This is proving to be a tricky one!

@casasfernando
Copy link

casasfernando commented Aug 28, 2021

Thanks @davidmhewitt and @marbetschar for your hard work debugging this.
Please find below the trace with the latest commit to @davidmhewitt branch:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 2277)]
[New Thread 0x7fffec8cf700 (LWP 2278)]
[New Thread 0x7fffe7fff700 (LWP 2282)]
[New Thread 0x7fffe482b700 (LWP 2283)]
[New Thread 0x7fffdbfff700 (LWP 2284)]
[Detaching after vfork from child process 2285]
[New Thread 0x7fffdab29700 (LWP 2290)]
[New Thread 0x7fffda328700 (LWP 2291)]
[New Thread 0x7fffd9b14700 (LWP 2292)]
[New Thread 0x7fffd9313700 (LWP 2293)]
[New Thread 0x7fffd8b12700 (LWP 2294)]
[New Thread 0x7fffbffff700 (LWP 2295)]
[New Thread 0x7fffbf7fe700 (LWP 2296)]
[New Thread 0x7fffbeffd700 (LWP 2297)]
[New Thread 0x7fffbe7fc700 (LWP 2298)]
[New Thread 0x7fffbdffb700 (LWP 2302)]

(io.elementary.mail:2273): camel-CRITICAL **: 18:13:57.174: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2273): camel-CRITICAL **: 18:13:57.174: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2273): camel-CRITICAL **: 18:13:57.343: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2273): camel-CRITICAL **: 18:13:57.347: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2273): camel-CRITICAL **: 18:13:57.347: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffdab29700 (LWP 2290) exited]

** (io.elementary.mail:2273): WARNING **: 18:13:59.660: ConversationListBox.vala:115: load_folder

** (io.elementary.mail:2273): WARNING **: 18:13:59.660: ConversationListBox.vala:127: load_folder lock acquired

** (io.elementary.mail:2273): WARNING **: 18:13:59.660: ConversationListBox.vala:202: load_folder lock released
[Thread 0x7fffbffff700 (LWP 2295) exited]
[Thread 0x7fffbe7fc700 (LWP 2298) exited]
[Thread 0x7fffbf7fe700 (LWP 2296) exited]
[Thread 0x7fffbeffd700 (LWP 2297) exited]
[Thread 0x7fffd9b14700 (LWP 2292) exited]
[Thread 0x7fffd8b12700 (LWP 2294) exited]

** (io.elementary.mail:2273): WARNING **: 18:14:00.934: ConversationListBox.vala:115: load_folder

** (io.elementary.mail:2273): WARNING **: 18:14:00.934: ConversationListBox.vala:118: cancelling folder load

** (io.elementary.mail:2273): WARNING **: 18:14:00.935: ConversationListBox.vala:127: load_folder lock acquired

** (io.elementary.mail:2273): WARNING **: 18:14:00.935: ConversationListBox.vala:159: getting folder

** (io.elementary.mail:2273): WARNING **: 18:14:00.960: ConversationListBox.vala:162: adding changed handler

** (io.elementary.mail:2273): WARNING **: 18:14:00.964: ConversationListBox.vala:180: refreshing folder info

(io.elementary.mail:2273): camel-CRITICAL **: 18:14:01.891: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2273): camel-CRITICAL **: 18:14:01.895: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2273): camel-CRITICAL **: 18:14:01.895: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbdffb700 (LWP 2302) exited]
[Thread 0x7fffd9313700 (LWP 2293) exited]
[New Thread 0x7fffbdffb700 (LWP 2303)]
[New Thread 0x7fffd9313700 (LWP 2304)]
[Thread 0x7fffd9313700 (LWP 2304) exited]

** (io.elementary.mail:2273): WARNING **: 18:14:05.347: ConversationListBox.vala:159: getting folder

** (io.elementary.mail:2273): WARNING **: 18:14:05.441: ConversationListBox.vala:162: adding changed handler

** (io.elementary.mail:2273): WARNING **: 18:14:05.677: ConversationListBox.vala:180: refreshing folder info
[Thread 0x7fffbdffb700 (LWP 2303) exited]
[New Thread 0x7fffbdffb700 (LWP 2306)]
[New Thread 0x7fffd9313700 (LWP 2307)]

** (io.elementary.mail:2273): WARNING **: 18:14:09.866: ConversationListBox.vala:202: load_folder lock released
[New Thread 0x7fffd8b12700 (LWP 2308)]
[Thread 0x7fffd8b12700 (LWP 2308) exited]

** (io.elementary.mail:2273): WARNING **: 18:14:09.881: ConversationListBox.vala:206: folder_changed signal

** (io.elementary.mail:2273): WARNING **: 18:14:09.881: ConversationListBox.vala:217: acquired folder_changed lock

** (io.elementary.mail:2273): WARNING **: 18:14:09.921: ConversationListBox.vala:255: adding changed thread

** (io.elementary.mail:2273): WARNING **: 18:14:09.921: ConversationListBox.vala:255: adding changed thread

** (io.elementary.mail:2273): WARNING **: 18:14:09.921: ConversationListBox.vala:255: adding changed thread

** (io.elementary.mail:2273): WARNING **: 18:14:09.929: ConversationListBox.vala:255: adding changed thread

** (io.elementary.mail:2273): WARNING **: 18:14:09.930: ConversationListBox.vala:255: adding changed thread

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084428 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) thread apply all backtrace

Thread 20 (Thread 0x7fffd9313700 (LWP 2307)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x7fffd9312180, nfds=2, timeout=1800000) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff72adc4d in g_socket_condition_timed_wait () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#2  0x00007ffff72aecbf in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#3  0x00007ffff7288735 in g_input_stream_read () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fffd82f3c3c in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#5  0x00007fffd814c71f in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#6  0x00007fffd81429bf in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#7  0x00007fffd81450ae in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#8  0x00007fffd82f5150 in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#9  0x00007fffd82fc3d6 in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#10 0x00007fffd82fd607 in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#11 0x00007ffff7288735 in g_input_stream_read () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#12 0x00007ffff725f4e2 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#13 0x00007ffff725f885 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#14 0x00007ffff7288735 in g_input_stream_read () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007fffdb79d367 in  () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#16 0x00007fffdb79d954 in camel_imapx_input_stream_token () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#17 0x00007fffdb7adab0 in camel_imapx_server_process_command_sync () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#18 0x00007fffdb7b6dba in  () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#19 0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#21 0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7fffbdffb700 (LWP 2306)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fffda328700 (LWP 2291)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffdbfff700 (LWP 2284)):
--Type <RET> for more, q to quit, c to continue without paging--c
#0  0x00007ffff3526aff in __GI___poll (fds=0x7fffd0079fa0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd6f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff6f95fd8 in  () at /lib/x86_64-linux-gnu/libedataserver-1.2.so.24
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fffe482b700 (LWP 2283)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fffe7fff700 (LWP 2282)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x555555627340, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffec08d99d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fffec8cf700 (LWP 2278)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x7fffe000a050, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd6f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7327f8a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fffed0d0700 (LWP 2277)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x555555631230, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7edd4f1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fffed163180 (LWP 2273)):
#0  0x00007ffff7084428 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x00005555555a096a in mail_conversation_item_model_get_newest_timestamp (node=0x55555653dea0, highest=1554476525) at ../src/ConversationList/ConversationItemModel.vala:186
#2  0x00005555555a0a52 in mail_conversation_item_model_get_newest_timestamp (node=0x5555567e8c00, highest=-1) at ../src/ConversationList/ConversationItemModel.vala:191
#3  0x00005555555a1e69 in mail_conversation_item_model_get_timestamp (self=0x5555567e6a10) at ../src/ConversationList/ConversationItemModel.vala:156
#4  0x00005555555a64ce in mail_conversation_list_box_thread_sort_function (item1=0x5555567e6a10, item2=0x55555698fad0) at ../src/ConversationList/ConversationListBox.vala:314
#5  0x00005555555a87ac in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x5555567e6a10, b=0x55555698fad0, self=0x0) at ConversationListBox.c:3643
#6  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00005555555ab89c in mail_conversation_list_store_add (self=0x5555559cf8d0, data=0x55555698fad0) at ../src/ConversationList/ConversationListStore.vala:81
#11 0x00005555555a6401 in mail_conversation_list_box_add_conversation_item (self=0x5555559d2230, child=0x555556996188, service_uid=0x55555698f5f0 "7030fea84da1320f4d7e7d3948add7de79ce8204") at ../src/ConversationList/ConversationListBox.vala:310
#12 0x00005555555a55a8 in mail_conversation_list_box_folder_changed_co (_data_=0x555556996000) at ../src/ConversationList/ConversationListBox.vala:256
#13 0x00005555555a496c in mail_conversation_list_box_folder_changed_ready (source_object=0x0, _res_=0x555555a158f0, _user_data_=0x555556996000) at ../src/ConversationList/ConversationListBox.vala:215
#14 0x00007ffff72bdf49 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007ffff72bdf8d in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#16 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#20 0x00005555555731e6 in _vala_main (args=0x7fffffffdd38, args_length1=1) at ../src/Application.vala:125
#21 0x000055555557322d in main (argc=1, argv=0x7fffffffdd38) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2273] will be killed.

Quit anyway? (y or n) y

Hope it gets us closer to find the issue.

@casasfernando
Copy link

@davidmhewitt please find below a new trace using the latest commits from your branch:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 src/io.elementary.mail...
(gdb) run
Starting program: /home/fernando/Documents/mail/build/src/io.elementary.mail 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed0d0700 (LWP 2292)]
[New Thread 0x7fffec8cf700 (LWP 2293)]
[New Thread 0x7fffe7fff700 (LWP 2295)]
[New Thread 0x7fffe482b700 (LWP 2296)]
[New Thread 0x7fffdbfff700 (LWP 2297)]
[Detaching after vfork from child process 2298]
[New Thread 0x7fffdab29700 (LWP 2303)]
[New Thread 0x7fffda328700 (LWP 2304)]
[New Thread 0x7fffd9b27700 (LWP 2305)]
[New Thread 0x7fffd9326700 (LWP 2306)]
[New Thread 0x7fffd8b25700 (LWP 2307)]
[New Thread 0x7fffbffff700 (LWP 2308)]
[New Thread 0x7fffbf7fe700 (LWP 2309)]
[New Thread 0x7fffbeffd700 (LWP 2310)]
[New Thread 0x7fffbe7fc700 (LWP 2311)]
[New Thread 0x7fffbdffb700 (LWP 2315)]

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:47.740: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:47.740: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:47.885: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:47.889: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:47.889: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbdffb700 (LWP 2315) exited]
[Thread 0x7fffd8b25700 (LWP 2307) exited]
[Thread 0x7fffbffff700 (LWP 2308) exited]

** (io.elementary.mail:2288): WARNING **: 12:41:50.518: ConversationListBox.vala:115: load_folder

** (io.elementary.mail:2288): WARNING **: 12:41:50.518: ConversationListBox.vala:127: load_folder lock acquired

** (io.elementary.mail:2288): WARNING **: 12:41:50.518: ConversationListBox.vala:159: getting folder

** (io.elementary.mail:2288): WARNING **: 12:41:50.560: ConversationListBox.vala:162: adding changed handler

** (io.elementary.mail:2288): WARNING **: 12:41:50.789: ConversationListBox.vala:180: refreshing folder info

** (io.elementary.mail:2288): WARNING **: 12:41:50.803: ConversationListBox.vala:115: load_folder

** (io.elementary.mail:2288): WARNING **: 12:41:50.803: ConversationListBox.vala:118: cancelling folder load

** (io.elementary.mail:2288): WARNING **: 12:41:50.807: ConversationListBox.vala:202: load_folder lock released

** (io.elementary.mail:2288): WARNING **: 12:41:50.808: ConversationListBox.vala:127: load_folder lock acquired

** (io.elementary.mail:2288): WARNING **: 12:41:50.843: ConversationListBox.vala:159: getting folder

** (io.elementary.mail:2288): WARNING **: 12:41:50.861: ConversationListBox.vala:162: adding changed handler

** (io.elementary.mail:2288): WARNING **: 12:41:50.864: ConversationListBox.vala:180: refreshing folder info

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:51.146: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:51.151: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:51.151: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffd9b27700 (LWP 2305) exited]
[Thread 0x7fffdab29700 (LWP 2303) exited]
[Thread 0x7fffd9326700 (LWP 2306) exited]
[Thread 0x7fffbeffd700 (LWP 2310) exited]
[Thread 0x7fffe482b700 (LWP 2296) exited]
[Thread 0x7fffbf7fe700 (LWP 2309) exited]
[New Thread 0x7fffbf7fe700 (LWP 2316)]
[Thread 0x7fffbf7fe700 (LWP 2316) exited]

** (io.elementary.mail:2288): WARNING **: 12:41:55.164: ConversationListBox.vala:159: getting folder

** (io.elementary.mail:2288): WARNING **: 12:41:55.176: ConversationListBox.vala:162: adding changed handler

** (io.elementary.mail:2288): WARNING **: 12:41:55.404: ConversationListBox.vala:180: refreshing folder info
[New Thread 0x7fffbf7fe700 (LWP 2317)]

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:55.849: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:55.854: MailBackendSimpleSasl has an empty CamelServiceAuthType

(io.elementary.mail:2288): camel-CRITICAL **: 12:41:55.854: MailBackendSimpleSasl has an empty CamelServiceAuthType
[Thread 0x7fffbf7fe700 (LWP 2317) exited]
[New Thread 0x7fffbf7fe700 (LWP 2318)]
[New Thread 0x7fffe482b700 (LWP 2319)]

** (io.elementary.mail:2288): WARNING **: 12:42:00.834: ConversationListBox.vala:202: load_folder lock released
[New Thread 0x7fffbeffd700 (LWP 2320)]
[Thread 0x7fffbeffd700 (LWP 2320) exited]

** (io.elementary.mail:2288): WARNING **: 12:42:00.857: ConversationListBox.vala:206: folder_changed signal

** (io.elementary.mail:2288): WARNING **: 12:42:00.858: ConversationListBox.vala:217: acquired folder_changed lock

** (io.elementary.mail:2288): WARNING **: 12:42:00.923: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.923: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.924: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.925: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.927: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.929: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.929: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.929: ConversationListBox.vala:259: adding changed thread

** (io.elementary.mail:2288): WARNING **: 12:42:00.929: ConversationListBox.vala:259: adding changed thread

Thread 1 "io.elementary.m" received signal SIGSEGV, Segmentation fault.
0x00007ffff7084428 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
(gdb) thread apply all backtrace

Thread 20 (Thread 0x7fffe482b700 (LWP 2319)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 19 (Thread 0x7fffbf7fe700 (LWP 2318)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x7fffbf7fd180, nfds=2, timeout=1800000) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff72adc4d in g_socket_condition_timed_wait () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#2  0x00007ffff72aecbf in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#3  0x00007ffff7288735 in g_input_stream_read () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fffd82f3c3c in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#5  0x00007fffd814c71f in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#6  0x00007fffd81429bf in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#7  0x00007fffd81450ae in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#8  0x00007fffd82f5150 in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#9  0x00007fffd82fc3d6 in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#10 0x00007fffd82fd607 in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
#11 0x00007ffff7288735 in g_input_stream_read () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#12 0x00007ffff725f4e2 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#13 0x00007ffff725f885 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#14 0x00007ffff7288735 in g_input_stream_read () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007fffdb79d367 in  () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#16 0x00007fffdb79d954 in camel_imapx_input_stream_token () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#17 0x00007fffdb7adab0 in camel_imapx_server_process_command_sync () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#18 0x00007fffdb7b6dba in  () at /usr/lib/evolution-data-server/camel-providers/libcamelimapx.so
#19 0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#21 0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7fffbe7fc700 (LWP 2311)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fffda328700 (LWP 2304)):
--Type <RET> for more, q to quit, c to continue without paging--c
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff7f2a746 in g_cond_wait_until () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ead581 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7f074ca in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffdbfff700 (LWP 2297)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x7fffd0080e40, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd6f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff6f95fd8 in  () at /lib/x86_64-linux-gnu/libedataserver-1.2.so.24
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fffe7fff700 (LWP 2295)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x555555627440, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffec08d99d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fffec8cf700 (LWP 2293)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x55555563d290, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd6f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7327f8a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fffed0d0700 (LWP 2292)):
#0  0x00007ffff3526aff in __GI___poll (fds=0x555555631230, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff7edd36e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff7edd4f1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff7f06ad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff3384609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ffff3533293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fffed163180 (LWP 2288)):
#0  0x00007ffff7084428 in camel_message_info_get_date_received () at /lib/x86_64-linux-gnu/libcamel-1.2.so.62
#1  0x00005555555a096a in mail_conversation_item_model_get_newest_timestamp (node=0x555556307be0, highest=1554476525) at ../src/ConversationList/ConversationItemModel.vala:186
#2  0x00005555555a0a52 in mail_conversation_item_model_get_newest_timestamp (node=0x555556559c80, highest=-1) at ../src/ConversationList/ConversationItemModel.vala:191
#3  0x00005555555a1e69 in mail_conversation_item_model_get_timestamp (self=0x5555567f2010) at ../src/ConversationList/ConversationItemModel.vala:156
#4  0x00005555555a679e in mail_conversation_list_box_thread_sort_function (item1=0x5555567f2010, item2=0x5555569e91d0) at ../src/ConversationList/ConversationListBox.vala:322
#5  0x00005555555a8a7c in _mail_conversation_list_box_thread_sort_function_gcompare_data_func (a=0x5555567f2010, b=0x5555569e91d0, self=0x0) at ConversationListBox.c:3721
#6  0x00007ffff7ef74fc in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff7ef79df in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff7ef88b4 in g_sequence_insert_sorted_iter () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7ef8998 in g_sequence_insert_sorted () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00005555555abb6c in mail_conversation_list_store_add (self=0x5555559d08d0, data=0x5555569e91d0) at ../src/ConversationList/ConversationListStore.vala:81
#11 0x00005555555a66d1 in mail_conversation_list_box_add_conversation_item (self=0x5555559d2230, child=0x555555c762a0, service_uid=0x555556996e60 "7030fea84da1320f4d7e7d3948add7de79ce8204") at ../src/ConversationList/ConversationListBox.vala:318
#12 0x00005555555a5931 in mail_conversation_list_box_folder_changed_co (_data_=0x555555c76050) at ../src/ConversationList/ConversationListBox.vala:269
#13 0x00005555555a496c in mail_conversation_list_box_folder_changed_ready (source_object=0x0, _res_=0x7fffcc349e10, _user_data_=0x555555c76050) at ../src/ConversationList/ConversationListBox.vala:215
#14 0x00007ffff72bdf49 in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#15 0x00007ffff72bdf8d in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#16 0x00007ffff7edd04e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff7edd400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff7edd4a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff72ebfe5 in g_application_run () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#20 0x00005555555731e6 in _vala_main (args=0x7fffffffdd38, args_length1=1) at ../src/Application.vala:125
#21 0x000055555557322d in main (argc=1, argv=0x7fffffffdd38) at ../src/Application.vala:123
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2288] will be killed.

Quit anyway? (y or n) y

@jfgordon2
Copy link

Just chiming in here that I'm also experiencing the crashing after installed a few hours ago. Although, it seems to happen every time I look at an unread email after just a few seconds (presumably when it is trying to mark it as read). Here if you need any more logs/help.

@marbetschar
Copy link
Member

@jfgordon2 any chance you are able to provide a backtrace using GNU Debugger or core dump? I documented the process for both here (feel free to use whichever seems easier for you - the result at the end is the same backtrace):

This way we can verify if we are dealing with the same root cause (which I assume is the case)

@jfgordon2
Copy link

@marbetschar thank you, and I'm sorry for not reading the directions above to grab that the first time. Here's my backtrace from the crash:

jeff@lappy:~$ sudo coredumpctl debug /usr/bin/io.elementary.mail
           PID: 30518 (io.elementary.m)
           UID: 1000 (jeff)
           GID: 1000 (jeff)
        Signal: 11 (SEGV)
     Timestamp: Mon 2021-08-30 07:57:19 CDT (59s ago)
  Command Line: io.elementary.mail
    Executable: /usr/bin/io.elementary.mail
 Control Group: /user.slice/user-1000.slice/session-c2.scope
          Unit: session-c2.scope
         Slice: user-1000.slice
       Session: c2
     Owner UID: 1000 (jeff)
       Boot ID: 3abc6d0ff68b41dcaf3cf5994c6279b5
    Machine ID: db18d45352d9159da42bccac612bf173
      Hostname: lappy
       Storage: /var/lib/systemd/coredump/core.io\x2eelementary\x2em.1000.3abc6d0ff68b41dcaf3cf5994c6279b5.30518.1630328239000000000000.lz4
       Message: Process 30518 (io.elementary.m) of user 1000 dumped core.
                
                Stack trace of thread 30518:
                #0  0x00007f6758e21434 camel_message_info_get_date_received (libcamel-1.2.so.62 + 0x81434)
                #1  0x00005578963e51b6 n/a (io.elementary.mail + 0x351b6)
                #2  0x00005578963e51e5 n/a (io.elementary.mail + 0x351e5)
                #3  0x00005578963e51e5 n/a (io.elementary.mail + 0x351e5)
                #4  0x00005578963e51e5 n/a (io.elementary.mail + 0x351e5)
                #5  0x00005578963e736a n/a (io.elementary.mail + 0x3736a)
                #6  0x00007f6759c944fc n/a (libglib-2.0.so.0 + 0x6c4fc)
                #7  0x00007f6759c949df n/a (libglib-2.0.so.0 + 0x6c9df)
                #8  0x00007f6759c958b4 g_sequence_insert_sorted_iter (libglib-2.0.so.0 + 0x6d8b4)
                #9  0x00007f6759c95998 g_sequence_insert_sorted (libglib-2.0.so.0 + 0x6d998)
                #10 0x00005578963ea734 mail_conversation_list_store_add (io.elementary.mail + 0x3a734)
                #11 0x00005578963e676b n/a (io.elementary.mail + 0x3676b)
                #12 0x00005578963e78b7 n/a (io.elementary.mail + 0x378b7)
                #13 0x00007f6759bdc802 g_closure_invoke (libgobject-2.0.so.0 + 0x14802)
                #14 0x00007f6759bf0814 n/a (libgobject-2.0.so.0 + 0x28814)
                #15 0x00007f6759bfbbbe g_signal_emit_valist (libgobject-2.0.so.0 + 0x33bbe)
                #16 0x00007f6759bfc0f3 g_signal_emit (libgobject-2.0.so.0 + 0x340f3)
                #17 0x00007f6758e0890d n/a (libcamel-1.2.so.62 + 0x6890d)
                #18 0x00007f6759c7a04e g_main_context_dispatch (libglib-2.0.so.0 + 0x5204e)
                #19 0x00007f6759c7a400 n/a (libglib-2.0.so.0 + 0x52400)
                #20 0x00007f6759c7a4a3 g_main_context_iteration (libglib-2.0.so.0 + 0x524a3)
                #21 0x00007f6759088fe5 g_application_run (libgio-2.0.so.0 + 0xe2fe5)
                #22 0x00005578963cdc35 main (io.elementary.mail + 0x1dc35)
                #23 0x00007f67551d50b3 __libc_start_main (libc.so.6 + 0x270b3)
                #24 0x00005578963cdc7e _start (io.elementary.mail + 0x1dc7e)
                
                Stack trace of thread 30524:
                #0  0x00007f67552c989d syscall (libc.so.6 + 0x11b89d)
                #1  0x00007f6759cc7623 g_cond_wait (libglib-2.0.so.0 + 0x9f623)
                #2  0x00007f674c6fa46b camel_imapx_job_wait_sync (libcamelimapx.so + 0x2c46b)
                #3  0x00007f674c6f1520 camel_imapx_conn_manager_run_job_sync (libcamelimapx.so + 0x23520)
                #4  0x00007f674c6f2047 camel_imapx_conn_manager_sync_changes_sync (libcamelimapx.so + 0x24047)
                #5  0x00007f674c6f5f09 n/a (libcamelimapx.so + 0x27f09)
                #6  0x00007f6758e0e9d4 camel_folder_synchronize_sync (libcamel-1.2.so.62 + 0x6e9d4)
                #7  0x00007f6758e5e3f4 n/a (libcamel-1.2.so.62 + 0xbe3f4)
                #8  0x00007f6759ca4374 n/a (libglib-2.0.so.0 + 0x7c374)
                #9  0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #10 0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #11 0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30520:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a4a3 g_main_context_iteration (libglib-2.0.so.0 + 0x524a3)
                #3  0x00007f6759c7a4f1 n/a (libglib-2.0.so.0 + 0x524f1)
                #4  0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #6  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30548:
                #0  0x00007f675447a234 n/a (libsqlite3.so.0 + 0x49234)
                #1  0x00007f67544cc9e5 n/a (libsqlite3.so.0 + 0x9b9e5)
                #2  0x00007f67544d641a sqlite3_step (libsqlite3.so.0 + 0xa541a)
                #3  0x00007f67544d7265 sqlite3_exec (libsqlite3.so.0 + 0xa6265)
                #4  0x00007f6758deee58 n/a (libcamel-1.2.so.62 + 0x4ee58)
                #5  0x00007f6758df1b4c camel_db_count_message_info (libcamel-1.2.so.62 + 0x51b4c)
                #6  0x00007f6758df1d7f camel_db_count_visible_message_info (libcamel-1.2.so.62 + 0x51d7f)
                #7  0x00007f6758e024be n/a (libcamel-1.2.so.62 + 0x624be)
                #8  0x00007f674c71cf41 n/a (libcamelimapx.so + 0x4ef41)
                #9  0x00007f6758e047c4 camel_folder_summary_header_save (libcamel-1.2.so.62 + 0x647c4)
                #10 0x00007f6758e04bc5 camel_folder_summary_save (libcamel-1.2.so.62 + 0x64bc5)
                #11 0x00007f674c70ce78 camel_imapx_server_refresh_info_sync (libcamelimapx.so + 0x3ee78)
                #12 0x00007f674c6ed321 n/a (libcamelimapx.so + 0x1f321)
                #13 0x00007f674c6fa33a camel_imapx_job_run_sync (libcamelimapx.so + 0x2c33a)
                #14 0x00007f674c6f168f camel_imapx_conn_manager_run_job_sync (libcamelimapx.so + 0x2368f)
                #15 0x00007f674c6f2cf4 camel_imapx_conn_manager_refresh_info_sync (libcamelimapx.so + 0x24cf4)
                #16 0x00007f674c6f600c n/a (libcamelimapx.so + 0x2800c)
                #17 0x00007f6758e0e617 camel_folder_refresh_info_sync (libcamel-1.2.so.62 + 0x6e617)
                #18 0x00007f6758e0e7dc n/a (libcamel-1.2.so.62 + 0x6e7dc)
                #19 0x00007f675905bc62 n/a (libgio-2.0.so.0 + 0xb5c62)
                #20 0x00007f6759ca4374 n/a (libglib-2.0.so.0 + 0x7c374)
                #21 0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #22 0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #23 0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30557:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3  0x00007f6753406a00 _ZN3WTF7RunLoop3runEv (libjavascriptcoregtk-4.0.so.18 + 0x14f5a00)
                #4  0x00007f67533b4b68 _ZN3WTF6Thread10entryPointEPNS0_16NewThreadContextE (libjavascriptcoregtk-4.0.so.18 + 0x14a3b68)
                #5  0x00007f67534089ad n/a (libjavascriptcoregtk-4.0.so.18 + 0x14f79ad)
                #6  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #7  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30555:
                #0  0x00007f6755128376 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0x10376)
                #1  0x00007f6753ac7e30 _ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (libstdc++.so.6 + 0xd0e30)
                #2  0x00007f6753417c1a _ZN7bmalloc9Scavenger13threadRunLoopEv (libjavascriptcoregtk-4.0.so.18 + 0x1506c1a)
                #3  0x00007f6753417eef _ZN7bmalloc9Scavenger16threadEntryPointEPS0_ (libjavascriptcoregtk-4.0.so.18 + 0x1506eef)
                #4  0x00007f6753acdde4 n/a (libstdc++.so.6 + 0xd6de4)
                #5  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #6  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30572:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3  0x00007f6753406a00 _ZN3WTF7RunLoop3runEv (libjavascriptcoregtk-4.0.so.18 + 0x14f5a00)
                #4  0x00007f67533b4b68 _ZN3WTF6Thread10entryPointEPNS0_16NewThreadContextE (libjavascriptcoregtk-4.0.so.18 + 0x14a3b68)
                #5  0x00007f67534089ad n/a (libjavascriptcoregtk-4.0.so.18 + 0x14f79ad)
                #6  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #7  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30628:
                #0  0x00007f67552c989d syscall (libc.so.6 + 0x11b89d)
                #1  0x00007f6759cc7623 g_cond_wait (libglib-2.0.so.0 + 0x9f623)
                #2  0x00007f674c6fa46b camel_imapx_job_wait_sync (libcamelimapx.so + 0x2c46b)
                #3  0x00007f674c6f1108 camel_imapx_conn_manager_run_job_sync (libcamelimapx.so + 0x23108)
                #4  0x00007f674c6f2047 camel_imapx_conn_manager_sync_changes_sync (libcamelimapx.so + 0x24047)
                #5  0x00007f674c6f2c82 camel_imapx_conn_manager_refresh_info_sync (libcamelimapx.so + 0x24c82)
                #6  0x00007f674c6f600c n/a (libcamelimapx.so + 0x2800c)
                #7  0x00007f6758e0e617 camel_folder_refresh_info_sync (libcamel-1.2.so.62 + 0x6e617)
                #8  0x00007f6758e0e7dc n/a (libcamel-1.2.so.62 + 0x6e7dc)
                #9  0x00007f675905bc62 n/a (libgio-2.0.so.0 + 0xb5c62)
                #10 0x00007f6759ca4374 n/a (libglib-2.0.so.0 + 0x7c374)
                #11 0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #12 0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #13 0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30556:
                #0  0x00007f67551287b1 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0x107b1)
                #1  0x00007f67534092af _ZN3WTF15ThreadCondition9timedWaitERNS_5MutexENS_8WallTimeE (libjavascriptcoregtk-4.0.so.18 + 0x14f82af)
                #2  0x00007f67533b048b _ZN3WTF10ParkingLot21parkConditionallyImplEPKvRKNS_12ScopedLambdaIFbvEEERKNS3_IFvvEEERKNS_24TimeWithDynamicClockTypeE (libjavascriptcoregtk-4.0.so.18 + 0x149f48b)
                #3  0x00007f67533b3cca _ZN3WTF5sleepENS_7SecondsE (libjavascriptcoregtk-4.0.so.18 + 0x14a2cca)
                #4  0x00007f6755ffb1c3 n/a (libwebkit2gtk-4.0.so.37 + 0xbde1c3)
                #5  0x00007f6755ffb89f n/a (libwebkit2gtk-4.0.so.37 + 0xbde89f)
                #6  0x00007f67533b4b68 _ZN3WTF6Thread10entryPointEPNS0_16NewThreadContextE (libjavascriptcoregtk-4.0.so.18 + 0x14a3b68)
                #7  0x00007f67534089ad n/a (libjavascriptcoregtk-4.0.so.18 + 0x14f79ad)
                #8  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #9  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30522:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a4a3 g_main_context_iteration (libglib-2.0.so.0 + 0x524a3)
                #3  0x00007f674eec899d n/a (libdconfsettings.so + 0xa99d)
                #4  0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #6  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30612:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f675904ac4d g_socket_condition_timed_wait (libgio-2.0.so.0 + 0xa4c4d)
                #2  0x00007f675904bcbf n/a (libgio-2.0.so.0 + 0xa5cbf)
                #3  0x00007f6759025735 g_input_stream_read (libgio-2.0.so.0 + 0x7f735)
                #4  0x00007f67443a4c3c n/a (libgiognutls.so + 0xcc3c)
                #5  0x00007f67441fd71f n/a (libgnutls.so.30 + 0x3b71f)
                #6  0x00007f67441f39bf n/a (libgnutls.so.30 + 0x319bf)
                #7  0x00007f67441f60ae n/a (libgnutls.so.30 + 0x340ae)
                #8  0x00007f67443a6150 n/a (libgiognutls.so + 0xe150)
                #9  0x00007f67443ad3d6 n/a (libgiognutls.so + 0x153d6)
                #10 0x00007f67443ae607 n/a (libgiognutls.so + 0x16607)
                #11 0x00007f6759025735 g_input_stream_read (libgio-2.0.so.0 + 0x7f735)
                #12 0x00007f6758ffc4e2 n/a (libgio-2.0.so.0 + 0x564e2)
                #13 0x00007f6758ffc885 n/a (libgio-2.0.so.0 + 0x56885)
                #14 0x00007f6759025735 g_input_stream_read (libgio-2.0.so.0 + 0x7f735)
                #15 0x00007f674c6f7367 n/a (libcamelimapx.so + 0x29367)
                #16 0x00007f674c6f7954 camel_imapx_input_stream_token (libcamelimapx.so + 0x29954)
                #17 0x00007f674c707ab0 camel_imapx_server_process_command_sync (libcamelimapx.so + 0x39ab0)
                #18 0x00007f674c709970 camel_imapx_server_ensure_selected_sync (libcamelimapx.so + 0x3b970)
                #19 0x00007f674c70d711 camel_imapx_server_sync_changes_sync (libcamelimapx.so + 0x3f711)
                #20 0x00007f674c6ed4a9 n/a (libcamelimapx.so + 0x1f4a9)
                #21 0x00007f674c6fa22b camel_imapx_job_run_sync (libcamelimapx.so + 0x2c22b)
                #22 0x00007f674c6f168f camel_imapx_conn_manager_run_job_sync (libcamelimapx.so + 0x2368f)
                #23 0x00007f674c6f2047 camel_imapx_conn_manager_sync_changes_sync (libcamelimapx.so + 0x24047)
                #24 0x00007f674c6f5f09 n/a (libcamelimapx.so + 0x27f09)
                #25 0x00007f6758e0e9d4 camel_folder_synchronize_sync (libcamel-1.2.so.62 + 0x6e9d4)
                #26 0x00007f6758e0eeef n/a (libcamel-1.2.so.62 + 0x6eeef)
                #27 0x00007f6758e5e3f4 n/a (libcamel-1.2.so.62 + 0xbe3f4)
                #28 0x00007f6759ca4374 n/a (libglib-2.0.so.0 + 0x7c374)
                #29 0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #30 0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #31 0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30521:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3  0x00007f67590c4f8a n/a (libgio-2.0.so.0 + 0x11ef8a)
                #4  0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #6  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30552:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f675904ac4d g_socket_condition_timed_wait (libgio-2.0.so.0 + 0xa4c4d)
                #2  0x00007f675904bcbf n/a (libgio-2.0.so.0 + 0xa5cbf)
                #3  0x00007f6759025735 g_input_stream_read (libgio-2.0.so.0 + 0x7f735)
                #4  0x00007f67443a4c3c n/a (libgiognutls.so + 0xcc3c)
                #5  0x00007f67441fd71f n/a (libgnutls.so.30 + 0x3b71f)
                #6  0x00007f67441f39bf n/a (libgnutls.so.30 + 0x319bf)
                #7  0x00007f67441f60ae n/a (libgnutls.so.30 + 0x340ae)
                #8  0x00007f67443a6150 n/a (libgiognutls.so + 0xe150)
                #9  0x00007f67443ad3d6 n/a (libgiognutls.so + 0x153d6)
                #10 0x00007f67443ae607 n/a (libgiognutls.so + 0x16607)
                #11 0x00007f6759025735 g_input_stream_read (libgio-2.0.so.0 + 0x7f735)
                #12 0x00007f6758ffc4e2 n/a (libgio-2.0.so.0 + 0x564e2)
                #13 0x00007f6758ffc885 n/a (libgio-2.0.so.0 + 0x56885)
                #14 0x00007f6759025735 g_input_stream_read (libgio-2.0.so.0 + 0x7f735)
                #15 0x00007f674c6f7367 n/a (libcamelimapx.so + 0x29367)
                #16 0x00007f674c6f7954 camel_imapx_input_stream_token (libcamelimapx.so + 0x29954)
                #17 0x00007f674c707ab0 camel_imapx_server_process_command_sync (libcamelimapx.so + 0x39ab0)
                #18 0x00007f674c710dba n/a (libcamelimapx.so + 0x42dba)
                #19 0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #20 0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #21 0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30525:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3  0x00007f6758d32fd8 n/a (libedataserver-1.2.so.24 + 0x70fd8)
                #4  0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #6  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30629:
                #0  0x00007f67552c989d syscall (libc.so.6 + 0x11b89d)
                #1  0x00007f6759cc7746 g_cond_wait_until (libglib-2.0.so.0 + 0x9f746)
                #2  0x00007f6759c4a581 n/a (libglib-2.0.so.0 + 0x22581)
                #3  0x00007f6759ca44ca n/a (libglib-2.0.so.0 + 0x7c4ca)
                #4  0x00007f6759ca3ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #6  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)
                
                Stack trace of thread 30558:
                #0  0x00007f67552c3aff __poll (libc.so.6 + 0x115aff)
                #1  0x00007f6759c7a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2  0x00007f6759c7a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3  0x00007f6753406a00 _ZN3WTF7RunLoop3runEv (libjavascriptcoregtk-4.0.so.18 + 0x14f5a00)
                #4  0x00007f67533b4b68 _ZN3WTF6Thread10entryPointEPNS0_16NewThreadContextE (libjavascriptcoregtk-4.0.so.18 + 0x14a3b68)
                #5  0x00007f67534089ad n/a (libjavascriptcoregtk-4.0.so.18 + 0x14f79ad)
                #6  0x00007f6755121609 start_thread (libpthread.so.0 + 0x9609)
                #7  0x00007f67552d0293 __clone (libc.so.6 + 0x122293)

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 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-linux-gnu".
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 /usr/bin/io.elementary.mail...
(No debugging symbols found in /usr/bin/io.elementary.mail)

warning: core file may not match specified executable file.
[New LWP 30518]
[New LWP 30524]
[New LWP 30520]
[New LWP 30548]
[New LWP 30557]
[New LWP 30555]
[New LWP 30572]
[New LWP 30628]
[New LWP 30556]
[New LWP 30522]
[New LWP 30612]
[New LWP 30521]
[New LWP 30552]
[New LWP 30525]
[New LWP 30629]
[New LWP 30558]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `io.elementary.mail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f6758e21434 in camel_message_info_get_date_received () from /lib/x86_64-linux-gnu/libcamel-1.2.so.62
[Current thread is 1 (Thread 0x7f674ef00180 (LWP 30518))]
(gdb) 
(gdb) 
(gdb) 
(gdb) 
[1]+  Stopped                 sudo coredumpctl debug /usr/bin/io.elementary.mail

@danirabbit
Copy link
Member

Sounds like #664 resolved this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants