Hi,
This turns out to be easy to replicate and has nothing in particular to do with ruby rep.
If I have a pg_hba file with both md5 and pam authentication lines, and the pam works for the user but there is no matching role, we get a crash.
This seems horrific, but we're dealing with it.