gpg card status crash

Nicholas Cole nicholas.cole at
Wed May 12 19:17:16 CEST 2010

On Wed, May 12, 2010 at 5:02 PM, David Shaw <dshaw at> wrote:
> On May 11, 2010, at 7:39 PM, Nicholas Cole wrote:
>> On Tue, May 11, 2010 at 11:15 PM, David Shaw <dshaw at> wrote:
>>> On May 11, 2010, at 5:12 PM, Nicholas Cole wrote:
>>>>>> On gpg 1.4.10, the following command works fine:
>>>>>> gpg --card-status
>>>>>> The following command causes gpg to crash:
>>>>>> Macintosh-2:~ nicholas$ gpg  --status-fd 1 --card-status
>>>>>> gpg(34195) malloc: *** mmap(size=6594112295125651456) failed (error code=12)
>>>>>> *** error: can't allocate region
>>>>>> *** set a breakpoint in malloc_error_break to debug
>>>>> Need more information to even guess.  What OS is this?  (Your prompt is "Macintosh" - is this an OSX box?  If so, what version of OSX?)
>>>>> What card reader do you use?  What version of the card is this?
>>>> Dear David,
>>>> Sorry for the poor report.  I'm running OS X 10.6.3, with version 2 of
>>>> the card and with the GREMALTO USB Shell Token version 2.
>>> Hmm.  I tried to duplicate this (same OSX, same card, but different card reader), but without any luck.  Can you try and get a backtrace?  To do that, run "gdb /the/path/to/gpg" then enter "break malloc_error_break", and finally "run --status-fd 1 --card-status".  When you get a prompt, enter "bt full".  Send the output of the bt full.
>> Dear David,
>> I have posted the full report from that at the end of this email.
> Alas, no symbols.  Did you compile this yourself or get the binary from somewhere else?  If you got the binary from somewhere else, do you think you could try and compile it yourself to get the backtrace?

Dear David,

Yes, it is version 1.4.10:

nicholas$ gpg --version
gpg (GnuPG) 1.4.10
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
        CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

I thought I had compiled it myself, but probably on a slightly older
version of OS X.  Could that be the problem?

(gpg2 I tend to get the macports or fink projects because of the
dependencies, but I've always appreciated the ability to just download
and compile the version 1 series without hassle.).

I'll try recompiling tonight or tomorrow.

Best wishes,


More information about the Gnupg-devel mailing list