Mailspring often core dumps on exit

Description

On exiting mailspring, it often - but not always - core dumps. This is a planned exit - I have right-clicked on the icon in the task bar (Linux) and selected quit. I end up with a core dump file, and a lot of crash info in the system logs. This is messy and best avoided.

To Reproduce…

Steps to reproduce the behavior:

Right click icon, select “Quit mailspring”.

Expected Behavior

Clean exit - no crash dump.

Screenshots

Setup

  • OS and Version: Linux Mint 21.1 Vera based on Ubuntu 22.04
    • Installation Method: deb
  • Mailspring Version: 1.10.8

Additional Context

Log file data

Jun 26 10:43:59 gbz4 systemd-coredump[237504]: [🡕] Process 12291 (main) of user 1000 dumped core.

                                           Found module linux-vdso.so.1 with build-id: b1d5ffb96b12688298c5c920b3b3938463104f41
                                           Found module libgcc_s.so.1 with build-id: 09c4935b79388431a1248f6a98e00d7dc81b8513
                                           Found module libnss_mdns4_minimal.so.2 with build-id: a976800e191c9353f1e93a5b436c126f2d672ffb
                                           Found module libpcre.so.3 with build-id: 3982f316c887e3ad9598015fa5bae8557320476a
                                           Found module ld-linux-x86-64.so.2 with build-id: 61ef896a699bb1c2e4e231642b2e1688b2f1a61e
                                           Found module libc.so.6 with build-id: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d
                                           Found module libm.so.6 with build-id: 27e82301dba6c3f644404d504e1bb1c97894b433
                                           Found module libdl.so.2 with build-id: 952123c3bdce7c3370553717942b4878d1fad797
                                           Found module libsasl2.so.2 with build-id: 4fe2c629045ab0af26ec5d7f8a3d64b9f8cb21b2
                                           Found module libpthread.so.0 with build-id: e62798b68557abb4bc5548aba2640cd5ab948f36
                                           Found module libglib-2.0.so.0 with build-id: c74e800dfd5f72649d673b44292f4a817e45150b
                                           Found module mailsync.bin with build-id: 73c92348e2f899dc740b49a9e28507dab84a0b59
                                           Stack trace of thread 12301:
                                           #0  0x0000000000f523b6 ERR_clear_error (mailsync.bin + 0xb523b6)
                                           #1  0x0000000000ec55a7 ossl_recv (mailsync.bin + 0xac55a7)
                                           #2  0x0000000000ea7aaf Curl_read (mailsync.bin + 0xaa7aaf)
                                           #3  0x0000000000eb0f49 Curl_readwrite (mailsync.bin + 0xab0f49)
                                           #4  0x0000000000ea28c9 multi_runsingle (mailsync.bin + 0xaa28c9)
                                           #5  0x0000000000ea33b4 curl_multi_perform (mailsync.bin + 0xaa33b4)
                                           #6  0x0000000000e8ce6b curl_easy_perform (mailsync.bin + 0xa8ce6b)
                                           #7  0x000000000098243e _ZN14MetadataWorker19fetchDeltasBlockingEv (mailsync.bin + 0x58243e)
                                           #8  0x000000000098163a _ZN14MetadataWorker3runEv (mailsync.bin + 0x58163a)
                                           #9  0x000000000087b9ee _ZZ4mainENKUlvE3_clEv (mailsync.bin + 0x47b9ee)
                                           #10 0x00000000008895f0 _ZNSt12_Bind_simpleIFZ4mainEUlvE3_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4895f0)
                                           #11 0x0000000000889252 _ZNSt12_Bind_simpleIFZ4mainEUlvE3_vEEclEv (mailsync.bin + 0x489252)
                                           #12 0x0000000000888f7c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE3_vEEE6_M_runEv (mailsync.bin + 0x488f7c)
                                           #13 0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #14 0x00007f8ffda6cb43 start_thread (libc.so.6 + 0x94b43)
                                           #15 0x00007f8ffdafea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12298:
                                           #0  0x00007f8ffdabd868 __GI___clock_nanosleep (libc.so.6 + 0xe5868)
                                           #1  0x00007f8ffdac26e7 __GI___nanosleep (libc.so.6 + 0xea6e7)
                                           #2  0x00000000008a020c _ZNSt11this_thread9sleep_forIlSt5ratioILl60ELl1EEEEvRKNSt6chrono8durationIT_T0_EE (mailsync.bin + 0x4a020c)
                                           #3  0x0000000000878bb2 _Z24runCalContactsSyncWorkerv (mailsync.bin + 0x478bb2)
                                           #4  0x000000000087b94b _ZZ4mainENKUlvE2_clEv (mailsync.bin + 0x47b94b)
                                           #5  0x000000000088964e _ZNSt12_Bind_simpleIFZ4mainEUlvE2_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x48964e)
                                           #6  0x0000000000889298 _ZNSt12_Bind_simpleIFZ4mainEUlvE2_vEEclEv (mailsync.bin + 0x489298)
                                           #7  0x0000000000888f9c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE2_vEEE6_M_runEv (mailsync.bin + 0x488f9c)
                                           #8  0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #9  0x00007f8ffda6cb43 start_thread (libc.so.6 + 0x94b43)
                                           #10 0x00007f8ffdafea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12294:
                                           #0  0x00007f8ffda69197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                           #1  0x00007f8ffda6bf1b __pthread_cond_wait_common (libc.so.6 + 0x93f1b)
                                           #2  0x0000000000875cc5 _ZL24__gthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec (mailsync.bin + 0x475cc5)
                                           #3  0x00000000008a82da _ZNSt18condition_variable17__wait_until_implINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x4a82da)
                                           #4  0x000000000089f4bf _ZNSt18condition_variable10wait_untilINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x49f4bf)
                                           #5  0x0000000000877f51 _Z12runFlushLoopv (mailsync.bin + 0x477f51)
                                           #6  0x00000000008ecfa5 _ZNSt12_Bind_simpleIFPFvvEvEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4ecfa5)
                                           #7  0x00000000008ec422 _ZNSt12_Bind_simpleIFPFvvEvEEclEv (mailsync.bin + 0x4ec422)
                                           #8  0x00000000008ebb1e _ZNSt6thread5_ImplISt12_Bind_simpleIFPFvvEvEEE6_M_runEv (mailsync.bin + 0x4ebb1e)
                                           #9  0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #10 0x00007f8ffda6cb43 start_thread (libc.so.6 + 0x94b43)
                                           #11 0x00007f8ffdafea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12291:
                                           #0  0x00007f8ffda6b225 futex_wait (libc.so.6 + 0x93225)
                                           #1  0x00007f8ffda1d495 __run_exit_handlers (libc.so.6 + 0x45495)
                                           #2  0x00007f8ffda1d610 __GI_exit (libc.so.6 + 0x45610)
                                           #3  0x000000000087aa6e _Z21runListenOnMainThreadSt10shared_ptrI7AccountE (mailsync.bin + 0x47aa6e)
                                           #4  0x000000000087d108 main (mailsync.bin + 0x47d108)
                                           #5  0x00007f8ffda01d90 __libc_start_call_main (libc.so.6 + 0x29d90)
                                           #6  0x00007f8ffda01e40 __libc_start_main_impl (libc.so.6 + 0x29e40)
                                           #7  0x0000000000875b29 _start (mailsync.bin + 0x475b29)
                                           
                                           Stack trace of thread 12304:
                                           #0  0x00007f8ffda69197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                           #1  0x00007f8ffda6bf1b __pthread_cond_wait_common (libc.so.6 + 0x93f1b)
                                           #2  0x0000000000875cc5 _ZL24__gthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec (mailsync.bin + 0x475cc5)
                                           #3  0x00000000008a82da _ZNSt18condition_variable17__wait_until_implINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x4a82da)
                                           #4  0x000000000089f4bf _ZNSt18condition_variable10wait_untilINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x49f4bf)
                                           #5  0x000000000097bc19 _ZN24MetadataExpirationWorker3runEv (mailsync.bin + 0x57bc19)
                                           #6  0x000000000087ba9b _ZZ4mainENKUlvE4_clEv (mailsync.bin + 0x47ba9b)
                                           #7  0x0000000000889592 _ZNSt12_Bind_simpleIFZ4mainEUlvE4_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x489592)
                                           #8  0x000000000088920c _ZNSt12_Bind_simpleIFZ4mainEUlvE4_vEEclEv (mailsync.bin + 0x48920c)
                                           #9  0x0000000000888f5c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE4_vEEE6_M_runEv (mailsync.bin + 0x488f5c)
                                           #10 0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #11 0x00007f8ffda6cb43 start_thread (libc.so.6 + 0x94b43)
                                           #12 0x00007f8ffdafea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12295:
                                           #0  0x00007f8ffda69197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                           #1  0x00007f8ffda6bf1b __pthread_cond_wait_common (libc.so.6 + 0x93f1b)
                                           #2  0x0000000000875cc5 _ZL24__gthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec (mailsync.bin + 0x475cc5)
                                           #3  0x00000000008a82da _ZNSt18condition_variable17__wait_until_implINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x4a82da)
                                           #4  0x000000000089f4bf _ZNSt18condition_variable10wait_untilINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x49f4bf)
                                           #5  0x000000000096b0f5 _ZN9MailUtils25sleepWorkerUntilWakeOrSecEi (mailsync.bin + 0x56b0f5)
                                           #6  0x0000000000878878 _Z23runBackgroundSyncWorkerv (mailsync.bin + 0x478878)
                                           #7  0x000000000087b85f _ZZ4mainENKUlvE1_clEv (mailsync.bin + 0x47b85f)
                                           #8  0x00000000008896ac _ZNSt12_Bind_simpleIFZ4mainEUlvE1_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4896ac)
                                           #9  0x00000000008892de _ZNSt12_Bind_simpleIFZ4mainEUlvE1_vEEclEv (mailsync.bin + 0x4892de)
                                           #10 0x0000000000888fbc _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE1_vEEE6_M_runEv (mailsync.bin + 0x488fbc)
                                           #11 0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #12 0x00007f8ffda6cb43 start_thread (libc.so.6 + 0x94b43)
                                           #13 0x00007f8ffdafea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12408:
                                           #0  0x00007f8ffdaf37ed __GI___select (libc.so.6 + 0x11b7ed)
                                           #1  0x0000000000b79802 mailstream_low_wait_idle (mailsync.bin + 0x779802)
                                           #2  0x0000000000b51bbd _ZN8mailcore11IMAPSession4idleEPNS_6StringEjPNS_9ErrorCodeE (mailsync.bin + 0x751bbd)
                                           #3  0x00000000009f39cc _ZN10SyncWorker18idleCycleIterationEv (mailsync.bin + 0x5f39cc)
                                           #4  0x0000000000878327 _Z23runForegroundSyncWorkerv (mailsync.bin + 0x478327)
                                           #5  0x0000000000878627 _ZZ23runBackgroundSyncWorkervENKUlvE_clEv (mailsync.bin + 0x478627)
                                           #6  0x00000000008897c6 _ZNSt12_Bind_simpleIFZ23runBackgroundSyncWorkervEUlvE_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4897c6)
                                           #7  0x00000000008893b0 _ZNSt12_Bind_simpleIFZ23runBackgroundSyncWorkervEUlvE_vEEclEv (mailsync.bin + 0x4893b0)
                                           #8  0x000000000088901c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ23runBackgroundSyncWorkervEUlvE_vEEE6_M_runEv (mailsync.bin + 0x48901c)
                                           #9  0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #10 0x00007f8ffda6cb43 start_thread (libc.so.6 + 0x94b43)
                                           #11 0x00007f8ffdafea00 __clone3 (libc.so.6 + 0x126a00)

