Asterisk 1.4.0 Upgrade

Im having problems with Asterisk crashing randomly with segmentation faults since the 1.4.0 release. I have read a few people having problems and that a bug has been lodged. One of the suggestion was to upgrade to The latest build of Asterisk using SVN.

Where can I find details aon how to upgrade asterisk via SVN.