Ticket #3592 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

GNUPG suddenly "not usable on this computer"

Reported by: jzgoda@… Owned by: asterix
Priority: normal Milestone:
Component: None Version: hg
Severity: normal Keywords:
Cc: Blocked By:
OS: All Blocking:

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@… 3 years ago.
strace'd segfault

Change History

Changed 3 years ago by CrashMan

I got this message after [fd8412cf1bd1ad95c3a2e8465a0ea063d33a17c5].

Changed 3 years ago by asterix

should be fixed in [7c29c4ce22c1de6eb6301bd71c445a5f8c9cc4e4] isn't it?

Changed 3 years ago by jzgoda@…

In [4077a4aaf79648ce38396f84f249796f0c62a82e] 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 3 years ago by asterix

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

Changed 3 years ago by asterix

(In [db7a9f23517cb0f697c2aa0283a848fc45803fe2]) 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 3 years 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 3 years ago by jzgoda@…

[db7a9f23517cb0f697c2aa0283a848fc45803fe2] 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 3 years ago by asterix

could you strace to understand what happens ?

Changed 3 years 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 3 years ago by jzgoda@…

strace'd segfault

Changed 3 years 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 3 years 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 3 years 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 3 years 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 3 years 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 3 years ago by steve-e

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

Dup of #3634

Changed 14 months ago by johnny

  • blockedby 1528 added

Changed 14 months ago by asterix

  • blockedby 1528 removed

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

Author


E-mail address and user name can be saved in the Preferences.


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