apache2 crashes on svn query with kerberos + ssl

Bug #578681 reported by Sönke von Heymann
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Apache2 Web Server
apache2 (Ubuntu)
libapache-mod-auth-kerb (Ubuntu)

Bug Description

Binary package hint: apache2

Description: Ubuntu 10.04 LTS Server
Release: 10.04
apache2 2.2.14-5ubuntu8

Hudson queries svn-server for a repository, the connection drops and apache crahes.
svn-queries using tortoise-svn work perfectly

The svn-server is the only site running on that server.


alias.conf -> ../mods-available/alias.conf
alias.load -> ../mods-available/alias.load
auth_basic.load -> ../mods-available/auth_basic.load
auth_kerb.load -> ../mods-available/auth_kerb.load
authn_file.load -> ../mods-available/authn_file.load
authz_default.load -> ../mods-available/authz_default.load
authz_groupfile.load -> ../mods-available/authz_groupfile.load
authz_host.load -> ../mods-available/authz_host.load
authz_user.load -> ../mods-available/authz_user.load
autoindex.conf -> ../mods-available/autoindex.conf
autoindex.load -> ../mods-available/autoindex.load
cgid.conf -> ../mods-available/cgid.conf
cgid.load -> ../mods-available/cgid.load
dav.load -> ../mods-available/dav.load
dav_svn.conf -> ../mods-available/dav_svn.conf
dav_svn.load -> ../mods-available/dav_svn.load
deflate.conf -> ../mods-available/deflate.conf
deflate.load -> ../mods-available/deflate.load
dir.conf -> ../mods-available/dir.conf
dir.load -> ../mods-available/dir.load
env.load -> ../mods-available/env.load
mime.conf -> ../mods-available/mime.conf
mime.load -> ../mods-available/mime.load
negotiation.conf -> ../mods-available/negotiation.conf
negotiation.load -> ../mods-available/negotiation.load
reqtimeout.conf -> ../mods-available/reqtimeout.conf
reqtimeout.load -> ../mods-available/reqtimeout.load
setenvif.conf -> ../mods-available/setenvif.conf
setenvif.load -> ../mods-available/setenvif.load
ssl.conf -> ../mods-available/ssl.conf
ssl.load -> ../mods-available/ssl.load
status.conf -> ../mods-available/status.conf
status.load -> ../mods-available/status.load

<IfModule mod_ssl.c>
<VirtualHost *:443>

  ServerAdmin webmaster@localhost
  DocumentRoot /var/svn/www
  ServerName svnserver.mydomain.local
  ServerAlias svnserver.mydomain.local

  # allow transfer of very large files
  LimitRequestBody 0
  LimitXMLRequestBody 0

  SSLEngine On
  SSLCertificateFile /etc/ssl/certs/svnserver_local_cert.pem
  SSLCertificateKeyFile /etc/ssl/private/svnserver_local_key.pem

  ErrorLog /var/log/apache2/error.log
  LogLevel warn
  CustomLog /var/log/apache2/access.log combined

  # general settings
  <Location />
    Require valid-user
    AuthName "Subversion repository"
    AuthType Kerberos
    KrbAuthRealms MYDOMAIN.LOCAL
    KrbServiceName HTTP
    KrbMethodNegotiate on
    KrbMethodK5Passwd on
    KrbSaveCredentials on
    Krb5Keytab "/etc/apache2/http_svnserver_krb5.keytab"

  # repository specific settings
  Include /var/svn/apache2_conf/locations-enabled/



ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
Timeout 1800
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0
<IfModule mpm_worker_module>
    StartServers 2
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadLimit 64
    ThreadsPerChild 25
    MaxClients 150
    MaxRequestsPerChild 0
<IfModule mpm_event_module>
    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadLimit 64
    ThreadsPerChild 25
    MaxRequestsPerChild 0
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel debug
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/

Revision history for this message
Sönke von Heymann (soenke-von-heymann) wrote :
Revision history for this message
Sönke von Heymann (soenke-von-heymann) wrote :
Download full text (33.5 KiB)

Attached is a gdb coredump-output from this crash:

[Wed May 12 09:37:44 2010] [notice] child pid 417 exit signal Segmentation fault (11), possible coredump in /tmp
*** glibc detected *** /usr/sbin/apache2: double free or corruption (fasttop): 0x00007f6660018d20 ***
[Wed May 12 09:37:45 2010] [notice] child pid 549 exit signal Segmentation fault (11), possible coredump in /tmp
apache2: tpp.c:63: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <= __sched_fifo_max_prio)' failed.
[Wed May 12 09:37:46 2010] [notice] child pid 582 exit signal Segmentation fault (11), possible coredump in /tmp
[Wed May 12 09:37:46 2010] [notice] child pid 583 exit signal Aborted (6), possible coredump in /tmp
*** glibc detected *** /usr/sbin/apache2: free(): invalid pointer: 0x00007f665c0085f0 ***
======= Backtrace: =========
======= Memory map: ========
7f6658000000-7f6658031000 rw-p 00000000 00:00 0
7f6658031000-7f665c000000 ---p 00000000 00:00 0
7f665c000000-7f665c032000 rw-p 00000000 00:00 0
7f665c032000-7f6660000000 ---p 00000000 00:00 0
7f6660000000-7f666005a000 rw-p 00000000 00:00 0
7f666005a000-7f6664000000 ---p 00000000 00:00 0
7f66658fc000-7f6665901000 r-xp 00000000 08:01 260979 /lib/libnss_dns-2.11.1.so
7f6665901000-7f6665b00000 ---p 00005000 08:01 260979 /lib/libnss_dns-2.11.1.so
7f6665b00000-7f6665b01000 r--p 00004000 08:01 260979 /lib/libnss_dns-2.11.1.so
7f6665b01000-7f6665b02000 rw-p 00005000 08:01 260979 /lib/libnss_dns-2.11.1.so
7f6665b02000-7f6665b04000 r-xp 00000000 08:01 82101 /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7f6665b04000-7f6665d03000 ---p 00002000 08:01 82101 /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7f6665d03000-7f6665d04000 r--p 00001000 08:01 82101 /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7f6665d04000-7f6665d05000 rw-p 00002000 08:01 82101 /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7f6665d05000-7f6665d1b000 r-xp 00000000 08:01 260796 /lib/libgcc_s.so.1
7f6665d1b000-7f6665f1a000 ---p 00016000 08:01 260796 /lib/libgcc_s.so.1
7f6665f1a000-7f6665f1b000 r--p 00015000 08:...

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:


Changed in apache2 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Sönke von Heymann (soenke-von-heymann) wrote :

I have reported this bug also here as mod_auth_kerb is no apache project:


Changed in apache2:
importance: Unknown → Medium
status: Unknown → Invalid
Revision history for this message
andreabreaux (andreabreaux) wrote :

<a href=https://www.my-milestonecard.com>MyMilestoneCard</a>

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

I wonder if we are still affected by this one.

The upstream bug report URL listed above is broken. I wonder if this is related to that: https://sourceforge.net/p/modauthkerb/bugs/47/.

I am moving this bug to libapache-mod-auth-kerb as per the apache2 upstream bug report.

Changed in apache2 (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.