Lazy debuginfo loading introduced in commit
60f7e89ba32 assumed that
either describe_IP or find_DiCfSI will be called before stacktrace
printing. describe_IP and find_DiCfSI cause debuginfo to be lazily
loaded before symtab lookup occurs during stacktraces.
However this assumption does not hold true on ppc64le, resulting
in debuginfo failing to load in time for stacktraces. Fix this
by loading debuginfo during get_StackTrace_wrk on ppc arches.
# endif
Addr fp_min = sp - VG_STACK_REDZONE_SZB;
+ VG_(addr_load_di)(ip);
+
/* Snaffle IPs from the client's stack into ips[0 .. max_n_ips-1],
stopping when the trail goes cold, which we guess to be
when FP is not a reasonable stack location. */
play safe, a la x86/amd64 above. See
extensive comments above. */
RECURSIVE_MERGE(cmrf,ips,i);
+ VG_(addr_load_di)(ip);
continue;
}