Crashes with gpg-agent 2.1.18

Patrick Brunschwig patrick at
Wed Jan 25 11:51:27 CET 2017

On 24.01.17 09:14, Patrick Brunschwig wrote:
> On 23.01.17 21:20, Daniel Kahn Gillmor wrote:

> gpg-agent(58725,0x70000f710000) malloc: *** error for object
> 0x7f99f9703250: pointer being freed was not allocated
> *** set a breakpoint in malloc_error_break to debug

Here is how I can reproduce the issue on Mac OS X
1. create a small encrypted file (e.g. x.asc)

2. Make sure gpg-agent currently caches your password

3. run the following loop:
for i in $(seq 1 20); do (gpg2 -d x.asc &) ; done

This will crash gpg-agent almost certainly.


More information about the Gnupg-devel mailing list