Jun 26 10:43:59 gbz4 systemd[1]: systemd-coredump@0-237503-0.service: Deactivated successfully.
Jun 26 10:43:59 gbz4 systemd-coredump[237506]: [🡕] Process 12284 (main) of user 1000 dumped core.

                                           Found module linux-vdso.so.1 with build-id: b1d5ffb96b12688298c5c920b3b3938463104f41
                                           Found module libgcc_s.so.1 with build-id: 09c4935b79388431a1248f6a98e00d7dc81b8513
                                           Found module ISO8859-1.so with build-id: 624b8e346ad17f7d6cc4e27f06e6be99d7960d66
                                           Found module libnss_mdns4_minimal.so.2 with build-id: a976800e191c9353f1e93a5b436c126f2d672ffb
                                           Found module libpcre.so.3 with build-id: 3982f316c887e3ad9598015fa5bae8557320476a
                                           Found module ld-linux-x86-64.so.2 with build-id: 61ef896a699bb1c2e4e231642b2e1688b2f1a61e
                                           Found module libc.so.6 with build-id: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d
                                           Found module libm.so.6 with build-id: 27e82301dba6c3f644404d504e1bb1c97894b433
                                           Found module libdl.so.2 with build-id: 952123c3bdce7c3370553717942b4878d1fad797
                                           Found module libsasl2.so.2 with build-id: 4fe2c629045ab0af26ec5d7f8a3d64b9f8cb21b2
                                           Found module libpthread.so.0 with build-id: e62798b68557abb4bc5548aba2640cd5ab948f36
                                           Found module libglib-2.0.so.0 with build-id: c74e800dfd5f72649d673b44292f4a817e45150b
                                           Found module mailsync.bin with build-id: 73c92348e2f899dc740b49a9e28507dab84a0b59
                                           Stack trace of thread 12305:
                                           #0  0x0000000000f523b6 ERR_clear_error (mailsync.bin + 0xb523b6)
                                           #1  0x0000000000ec55a7 ossl_recv (mailsync.bin + 0xac55a7)
                                           #2  0x0000000000ea7aaf Curl_read (mailsync.bin + 0xaa7aaf)
                                           #3  0x0000000000eb0f49 Curl_readwrite (mailsync.bin + 0xab0f49)
                                           #4  0x0000000000ea28c9 multi_runsingle (mailsync.bin + 0xaa28c9)
                                           #5  0x0000000000ea33b4 curl_multi_perform (mailsync.bin + 0xaa33b4)
                                           #6  0x0000000000e8ce6b curl_easy_perform (mailsync.bin + 0xa8ce6b)
                                           #7  0x000000000098243e _ZN14MetadataWorker19fetchDeltasBlockingEv (mailsync.bin + 0x58243e)
                                           #8  0x000000000098163a _ZN14MetadataWorker3runEv (mailsync.bin + 0x58163a)
                                           #9  0x000000000087b9ee _ZZ4mainENKUlvE3_clEv (mailsync.bin + 0x47b9ee)
                                           #10 0x00000000008895f0 _ZNSt12_Bind_simpleIFZ4mainEUlvE3_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4895f0)
                                           #11 0x0000000000889252 _ZNSt12_Bind_simpleIFZ4mainEUlvE3_vEEclEv (mailsync.bin + 0x489252)
                                           #12 0x0000000000888f7c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE3_vEEE6_M_runEv (mailsync.bin + 0x488f7c)
                                           #13 0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #14 0x00007f763c66cb43 start_thread (libc.so.6 + 0x94b43)
                                           #15 0x00007f763c6fea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12292:
                                           #0  0x00007f763c669197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                           #1  0x00007f763c66bf1b __pthread_cond_wait_common (libc.so.6 + 0x93f1b)
                                           #2  0x0000000000875cc5 _ZL24__gthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec (mailsync.bin + 0x475cc5)
                                           #3  0x00000000008a82da _ZNSt18condition_variable17__wait_until_implINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x4a82da)
                                           #4  0x000000000089f4bf _ZNSt18condition_variable10wait_untilINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x49f4bf)
                                           #5  0x0000000000877f51 _Z12runFlushLoopv (mailsync.bin + 0x477f51)
                                           #6  0x00000000008ecfa5 _ZNSt12_Bind_simpleIFPFvvEvEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4ecfa5)
                                           #7  0x00000000008ec422 _ZNSt12_Bind_simpleIFPFvvEvEEclEv (mailsync.bin + 0x4ec422)
                                           #8  0x00000000008ebb1e _ZNSt6thread5_ImplISt12_Bind_simpleIFPFvvEvEEE6_M_runEv (mailsync.bin + 0x4ebb1e)
                                           #9  0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #10 0x00007f763c66cb43 start_thread (libc.so.6 + 0x94b43)
                                           #11 0x00007f763c6fea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12297:
                                           #0  0x00007f763c669197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                           #1  0x00007f763c66bf1b __pthread_cond_wait_common (libc.so.6 + 0x93f1b)
                                           #2  0x0000000000875cc5 _ZL24__gthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec (mailsync.bin + 0x475cc5)
                                           #3  0x00000000008a82da _ZNSt18condition_variable17__wait_until_implINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x4a82da)
                                           #4  0x000000000089f4bf _ZNSt18condition_variable10wait_untilINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x49f4bf)
                                           #5  0x000000000096b0f5 _ZN9MailUtils25sleepWorkerUntilWakeOrSecEi (mailsync.bin + 0x56b0f5)
                                           #6  0x0000000000878878 _Z23runBackgroundSyncWorkerv (mailsync.bin + 0x478878)
                                           #7  0x000000000087b85f _ZZ4mainENKUlvE1_clEv (mailsync.bin + 0x47b85f)
                                           #8  0x00000000008896ac _ZNSt12_Bind_simpleIFZ4mainEUlvE1_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4896ac)
                                           #9  0x00000000008892de _ZNSt12_Bind_simpleIFZ4mainEUlvE1_vEEclEv (mailsync.bin + 0x4892de)
                                           #10 0x0000000000888fbc _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE1_vEEE6_M_runEv (mailsync.bin + 0x488fbc)
                                           #11 0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #12 0x00007f763c66cb43 start_thread (libc.so.6 + 0x94b43)
                                           #13 0x00007f763c6fea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12300:
                                           #0  0x00007f763c6bd868 __GI___clock_nanosleep (libc.so.6 + 0xe5868)
                                           #1  0x00007f763c6c26e7 __GI___nanosleep (libc.so.6 + 0xea6e7)
                                           #2  0x00000000008a020c _ZNSt11this_thread9sleep_forIlSt5ratioILl60ELl1EEEEvRKNSt6chrono8durationIT_T0_EE (mailsync.bin + 0x4a020c)
                                           #3  0x0000000000878bb2 _Z24runCalContactsSyncWorkerv (mailsync.bin + 0x478bb2)
                                           #4  0x000000000087b94b _ZZ4mainENKUlvE2_clEv (mailsync.bin + 0x47b94b)
                                           #5  0x000000000088964e _ZNSt12_Bind_simpleIFZ4mainEUlvE2_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x48964e)
                                           #6  0x0000000000889298 _ZNSt12_Bind_simpleIFZ4mainEUlvE2_vEEclEv (mailsync.bin + 0x489298)
                                           #7  0x0000000000888f9c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE2_vEEE6_M_runEv (mailsync.bin + 0x488f9c)
                                           #8  0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #9  0x00007f763c66cb43 start_thread (libc.so.6 + 0x94b43)
                                           #10 0x00007f763c6fea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12306:
                                           #0  0x00007f763c669197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                                           #1  0x00007f763c66bf1b __pthread_cond_wait_common (libc.so.6 + 0x93f1b)
                                           #2  0x0000000000875cc5 _ZL24__gthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec (mailsync.bin + 0x475cc5)
                                           #3  0x00000000008a82da _ZNSt18condition_variable17__wait_until_implINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x4a82da)
                                           #4  0x000000000089f4bf _ZNSt18condition_variable10wait_untilINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEEESt9cv_statusRSt11unique_lockISt5mutexERKNS1_10time_pointINS1_3_V212system_clockET_EE (mailsync.bin + 0x49f4bf)
                                           #5  0x000000000097bc19 _ZN24MetadataExpirationWorker3runEv (mailsync.bin + 0x57bc19)
                                           #6  0x000000000087ba9b _ZZ4mainENKUlvE4_clEv (mailsync.bin + 0x47ba9b)
                                           #7  0x0000000000889592 _ZNSt12_Bind_simpleIFZ4mainEUlvE4_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x489592)
                                           #8  0x000000000088920c _ZNSt12_Bind_simpleIFZ4mainEUlvE4_vEEclEv (mailsync.bin + 0x48920c)
                                           #9  0x0000000000888f5c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ4mainEUlvE4_vEEE6_M_runEv (mailsync.bin + 0x488f5c)
                                           #10 0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #11 0x00007f763c66cb43 start_thread (libc.so.6 + 0x94b43)
                                           #12 0x00007f763c6fea00 __clone3 (libc.so.6 + 0x126a00)
                                           
                                           Stack trace of thread 12284:
                                           #0  0x00007f763c66b225 futex_wait (libc.so.6 + 0x93225)
                                           #1  0x00007f763c61d495 __run_exit_handlers (libc.so.6 + 0x45495)
                                           #2  0x00007f763c61d610 __GI_exit (libc.so.6 + 0x45610)
                                           #3  0x000000000087aa6e _Z21runListenOnMainThreadSt10shared_ptrI7AccountE (mailsync.bin + 0x47aa6e)
                                           #4  0x000000000087d108 main (mailsync.bin + 0x47d108)
                                           #5  0x00007f763c601d90 __libc_start_call_main (libc.so.6 + 0x29d90)
                                           #6  0x00007f763c601e40 __libc_start_main_impl (libc.so.6 + 0x29e40)
                                           #7  0x0000000000875b29 _start (mailsync.bin + 0x475b29)
                                           
                                           Stack trace of thread 12393:
                                           #0  0x00007f763c6f37ed __GI___select (libc.so.6 + 0x11b7ed)
                                           #1  0x0000000000b79802 mailstream_low_wait_idle (mailsync.bin + 0x779802)
                                           #2  0x0000000000b51bbd _ZN8mailcore11IMAPSession4idleEPNS_6StringEjPNS_9ErrorCodeE (mailsync.bin + 0x751bbd)
                                           #3  0x00000000009f39cc _ZN10SyncWorker18idleCycleIterationEv (mailsync.bin + 0x5f39cc)
                                           #4  0x0000000000878327 _Z23runForegroundSyncWorkerv (mailsync.bin + 0x478327)
                                           #5  0x0000000000878627 _ZZ23runBackgroundSyncWorkervENKUlvE_clEv (mailsync.bin + 0x478627)
                                           #6  0x00000000008897c6 _ZNSt12_Bind_simpleIFZ23runBackgroundSyncWorkervEUlvE_vEE9_M_invokeIJEEEvSt12_Index_tupleIJXspT_EEE (mailsync.bin + 0x4897c6)
                                           #7  0x00000000008893b0 _ZNSt12_Bind_simpleIFZ23runBackgroundSyncWorkervEUlvE_vEEclEv (mailsync.bin + 0x4893b0)
                                           #8  0x000000000088901c _ZNSt6thread5_ImplISt12_Bind_simpleIFZ23runBackgroundSyncWorkervEUlvE_vEEE6_M_runEv (mailsync.bin + 0x48901c)
                                           #9  0x00000000010ef900 execute_native_thread_routine (mailsync.bin + 0xcef900)
                                           #10 0x00007f763c66cb43 start_thread (libc.so.6 + 0x94b43)
                                           #11 0x00007f763c6fea00 __clone3 (libc.so.6 + 0x126a00)

