thomas,
in your gdb "where", i don't see next_gw function call. so perhaps your crash has nothing to do with lcr module? do other people have any ideas?
And my configuration in failure_route is ok?
failure_route[1] { if (!next_gw()) { t_reply("503", "Service not available - No more break; } else { t_on_failure("1"); t_relay(); }; }
your configuration looks ok, but you may want to limit the replies for which you try another wg. for example, if you get "busy", it won't help to try another gw.
also, before you call t_relay from route block, set fr_timer to a low value.
-- juha