Page MenuHome GnuPG

"Add name" that is email-adress to key results in freeze.
Closed, ResolvedPublic

Description

The original bug report is here:
https://bugzilla.gnome.org/show_bug.cgi?id=576520

Some copy and paste below...

Steps to reproduce:

  1. Select private key
  2. Add Name
  3. Put name@example.com in Name field

Note: The freeze does not happen when email is put in email-field.

Other information:
This seems to be a problem in libgpgme, judging from the backtrace.

To see how apeshit gpg goes when you try it on the command line run

gpg --status-fd=2 --command-fd=0 --edit-key name@example.com

adduid
name@example.com
<cr>
<cr>

Then you get a never ending stream of "Please correct the error first"

The @ symbol is what triggers this so we can just check for that in the field
and display an error message.

Event Timeline

werner removed Version.
werner added a subscriber: werner.

Frankly, I can only guess what you are doing. Is that a seahorse action to add
another user id or an existing key? A backtrace does not help at all here.

How does seehorse do this? Adding another user id requries the use of the edit
interactor. You need to look at the FSM which seehorse needs to use. If you
want us to help, please provide a gpgme trace at level 9.

What version of gpgme are you using?

Hello Werner.

The fact is that we can reproduce a similar behavior in gpg, and that's why I
reported the bug here. I was not directly asking for help with seahorse,
although any help is always welcome ;-)

I'm attaching a log where you can see the sequence of commands to reach this
loop. Notice it only happens with the arguments "--status-fd=2 --command-fd=0".
I don't know if you consider it a bug.

Offtopic: by the way, why aren't 1.2.0 and 1.3.0 versions of gpgme announce in
the website? They are in the same directory with 1.1.8. Aren't those considered
stable?

Anyways, I can provide a gpgme trace at level 9 if you consider it necessary.

Ah right. Apologies for my ignorance.

Fixed in all active branches with SVN revision 5264.

In case of error you are dropped back to the main prompt. In any case I advise
to use a parameter file. In particular recent changes in 2.x make it possible
to use the defaults of GnuPG by using "Key-type: default". See doc/DETAILS.

werner claimed this task.
werner removed a project: Restricted Project.