Such as a large project, the code is heavy, file a lot of, now out of memory, how to find the source? The interview was asked, don't answer, failure
CodePudding user response:
Topic,Tools:
- Valgrind memcheck
- free -m
Positioning methods:
- the core dump
- the GDB
- increases the print information
- comment block