"Bad RIP value" would mean the instruction pointer register points to an address that does not contain executable memory. This suggests errors like not properly initializing a pointer to a function before trying to use it, or perhaps overwriting a function's return address in stack, so the RET machine code instruction will end up trying to return to a wrong address