Segfault was coming from the fact that nreps was unset in slave nodes (only set in master). Different implementations disagreed about what to do in this situation, so the result was undefined behavior. Now everything should work as expected.