This adds a script which reproduces this bug after a lot of iterations in gdb and lets us get a backtrace