Can't Encrypt in Freebsd 10.1

Antoine Michard michard.antoine at gmail.com
Mon Dec 8 17:34:34 CET 2014


Hi All,

I've got some problem recently with GnuPG2 and FreeBSD 10.1.
I've install it from port, everthing was fine but when I wanna try to
encryt, it says Abort !

Key are installed and trust:
root at WebBSD:~ # gpg -k
/root/.gnupg/pubring.gpg
------------------------
pub   2048R/C81E7C1B 2014-12-06
uid       [ultimate] WebBSD <xxx at xxx.xx>
sub   2048R/93A1637C 2014-12-06

pub   2048R/6349E5E0 2014-12-06
uid       [ultimate] Me <xxx at xxx.xx>

root at WebBSD:~ # gpg -edit-key 6349E5E0 then list
pub  2048R/6349E5E0  created: 2014-12-06  expires: never       usage: SCE
                     trust: ultimate      validity: ultimate
[ultimate] (1). Me <xxx at xxx.xx>

Here full debug from my command:
root at WebBSD:~ # gpg -r 6349E5E0 --debug-level 20 -e freebsd_forom.text
gpg: enabled debug flags: packet mpi cipher filter iobuf memory cache
memstat trust extprog cardio assuan
gpg: DBG: fd_cache_open (/root/.gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-1.0: open `/root/.gnupg/pubring.gpg' fd=3
gpg: DBG: iobuf-1.0: underflow: req=8192
gpg: DBG: iobuf-1.0: underflow: got=2114 rc=0
gpg: DBG: parse_packet(iob=1): type=6 length=269 (search.keyring.c.1010)
gpg: DBG: free_packet() type=6
gpg: DBG: parse_packet(iob=1): type=14 length=269 (search.keyring.c.1010)
gpg: DBG: free_packet() type=14
gpg: DBG: parse_packet(iob=1): type=6 length=269 (search.keyring.c.1010)
gpg: DBG: free_packet() type=6
gpg: DBG: fd_cache_open (/root/.gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-2.0: open `/root/.gnupg/pubring.gpg' fd=4
gpg: DBG: iobuf-2.0: underflow: req=8192
gpg: DBG: iobuf-2.0: underflow: got=928 rc=0
gpg: DBG: parse_packet(iob=2): type=6 length=269 (parse.keyring.c.402)
gpg: DBG: parse_packet(iob=2): type=13 length=43 (parse.keyring.c.402)
gpg: DBG: parse_packet(iob=2): type=2 length=313 (parse.keyring.c.402)
gpg: DBG: parse_packet(iob=2): type=12 length=2 (parse.keyring.c.402)
gpg: DBG: free_packet() type=12
gpg: DBG: parse_packet(iob=2): type=2 length=284 (parse.keyring.c.402)
gpg: DBG: parse_packet(iob=2): type=12 length=2 (parse.keyring.c.402)
gpg: DBG: free_packet() type=12
gpg: DBG: iobuf-2.0: underflow: req=8192
gpg: DBG: iobuf-2.0: underflow: got=0 rc=-1
gpg: DBG: /root/.gnupg/pubring.gpg: close fd 4
gpg: DBG: fd_cache_close (/root/.gnupg/pubring.gpg) new slot created
gpg: DBG: iobuf-2.0: underflow: eof
gpg: DBG: iobuf-2.0: close `?'
gpg: DBG: finish_lookup: checking key 6349E5E0 (all)(req_usage=2)
gpg: DBG:       no suitable subkeys found - trying primary
gpg: DBG:       primary key may be used
gpg: DBG:       using key 6349E5E0
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=2
gpg: DBG: iobuf-1.0: close `file_filter(fd)'
gpg: DBG: /root/.gnupg/pubring.gpg: close fd 3
gpg: DBG: fd_cache_close (/root/.gnupg/pubring.gpg) new slot created
gpg: DBG: fd_cache_open (freebsd_forom.text) not cached
gpg: DBG: iobuf-3.0: open `freebsd_forom.text' fd=6
gpg: DBG: iobuf-3.0: ioctl `file_filter(fd)' no_cache=1
gpg: DBG: fd_cache_invalidate (freebsd_forom.text.gpg)
gpg: DBG: iobuf-4.0: create `file_filter(fd)'
gpg: DBG: iobuf-4.0: ioctl `file_filter(fd)' no_cache=1
gpg: DBG: fd_cache_open (freebsd_forom.text) not cached
gpg: DBG: iobuf-5.0: open `freebsd_forom.text' fd=8
gpg: DBG: iobuf-5.0: underflow: req=8192
gpg: DBG: iobuf-5.0: underflow: got=5 rc=0
gpg: DBG: iobuf-5.0: close `file_filter(fd)'
gpg: DBG: freebsd_forom.text: close fd 8
gpg: DBG: fd_cache_close (freebsd_forom.text) new slot created
Abort

I've got this in my dmesg:
pid 60311 (gpg2), uid 0: exited on signal 6

I've post a topics on FreeBSD Forum but no answer yet:
https://forums.freebsd.org/threads/cant-encrypt-files-with-gnupg2.49354/

I've try on a VM with fresh install and the port work fine, I can
encrypt/decrypt with the same version.
But I really don't know why I've got no answer from debug :(
And search everywhere with no answer, I recompil all GnuPG2 dependencies
without result, regenerate key, etc...

Can you help me?

Thanks for reply and your time :D

-- 
Antoine Michard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20141208/472de98d/attachment-0001.html>


More information about the Gnupg-users mailing list