Summary: | Claws Mail keeps crashing. Error log suggests spgpme.c:100 as a culprit. | ||
---|---|---|---|
Product: | Claws Mail (GTK 2) | Reporter: | Blubberbub |
Component: | Plugins/Privacy/PGP | Assignee: | users |
Status: | RESOLVED INVALID | ||
Severity: | critical | ||
Priority: | P3 | ||
Version: | 3.17.3 | ||
Hardware: | PC | ||
OS: | Linux |
Description
Blubberbub
2019-04-10 13:50:04 UTC
Can you try one more backtrace, this time with GDB ignoring the harmless SIG32 signal? You can do that with GDB command "handle SIG32 nostop" before starting Claws Mail within GDB. See for example https://gnobal.net/591/what-is-sig32-during-a-gdb-debug-session for a more detailed explanation about SIG32. There is a "SIGSEGV" Shortly after the SIG32: ``` imap.c:1581:message 50571 has been already fully cached. procheader.c:174:generic_get_one_field: empty line procheader.c:174:generic_get_one_field: empty line procheader.c:174:generic_get_one_field: empty line message/rfc822 (offset:0 length:8675 encoding: 6) multipart/signed (offset:923 length:7752 encoding: 6) text/plain (offset:1088 length:101 encoding: 3) application/pkcs7-signature (offset:1432 length:7199 encoding: 4) procheader.c:174:generic_get_one_field: empty line mimeview.c:509:signed mail sgpgme.c:100:status == NULL mimeview.c:829:text/calendar sgpgme.c:100:status == NULL sgpgme.c:100:status == NULL procheader.c:197:generic_get_one_field: empty line textview.c:715:TIMING textview_add_part : 0s000ms textview.c:681:TIMING textview_add_part : 0s000ms textview.c:1207:Viewing text content of type: plain (length: 93) textview.c:831:TIMING textview_add_part : 0s015ms textview.c:848:TIMING recursive_add_parts : 0s015ms textview.c:831:TIMING textview_add_part : 0s000ms textview.c:848:TIMING recursive_add_parts : 0s000ms textview.c:894:TIMING recursive_add_parts : 0s015ms textview.c:894:TIMING recursive_add_parts : 0s015ms textview.c:654:TIMING textview_show_part : 0s016ms sgpgme.c:100:status == NULL mimeview.c:1267:creating thread [New Thread 0x7fffe8bc4700 (LWP 1735)] mimeview.c:1176:checking... smime.c:223:Checking S/MIME signature [New Thread 0x7fffe93c5700 (LWP 1736)] sgpgme.c:465:data 0x7fffe8bc27b8 (1432 7199) [Detaching after fork from child process 1737] mimeview.c:1212:waiting a while summaryview.c:3817:TIMING summary_display_msg_full : 0s034ms [Thread 0x7fffe8bc4700 (LWP 1735) exited] mimeview.c:1132:mimeview_check_sig_thread_cb sgpgme.c:110:err code 0 Thread 13 "claws-mail" received signal SIG32, Real-time event 32. [Detaching after fork from child process 1740] [Thread 0x7fffe93c5700 (LWP 1736) exited] Thread 1 "claws-mail" received signal SIGSEGV, Segmentation fault. 0x0000555556cd8200 in ?? () (gdb) thread apply all bt Thread 5 (Thread 0x7fffe9bc6700 (LWP 1593)): #0 0x00007ffff628bc21 in poll () at /usr/lib/libc.so.6 #1 0x00007fffea213673 in () at /usr/lib/libpulse.so.0 #2 0x00007fffea204990 in pa_mainloop_poll () at /usr/lib/libpulse.so.0 #3 0x00007fffea204fe0 in pa_mainloop_iterate () at /usr/lib/libpulse.so.0 #4 0x00007fffea205091 in pa_mainloop_run () at /usr/lib/libpulse.so.0 #5 0x00007fffea2135ae in () at /usr/lib/libpulse.so.0 #6 0x00007fffe9fb29fc in () at /usr/lib/pulseaudio/libpulsecommon-12.2.so #7 0x00007ffff7576a9d in start_thread () at /usr/lib/libpthread.so.0 #8 0x00007ffff6296b23 in clone () at /usr/lib/libc.so.6 Thread 4 (Thread 0x7fffebfff700 (LWP 1580)): #0 0x00007ffff628bc21 in poll () at /usr/lib/libc.so.6 #1 0x00007ffff68f6690 in () at /usr/lib/libglib-2.0.so.0 #2 0x00007ffff68f76d2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0 #3 0x00007ffff6a91568 in () at /usr/lib/libgio-2.0.so.0 #4 0x00007ffff68d1c21 in () at /usr/lib/libglib-2.0.so.0 #5 0x00007ffff7576a9d in start_thread () at /usr/lib/libpthread.so.0 #6 0x00007ffff6296b23 in clone () at /usr/lib/libc.so.6 Thread 3 (Thread 0x7ffff0947700 (LWP 1579)): #0 0x00007ffff628bc21 in poll () at /usr/lib/libc.so.6 #1 0x00007ffff68f6690 in () at /usr/lib/libglib-2.0.so.0 #2 0x00007ffff68f677e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #3 0x00007ffff68f67d2 in () at /usr/lib/libglib-2.0.so.0 #4 0x00007ffff68d1c21 in () at /usr/lib/libglib-2.0.so.0 #5 0x00007ffff7576a9d in start_thread () at /usr/lib/libpthread.so.0 #6 0x00007ffff6296b23 in clone () at /usr/lib/libc.so.6 Thread 2 (Thread 0x7ffff12eb700 (LWP 1578)): #0 0x00007ffff757cafc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0 #1 0x00007ffff653e1dc in mailsem_internal_wait () at /usr/lib/libetpan.so.20 #2 0x000055555590253d in () #3 0x00007ffff7576a9d in start_thread () at /usr/lib/libpthread.so.0 #4 0x00007ffff6296b23 in clone () at /usr/lib/libc.so.6 Thread 1 (Thread 0x7ffff1f1fd00 (LWP 1573)): #0 0x0000555556cd8200 in () #1 0x00007fffeb32da92 in () at /usr/lib/libgpgme.so.11 #2 0x00007fffeb336142 in () at /usr/lib/libgpgme.so.11 #3 0x00007fffeb33c626 in () at /usr/lib/libgpgme.so.11 #4 0x00007fffeb3266c3 in () at /usr/lib/libgpgme.so.11 #5 0x00007fffeb33b804 in gpgme_ctx_set_engine_info () at /usr/lib/libgpgme.so.11 #6 0x00007fffeb31e0c5 in gpgme_get_key () at /usr/lib/libgpgme.so.11 #7 0x00007ffff013c556 in sgpgme_sigstat_info_short () at /usr/lib/claws-mail/plugins/pgpcore.so #8 0x00007ffff0abce16 in () at /usr/lib/claws-mail/plugins/smime.so #9 0x00005555557ecc94 in privacy_mimeinfo_sig_info_short () #10 0x000055555575c5aa in () #11 0x000055555575cad4 in () #12 0x00007ffff68f3e53 in () at /usr/lib/libglib-2.0.so.0 #13 0x00007ffff68f4661 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #14 0x00007ffff68f6739 in () at /usr/lib/libglib-2.0.so.0 #15 0x00007ffff68f76d2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0 #16 0x00007ffff7a75df3 in gtk_main () at /usr/lib/libgtk-x11-2.0.so.0 #17 0x000055555571ea5e in main () (gdb) ``` That is slightly more helpful, and points to a crash somewhere deep within libgpgme library. What other packages did you upgrade before this crash started happening? Was libgpgme one of them? Or perhaps libc itself? The Claws Mail code that leads to this crash hasn't changed in several years, so I doubt there is anything we can do to prevent it, as all the signs point to a problem outside of Claws Mail. Ok. Thank you for the fast responses and sorry for bothering you with that 'probably not caused by claws-mail'-problem. I checked and it looks like gpgme was updated fairly recently (See https://git.archlinux.org/svntogit/packages.git/log/trunk?h=packages/gpgme ). I downgraded that package to 1.12.0-2 now and will see if the problem persists with the older version (until now it looks like it does not!). Not really sure how i can report this to gpgme, though. Tested gpgme 1.13.0 with claws-mail here, and it works fine. I recently made a fresh install of my OS on a new Laptop and i could reproduce the problem on that machine, too. (I copied the ~/.claws-mail config folder, though). Maybe you are not receiving enough signed mails to reproduce the problem? I tend to get a lot of them... I opened a bug report in gpgme and they think they found and fixed the error, but the fix is not released yet: https://dev.gnupg.org/T4456 |