Issue 114747
Summary [clang] error: clang frontend command failed with exit code 139
Labels clang
Assignees
Reporter WeboFingerprints
    I run clang on Raspberry PI 3.

Info: Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

clang: 
Debian clang version 14.0.6
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Stack dump:
0.      Program arguments: clang -g -I../../ref_app/nvs/inc -I../../mbedtls/include -I../../firmware_update_format/inc -I../common/include -I./jsmn -DFPC2042 -c -o jsmn/jsmn.o jsmn/jsmn.c
1.      <eof> parser at end of file
2. Code generation
3.      Running pass 'Function Pass Manager' on module 'jsmn/jsmn.c'.
4.      Running pass 'AArch64 Assembly Printer' on function '@jsmn_parse'
 #0 0x0000007f8093e4dc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xe9e4dc)
 #1 0x0000007f8093c4b4 llvm::sys::RunSignalHandlers() (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xe9c4b4)
 #2 0x0000007f8086b1c0 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xdcb1c0)
 #3 0x0000007f891b07b0 (linux-vdso.so.1+0x7b0)
 #4 0x0000007f80dca9f0 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x132a9f0)
 #5 0x0000007f8091b49c llvm::raw_ostream::write(char const*, unsigned long) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xe7b49c)
 #6 0x0000007f81cd1048 llvm::MCContext::createTempSymbol(llvm::Twine const&, bool) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2231048)
 #7 0x0000007f81cd13f0 llvm::MCContext::createTempSymbol() (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x22313f0)
 #8 0x0000007f81cd9ec0 llvm::MCDwarfLineEntry::make(llvm::MCStreamer*, llvm::MCSection*) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2239ec0)
 #9 0x0000007f81cf6934 llvm::MCObjectStreamer::emitInstructionImpl(llvm::MCInst const&, llvm::MCSubtargetInfo const&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2256934)
#10 0x0000007f81cf6858 llvm::MCObjectStreamer::emitInstruction(llvm::MCInst const&, llvm::MCSubtargetInfo const&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2256858)
#11 0x0000007f8234df50 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x28adf50)
#12 0x0000007f82207f08 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2767f08)
#13 0x0000007f810def30 llvm::AsmPrinter::emitFunctionBody() (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x163ef30)
#14 0x0000007f82204ba4 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2764ba4)
#15 0x0000007f80c9122c llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x11f122c)
#16 0x0000007f80a74390 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xfd4390)
#17 0x0000007f80a7af70 llvm::FPPassManager::runOnModule(llvm::Module&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xfdaf70)
#18 0x0000007f80a74d98 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xfd4d98)
#19 0x0000007f8757c680 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x184c680)
#20 0x0000007f87836f20 (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x1b06f20)
#21 0x0000007f86776f1c clang::ParseAST(clang::Sema&, bool, bool) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0xa46f1c)
#22 0x0000007f88134444 clang::FrontendAction::Execute() (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2404444)
#23 0x0000007f880a7d28 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2377d28)
#24 0x0000007f881a7d20 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2477d20)
#25 0x0000000000413608 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-14/bin/clang+0x413608)
#26 0x0000000000411df4 (/usr/lib/llvm-14/bin/clang+0x411df4)
#27 0x0000007f87dac5fc (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x207c5fc)
#28 0x0000007f8086ae94 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xdcae94)
#29 0x0000007f87dac000 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x207c000)
#30 0x0000007f87d80f50 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2050f50)
#31 0x0000007f87d8118c clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x205118c)
#32 0x0000007f87d950c4 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x20650c4)
#33 0x0000000000411648 main (/usr/lib/llvm-14/bin/clang+0x411648)
#34 0x0000007f7f617780 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#35 0x0000007f7f617858 call_init ./csu/../csu/libc-start.c:128:20
#36 0x0000007f7f617858 __libc_start_main ./csu/../csu/libc-start.c:347:5
#37 0x000000000040eef0 _start (/usr/lib/llvm-14/bin/clang+0x40eef0)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Debian clang version 14.0.6
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/jsmn-79b892.c
clang: note: diagnostic msg: /tmp/jsmn-79b892.sh
clang: note: diagnostic msg:

********************

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to