Solaris 10/x86 gcc “Segmentation Fault (core dumped)”
Posted by johng on Mar 13th, 2007
I compiled openssl-0.9.8e on a fully patched Solaris 10 x86 server, but when the resultant binaries were executed they all resulted in “Segmentation Fault (core dumped)”. After wasting some time trying different compiler options I came across a fix.
http://www.openssl.org/~appro/values.c
It seems strange that Sun ship a version of gcc unable to correctly compile code which makes us of the “.init” segement. It also seemed odd that this issue isn’t more widely publicised.

(5 votes, average: 4.4 out of 5)
June 12th, 2007 at 9:56 am
Hi
Could you please let me know, the procedure for applying this fix ?
Thanks in advance.
Pradeep.
June 12th, 2007 at 12:44 pm
Usage:
ksh -f values.c [gcc] [-m64]
After this, compiling OpenSSL 0.9.8e works.
October 29th, 2007 at 10:56 am
Thanks a lot….
December 14th, 2007 at 12:29 pm
Solaris 10 x86 + openssl + _init coredump -> solved by this compiler fix.
Applied patch using:
ksh -f values.c
On default compiler gcc 3.4.3 (/usr/sfw/bin)… no more coredumps.
Thanks to Phil!!!