httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Copeland <ch...@cope360.com>
Subject [users@httpd] HTTP fine, SSL segfaults every time; 2.2.14 on Solaris 10 x86. Backtrace included
Date Fri, 18 Dec 2009 22:38:51 GMT
Hello,

I am building OpenSSL, HTTPD, and Tomcat Connectors on Solaris 10 x86
using the Sun Studio compiler.

There server runs fine in HTTP mode but segfaults immediately when SSL
is enabled.  OpenSSL passed all tests when built.

Below I have:
 * Configure and compile commands for all
 * Error log
 * Backtrace

I would greatly appreciate any help.  If I can provide any more
information, please just let me know what.

TIA,
Chris

=================================================
$ cc -V
cc: Sun C 5.10 SunOS_i386 2009/06/03
$ uname -a
SunOS bsiausdevjvm01 5.10 Generic_120012-14 i86pc i386 i86pc
=================================================
OpenSSL 0.9.8l built as:

CC=/usr/bin/cc

./Configure \
solaris-x86-cc \
shared \
-g \
--openssldir=/usr/local/openssl-0.9.8l

make
make test
sudo make install
sudo ln -s /usr/local/openssl-0.9.8l /usr/local/openssl
=================================================
Apache HTTPD 2.2.14 built as:

CC=/usr/bin/cc
CFLAGS="-g"

./configure \
--prefix=/usr/local/apache-2.2.14 \
--with-mpm=prefork \
--enable-so \
--enable-unique-id=shared \
--enable-rewrite=shared \
--enable-spelling=shared \
--enable-info=shared \
--enable-headers=shared \
--enable-deflate=shared \
--enable-expires=shared \
--enable-unique-id=shared \
--enable-usertrack=shared \
--enable-speling=shared \
--enable-ssl=shared \
--with-ssl=/usr/local/openssl

make
sudo make install
sudo ln -s /usr/local/apache-2.2.14 /usr/local/apache2
=================================================
Tomcat Connectors 1.2.28

CC=/usr/bin/cc
CFLAGS="-g"

./configure \
--with-apxs=/usr/local/apache2/bin/apxs

make
sudo make install
=================================================

At this point I can start the server using the default configuration
files and plain http works fine.

Once I enable SSL it will segfault immediately on HTTPS requests.  I
am using the default SSL config file only editing the IP address.  The
certification is a self-signed one I generated using the just build
version of OpenSSL.

Error Log:

[Fri Dec 18 15:59:48 2009] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified
domain name, using 192.168.15.81 for ServerName
[Fri Dec 18 15:59:49 2009] [warn] RSA server certificate CommonName
(CN) `Chris' does NOT match server name!?
[Fri Dec 18 15:59:49 2009] [notice] Apache/2.2.14 (Unix)
mod_ssl/2.2.14 OpenSSL/0.9.8l configured -- resuming normal operations
[Fri Dec 18 15:59:52 2009] [notice] child pid 12127 exit signal
Segmentation fault (11), possible coredump in /tmp
[Fri Dec 18 15:59:55 2009] [notice] child pid 12128 exit signal
Segmentation fault (11), possible coredump in /tmp
[...]

Backtrace:

$ dbx - core.httpd.12132.u1
Corefile specified executable: "/usr/local/apache-2.2.14/bin/httpd"
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc
Reading httpd
core file header read successfully
Reading ld.so.1
Reading libm.so.2
Reading libaprutil-1.so.0.3.9
Reading libexpat.so.0.1.0
Reading libapr-1.so.0.3.9
Reading libuuid.so.1
Reading libsendfile.so.1
Reading librt.so.1
Reading libsocket.so.1
Reading libnsl.so.1
Reading libpthread.so.1
Reading libc.so.1
Reading libaio.so.1
Reading libmd.so.1
Reading libscf.so.1
Reading libdoor.so.1
Reading libuutil.so.1
Reading libgen.so.1
Reading libmp.so.2
Reading mod_deflate.so
Reading libz.so.1
Reading mod_expires.so
Reading mod_headers.so
Reading mod_usertrack.so
Reading mod_unique_id.so
Reading mod_ssl.so
Reading libssl.so.0.9.8
Reading libcrypto.so.0.9.8
Reading libdl.so.1
Reading mod_info.so
Reading mod_speling.so
Reading mod_rewrite.so
t@1 (l@1) program terminated by signal SEGV (Segmentation Fault)
Current function is child_main
  635                   lr = pdesc[last_poll_idx++].client_data;
(dbx) where
current thread: t@1
=>[1] child_main(child_num_arg = 0), line 635 in "prefork.c"
  [2] make_child(s = 0x8148190, slot = 0), line 758 in "prefork.c"
  [3] perform_idle_server_maintenance(p = 0x80fc438), line 893 in "prefork.c"
  [4] ap_mpm_run(_pconf = 0x80fc438, plog = 0x813a530, s = 0x8148190),
line 1097 in "prefork.c"
  [5] main(argc = 3, argv = 0x8047cc8), line 740 in "main.c"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message