Hello world program access violations

JW 81 Reputation points
2022-11-15T08:38:21.14+00:00

I create a new C++ console application, then enable Address Sanitizer and run, the output shows many read access violations and also a write access violation (ntdll.dll).

Why? Is this normal or am I missing something?

260390-vs.png

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} votes

Answer accepted by question author
  1. Minxin Yu 13,506 Reputation points Microsoft External Staff
    2022-11-16T07:19:02.963+00:00

    Hi, @JW

    The problem is normal. You don't need to worry about this.

    Tested running the same project. The exceptions occur in vs2022 17.4.0, but not in preview.

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.