It's even more strange: just adding: string prv = "connect_options"; results in a problem.
I also seem to have figured out what exactly the problem is: Roxen keeps on restarting a few times and then freezes.
Have you run memtest on this machine recently? It behaves as if it is suffering from hardware memory corruption.