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

Seg fault: dav_svn_get_repo_name(request_rec = NULL)

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-19 00:59:09 CET

Any ideas why mod_dav_svn seg-faults when I try to access it with "svn ls http://localhost/repos/myrepos/"?

Apache 2.0.48, Subversion trunk r7787M (all tests pass over RA-local and RA-SVN), GCC 3.3.1

# gdb httpd2
GNU gdb 5.3.92
[...]
(gdb) run -X
Starting program: /usr/sbin/httpd2 -X
(no debugging symbols found)...
[...]
[New Thread 409626 (LWP 15655)]
[New Thread 426011 (LWP 15656)]
[New Thread 442396 (LWP 15657)]
[here it sits until I do "svn ls http://localhost/repos/myrepos/", and then...]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32771 (LWP 15632)]
0x4038dd12 in dav_svn_get_repo_name (r=0x0) at /home/julianfoad/src/subversion/subversion/mod_dav_svn/mod_dav_svn.c:230
230 conf = ap_get_module_config(r->per_dir_config, &dav_svn_module);
(gdb) bt
#0 0x4038dd12 in dav_svn_get_repo_name (r=0x0) at /home/julianfoad/src/subversion/subversion/mod_dav_svn/mod_dav_svn.c:230
#1 0x40375090 in dav_get_resource () from /usr/lib/apache2-worker/mod_dav.so
#2 0x4037720d in dav_method_propfind () from /usr/lib/apache2-worker/mod_dav.so
#3 0x0806bb18 in ap_run_handler ()
#4 0x0809db20 in core_cmds ()
#5 0x0814c858 in ?? ()

# cat /etc/apache2/conf.d/subversion.conf
<Location /repos/myrepos>
   DAV svn
   SVNPath /srv/svn/repos/myrepos

# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
# AuthType Basic
# AuthName "Subversion repository"
# AuthUserFile /srv/svn/user_access/myrepos_passwdfile
# Require valid-user
# </LimitExcept>
</Location>

[I was reducing it to barest essentials. The problem was the same when the "LimitExcept" block was not commented out.]

# command ls -la /srv/svn/
total 0
drwxr-xr-x 5 root root 128 2003-11-18 21:11 .
drwxr-xr-x 5 root root 120 2003-11-16 23:20 ..
drwxr-x--- 2 root www 48 2003-11-16 23:21 html
drwxr-x--- 3 root www 104 2003-11-17 22:14 repos
drwxr-x--- 2 root www 88 2003-11-16 23:49 user_access
# command ls -lAR /srv/svn/repos/
/srv/svn/repos/:
total 4
-rw-r--r-- 1 root root 95 2003-11-17 00:47 mkrepo.sh
drwxr-x--- 7 root www 224 2003-11-18 17:31 myrepos

/srv/svn/repos/myrepos:
total 8
-rw-r----- 1 root www 376 2003-11-17 22:14 README.txt
drwxr-x--- 2 root www 80 2003-11-18 17:29 conf
drwxr-x--- 2 wwwrun www 48 2003-11-17 22:14 dav
drwxr-x--- 2 wwwrun www 448 2003-11-17 22:14 db
-rw-r----- 1 root www 2 2003-11-17 22:14 format
drwxr-x--- 2 root www 232 2003-11-17 22:14 hooks
drwxr-x--- 2 wwwrun www 104 2003-11-17 22:14 locks

/srv/svn/repos/myrepos/conf:
total 4
-rw-r----- 1 root www 1101 2003-11-17 22:14 svnserve.conf

/srv/svn/repos/myrepos/dav:
total 0

/srv/svn/repos/myrepos/db:
total 765
-rw-r----- 1 wwwrun www 1474 2003-11-17 22:14 DB_CONFIG
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 __db.001
-rw-r----- 1 wwwrun www 270336 2003-11-17 22:14 __db.002
-rw-r----- 1 wwwrun www 327680 2003-11-17 22:14 __db.003
-rw-r----- 1 wwwrun www 737280 2003-11-17 22:14 __db.004
-rw-r----- 1 wwwrun www 16384 2003-11-17 22:14 __db.005
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 changes
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 copies
-rw-r----- 1 wwwrun www 71952 2003-11-17 22:14 log.0000000001
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 nodes
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 representations
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 revisions
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 strings
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 transactions
-rw-r----- 1 wwwrun www 8192 2003-11-17 22:14 uuids

/srv/svn/repos/myrepos/hooks:
total 20
-rw-r----- 1 root www 1392 2003-11-17 22:14 post-commit.tmpl
-rw-r----- 1 root www 1475 2003-11-17 22:14 post-revprop-change.tmpl
-rw-r----- 1 root www 2093 2003-11-17 22:14 pre-commit.tmpl
-rw-r----- 1 root www 1952 2003-11-17 22:14 pre-revprop-change.tmpl
-rw-r----- 1 root www 1377 2003-11-17 22:14 start-commit.tmpl

/srv/svn/repos/myrepos/locks:
total 8
-rw-r----- 1 wwwrun www 295 2003-11-17 22:14 db-logs.lock
-rw-r----- 1 wwwrun www 460 2003-11-17 22:14 db.lock

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 19 00:57:09 2003

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