random technical thoughts from the Nominet technical team

Solaris 10/x86 gcc “Segmentation Fault (core dumped)”

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.4 out of 5)
Loading ... Loading ...
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.

4 Responses

  1. Pradeep Singh Says:

    Hi
    Could you please let me know, the procedure for applying this fix ?

    Thanks in advance.
    Pradeep.

  2. Phil Says:

    Usage:
    ksh -f values.c [gcc] [-m64]

    After this, compiling OpenSSL 0.9.8e works.

  3. Parthasarathi T Says:

    Thanks a lot….

  4. Samo Dadela Says:

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

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Recent Posts

Highest Rated

Categories

Archives

Meta: