Now this is just fascinating. Running set disable-randomization off in gdb lets me see the bug on some of the runs at least.