Page MenuHome GnuPG

gpg-agent crashes on winows importing a secret key
Closed, ResolvedPublic

Description

gpg-agent crashes when I try to import a secret key.

This is on 64-bit Winows 8.1 Enterprise.

The key I'm trying to import is a stripped down version of my key 8213 71DD
4665 CF4F AE20 2206 0424 DC19 B678 A1A9. Specifically, the master key is a
stub, and the ed25519 and nistp384 keys were removed, leaving only dsa2048
and elg2048 subkeys.

Here is the crash result:
Problem signature:

  Problem Event Name:	APPCRASH
  Application Name:	gpg-agent.exe
  Application Version:	2.1.4.42622
  Application Timestamp:	00000000
  Fault Module Name:	libgcrypt-20.dll
  Fault Module Version:	1.6.3.4081
  Fault Module Timestamp:	00003f91
  Exception Code:	c0000005
  Exception Offset:	0002a2b9
  OS Version:	6.3.9600.2.0.0.256.4
  Locale ID:	1033
  Additional Information 1:	5861
  Additional Information 2:	5861822e1919d7c014bbb064c64908b2
  Additional Information 3:	a10f
  Additional Information 4:	a10ff7d2bb2516fdc753f9c34fc3b069

After deleting the master key and the ecc keys, I imported it into gnupg
1.4.12, which I then exported it from. This was just to make sure I have a
compatible key.

Here's the output of gpg (1.4.12) -K
sec# 4096R/0424DC19B678A1A9 2014-10-08 [expires: 2016-10-07]
uid Brian Minton <brian@minton.name>
uid Brian Minton <bjmgeek@gmail.com>
ssb 2048D/6B8EB3A065CFBAA9 2014-10-10
ssb 2048g/32483BAF5EA82613 2014-10-10

Details

Version
2.1.4

Event Timeline

bjmgeek set Version to 2.1.4.
bjmgeek added a subscriber: bjmgeek.

I also might add, I cleared out the %appdata%\gnupg directory before trying to
import the key. I also tried importing my public key first, then importing
the secret key, with the same result.

werner added a subscriber: werner.

There is a bug in Libgcrypt < 1.6.4 causing a bus error in the AESNI code.
The 2.1.8 installer will come with a fixed libgcrypt.

yes, this was fixed in 2.1.8

On Wed, Sep 9, 2015 at 10:17 AM, Werner Koch via BTS <gnupg@bugs.g10code.com

wrote:

Werner Koch <wk@gnupg.org> added the comment:

There is a bug in Libgcrypt < 1.6.4 causing a bus error in the AESNI code.
The 2.1.8 installer will come with a fixed libgcrypt.


status: chatting -> testing


GnuPG's BTS <gnupg@bugs.g10code.com>
<T2073>


werner removed a project: Restricted Project.Sep 11 2015, 8:45 AM

Tahnks for testing

werner claimed this task.