PDL has a debug mode which tells you in some detail what it's doing, including giving memory addresses (the joy of working in C). I'm currently tracking down the underlying cause of
https://github.com/PDLPorters/pdl/issues/356, and have narrowed it down to a small repro case where a command-line switch makes it either croak, or not. Either mode produces several hundred lines of debug output. Diffing the two cases is useless because the addresses get randomised by
https://en.wikipedia.org/wiki/Address_space_layout_randomization. If only there were a tool that could consistently pseudonymise those addresses so they get replaced by ADDR1 for the first one, etc, for easier diffing.
Perl to the rescue!
#!/usr/bin/env perl
# address-pseudonymise [file] or read STDIN
use strict;
use warnings;
my (%addr2number, $i);
while (<>) {
s:^==\d+==:==[PID]==:; # if you used valgrind, replace process ID
s:0x([0-9a-f]+):
'[ADDR'.($addr2number{$1} //= ++$i).']'
:gie;
print;
}