<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 21/12/2020 20:27, Martin Frb via
lazarus wrote:<br>
</div>
<blockquote type="cite"
cite="mid:941a5ba1-ab38-cf63-fe14-7682b4a94348@mfriebe.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 21/12/2020 20:12, Pascal
Riekenberg via lazarus wrote:<br>
</div>
<blockquote type="cite"
cite="mid:693662976.79521.1608577966360@ox.hosteurope.de">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<meta charset="UTF-8">
<div class="default-style"> Good evening, <br>
</div>
<div class="default-style"> <br>
</div>
<div class="default-style"> how can i get the sourceline from a
stacktrace address? <br>
</div>
<div class="default-style"> <br>
</div>
<div class="default-style"> I use heaptrc to find a double free.
The problem is that producing the stacktrace on double free <br>
</div>
<br>
</blockquote>
</blockquote>
<br>
Also if you are on Linux: compile with: -gv<br>
<br>
And use <br>
valgrind --tool=memcheck yourapp<br>
<br>
This should get you much better info. <br>
- Trace for access after free<br>
- Trace for the free call<br>
- Trace where it was allocated<br>
<br>
Though, your app will run a lot slower in valgrind....<br>
</body>
</html>