GNOME Bugzilla – Bug 576520
"Add name" that is email-adress to key results in freeze.
Last modified: 2011-11-26 18:12:35 UTC
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. Backtrace generated with CTRL-\ Stack trace: (gdb) bt full
+ Trace 213794
Other information: This seems to be a problem in libgpgme, judging from the backtrace. Running gpg --edit-key on the command-line, trying to reproduce brings: You selected this USER-ID: "name@example.com" Please don't put the email address into the real name or the comment Change (N)ame, (C)omment, (E)mail or (Q)uit? q So my guess is that libgpgme or seahorse don't interpret response correctly. Reported on Launchpad: https://bugs.launchpad.net/bugs/291268
It's not that seahorse doesn't interpret the response correctly, gpg returns gibberish to clients of libgpgme in that case. It oddly enough let me create a key with name@example.com as the initial uid to play with. 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.
I have reported it to gnupg: https://bugs.g10code.com/gnupg/msg3546
With a recent seahorse this works now without problems.