httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <oh...@cox.net>
Subject Re: Followup to earlier thread about "How to compiling/link/use Apache module that uses shared library?"
Date Fri, 22 Jun 2012 19:00:03 GMT

---- Sorin Manolache <sorinm@gmail.com> wrote: 
> On 2012-06-22 17:35, ohaya@cox.net wrote:
> 
> >
> > Sorry.  I meant to say:
> >
> > "So, my code calls ObConfig_initialize() then it appears that that calls
> > ObConfig::initialize() which is presumably a C++ function. "
> >
> 
> We develop our apache modules in C++ on a regular basis and they 
> interact with other modules written in plain C and there's no problem.
> 
> What I think happens in your case is:
> 
> I suspect that the Oracle lib was _statically_ linked with libcrypto. So 
> the code of some version of libcrypto is in the libobaccess binary. Then 
> mod_ssl is _dynamically_ linked with libcrypto. I suspect that the two 
> libcryptos have different versions and they are possibly incompatible => 
> segfaults at all kind of mallocs/frees. I think it has nothing to do 
> with new/delete vs malloc/free.
> 
> S


Hi,

How can I determine whether the libobaccess.so was statically linked with libcrypto?  

Also, I'll check again, but I think that I checked before using ldd, and both obaccess.so
and mod_ssl.so were pointing to the same libcrypto.

Jim 

Mime
View raw message