openssl and bash libcrypto

Aristedes Maniatis ari at
Thu Apr 9 11:20:08 UTC 2015

Starting in the last week or so, several different applications are exhibiting the same symptoms of broken libcrypto libraries.

(gdb) core bash.core
Core was generated by `bash'.
Program terminated with signal 11, Segmentation fault.

(gdb) bt
#0  0x00000008029cafe5 in OPENSSL_ia32_cpuid () from /usr/local/lib/
#1  0x00000008033cf0b9 in OPENSSL_ia32cap_loc () from /lib/
#2  0x00000008032d584e in _init () from /lib/
#3  0x00007fffffffd7c0 in ?? ()
#4  0x00000008006d66bf in r_debug_state () from /libexec/
#5  0x00000008006dad87 in _rtld_get_stack_prot () from /libexec/
#6  0x00000008006d7ad3 in dlopen () from /libexec/
#7  0x0000000800e5c436 in _nsdbtaddsrc () from /lib/
#8  0x0000000800e563c9 in _nsyyparse () from /lib/
#9  0x0000000800e5cab1 in nsdispatch () from /lib/
#10 0x0000000800e49ebe in getpwuid () from /lib/
#11 0x0000000800e49cbf in getpwnam () from /lib/

Although that symptom is in bash, I've got the exact same symptoms in asterisk. The builds are done in poudriere with the make flags:


I've tried updating to the latest 10.1-RELEASE-p6, although it is possible that that is exactly what caused the problem in the first place when the poudriere jail was updated to that release.

The function calls mention ia32 but this box is purely 64bit.

I've seen recent discussions about the problems that confusion between core openssl and ports openssl can cause. But I can't for the life of me figure how to avoid this problem.

* Should bash be built with "Build static executables and/or libraries"?
* Should I stop trying to use openssl from ports until this is fixed?
* Why is /lib/ calling /usr/local/lib/ ?

I've tried so many different combinations of settings, I don't know what to try next.


Aristedes Maniatis
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-ports mailing list