I swear I ran into this before and I cannot for the life of my remember what the solution was.
I have OpenSSH portable installed on all our servers, and /usr/local/bin/ssh works fine. But when running /usr/bin/ssh this happens on just a few servers starting a few days ago (I suspect a pkg(8) update or possibly one of the freebsd-updates):
All the OSes are completely updated to -STABLE, kernel: FreeBSD 9.1-RELEASE-p13 #4: Thu May 15 16:48:10 EDT 2014
The really odd thing is I have lots of other servers that don't have this issue, just a few that do. All are updated. When running truss side by side I can see this is where things diverge.
On a server that segfaults:
On a server that has no issue:
So for some reason /usr/bin/ssh is loading the /usr/local/lib version of libssl instead of /usr/lib which I'm guessing is the root of the issue. Anyone seen this before or have any ideas? I'm kicking myself as I know I ran into this before but can't remember what the solution was and didn't document it.
I have OpenSSH portable installed on all our servers, and /usr/local/bin/ssh works fine. But when running /usr/bin/ssh this happens on just a few servers starting a few days ago (I suspect a pkg(8) update or possibly one of the freebsd-updates):
Code:
Segmentation fault: 11 (core dumped)
All the OSes are completely updated to -STABLE, kernel: FreeBSD 9.1-RELEASE-p13 #4: Thu May 15 16:48:10 EDT 2014
The really odd thing is I have lots of other servers that don't have this issue, just a few that do. All are updated. When running truss side by side I can see this is where things diverge.
On a server that segfaults:
Code:
munmap(0x800646000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/usr/local/lib/libssl.so.8",0) = 0 (0x0)
open("/usr/local/lib/libssl.so.8",O_RDONLY,040765300) = 4 (0x4)
On a server that has no issue:
Code:
munmap(0x800646000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/usr/local/lib/libssl.so.6",0) ERR#2 'No such file or directory'
access("/usr/lib/libssl.so.6",0) = 0 (0x0)
open("/usr/lib/libssl.so.6",O_RDONLY,040765300) = 4 (0x4)
So for some reason /usr/bin/ssh is loading the /usr/local/lib version of libssl instead of /usr/lib which I'm guessing is the root of the issue. Anyone seen this before or have any ideas? I'm kicking myself as I know I ran into this before but can't remember what the solution was and didn't document it.