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

Re: Subversion 1.7.13 mod_dav_svn with mod_wsgi auth causes Apache segfaults

From: Ben Reser <ben_at_reser.org>
Date: Wed, 30 Oct 2013 11:21:13 -0700

On 10/30/13 10:23 AM, Howard, Larry P wrote:
> Is there something more I can do to help clarify the report?

Debug builds of httpd, mod_wsgi, and Subversion. Run httpd under a debugger
and post the backtrace of the segfault. For the most part you can just do:
gdb -args httpd -X -f httpd.conf

Once GDB starts up type:
run

Create the crash which will trigger a prompt in gdb.

Type the following at the GDB prompt:
backtrace

These links should be helpful:
https://subversion.apache.org/docs/community-guide/debugging.html#server-debugging
https://httpd.apache.org/dev/debugging.html

I'd suggest when you build Subversion that you'd use --enable-maintainer-mode
with configure.

It might be desirable to have a debug build of apr/apr-util as well, but let's
see what this produces first.

I usually use a setup like so to allow me to use an uninstalled copy of SVN
with httpd (if on a Mac LD_LIBRARY_PATH should be DYLD_LIBRARY_PATH):
[[[
export SVN_BUILDDIR="$HOME/builds/svn-trunk"
for d in "$SVN_BUILDDIR"/subversion/*/.libs; do
  if [ -z "$LD_LIBRARY_PATH" ]; then
    LD_LIBRARY_PATH="$d"
  else
    LD_LIBRARY_PATH="$d:$LD_LIBRARY_PATH"
  fi
done
export LD_LIBRARY_PATH
gdb --args httpd -f httpd.conf -X
]]]

Then I use the following in my httpd.conf to load the modules:
[[[
LoadModule dav_svn_module
${SVN_BUILDDIR}/subversion/mod_dav_svn/.libs/mod_dav_svn.so
LoadModule authz_svn_module
${SVN_BUILDDIR}/subversion/mod_authz_svn/.libs/mod_authz_svn.so
]]]

Everything else is just normal configuration of httpd.
Received on 2013-10-30 19:25:29 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.