Jun 26 10:43:59 gbz4 systemd[1]: systemd-coredump@1-237505-0.service: Deactivated successfully.
Jun 26 10:43:59 gbz4 systemd[1]: Started Process Core Dump (PID 237541/UID 0).
Jun 26 10:44:00 gbz4 systemd-coredump[237542]: [🡕] Process 12287 (main) of user 1000 dumped core.

<rest omitted to fit in 32K limit>

Additional info in the log file just before the trace itself (new example)

un 26 11:17:01 gbz4 CRON[280074]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 26 11:17:01 gbz4 CRON[280073]: pam_unix(cron:session): session closed for user root
Jun 26 11:23:11 gbz4 kernel: metadata[269676]: segfault at 140 ip 0000000000f523b6 sp 00007f0848aec5c0 error 4 in mailsync.bin[400000+2972000]
Jun 26 11:23:11 gbz4 kernel: Code: 99 c1 ea 1c 01 d0 83 e0 0f 29 d0 41 89 85 44 02 00 00 e9 51 ff ff ff 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 53 e8 4a fa ff ff 80 40 01 00 00 01 48 89 c3 c7 00 00 00 00 00 48 c7 40 40 00 00
Jun 26 11:23:11 gbz4 kernel: metadata[269671]: segfault at 140 ip 0000000000f523b6 sp 00007f62331d35c0 error 4 in mailsync.bin[400000+2972000]
Jun 26 11:23:11 gbz4 kernel: Code: 99 c1 ea 1c 01 d0 83 e0 0f 29 d0 41 89 85 44 02 00 00 e9 51 ff ff ff 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 53 e8 4a fa ff ff 80 40 01 00 00 01 48 89 c3 c7 00 00 00 00 00 48 c7 40 40 00 00
Jun 26 11:23:11 gbz4 systemd[1]: Started Process Core Dump (PID 288284/UID 0).
Jun 26 11:23:11 gbz4 systemd[1]: Started Process Core Dump (PID 288285/UID 0).
Jun 26 11:23:11 gbz4 systemd[1]: Started Process Core Dump (PID 288286/UID 0).