Any tools to track heap/stack corruptions?
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Feb 3 15:51:57 UTC 2021
On Wed, Feb 03, 2021 at 02:00:23PM +0000, JN via Digitalmars-d-learn wrote:
> I am dealing with some nasty issue in my code. Basically random
> unrelated lines of code are crashing with access violations, and if I
> switch from dmd to ldc the crash goes away, or crash comes back, or it
> crashes in a different spot. Seems like I am corrupting some memory
> somewhere (I interact a lot with C libraries). Do you know of any
> tools I could use to try to narrow it down?
>
> I've used Application Verifier but so far it didn't point me to
> anything specific.
Valgrind maybe? Most of the tools that work with C/C++ should also work
with little or no modifications for D programs.
T
--
Real men don't take backups. They put their source on a public FTP-server and let the world mirror it. -- Linus Torvalds
More information about the Digitalmars-d-learn
mailing list