Bug 59762 - Cryptoplugin Certificate manager crashes (KMAIL)
Summary: Cryptoplugin Certificate manager crashes (KMAIL)
Status: CLOSED NOT A BUG
Alias: None
Product: kmail
Classification: Applications
Component: encryption (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-14 08:57 UTC by Marino Fernandez
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
cryptplug.patch (910 bytes, text/x-diff)
2003-06-16 01:09 UTC, Ingo Klöcker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marino Fernandez 2003-06-14 08:57:55 UTC
Version:           1.5.2 (using KDE KDE 3.1.2)
Installed from:    Debian testing/unstable Packages
OS:          Linux

You have this bug reported already. I am reporting it again because I followed all the recomendatiosn and nothing works.

kgpgcermanager crashes when I try to Start Certificate manager (setting --> security --> crypto plugins --> configure --> start certificate manager). I got this from the KDE crash handler:

0x410c3b89 in wait4 () from /lib/libc.so.6
#0  0x410c3b89 in wait4 () from /lib/libc.so.6
#1  0x41137000 in sys_sigabbrev () from /lib/libc.so.6
#2  0x40ef0061 in waitpid () from /lib/libpthread.so.0
#3  0x40710348 in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#4  0x410509d8 in sigaction () from /lib/libc.so.6
#5  0x4001d11a in startListCertificates ()
   from /usr/lib/cryptplug/gpgme-openpgp.so
#6  0x4001d6b4 in endListCertificates ()
   from /usr/lib/cryptplug/gpgme-openpgp.so
#7  0x4001d072 in startListCertificates ()
   from /usr/lib/cryptplug/gpgme-openpgp.so
#8  0x400af621 in CryptPlugWrapper::listKeys(QString const&, bool, bool*) ()
   from /usr/lib/libkdenetwork.so.2
#9  0x080589dc in QFrame::paintEvent(QPaintEvent*) ()
#10 0x0805870e in QFrame::paintEvent(QPaintEvent*) ()
#11 0x08056c08 in QFrame::paintEvent(QPaintEvent*) ()
#12 0x4103fa51 in __libc_start_main () from /lib/libc.so.6

Any ideas?
Comment 1 Ingo Klöcker 2003-06-16 01:09:27 UTC
Subject: Re:  New: Cryptoplugin Certificate manager crashes (KMAIL)

I found a bug in cryptplug which causes a crash. I reported this bug to 
the developers of cryptplug. Hopefully they will soon release a fixed 
version of cryptplug. If you compiled cryptplug yourself then please 
try if the attached patch fixes the crash.

Since this is most likely no bug in the certificate manager I close this 
bug report.


Created an attachment (id=1814)
cryptplug.patch
Comment 2 Marino Fernandez 2003-06-16 06:29:54 UTC
Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

> ------- Additional Comments From kloecker@kde.org  2003-06-16 01:09 -------
> Subject: Re:  New: Cryptoplugin Certificate manager crashes (KMAIL)
>
> I found a bug in cryptplug which causes a crash. I reported this bug to
> the developers of cryptplug. Hopefully they will soon release a fixed
> version of cryptplug. If you compiled cryptplug yourself then please
> try if the attached patch fixes the crash.
>
> Since this is most likely no bug in the certificate manager I close this
> bug report.
>
>
> Created an attachment (id=1814)
>  --> (http://bugs.kde.org/attachment.cgi?id=1814&action=view)
> cryptplug.patch
Where Should I put this file? 
Should I name it cryptoplug.patch and put it in te same folder gpgmeplug.c

Comment 3 Ingo Klöcker 2003-06-17 00:04:39 UTC
Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

On Monday 16 June 2003 06:29, Marino Fernandez wrote:
> Where Should I put this file?
> Should I name it cryptoplug.patch and put it in te same folder
> gpgmeplug.c

Yes. And then you have to run
patch <cryptoplug.patch

After that recompile cryptplug.

Regards,
Ingo

Comment 4 Marino Fernandez 2003-06-17 00:39:59 UTC
Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

> On Monday 16 June 2003 06:29, Marino Fernandez wrote:
> > Where Should I put this file?
> > Should I name it cryptoplug.patch and put it in te same folder
> > gpgmeplug.c
>
> Yes. And then you have to run
> patch <cryptoplug.patch
>
> After that recompile cryptplug.
>
> Regards,
> Ingo
Thank's. 

I did so, after patching I got this:

Marino@lifebook:~/cryptplug-0.3.15/gpgme$ patch <cryptoplug.patch
patching file gpgmeplug.c
Hunk #1 succeeded at 2112 with fuzz 1 (offset -25 lines).

Then ./configure %% make && make install.
then:  eval "$(gpg-agent --daemon)" (just to be sure)

Then I go to KMail, settings, etc... remove previuos plugin, add this one 
(/usr/local/lib/cryptplug/gpgme-openpgp.so), then configure, open certificate 
manager.... 

CRASH!!. It didn't work.

Thank you any way. If you have any more ideas let me know...



Comment 5 Ingo Klöcker 2003-06-17 01:02:59 UTC
Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

On Tuesday 17 June 2003 00:40, Marino Fernandez wrote:
> Marino@lifebook:~/cryptplug-0.3.15/gpgme$ patch <cryptoplug.patch

There's already cryptplug-0.3.16. But I don't think that this will make 
a difference.

> patching file gpgmeplug.c
> Hunk #1 succeeded at 2112 with fuzz 1 (offset -25 lines).
>
> Then ./configure %% make && make install.
> then:  eval "$(gpg-agent --daemon)" (just to be sure)

You should always kill all running gpg-agents with "killall gpg-agent" 
before you start a new one.

> Then I go to KMail, settings, etc... remove previuos plugin, add this
> one (/usr/local/lib/cryptplug/gpgme-openpgp.so), then configure, open
> certificate manager....

Did you try if restarting KMail helps?

> CRASH!!. It didn't work.

Try if you can start the certificate manager manually with
kgpgcertmanager PGP/MIME /usr/local/lib/cryptplug/gpgme-openpgp.so

Regards,
Ingo

Comment 6 Marino Fernandez 2003-06-17 05:34:23 UTC
Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

On Tuesday 17 June 2003 01:03 am, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=59762
>
>
>
>
> ------- Additional Comments From kloecker@kde.org  2003-06-17 01:02 -------
>
> > CRASH!!. It didn't work.
>
> Try if you can start the certificate manager manually with
> kgpgcertmanager PGP/MIME /usr/local/lib/cryptplug/gpgme-openpgp.so
>
kgpgcertmanager crashed.
I got this:

startListCertificates( "", 0 )
gpgme_op_keylist_ext_start returned 22endListCertificates( 0x8145d08 )
kgpgcertmanager: gpgmeplug.c:2183: nextCertificate: Assertion `it' failed.

????

PD
Thank you for all of this.

Comment 7 Marino Fernandez 2003-06-17 06:01:40 UTC
Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

On Tuesday 17 June 2003 01:03 am, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=59762
>
>
>
>
> ------- Additional Comments From kloecker@kde.org  2003-06-17 01:02 -------
> Subject: Re:  Cryptoplugin Certificate manager crashes (KMAIL)

Hey, I tried to use mozilla to sign my messages and I got this message:

Certificate manager can't locate a valid certificate that can be used to 
digitally sign your messages

Then, with evolution I got this:

Failed to gpg sign: broken pipe

So it seems to me that the problem may not be kmail at all??!!? Maybe gpg does 
not know where to look for keys?.. Ideas?