Out of memory error, Mac 10.6, GnuPG 1.4.10
Linus Karlsson
dt08lk9 at student.lth.se
Fri Sep 4 21:53:15 CEST 2009
Thanks for your answers (both Werner and David). Results follow:
On 4 sep 2009, at 19.34, Werner Koch wrote:
>
> Please run:
>
> LANGUAGE=en_US gpg --debug 32 -d test.txt.gpg
macbook:Desktop linus$ LANGUAGE=en_US gpg --debug 32 -d testenc.txt.gpg
gpg: reading options from `/Users/linus/.gnupg/gpg.conf'
gpg: DBG: mpi_alloc(2048)
gpg: DBG: mpi_alloc_limb_space(2048)
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: mpi_alloc(64)
gpg: DBG: mpi_alloc_limb_space(64)
gpg: DBG: mpi_alloc(0)
gpg: DBG: free_packet() type=5
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: dummy m_size called
gpg: DBG: mpi_free_limb_space of size 0
gpg: DBG: mpi_free
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: mpi_alloc(64)
gpg: DBG: mpi_alloc_limb_space(64)
gpg: DBG: mpi_alloc(0)
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: free_packet() type=12
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: free_packet() type=12
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: free_packet() type=12
gpg: DBG: mpi_alloc(2048)
gpg: DBG: mpi_alloc_limb_space(2048)
gpg: DBG: mpi_alloc(64)
gpg: DBG: mpi_alloc_limb_space(64)
gpg: DBG: mpi_alloc(0)
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: free_packet() type=12
gpg: DBG: mpi_alloc(2048)
gpg: DBG: mpi_alloc_limb_space(2048)
gpg: DBG: mpi_alloc(64)
gpg: DBG: mpi_alloc_limb_space(64)
gpg: DBG: mpi_alloc(0)
gpg: DBG: mpi_alloc(4096)
gpg: DBG: mpi_alloc_limb_space(4096)
gpg: DBG: free_packet() type=12
gpg: DBG: mpi_alloc(2048)
gpg: DBG: mpi_alloc_limb_space(2048)
gpg: DBG: mpi_alloc(64)
gpg: DBG: mpi_alloc_limb_space(64)
gpg: DBG: mpi_alloc(0)
gpg: anonymous recipient; trying secret key 01DB6623 ...
gpg(57398) malloc: *** mmap(size=732127585634357248) failed (error
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
gpg: out of memory while allocating 27 bytes
>
> Also check that the C macro M_GUARD is not defined: You find such
> #ifdefs in util/memory.c. Add a line
>
> #error ooops
>
> inside of such a block and compile it again.
I added #error ooops on line 102 in the specified file. Compilation
passed without any errors.
On 4 sep 2009, at 19.04, David Shaw wrote:
>
> Does it pass 'make check' ?
Yes, all 27 tests pass.
> Can you run a test without using the card at all? That is, create
> the main 4096-bit key, and the two 2048-bit subkeys, and encrypt
> your test file in the same way (using --throw-keyid or --hidden-
> recipient it seems), but without transferring the key to the card
> first.
Done, encryption/decryption works fine when I generated new keys
without moving them to the card.
I tried to create the keys the same way as when I generated them for
the card, that is, I also removed the main key's secret key from my
keyring. (Following this guide: https://we.riseup.net/debian/using-the-openpgp-card-with-subkeys
).
I have "hidden-encrypt-to" specified in my gpg.conf, with the key-id
of the encryption subkey.
> If you happen to have a Mac that isn't running Snow Leopard handy,
> it would be great if you could try it there as well.
Unfortunatly I only have one Mac, newly formatted to Snow Leopard, so
I'm afraid I can't test it on any other version.
/Linus
More information about the Gnupg-devel
mailing list