Use os.execl instead of subprocess.call. Subprocess.call is giving problems with gdb