httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brown" <>
Subject [users@httpd] Subversion + Apache problem (request_rec.per_dir_config allowed to be NULL?)
Date Fri, 27 Jul 2007 07:43:24 GMT

Has anyone managed to get Subversion http access and Apache 2 working on 
Solaris 10? I'm trying to set up access to subversion through Apache 
(mod_dav_svn) on Solaris 10 x86 and am running into an annoying segfault 

The system is a completely stock Solaris 10 x86 install, the only extra bits 
being Subversion (and dependencies) downloaded from SFW. The only changes 
besides that that I've done are to copy /etc/apache2/httpd.conf-example to 
/etc/apache2/httpd.conf and add the two lines:
LoadModule dav_svn_module /usr/local/apache2/modules/
LoadModule authz_svn_module /usr/local/apache2/modules/
at the end of the existing LoadModule lines. Apache starts fine, but then as 
soon as any page is accessed, the child segfaults and an empty page is 
returned. Removing second line (ie: not loading mod_authz_svn) results in 
everything working fine.

Running it with MDB gives the following backtrace:`access_checker+0x27(817b528)
ap_process_connection+0x37(81755e8, 8175510)
0x806d78d(80b4cb0, 0)
ap_mpm_run+0x12a(80b2ed0, 80def80, 80b4cb0)
main+0x611(4, 8047d94, 8047da8)

With the exact problem being the line:
  authz_svn_config_rec *conf = ap_get_module_config(r->per_dir_config, 
(in access_checker in mod_authz_svn.c), the segfault caused by 
per_dir_config being NULL. This line seems to be fairly common in Apache and 
modules, and very few check to see if per_dir_config is NULL, so it seems to 
indicate an Apache bug. However, everything obviously works fine without 
this module, which indicates a Subversion bug.

So, I'm trying to figure out if this is a bug in Apache, a bug in 
Subversion, or something wierd in the standard configuration file that's 
making one of these two upset. Though actually I just want the darn thing to 
work :) Any hints welcome!


# /usr/apache2/bin/httpd -V
Server version: Apache/2.0.58
Server built:   Sep  5 2006 07:20:21
Server's Module Magic Number: 20020903:12
Server loaded:  APR 0.9.12, APR-UTIL 0.9.12
Compiled using: APR 0.9.12, APR-UTIL 0.9.12
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D HTTPD_ROOT="/usr/apache2"
 -D SUEXEC_BIN="/usr/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2/"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
# /usr/local/bin/svn --version
svn, version 1.4.3 (r23084)
   compiled Feb 13 2007, 00:00:00

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see
This product includes software developed by CollabNet 

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message