[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Apache segfault on startup

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-21 00:34:59 CET

On Dec 20, 2006, at 10:20, Francois Beausoleil wrote:

> I cannot seem to compile the ra_dav module so Apache can use it. If I
> enable mod_dav_svn in my Apache config file, I get a segfault like
> this in Apache's main error.log:
>
> [Wed Dec 20 14:33:53 2006] [notice] child pid 22917 exit signal
> Segmentation fault (11)
>
> This occurs when I hit any VHOST. I haven't even enabled my SVN
> VHOST yet.
>
> I originally posted my problem on the dev list, and was kindly
> redirected here. The original message can be read here:
> http://svn.haxx.se/dev/archive-2006-12/0218.shtml
>
> I followed David and John's suggestions (use --with-apxs, --with-apr
> an --with-apr-util on svn's configure), but I still get the same
> segfault.

You are mixing and matching incompatible versions of apr/apr-util:

> config.log says:
> ...
> configure:3094: checking for Apache module support via DSO through
> APXS
> configure:3132: result: found at /usr/local/apache2/bin/apxs
> configure:3135: checking httpd version
> configure:3151: result: recent enough
> configure:3258: Apache Portable Runtime (APR) library configuration
> configure:3286: checking for APR
> configure:3368: result: yes
> configure:3521: checking APR version
> configure:3529: result: 0.9.7
> configure:3613: Apache Portable Runtime Utility (APRUTIL) library
> configuration
> configure:3641: checking for APR-util
> configure:3723: result: yes
> configure:3867: checking APR-UTIL version
> configure:3881: result: 0.9.7

See, here you see that you're compiling Subversion with apr/apr/util
0.9.7. This version is compatible with Apache 2.0.x.

> ...
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> APACHE_INCLUDES=' -I/usr/local/apache2/include'
> APACHE_LDFLAGS=''
> APACHE_LIBEXECDIR='/usr/local/apache2/modules'
> APACHE_TARGET=''
> APXS='/usr/local/apache2/bin/apxs'
> ...
>
> My Apache config.nice:
> "./configure" \
> "--with-apr=/usr/local" \
> "--with-apr-util=/usr/local" \
> "--with-ssl" \
> "--with-z" \
> "--enable-dav" \
> "--enable-default" \
> "--enable-proxy" \
> "--enable-proxy-balancer" \
> "--enable-rewrite" \
> "--enable-deflate" \
> "--enable-dir" \
> "--enable-ssl" \
> "--disable-userdir" \
> "--disable-include" \
> "--enable-so" \
> "--enable-mods-shared=all" \
> "--prefix=/usr/local/apache2" \
> "$@"
>
> And my Subversion config.nice:
> './configure' '--with-apxs=/usr/local/apache2/bin/apxs' \
> '--with-ssl' '--enable-ssl' '--enable-shared' \
> '--with-apr=/usr/local/bin/apr-config' \
> '--with-apr-util=/usr/local/bin/apu-config' \
> '--enable-maintainer-mode' '--enable-debug' "$@"
>
> $ uname -a
> Linux debian 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686 GNU/
> Linux
>
> Apache 2.2.3, Subversion 1.4.2, both are from tarballs.

If you want to use Apache 2.2.x, you need to build Subversion against
apr/apr-util 1.2.x.

> After compiling Subversion, I can serve my repositories using ra_svn
> and ra_local just fine.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 21 00:35:32 2006

This is an archived mail posted to the Subversion Users mailing list.