httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40205] New: - apache2 steady segfault with virtualhosts count > 1330
Date Tue, 08 Aug 2006 05:41:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40205>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40205

           Summary: apache2 steady segfault with virtualhosts count > 1330
           Product: Apache httpd-2
           Version: 2.0.58
          Platform: PC
               URL: http://DOMAIN
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_ssl
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: roman.hlynovskiy@gmail.com
                CC: roman.hlynovskiy@gmail.com


Hello!

I am getting steady segmentation fault in apache2 with virtualhosts count > 1330

My system configuration is:
debian testing
kernel 2.4.30
libc 2.3.6
apache2 2.0.59
libssl 0.9.8b

here is gdb trace:
(gdb) set args -f /etc/apache2-204/apache2.conf
(gdb) br RAND_SSLeay
Function "RAND_SSLeay" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (RAND_SSLeay) pending.
(gdb) r
Starting program: /usr/local/src/httpd-2.0.59/.libs/apache2 -f
/etc/apache2-204/apache2.conf
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 29369)]
Breakpoint 2 at 0x40116610
Pending breakpoint "RAND_SSLeay" resolved
[Switching to Thread 16384 (LWP 29369)]

Breakpoint 2, 0x40116610 in RAND_SSLeay () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
(gdb) n
Single stepping until exit from function RAND_SSLeay, 
which has no line number information.
0x4011775a in RAND_get_rand_method () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
(gdb) n
Single stepping until exit from function RAND_get_rand_method, 
which has no line number information.
0x40117977 in RAND_status () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
(gdb) bt
#0  0x40117977 in RAND_status () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
#1  0x40bc4aa8 in ssl_rand_seed (s=0x80bbfc0, p=0x80eef48, nCtx=SSL_RSCTX_STARTUP, 
    prefix=0x40bd1729 "Init: ") at ssl_engine_rand.c:132
#2  0x40bbda3e in ssl_init_Module (p=0x80b6e68, plog=0x80ecf40, ptemp=0x80eef48,
base_server=0x80bbfc0)
    at ssl_engine_init.c:253
#3  0x08078faa in ap_run_post_config (pconf=0x80b6e68, plog=0x80ecf40,
ptemp=0x80eef48, s=0x80bbfc0)
    at config.c:86
#4  0x0807e94b in main (argc=3, argv=0xbffffac4) at main.c:570
(gdb) n
Single stepping until exit from function RAND_status, 
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x4011723a in RAND_SSLeay () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
(gdb) bt
#0  0x4011723a in RAND_SSLeay () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
#1  0x0000000a in ?? ()
#2  0x00000013 in ?? ()
#3  0x4018f9de in CAST_S_table0 () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
#4  0x00000227 in ?? ()
#5  0x00000000 in ?? ()

i.e. segfault occurs in RAND_status call from ssl_engine_rand.c of mod_ssl

bug is reprodusable at any time on the server

segfault occurs only if number of vhosts is > 1330.
if I decrease number of vhosts to less than 1330, problem goes away.
currently, I start apache with commented-out vhosts (i.e. in order to have less
than 1330 vhosts), after that uncomment previously-commented and reload apache. 

common apache config looks like:

<VirtualHost A.B.C.D:80>
        ServerName   DOMAIN:80
        ServerAlias  www.DOMAIN.kz
        UseCanonicalName Off
        DocumentRoot /httpdocs
        DocumentChroot /var/www/vhosts/DOMAIN
        CustomLog  /var/www/vhosts/DOMAIN/statistics/logs/access_log plesklog
        ErrorLog   /var/www/vhosts/DOMAIN/statistics/logs/error_log
<IfModule mod_userdir.c>
        UserDir /web_users
</IfModule>
        <IfModule mod_ssl.c>
                SSLEngine off
        </IfModule>
        <Directory /httpdocs>
        <IfModule mod_php4.c>
                php_admin_flag engine on
                php_admin_value open_basedir "/httpdocs:/tmp:/usr/share/php"
        </IfModule>
        <IfModule mod_php5.c>
                php_admin_flag engine on
                php_admin_value open_basedir "/httpdocs:/tmp:/usr/share/php"
        </IfModule>
                Options -Includes -ExecCGI
        </Directory>
        <Directory /web_users>
        <IfModule mod_php4.c>
                AddType text/plain .php .php4 .php3 .phtml
                php_admin_flag engine off
        </IfModule>
        <IfModule mod_php5.c>
                AddType text/plain .php .php5 .php4 .php3 .phtml
                php_admin_flag engine off
        </IfModule>
        </Directory>
</VirtualHost>

i.e. SSL is disabled for 99% of vhosts

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message