[sylpheed:31004] Re: segfault while opening pgp signed mail

Attila Kinali attila at kinali.ch
Mon Feb 26 06:16:44 JST 2007


今晩は山本さん、

On Wed, 21 Feb 2007 17:17:50 +0900
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp> wrote:

> I couldn't reproduce the crash here (win32 / Ubuntu Edgy).
> The culprit mail is S/MIME (not PGP) signed one, so I've tried with and
> without gpgsm program.

Hmm.. Could be that it's a problem that shows itself only
on x86_64.
 
> - What version of libgpgme11 and gpgsm are you using?

$ dpkg -s libgpgme11|grep Version
Version: 1.1.2-2
(debian/testing)

> - Does installing/uninstalling gpgsm make any difference?

No.

How about to check the result of gpgme_op_verify_result()
for 0 and skip the rest of gpgmegtk_sig_status_update in
this case? Ie something like this:

--- old/src/sigstatus.c     2007-02-25 22:10:53.000000000 +0100
+++ new/src/sigstatus.c    2006-08-31 10:21:21.000000000 +0200
@@ -190,7 +190,6 @@
        if (!hd || !hd->running || !ctx)
                return;
        result = gpgme_op_verify_result(ctx);
+       if(result) {
        sig = result->signatures;
        while (sig) {
                gchar *tmp;
@@ -216,7 +215,6 @@
 
        while (gtk_events_pending())
                gtk_main_iteration();
+       }
 }

This fixes the issue for me.

			Attila Kinali

-- 
Linux ist... wenn man einfache Dinge auch mit einer kryptischen
post-fix Sprache loesen kann
                        -- Daniel Hottinger


More information about the Sylpheed mailing list