openssl and bash libcrypto

Aristedes Maniatis ari at
Fri Apr 10 00:35:18 UTC 2015

Hash: SHA1

On 9/04/2015 8:42pm, Aristedes Maniatis wrote:
> Starting in the last week or so, several different applications are exhibiting the same symptoms of broken libcrypto libraries.

Thanks everyone for your ideas. Before I start hacking away at the system to remove openssl from the base, can anyone help clarify what I'm seeing in the backtrace?

> #0  0x00000008029cafe5 in OPENSSL_ia32_cpuid () from /usr/local/lib/
> #1  0x00000008033cf0b9 in OPENSSL_ia32cap_loc () from /lib/

Am I right in assuming /lib/ is installed by openssl in the base OS? And /usr/local/lib/ from openssl in ports?

How do they get to call each other like this? My base system is from freebsd-update binary installs, not compiled by me. The poudriere jail is also updated to the latest 10.1 patch.

/lib/ is from 2 April which is roughly when all this started happening. But if that file was broken in the latest FreeBSD updates, everyone running FreeBSD would be complaining right now. So there has to be something unusual about my systems (I've reproduced this on two different installations) or the way I build openssl from ports.

I can reproduce the problem in /usr/bin/vi from the base system. Again, the bt looks like this:

#0  0x0000000802ffcfe5 in OPENSSL_ia32_cpuid () from /usr/local/lib/
[New LWP 101914]
(gdb) bt
#0  0x0000000802ffcfe5 in OPENSSL_ia32_cpuid () from /usr/local/lib/
#1  0x0000000803a010b9 in OPENSSL_ia32cap_loc () from /lib/
#2  0x000000080390784e in _init () from /lib/
#3  0x00007fffffffcf00 in ?? ()
#4  0x00000008006656bf in r_debug_state () from /libexec/
#5  0x0000000800669d87 in _rtld_get_stack_prot () from /libexec/
#6  0x0000000800666ad3 in dlopen () from /libexec/
#7  0x0000000800dfa436 in _nsdbtaddsrc () from /lib/
#8  0x0000000800df43c9 in _nsyyparse () from /lib/
#9  0x0000000800dfaab1 in nsdispatch () from /lib/
#10 0x0000000800de7ebe in getpwuid () from /lib/
#11 0x0000000800de7cbf in getpwnam () from /lib/

Maybe what I really need to do now is recompile everything against base openssl and remove the openssl port from my system completely. Or do people have better ideas?



- -- 
- -------------------------->
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


More information about the freebsd-ports mailing list