On Thu, 31 Dec 1998, Ralf S. Engelschall wrote:

> On Wed, Dec 30, 1998, [EMAIL PROTECTED] wrote:
> 
> > Fixed: recompiled SSLeay with gcc-2.7.2, -O2 -g
> > (previously: without -O2 -g)
> > 
> > will check out other combinations tomorrow ...
> 
> That's interesting. Then either the compiler was broken or at least SSLeay
> used some stuff which is slightly broken on at least your platform.  When you
> can find out something, I'm still interested. Because although it's not really
> mod_ssl related, it's important for OpenSSL. Perhaps we have some sort of a
> bug there which causes these problems...
> 
I have a similar prob here:

  apache-1.3.3
  + mod_perl-1.6+HTML-Embperl-1.1.1
  + php-3.0.6+mysql-3.21.33b+pdflib-0.6+gd1.3+freetype-1.2+expat-1.0.1
  + Apache-JServ-1.0b1
  + mod_ssl-2.1.4-1.3.3+SSLeay-0.9.0b

If i build maximum DSO-support, i get a SEGFAULT, as soon as the
first https-request arrives. If either comment-out libphp-loading in
httpd.conf or build static mod_ssl, all works well.
When I build the complete stuff with -g and run it under gdb, i get the
following backtrace:

(gdb) run -X -DSSL -d /usr/local/apache
Starting program: /usr/local/apache/sbin/httpd -X -DSSL -d /usr/local/apache

Program received signal SIGSEGV, Segmentation fault.
0x401943f2 in d2i_RSAPrivateKey () at t_pkey.c:331
331             ret=1;
(gdb) bt
#0  0x401943f2 in d2i_RSAPrivateKey () at t_pkey.c:331
#1  0x401943c0 in d2i_RSAPrivateKey () at t_pkey.c:325
#2  0x401849e3 in RSA_private_encrypt () at bss_file.c:266
#3  0x40172b8d in ssl3_get_key_exchange (s=0x80cc2f8) at s3_clnt.c:869
#4  0x401714f9 in ssl3_connect (s=0x80cc2f8) at s3_clnt.c:188
#5  0x40161093 in SSL_accept () at ssl_sess.c:128
#6  0x4015d6d4 in SSL_free (s=0x80cc2f8) at ssl_lib.c:246
#7  0x4015cb83 in tls1_final_finish_mac (s=0x80cc2f8, in1_ctx=0x401d36f4,
    in2_ctx=0xbffff500, str=0x40150769 "\203�\004\211�\211E�\203}�",
    slen=135054072, out=0x401504c0 "U\211�\203�$WVS�") at t1_enc.c:510
#8  0x40161093 in SSL_accept () at ssl_sess.c:128
#9  0x40150769 in ssl_pphrase_Handle (s=0x80d1114, p=0x1)
    at ssl_engine_pphrase.c:116
#10 0x805f025 in new_connection (p=0x809744c, server=0x808e724,
    inout=0x8097484, remaddr=0xbffff544, saddr=0xbffff554, child_num=0)
    at http_main.c:2975
#11 0x80600ad in child_main (child_num_arg=0) at http_main.c:3854
#12 0x80602c8 in make_child (s=0x808e724, slot=0, now=915021253)
    at http_main.c:3947
#13 0x8060453 in startup_children (number_to_start=1) at http_main.c:4021
#14 0x8060ac4 in standalone_main (argc=5, argv=0xbffff628) at http_main.c:4299
#15 0x8061363 in main (argc=5, argv=0xbffff628) at http_main.c:4583
#16 0x804debe in _start ()
(gdb)

kernel is 2.0.36, gcc is 2.7.2.1, shlibs used by httpd:
libc.so.5.4.46, libm.so.5.0.9, libdl.so.1.9.9

additional shlibs used by libperl.so and libphp.so:
libdb.so.1.85.5 and libgdbm.so.1.7.3

All other DSOs are statically linked.

Any idea?
If you need more debugging-output, drop me a mail.

Thanks
 -Fritz

BTW:
One suggestion for the INSTALL doc:
If configured with -DNO_IDEA, the target "test" of SSLeay fails because
it wants to test idea-encryption -> Should be noted in doc.

-- 
Fritz Elfert                                phone: +49 931 281122
Wuerzburg/Germany                           email: [EMAIL PROTECTED]
---------------------------------------------------------------------------

______________________________________________________________________
Apache Interface to SSLeay (mod_ssl)   www.engelschall.com/sw/mod_ssl/
Official Support Mailing List               [EMAIL PROTECTED]
Automated List Manager                       [EMAIL PROTECTED]

Reply via email to