Ticket #3592 (closed defect: duplicate)

Opened 12 months ago

Last modified 11 months ago

GNUPG suddenly "not usable on this computer"

Reported by: jzgoda@… Owned by: asterix
Priority: normal Milestone:
Component: None Version: svn
Severity: normal Keywords:
Cc: OS: All

Description

Suddenly, few days ago Gajim started giving me messages that "GnuPG is not usable on this computer", then it just does not allow me to choose a key. I have gnupg installed (version 1.4.6), the gpg-agent is running and python-gnupginterface is installed too (version 0.3.2 from dist packages). The system is a pretty standard Ubuntu 7.10.

rev. 9079

Attachments

gajim.trace (17.1 kB) - added by jzgoda@… 12 months ago.
strace'd segfault

Change History

Changed 12 months ago by CrashMan

I got this message after [9055].

Changed 12 months ago by asterix

should be fixed in [9078] isn't it?

Changed 12 months ago by jzgoda@…

In [9080] the message does not appear, but in account options the GPG settings are still disabled.

It seems that the GPG is usable only in conjunction with some kind of agent running (i.e. seahorse), the gnupginterface seems not enough.

Changed 12 months ago by asterix

do you have use gpg agent checked in account modification window for this account?

Changed 12 months ago by asterix

(In [9082]) re-create gpg instance in connection.py at each connection son use_gpg_agent current value of use_gpg_agent option is used warn user when he configured gajim to use gpg-agent but it returns a wrong passphrase. see #3592

Changed 12 months ago by jzgoda@…

The problem occured:

  • when use gpg agent was checked and no gpg-agent was running;
  • when use gpg agent was not checked and no gpg-agent was running;

Changed 12 months ago by jzgoda@…

[9082] segfaults. I have "use gpg agent" unset, no gpg-agent running. After providing account credentials Gajim asks for passphrase for the key and segfaults shortly immediately after closing the dialog. Running with -v produces no output related to GPG.

Changed 12 months ago by asterix

could you strace to understand what happens ?

Changed 12 months ago by jzgoda@…

I have strace output but I don't see anything special there. I'm attaching all lines that appear after anything related to gpg.

Changed 12 months ago by jzgoda@…

strace'd segfault

Changed 12 months ago by asterix

indeed I don't see anything in this strace :/

I don't know what those futex are...

I can't reproduce, I don't have a traceback, with or without gpg agent running, with or withour GPG key configured. Could you remove your gpg key from this account to see if it's really gpg related?

Changed 12 months ago by jzgoda@…

There's no segfault if I remove GPG key association from the account. Also, there are no problems if gpg-agent is running (if the gpg-agent is not usable, i.e. due to missing pinentry program, I can connect to the account without GPG and Gajim notifies on the problem) and the "use gpg agent" is checked. The only situation I get segfault is when I uncheck "use gpg agent" and having the gpg-agent running or not has no impact on the situation.

Changed 12 months ago by asterix

:/ I don't have this segfault. If you have time one day come in our room (gajim@…) and I'll tell you where to add some print to test where does it fail

Changed 12 months ago by jzgoda@…

I'll try tomorrow on Ubuntu 7.04 at work. If the problem persists, I'll try to get any hints on debugging this.

Changed 12 months ago by jzgoda@…

I tried to reproduce this on fresh install of Ubuntu 7.04 but this problem does not occur (the passphrase dialog works proberly and Gajim is able to unlock the GPG key). I'll try to debug this on my home machine with 7.10.

Changed 11 months ago by steve-e

  • status changed from new to closed
  • resolution set to duplicate

Dup of #3634

Add/Change #3592 (GNUPG suddenly "not usable on this computer")

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.