This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

armclang crashes when build debug version firmware

We have a firmware project, which can be built with DS-5. When building with DS-Gold (v2020.0), armclang crashes with debug configuration:

1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '../HAL/PCIe/Serdes/plat/sys_timer.c'.
4. Running pass 'Legalizer' on function '@sys_timer_freq_get'
Compiling ../Common/Src/dcsuCfg.c
Compiling ../Common/Src/spiDiagCmds.c
Compiling ../Common/Src/fwModApi.c
FW-trace: found  1  TRACE() lines in file  ../Common/Src/fwModApi.c
Compiling ../Common/Src/moveEngineLibrary.c
Compiling ../Common/Src/spi.c
Compiling ../Common/Src/terminal.c
FW-trace: found  4  TRACE() lines in file  ../Common/Src/terminal.c
FW-trace: found  220  TRACE() lines in file  ../Common/Src/spi.c
Compiling ../Common/Src/opStateChange.c
FW-trace: found  10  TRACE() lines in file  ../Common/Src/opStateChange.c
Compiling ../Common/Src/ipc.c
FW-trace: found  4  TRACE() lines in file  ../Common/Src/ipc.c
Compiling ../Common/Src/hmatrixDecoder.c
Compiling ../Common/Src/systemConfig.c
Compiling ../Common/Src/diagMgrUtils.c
FW-trace: found  67  TRACE() lines in file  ../Common/Src/diagMgrUtils.c
Compiling ../Common/Src/functionalUnitInit.c
FW-trace: found  18  TRACE() lines in file  ../Common/Src/functionalUnitInit.c
Compiling ../Common/Src/encryptKeyInfo.c
FW-trace: found  12  TRACE() lines in file  ../Common/Src/encryptKeyInfo.c
Compiling ../Common/Src/xorEngineLibrary.c
FW-trace: found  3  TRACE() lines in file  ../Common/Src/xorEngineLibrary.c
armclang(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1a)[0x24d031a]
armclang(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x24ce0c4]
armclang(_ZN4llvm3sys15CleanupOnSignalEm+0xa5)[0x24ce305]
armclang[0x2435844]
armclang[0x2435d08]
/lib64/libpthread.so.0(+0xf5f0)[0x7f2b208b75f0]
armclang(_ZN4llvm13LegalizerInfo10findActionERKSt6vectorISt4pairItNS_15LegalizeActions14LegalizeActionEESaIS5_EEj+0x6f)[0x2e8e4cf]
armclang(_ZNK4llvm13LegalizerInfo21findScalarLegalActionERKNS_11InstrAspectE+0x180)[0x2e8e830]
armclang(_ZNK4llvm13LegalizerInfo9getActionERKNS_13LegalityQueryE+0x82)[0x2e8ec12]
armclang(_ZNK4llvm13LegalizerInfo9getActionERKNS_12MachineInstrERKNS_19MachineRegisterInfoE+0x1e9)[0x2e8ee79]
armclang(_ZN4llvm15LegalizerHelper17legalizeInstrStepERNS_12MachineInstrE+0x79)[0x2e8dae9]
armclang(_ZN4llvm9Legalizer23legalizeMachineFunctionERNS_15MachineFunctionERKNS_13LegalizerInfoENS_8ArrayRefIPNS_19GISelChangeObserverEEERNS_16MachineIRBuilderE+0x1629)[0x2e6b849]
armclang[0x2e6de5f]
armclang(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x348)[0x1abaaf8]
armclang(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x43f)[0x1e027ef]
armclang(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x31)[0x1e02f91]
armclang(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x3a9)[0x1e03389]
armclang[0x27088ce]
armclang(_ZN5clang17EmitBackendOutputERNS_17DiagnosticsEngineERKNS_19HeaderSearchOptionsERKNS_14CodeGenOptionsERKNS_13TargetOptionsERKNS_11LangOptionsERKN4llvm10DataLayoutEPNSE_6ModuleENS_13BackendActionESt10unique_ptrINSE_17raw_pwrite_streamESt14default_deleteISM_EE+0x3df)[0x270a30f]
armclang[0x31bf404]
armclang(_ZN5clang8ParseASTERNS_4SemaEbb+0x449)[0x3b83949]
armclang(_ZN5clang14FrontendAction7ExecuteEv+0x91)[0x2c37ee1]
armclang(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x522)[0x2bf8082]
armclang(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0xf4a)[0x2cfe9ea]
armclang[0x89c32d]
armclang[0x898495]
armclang[0x2ad02e5]
armclang(_ZN4llvm20CrashRecoveryContext9RunSafelyENS_12function_refIFvvEEE+0x23)[0x2435db3]
armclang(_ZNK5clang6driver10CC1Command7ExecuteEN4llvm8ArrayRefINS2_8OptionalINS2_9StringRefEEEEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb+0x102)[0x2ad0f42]
armclang(_ZNK5clang6driver11Compilation14ExecuteCommandERKNS0_7CommandERPS3_+0x82)[0x2aab202]
armclang(_ZNK5clang6driver11Compilation11ExecuteJobsERKNS0_7JobListERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0x271)[0x2aabb91]
armclang(_ZN5clang6driver6Driver18ExecuteCompilationERNS0_11CompilationERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0x95)[0x2ab3ac5]
armclang[0x7f1086]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f2b1f524505]
armclang[0x897fad]
armclang: error: clang frontend command failed due to signal (use -v to see invocation)
Product: Arm Development Studio Gold Edition 2020.0
Component: ARM Compiler 6.14
Tool: armclang [5db06c00]
Target: aarch64-arm-none-eabi
armclang: note: diagnostic msg: PLEASE submit a bug report to ds.arm.com/.../ and include the crash backtrace, preprocessed source, and associated run script.
armclang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
armclang: note: diagnostic msg: /tmp/sys_timer-38bde6.c
armclang: note: diagnostic msg: /tmp/sys_timer-38bde6.sh
armclang: note: diagnostic msg:
********************
dmesg shows this:

[  879.404584] traps: armclang[12497] general protection ip:2466c40 sp:7ffdb863dbd0 error:0 in armclang[400000+6233000]

The build server information:

LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.7.1908 (Core)
Release: 7.7.1908
Codename: Core

Anybody ever ran into similar issue?