<div dir="ltr"><div>Hi, everyone. I am having trouble trying to obtain the debug information for a GlobalVariable. I am running the following code:</div><div><br></div><div>               SmallVector<DIGlobalVariableExpression *, 1> dbgs;<br>              gv->getDebugInfo(dbgs);</div><div><br></div><div>This leads to the following error:</div><div><br></div><div>realloc(): invalid pointerStack dump:<br>0.   Program arguments: opt -load build/Misc.so -Misc tests/objs/3.opt -o bcs/tmp.bc <br>1.    Running pass 'Misc Pass' on module 'tests/objs/3.opt'.<br>LLVMSymbolizer: error reading file: No such file or directory</div><div>...<br></div><div><br></div><div>I should mention that this exact code was working perfectly on a different machine. Unfortunately, it is no longer possible for me to access that machine.</div><div>The LLVM version for both machines is 7.0. The glibc version (if relevant) is 2.27 on the current machine (on which it fails). I do not the glibc version for the previous machine.</div><div><br></div><div>Any help would be appreciated.<br></div><div><br></div></div>