At the end of a long code that I’m running on a cluster, I sometimes find the error
LLVM ERROR: Bad $ operand number in inline asm string: 'P$��'
[4047386] signal (6.-6): Aborted
in expression starting at none:0
gsignal at /lib64/libc.so.6 (unknown line)
abort at /lib64/libc.so.6 (unknown line)
_ZN4llvm18report_fatal_errorERKNS_5TwineEb at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZNK4llvm10AsmPrinter13emitInlineAsmEPKNS_12MachineInstrE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm10AsmPrinter16emitFunctionBodyEv at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm13X86AsmPrinter20runOnMachineFunctionERNS_15MachineFunctionE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc14SimpleCompilerclERNS_6ModuleE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
operator() at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1172
_ZN4llvm3orc14IRCompileLayer4emitESt10unique_ptrINS0_29MaterializationResponsibilityESt14default_deleteIS3_EENS0_16ThreadSafeModuleE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16IRTransformLayer4emitESt10unique_ptrINS0_29MaterializationResponsibilityESt14default_deleteIS3_EENS0_16ThreadSafeModuleE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
emit at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:604
_ZN4llvm3orc31BasicIRLayerMaterializationUnit11materializeESt10unique_ptrINS0_29MaterializationResponsibilityESt14default_deleteIS3_EE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc19MaterializationTask3runEv at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm6detail18UniqueFunctionBaseIvJSt10unique_ptrINS_3orc4TaskESt14default_deleteIS4_EEEE8CallImplIPFvS7_EEEvPvRS7_ at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession22dispatchOutstandingMUsEv at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession17OL_completeLookupESt10unique_ptrINS0_21InProgressLookupStateESt14default_deleteIS3_EESt10shared_ptrINS0_23AsynchronousSymbolQueryEESt8functionIFvRKNS_8DenseMapIPNS0_8JITDylibENS_8DenseSetINS0_15SymbolStringPtrENS_12DenseMapInfoISF_vEEEENSG_ISD_vEENS_6detail12DenseMapPairISD_SI_EEEEEE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc25InProgressFullLookupState8completeESt10unique_ptrINS0_21InProgressLookupStateESt14default_deleteIS3_EE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession19OL_applyQueryPhase1ESt10unique_ptrINS0_21InProgressLookupStateESt14default_deleteIS3_EENS_5ErrorE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupENS0_10LookupKindERKSt6vectorISt4pairIPNS0_8JITDylibENS0_19JITDylibLookupFlagsEESaIS8_EENS0_15SymbolLookupSetENS0_11SymbolStateENS_15unique_functionIFvNS_8ExpectedINS_8DenseMapINS0_15SymbolStringPtrENS_18JITEvaluatedSymbolENS_12DenseMapInfoISI_vEENS_6detail12DenseMapPairISI_SJ_EEEEEEEEESt8functionIFvRKNSH_IS6_NS_8DenseSetISI_SL_EENSK_IS6_vEENSN_IS6_SV_EEEEEE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupERKSt6vectorISt4pairIPNS0_8JITDylibENS0_19JITDylibLookupFlagsEESaIS7_EERKNS0_15SymbolLookupSetENS0_10LookupKindENS0_11SymbolStateESt8functionIFvRKNS_8DenseMapIS5_NS_8DenseSetINS0_15SymbolStringPtrENS_12DenseMapInfoISK_vEEEENSL_IS5_vEENS_6detail12DenseMapPairIS5_SN_EEEEEE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupERKSt6vectorISt4pairIPNS0_8JITDylibENS0_19JITDylibLookupFlagsEESaIS7_EENS0_15SymbolStringPtrENS0_11SymbolStateE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupENS_8ArrayRefIPNS0_8JITDylibEEENS0_15SymbolStringPtrENS0_11SymbolStateE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupENS_8ArrayRefIPNS0_8JITDylibEEENS_9StringRefENS0_11SymbolStateE at /scratch/user/julia/julia-1.9/bin/../lib/julia/libLLVM-14jl.so (unknown line)
addModule at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1370
jl_add_to_ee at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1746
operator() at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1730 [inlined]
withModuleDo<jl_add_to_ee(llvm::orc::ThreadSafeModule&, llvm::StringMap<llvm::orc::ThreadSafeModule*>&, llvm::DenseMap<llvm::orc::ThreadSafeModule*, int>&, std::vector<std::vector<llvm::orc::ThreadSafeModule*> >&, int)::<lambda(llvm::Module&)> > at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/usr/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:136 [inlined]
jl_add_to_ee at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1724
operator() at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1730 [inlined]
withModuleDo<jl_add_to_ee(llvm::orc::ThreadSafeModule&, llvm::StringMap<llvm::orc::ThreadSafeModule*>&, llvm::DenseMap<llvm::orc::ThreadSafeModule*, int>&, std::vector<std::vector<llvm::orc::ThreadSafeModule*> >&, int)::<lambda(llvm::Module&)> > at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/usr/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:136 [inlined]
jl_add_to_ee at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1724
jl_add_to_ee at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:1768 [inlined]
_jl_compile_codeinst at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:234
jl_generate_fptr_impl at /cache/build/default-amdci5-1/julialang/julia-release-1-dot-9/src/jitlayers.cpp:437
Unfortunately, I don’t have a MWE, but I’m hoping that someone might be able to help understand possible sources of the error? I’m using multi-threading using Folds.jl
in my code, if that matters, and I’m using julia v1.9.0-beta2 (binary downloaded using jill.py
).