Commit a40bf40
committed
MDEV-39831 mtr: under rr use LSAN_OPTIONS=report_objects
When we have a rr recording of the process, a memory location
is a useful thing to have in the err log of leaks.
The output comes out like:
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x55b08dbccdb8 in malloc (/build/sql/mariadbd+0x1b89db8) (BuildId: 4d72569bed63ce1fbf55d51e4d4a84b610efd87d)
#1 0x7b3fe387a1b1 (<unknown module>)
#2 0x7b3fe37c492f (<unknown module>)
#3 0x7b3fe3058407 (<unknown module>)
#4 0x7b3fe2f09493 (<unknown module>)
Objects leaked above:
0x7b7feafe0990 (40 bytes)
Now once the location is resolved we can check that we resolving the
right object leak.1 parent 01bec43 commit a40bf40
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments