Tried to use db_recover, but it wasn't able to recover the data. Thankfully I had just made a backup.
The error, on my part, was caused by using two different svn interfaces, one build against an older version of BerkeleyDB than the newer one. This seemed to corrupt the database.