Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to define a timeout for each experiment #47

Closed
RobertBuhren opened this issue May 9, 2022 · 2 comments
Closed

Allow to define a timeout for each experiment #47

RobertBuhren opened this issue May 9, 2022 · 2 comments

Comments

@RobertBuhren
Copy link

Currently ARCHIE determines the end of an experiment by looking at the number of instructions that are encountered ("max_instruction_count") or by reaching a defined address ("end").

However, there are conditions where neither "max_instruction_count" is reached nor the address defined in "end" is reached:

  • A bug in the QEMU machine model was triggered by the fault injection. If the bug enters end endless loop in the host process, ARCHIE will never finish the experiments.
  • I encountered a case where an injected fault caused a write of the value "0xFFFFFFFD΅" to the SCTRL reg (ARMv7). QEMU continued to run, but the guest code was not executing anymore (probably due to the fact that paging was enabled but no valid pagetable was present). As QEMU did not execute any instructions "max_instruction_count" was never reached and the experiment was never finished.

Regards,

Robert

@e-shreve-ti
Copy link
Contributor

Another condition that triggers this issue is if a wait-for-interrupt instruction is executed but no interrupt is ever generated. This may be a common condition for Cortex M class emulations.

@aewag aewag linked a pull request Oct 24, 2023 that will close this issue
@aewag
Copy link
Member

aewag commented Mar 5, 2024

Resolved in #80. Timeout is now part of the configuration.

@aewag aewag closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants