Skip to content

Commit

Permalink
Adding a bit of guidance about which crash stacks to focus on when de…
Browse files Browse the repository at this point in the history
…bugging the mismatched sized delete diagnostic.

PiperOrigin-RevId: 716695791
Change-Id: Ib7f65f84b64dca51896efef8ad1d8d32062452d4
  • Loading branch information
TCMalloc Team authored and copybara-github committed Jan 17, 2025
1 parent c76cb92 commit e780ef2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/mismatched-sized-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ Mismatched-size-class (https://github.com/google/tcmalloc/tree/master/docs/misma

## TCMalloc is buggy?

TIP: Memory safety bugs can have a delayed effect. The checks described above,
and other related crashes, often occur in a different call stack than the one
that caused the bug. Before scrutinizing the call stack attached to this crash,
start by looking for related crashes of the same process.

It is not a bug in TCMalloc. It is detecting an erroneous argument provided to
`::operator delete`.

Expand Down

0 comments on commit e780ef2

Please sign in to comment.