You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sean Brown <se...@gmail.com> on 2007/08/10 13:31:35 UTC
subversion 1.4.4, apache 2 and segmentation faults
I'm having difficulty getting the apache bindings for subversion to
work correctly. Whenever
LoadModule authz_svn_module modules/mod_authz_svn.so
is NOT commented out of my apache configuration, no pages will render
in any way and subversion requests also fail. Here's the error in the
apache error_log:
[Thu Aug 09 23:44:17 2007] [notice] Apache/2.2.4 (Unix) DAV/2
PHP/5.2.3 SVN/1.4.4 configured -- resuming normal operations
[Thu Aug 09 23:44:49 2007] [notice] child pid 26228 exit signal
Segmentation fault (11)
The error that svn clients get is:
svn co http://subversion.ourdomain.com/my_repos --username=sbrown
svn: PROPFIND request failed on '/my_repos'
svn: PROPFIND of '/my_repos': Could not read status line: connection
was closed by server. (http://subversion.ourdomain.com)
We're on FC6. The apache 2.2.4 server is running as user apache and
group apache. The user that owns my repositories is svn and the group
is apache (and that user also belongs to the group apache). The
entire home directory for the svn user (where all of the repositories
are) is
ls -l /home
drwxr-xr-x 86 svn apache 4096 Jul 30 13:27 svn
Here's the location block:
<Location />
DAV svn
SVNParentPath /home/svn
SVNListParentPath on
SVNPathAuthz off
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svnpasswd
# only authenticated users may access the repository
Require valid-user
</Location>
In case it helps, here's how apache and subversion where installed.
Apache (2.2.4) first:
./configure --prefix=/usr/local/apache2 -enable-rewrite -enable-dav
--enable-modules=most --enable-mods-shared=max
make
make install
At this point apache works fine. No problems at all. Now here's the
subversion install:
tar xvfz subversion-1.4.4.tar.gz
tar xvfz subversion-deps-1.4.4.tar.gz
cd subversion-1.4.4.tar.gz
./configure --with-apxs=/usr/local/apache2/bin/apxs --enable-maintainer-mode
make clean
make
make install
When I restart apache, and try to either browse the repositories or
any subversion commands, I get the seg fault shown above.
Any ideas?
--
Sean Brown
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: subversion 1.4.4, apache 2 and segmentation faults
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 10, 2007, at 08:31, Sean Brown wrote:
> I'm having difficulty getting the apache bindings for subversion to
> work correctly. Whenever
>
> LoadModule authz_svn_module modules/mod_authz_svn.so
>
> is NOT commented out of my apache configuration, no pages will render
> in any way and subversion requests also fail. Here's the error in the
> apache error_log:
>
> [Thu Aug 09 23:44:17 2007] [notice] Apache/2.2.4 (Unix) DAV/2
> PHP/5.2.3 SVN/1.4.4 configured -- resuming normal operations
> [Thu Aug 09 23:44:49 2007] [notice] child pid 26228 exit signal
> Segmentation fault (11)
>
> The error that svn clients get is:
>
> svn co http://subversion.ourdomain.com/my_repos --username=sbrown
> svn: PROPFIND request failed on '/my_repos'
> svn: PROPFIND of '/my_repos': Could not read status line: connection
> was closed by server. (http://subversion.ourdomain.com)
>
> We're on FC6. The apache 2.2.4 server is running as user apache and
> group apache. The user that owns my repositories is svn and the group
> is apache (and that user also belongs to the group apache). The
> entire home directory for the svn user (where all of the repositories
> are) is
>
> ls -l /home
>
> drwxr-xr-x 86 svn apache 4096 Jul 30 13:27 svn
>
> Here's the location block:
>
> <Location />
> DAV svn
> SVNParentPath /home/svn
> SVNListParentPath on
> SVNPathAuthz off
> AuthType Basic
> AuthName "Subversion Repository"
> AuthUserFile /etc/svnpasswd
>
> # only authenticated users may access the repository
> Require valid-user
> </Location>
>
> In case it helps, here's how apache and subversion where installed.
>
> Apache (2.2.4) first:
>
> ./configure --prefix=/usr/local/apache2 -enable-rewrite -enable-dav
> --enable-modules=most --enable-mods-shared=max
> make
> make install
>
> At this point apache works fine. No problems at all. Now here's the
> subversion install:
>
> tar xvfz subversion-1.4.4.tar.gz
> tar xvfz subversion-deps-1.4.4.tar.gz
> cd subversion-1.4.4.tar.gz
> ./configure --with-apxs=/usr/local/apache2/bin/apxs --enable-
> maintainer-mode
> make clean
> make
> make install
The subversion-deps package contains apr and apr-util version 0.9.x,
but apache 2.2.x uses apr and apr-util 1.2.x, and subversion and
apache2 must be using the same version of apr and apr-util, else
things explode. So to your subversion ./configure line you should add
--with-apr=/usr/local/apache2/bin/apr-1-config and --with-apr-util=/
usr/local/apache2/bin/apu-1-config
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org