Skip to content

Conversation

cyyever
Copy link
Collaborator

@cyyever cyyever commented May 16, 2023

Recently, we are seeing some bugs found by ASAN such as #101400, I think enabling ASAN for more tests is necessary to catch more hidden bugs.

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10

@pytorch-bot
Copy link

pytorch-bot bot commented May 16, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/101483

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit e380233:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@cyyever cyyever force-pushed the asan_more branch 3 times, most recently from 9a75dcf to eb23ae4 Compare May 17, 2023 01:19
@drisspg drisspg requested a review from a team May 17, 2023 16:54
@drisspg drisspg added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 17, 2023
@cyyever cyyever force-pushed the asan_more branch 4 times, most recently from 95eff87 to b18de17 Compare May 19, 2023 07:31
@cyyever
Copy link
Collaborator Author

cyyever commented May 19, 2023

@pytorchbot label "topic: not user facing"

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

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

Looks like your changes to build.sh make build-asan.sh redundant. If that's the case, please delete it.

Also, please include in the PR description how much this increases runtime of the tests.
And how one makes sure that the same test would not run on multiple shards(which is always the danger with .cpp tests) By the way, @huydhn haven't you automated running cpp tests and sharing them, that renders all those conditions in test.sh useless?

If not, than perhaps most prudent thing to do would be to create separate shard for C++ tests

@cyyever cyyever marked this pull request as draft May 19, 2023 16:17
@huydhn
Copy link
Contributor

huydhn commented May 19, 2023

Also, please include in the PR description how much this increases runtime of the tests. And how one makes sure that the same test would not run on multiple shards(which is always the danger with .cpp tests) By the way, @huydhn haven't you automated running cpp tests and sharing them, that renders all those conditions in test.sh useless?

If not, than perhaps most prudent thing to do would be to create separate shard for C++ tests

Let's gather the information about the increase in test time and create a separate shard if need. At the moment, running C++ tests via run_test.py runs them in parallel (but still locally within one runner as I haven't setup the part to gather test time to enable sharding across runners yet)

@cyyever cyyever force-pushed the asan_more branch 9 times, most recently from f4c96c7 to 66cc8f4 Compare May 23, 2023 08:37
@cyyever
Copy link
Collaborator Author

cyyever commented May 23, 2023

A misaligned error in PackedEmbeddingBagWeight::prepack may be relevant.

@cyyever cyyever force-pushed the asan_more branch 3 times, most recently from b39c610 to 3e38e3f Compare May 28, 2023 15:30
@cyyever cyyever force-pushed the asan_more branch 2 times, most recently from f1ae1f9 to 9b1b5a2 Compare May 29, 2023 18:02
@github-actions github-actions bot added the module: cpu CPU specific problem (e.g., perf, algorithm) label May 30, 2023
@cyyever cyyever force-pushed the asan_more branch 3 times, most recently from 23d28d4 to 729c6cf Compare June 3, 2023 08:18
@cyyever
Copy link
Collaborator Author

cyyever commented Jun 14, 2023

@huydhn The slowest ASAN test takes over 2 hours.

@cyyever cyyever marked this pull request as ready for review June 14, 2023 06:48
@huydhn
Copy link
Contributor

huydhn commented Jun 14, 2023

@huydhn The slowest ASAN test takes over 2 hours.

The increase was about 20m in the slowest shard. So I think we could tolerate that. A follow-up task would be to re-balance these ASAN shards. There are 6 of them and the 1st and 2nd shards need to handle more load atm.

@cyyever
Copy link
Collaborator Author

cyyever commented Jun 15, 2023

@pytorchmergebot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 15, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@cyyever cyyever deleted the asan_more branch August 8, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/slow ciflow/trunk Trigger trunk jobs on your pull request Merged module: cpu CPU specific problem (e.g., perf, algorithm) open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants