-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
When should we run tests with address sanitizer? #11
Comments
IMHO we should definitely run the address sanitizer. |
iHiD has indicated that this should be part of the analyzer. I think getting either of those in place is a pre-requirement to adding more testing. EDIT: I see on slack, that @iHiD and @ErikSchierboom have now recommended adding this in the test-runner. |
I'm pretty agnostic to where things live as long as someone working via the CLI can have the same testing experience as someone using the website. So as long as a student can also run it locally (and are told to do so) as part of the test instructions, then I'm happy for it to be in the test runner :) |
☝️ Should this not be possible, I think the sanitizer should be part of the analyzer. |
Currently each In many of the over 800 solutions I've mentored I found memory leaks or out-of-bounds reads, and I frequently told my students to run Now that I think about it: Why is |
To me, that sounds like a very good plan. |
We can, but I second the request from #10
I think tat for a novice, seeing a stack trace for the first time it is not so easy to figure what the tool is trying to tell you, never mind what it is they need to do about it. Track documentation will be key. |
I can confirm that most junior professional C developers struggle to digest ASAN's output. As a learner, it's probably preferable to have a human deliver the bad news the first few times. |
I'm pretty sure that ASAN doesn't exist yet for MacOS on ARM. Do we know if that's a large part of our userbase at this point? |
I made my comment without knowing what the output looks like. If you think the output is hard for people to parse, could you do the memcheck in the C analyzer and make its output be easier for students to understand? That way you could also include additional links and such. |
Should we run every exercise with address sanitizer or would it confuse the new students?
Can we filter the results or add a comment to explain whats happening? Can we run the address sanitizer just after a certain exercise/just on exercises that really need allocation?
The text was updated successfully, but these errors were encountered: