I know this probably falls into the "Doctor, it hurts when I do this" category, but I found a probable bug in Subversion 1.8.5 where an invalid HOME directory results in a segfault. For example:

$ HOME=/dev/null svn --version
svn: warning: W000020: Can't open file '/dev/null/.subversion/servers': Not a directory
Segmentation fault (core dumped)

This does not happen with versions 1.7.8 or 1.6.16 (the other two I had handy). On those, it gives me the same warning, but does not segfault. I have yet to try 1.8.8 as I don't have it installed anywhere yet. This also happens with an unreadable directory (i.e. /root), but it does not happen if given a nonexistent directory (i.e. "/foo/bar")

Why do I care? The php script with repos-web does an svn log, and the HOME environment variable ends up containing "/root" which is not readable to the repository owner. I have implemented a workaround, but it seems to me that a segfault is never a good answer, even if I am doing something stupid :)

++thanks,
trent...

Reply via email to