Find an out-of-bounds write in a huge C++ codebase
HardConcept20 minSWEREPro outline
The question
A large C++ service crashes rarely, and the stack trace points somewhere innocent. You suspect memory is being overwritten. How do you find the bug?
Explain how AddressSanitizer catches it.
What the interviewer is looking for
- Explains why corruption crashes far from the cause
- Reproduces and narrows down first
- Explains shadow memory and red zones
- Mentions other tools: watchpoints, valgrind, guard pages
- Weighs ASan overhead and where to run it
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported MiniMax question type: debug out-of-bounds writes in a large project and explain how AddressSanitizer works.
Reported in: api-cdn.nowcoder.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official MiniMax question.