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

i#6778: Gracefully handle too few drcachesim cpus #6779

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

derekbruening
Copy link
Contributor

Adds a check with an error message for too few simulated drcachesim cpus with a core-sharded-on-disk trace.

Adds a unit test which crashes without the fix.

Also tested manually:
Before:
$ bin64/drrun -t drcachesim -indir ../src/clients/drcachesim/tests/drmemtrace.threadsig-core-sharded.x64.tracedir/ -cores 3
Segmentation fault
After:
$ bin64/drrun -t drcachesim -indir ../src/clients/drcachesim/tests/drmemtrace.threadsig-core-sharded.x64.tracedir/ -cores 3
ERROR: failed to run analyzer: Too-small core count 3 for trace core #3

Fixes #6778

Adds a check with an error message for too few simulated drcachesim
cpus with a core-sharded-on-disk trace.

Adds a unit test which crashes without the fix.

Also tested manually:
Before:
  $ bin64/drrun -t drcachesim -indir ../src/clients/drcachesim/tests/drmemtrace.threadsig-core-sharded.x64.tracedir/ -cores 3
  Segmentation fault
After:
  $ bin64/drrun -t drcachesim -indir ../src/clients/drcachesim/tests/drmemtrace.threadsig-core-sharded.x64.tracedir/ -cores 3
  ERROR: failed to run analyzer: Too-small core count 3 for trace core #3

Fixes #6778
@derekbruening
Copy link
Contributor Author

win32 failure is client.detach-test timing out, which seems to happen every run now: #6764

@derekbruening
Copy link
Contributor Author

x32 failure is opcode_mix encode size mismatch #6303

Copy link
Contributor

@brettcoon brettcoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better than a crash.

@derekbruening derekbruening merged commit 629dee7 into master Apr 18, 2024
14 of 16 checks passed
@derekbruening derekbruening deleted the i6778-drcachesim-too-few-cpus branch April 18, 2024 16:03
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 this pull request may close these issues.

CRASH drcachesim with fewer simulated cores than present in a core-sharded-on-disk trace
2 participants