Closed ganli2015 closed 11 months ago
bcc version: 23.0
Application:
int main() { sleep(10); std::vector arr; std::string str; for (int i = 0; i < 256; i++) { str += "1"; arr.push_back(str); } sleep(2); return 0; }
Using memleak: python3.6 ./tools/memleak.py -p 1 20 Result stack:
Expected is 400cf8, but 400cfc is reported.
bcc version: 23.0
Application:
int main() { sleep(10); std::vector arr;
std::string str;
for (int i = 0; i < 256; i++) {
str += "1";
arr.push_back(str);
}
sleep(2);
return 0;
}
Using memleak: python3.6 ./tools/memleak.py -p 1 20
Result stack:
Expected is 400cf8, but 400cfc is reported.