Bug #26779 yassl conflicts with openssl when starting apache with php(with-mysql) and ssl
Submitted: 2 Mar 2007 1:32 Modified: 2 Mar 2007 9:25
Reporter: [ name withheld ] Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: General Severity:S2 (Serious)
Version:5.0.27 OS:Linux (linux (Slackware - 2.6.19.1))
Assigned to: CPU Architecture:Any
Tags: apache, openssl, php, replication, SSL, yassl

[2 Mar 2007 1:32] [ name withheld ]
Description:
Trying to load both yassl and openssl with my apache setup is causing a segmentation fault on the invocation of httpd.  

this may be related to http://bugs.mysql.com/bug.php?id=19810 

I don't get this error when I use mysql compiled with openssl, which I'd rather do anyway, but the bug found at http://bugs.mysql.com/bug.php?id=21781 makes that a problem for me.  I need to have both secure web traffic and secure replication.

How to repeat:
My configures

mysql version 5.0.27
CFLAGS="";
CXX=gcc;
CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti";
./configure \
  --prefix=/usr/local/mysql-5.0.27 \
  --enable-assembler \
  --enable-shared \
  --localstatedir=/usr/local/mysql/data \
  --enable-thread-safe-client \
  --with-yassl;

Apache version 2.2.3
./configure \
  --prefix /usr/local/apache2 \
  --with-perl \
  --enable-rewrite=shared \
  --enable-headers=shared \
  --enable-proxy=shared \
  --enable-proxy-connect=shared \
  --enable-proxy-ftp=shared \
  --enable-proxy-http=shared \
  --enable-ssl=shared \
  --with-ssl=/usr/local/ssl;

php version 5.2.1

./configure \
  --with-apxs2=/usr/local/apache2/bin/apxs \
  --with-mysql=/usr/local/mysql-5.0.27 \
  --enable-cli \
  --with-zlib=/usr \
  --with-openssl \
  --enable-simplexml \
  --enable-mbstring \
  --with-dom \
  --with-dom-xslt \
  --with-mysql-sock \
  --with-curl \
  --with-mcrypt \
  --enable-sockets \
  --enable-ftp \
  --with-snmp \
  --with-pspell \
  --with-gd;

in apache confs
LoadModule php5_module modules/libphp5.so
LoadModule ssl_module  modules/mod_ssl.so
...#configure apache ssl listening with Cert, Key, CACert, & CertChain
[2 Mar 2007 9:25] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicate of Bug #19810

Please use current 5.0.33 sources and if you can repeat add comment to the original bug report.
[2 Mar 2007 9:45] Magnus BlÄudd
If you are compiling from source you can apply the patch for bug#19810. That's to get rid of 'CRYPTO_lock()' and 'CRYPTO_add_lock()' in /extra/yassl/taocrypt/src/misc.cpp