On Wed, Sep 13, 2000, Clive Hughes (Hotmail) wrote:

> Actually I get a Bus Error (10) on my Sun Ultra 5 (dev) and a Segmentation
> Fault (11) on my Sun E250 (prod)
> 
> Both running Solaris 7 same Apache+mod_ssl build.  Both run fine without
> mod_ssl but this is not the solution!
> 
> I have the same behaviour when trying different builds and different config
> settings as mentioned by Dave.  However it does affect me in that my browser
> comes back with an error and refreshing the page can take a while as the
> children tend to die together.
> 
> I, too, would like to find a fix.

As it looks, all of you who have seen segfaults, have them on Solaris. Let me
suggest you to re-build Apache+mod_ssl+OpenSSL as a static program (no DSOs at
all)? Because the brain-dead "load modules twice" approach of Apache is
horribly disliked by the dynamic loader of some (but not all) Solaris versions
as experience showed.

The reason is very technical and has to do with the fact that Solaris tries to
optimize the loading of DSOs by locating them differently into the address
space the second time they are re-loaded (while other platforms like Linux and
FreeBSD always deterministically re-load them into the same location). As a
result spurious segfaults occur inside libraries -- usually inside PHP's
third-party DB libraries and inside OpenSSL.

But you always have to attach a debugger or you never can find the reason.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to