llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.96k stars 11.54k forks source link

An exception occurred while running llvm-dwarfdump #54923

Open yuehuaguo opened 2 years ago

yuehuaguo commented 2 years ago

system : centos linux : 4.9.168-019 llvm version : llvm.x86_64 7.0.1-4.4.alios7

Is this a known problem or a new problem?

Stack dump: [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - 0. Program arguments: /usr/bin/llvm-dwarfdump --debug-info xxxxx

a0dabf52dc86/Taobao4iPhone.app.dSYM/Contents/Resources/DWARF/Taobao4iPhone [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #0 0x00007f9141df9d8a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-7.so+0x932d8a) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #1 0x00007f9141df841f llvm::sys::RunSignalHandlers() (/lib64/libLLVM-7.so+0x93141f) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #2 0x00007f9141df857d (/lib64/libLLVM-7.so+0x93157d) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #3 0x00007f91412ba630 restore_rt (/lib64/libpthread.so.0+0xf630) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #4 0x00007f9142de58a1 llvm::DWARFExpression::Operation::print(llvm::raw_ostream&, llvm::DWARFExpression const, llvm::MCRegisterInfo const, bool) (/lib64/libLLVM-7.so+0x191e8a1) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #5 0x00007f9142de65dd llvm::DWARFExpression::print(llvm::raw_ostream&, llvm::MCRegisterInfo const, bool) const (/lib64/libLLVM-7.so+0x191f5dd) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #6 0x00007f9142ddbce8 llvm::DWARFDebugLoc::LocationList::dump(llvm::raw_ostream&, bool, unsigned int, llvm::MCRegisterInfo const, unsigned long, unsigned int) const (/lib64/libLLVM-7.so+0x1914ce8) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #7 0x00007f9142de4d0d llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191dd0d) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #8 0x00007f9142de3671 llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191c671) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #9 0x00007f9142de3671 llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191c671) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #10 0x00007f9142de3671 llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191c671) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #11 0x00007f9142de3671 llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191c671) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #12 0x00007f9142de3671 llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191c671) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #13 0x00007f9142de3671 llvm::DWARFDie::dump(llvm::raw_ostream&, unsigned int, llvm::DIDumpOptions) const (/lib64/libLLVM-7.so+0x191c671) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #14 0x00007f9142db9215 llvm::DWARFCompileUnit::dump(llvm::raw_ostream&, llvm::DIDumpOptions) (/lib64/libLLVM-7.so+0x18f2215) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #15 0x00007f9142dc9784 llvm::DWARFContext::dump(llvm::raw_ostream&, llvm::DIDumpOptions, std::array<llvm::Optional, 27ul>) (/lib64/libLLVM-7.so+0x1902784) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #16 0x0000000000414603 (/usr/bin/llvm-dwarfdump+0x414603) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #17 0x0000000000411ba3 (/usr/bin/llvm-dwarfdump+0x411ba3) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #18 0x00000000004125cd (/usr/bin/llvm-dwarfdump+0x4125cd) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #19 0x000000000040b1ab _init (/usr/bin/llvm-dwarfdump+0x40b1ab) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #20 0x00007f9140be3555 libc_start_main (/lib64/libc.so.6+0x22555) [Thread-2] ERROR soot.TestParser.Tools.cmd.Command - #21 0x000000000040bc18 _init (/usr/bin/llvm-dwarfdump+0x40bc18)

llvmbot commented 2 years ago

@llvm/issue-subscribers-tools-llvm-dwarfdump

jh7370 commented 2 years ago

I'm not going to be able to investigate this with just a stack trace without source information and without any reproducible. Is this error reproducible? If so, does it happen everytime? Are there any warnings or errors printed by llvm-dwarfdump before the crash occurs? Does it occur with the latest release of llvm-dwarfdump (LLVM-7 is 3 and a half years old)? Are you able to provide the object file or at least the debug information for the object?