Summary: | Auxiliary stack traces | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Simon Richter <Simon.Richter> |
Component: | memcheck | Assignee: | Julian Seward <jseward> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | philippe.waroquiers |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Simon Richter
2022-10-09 05:57:27 UTC
(In reply to Simon Richter from comment #0) > The three stack traces I get (allocation, deallocation and use) show what is > happening, but it is difficult for me to find the point where the string is > given to Python -- the function to intern the string is called quite often, > so I can't just easily break there. Waiting for valgrind to provide some support to record auxiliary stack traces as you suggest, what you might do is to capture this stack trace and print it together with the ptr for the memory allocated and given to python. Then when valgrind reports a 'use after free' error, you can search in the program output the last stack trace that mention this pointer. |