bin/174831: geli segfaults with the new locked memory limit default

Konstantin Belousov kostikbel at gmail.com
Fri Jan 18 10:14:14 UTC 2013


On Fri, Jan 18, 2013 at 01:50:52PM +0400, Andrey Zonov wrote:
> The code that you copy/pasted is under HAVE_BROKEN_MLOCK.
> 
> The code that is executed on my machine is:
> 
> gnupg-1.4.13/util/secmem.c:
> 167 #else
> 168     err = mlock( p, n );
> 169     if( err && errno )
> 170         err = errno;
> 171 #endif
> 
> and it works without errors.
> 
> I do not have HAVE_BROKEN_MLOCK in my config.h:
> 
> /usr/ports/security/gnupg1/work/gnupg-1.4.13/config.h:/* #undef
> HAVE_BROKEN_MLOCK */
> 
> Try to recompile gnupg and check whether HAVE_BROKEN_MLOCK is defined.

FWIW, I use gnupg2 and it stopped complaining about 'using insecure memory'
without recompilation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130118/192f9c6a/attachment.sig>


More information about the svn-src-all mailing list