Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

More info on what a problematic TracyFree or TracyAlloc caused. #739

Open
mcourteaux opened this issue Feb 28, 2024 · 1 comment
Open

More info on what a problematic TracyFree or TracyAlloc caused. #739

mcourteaux opened this issue Feb 28, 2024 · 1 comment

Comments

@mcourteaux
Copy link
Contributor

I'm instrumenting my application with TracyAllocS and TracyFreeS, which looks great and is already very insightful! 馃槃

However, I'm having a problem somewhere, and Tracy reports:
image

While I understand the message, I don't know where in my code the problem is. Yet, I believe the Tracy Client actually has the information of the stack available of where the attempted TracyFreeS happened. Even in case one uese TracyFree (i.e., without the S suffix and no callstack), still just the point in the code where the TracyFree is would also be helpful.

Reporting this info would be very useful, as I don't see any way to debug this, as the Tracy server running in my application doesn't do any checking, and happily continues execution.


TLDR: So, in summary, what I believe is possible and would be very helpful:

  • In case of a Free without an Alloc: report the source location, and callstack if available, of the Free.
  • In case of an Alloc at the same address as a previous Alloc without a corresponding Free: report the source location (and callstack) of the previous Alloc for which the Free is missing, and the source location (and callstack) of the current Alloc.

Potentially the "memory pool" can be indicated as well, in case somebody is choosing a memory pool ID dynamically at runtime (and thus the source location alone doesn't reveal which one).

@slomp
Copy link
Contributor

slomp commented Mar 16, 2024

Related: #572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants