1. A method for performing a replay of a previous execution of a program, the method comprising: generating an order of recorded chunks of instructions across a plurality of recorded threads based, at least in part, on log files generated from the previous execution of the program; initiating an execution of the program, the executing program having a plurality of threads, each thread having a number of chunks of instructions; intercepting, by a virtual machine unit executing on a processor, an instruction of a chunk before the instruction is executed; determining, by a replay module executing on the processor, that the chunk is an active chunk if the chunk is currently in line for execution according to the order of recorded chunks; and responsive to a determination that the chunk is the active chunk, executing the instruction.