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

Segmentation Fault (Post Commit Hooks)

From: David Summers <david_at_summersoft.fay.ar.us>
Date: 2002-06-23 00:52:40 CEST

Here is a recipe for producing a Segmentation Fault with Subversion rev
2301 on both ra_local and ra_dav involving a (pretty much) default setup
of the post-commit hook.

I can work around the problem by changing the ./commit-email.pl to
/home/svnroot/test/hooks/commit-email.pl in the post-commit file.

I discovered this while trying to set up my first post-commit hook. :-(

#Script started on Sat Jun 22 17:19:00 2002
/bin/rm -rf $HOME/test
/bin/rm -rf $HOME/svnroot/test
svnadmin create /home/david/svnroot/test
svn co file:///home/david/svnroot/test/
cd test
echo "Line1" >> file
svn add file
svn commit -F /dev/null
cd $HOME/svnroot/test/hooks
cat > post-commit <<EOF
#!/bin/sh
REPOS=${1}
REV=${2}
./commit-email.pl ${REPOS} ${REV} david@summersoft.fay.ar
EOF
cp $HOME/projects/subversion/tools/hook-scripts/commit-email.pl .
chmod a+x post-commit commit-email.pl
cd $HOME/test
echo "Line2" >> file
svn commit -F /dev/null
#Sending file1
#Transmitting file data .Segmentation fault
#Script done on Sat Jun 22 17:25:10 2002

-- 
David Wayne Summers          "Linux: Because reboots are for upgrades!"
david_at_summersoft.fay.ar.us   PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  C0 E0 4F 50 DD A9 B6 2B  60 A1 31 7E D2 28 6D A8 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 23 00:54:40 2002

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

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