iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.59k stars 3.88k forks source link

Wrong stack address in memleak #4820

Closed ganli2015 closed 11 months ago

ganli2015 commented 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: image

Expected is 400cf8, but 400cfc is reported. image