[llvm-bugs] [Bug 41587] New: clang-3.7: /usr/local/popcorn/src/llvm/include/llvm/CodeGen/MachineInstr.h:1159: void llvm::MachineInstr::setMemRefs(llvm::MachineInstr::mmo_iterator, llvm::MachineInstr::mmo_iterator): Assertion `NumMemRefs == NewMemRefsEnd - NewMemRefs && "Too many memr
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 24 13:20:42 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41587
Bug ID: 41587
Summary: clang-3.7:
/usr/local/popcorn/src/llvm/include/llvm/CodeGen/Machi
neInstr.h:1159: void
llvm::MachineInstr::setMemRefs(llvm::MachineInstr::mmo
_iterator, llvm::MachineInstr::mmo_iterator):
Assertion `NumMemRefs == NewMemRefsEnd - NewMemRefs &&
"Too many memr
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: wwang88 at stevens.edu
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Created attachment 21820
--> https://bugs.llvm.org/attachment.cgi?id=21820&action=edit
c and sh file
[CC] miniz.c
clang-3.7:
/usr/local/popcorn/src/llvm/include/llvm/CodeGen/MachineInstr.h:1159: void
llvm::MachineInstr::setMemRefs(llvm::MachineInstr::mmo_iterator,
llvm::MachineInstr::mmo_iterator): Assertion `NumMemRefs == NewMemRefsEnd -
NewMemRefs && "Too many memrefs"' failed.
0 libLLVMSupport.so.3.7 0x00007fadcc9a60a8
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 59
1 libLLVMSupport.so.3.7 0x00007fadcc9a6400
2 libLLVMSupport.so.3.7 0x00007fadcc9a4e84
3 libc.so.6 0x00007fadc9d8b4b0
4 libc.so.6 0x00007fadc9d8b428 gsignal + 56
5 libc.so.6 0x00007fadc9d8d02a abort + 362
6 libc.so.6 0x00007fadc9d83bd7
7 libc.so.6 0x00007fadc9d83c82
8 libLLVMCodeGen.so.3.7 0x00007fadcf8af04c
9 libLLVMCodeGen.so.3.7 0x00007fadcf9910e6
llvm::MachineInstr::addMemOperand(llvm::MachineFunction&,
llvm::MachineMemOperand*) + 190
10 libLLVMCodeGen.so.3.7 0x00007fadcfb4a708
llvm::TargetLoweringBase::emitPatchPoint(llvm::MachineInstr*,
llvm::MachineBasicBlock*) const + 890
11 libLLVMAArch64CodeGen.so.3.7 0x00007fadd212febb
llvm::AArch64TargetLowering::EmitInstrWithCustomInserter(llvm::MachineInstr*,
llvm::MachineBasicBlock*) const + 133
12 libLLVMCodeGen.so.3.7 0x00007fadcf884135
13 libLLVMCodeGen.so.3.7 0x00007fadcf98d315
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
14 libLLVMCore.so.3.7 0x00007fadcefe0228
llvm::FPPassManager::runOnFunction(llvm::Function&) + 330
15 libLLVMCore.so.3.7 0x00007fadcefe03ab
llvm::FPPassManager::runOnModule(llvm::Module&) + 133
16 libLLVMCore.so.3.7 0x00007fadcefe06e4
17 libLLVMCore.so.3.7 0x00007fadcefe0d80
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 264
18 libLLVMCore.so.3.7 0x00007fadcefe0f85
llvm::legacy::PassManager::run(llvm::Module&) + 39
19 libclangCodeGen.so.3.7 0x00007fadcb1c41e6
20 libclangCodeGen.so.3.7 0x00007fadcb1c47d6
clang::CodegenBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 577
21 libclangCodeGen.so.3.7 0x00007fadcb40be8c
22 libclangParse.so.3.7 0x00007fadc53dbdee
clang::ParseAST(clang::Sema&, bool, bool) + 801
23 libclangFrontend.so.3.7 0x00007fadca93fe8b
clang::ASTFrontendAction::ExecuteAction() + 323
24 libclangCodeGen.so.3.7 0x00007fadcb4094fd
clang::EmitMultiObjAction::ExecuteAction() + 1095
25 libclangFrontend.so.3.7 0x00007fadca93f910
clang::FrontendAction::Execute() + 154
26 libclangFrontend.so.3.7 0x00007fadca8f114e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 800
27 libclangFrontendTool.so.3.7 0x00007fadca4ad0a5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1105
28 clang-3.7 0x0000000000447eb1 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1064
29 clang-3.7 0x000000000043ea45
30 clang-3.7 0x000000000043ef6f main + 1087
31 libc.so.6 0x00007fadc9d76830 __libc_start_main + 240
32 clang-3.7 0x000000000043d119 _start + 41
Stack dump:
0. Program arguments: /usr/local/popcorn/bin/clang-3.7 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
miniz.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -g -dwarf-column-info -coverage-file
/home/helios/miniz-2.0.8/miniz.o -nostdsysteminc -nobuiltininc -resource-dir
/usr/local/popcorn/bin/../lib/clang/3.7.1 -isystem
/usr/local/popcorn/aarch64/include -O0 -w -fdebug-compilation-dir
/home/helios/miniz-2.0.8 -ferror-limit 19 -fmessage-length 204
-ftls-model=initial-exec -mstackrealign -fobjc-runtime=gcc -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -ffunction-sections
-fdata-sections -popcorn-alignment -popcorn-migratable -mllvm
-popcorn-instrument=migration -mllvm -optimize-regalloc -mllvm -fast-isel=false
-o miniz.o -x c miniz.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'miniz.c'.
4. Running pass 'Expand ISel Pseudo-instructions' on function
'@mz_zip_writer_add_from_zip_reader'
clang-3.7: error: unable to execute command: Aborted (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.1 (tags/RELEASE_371/final 354800)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.7: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.7: note: diagnostic msg: /tmp/miniz-4f714a.c
clang-3.7: note: diagnostic msg: /tmp/miniz-4f714a.sh
clang-3.7: note: diagnostic msg:
********************
Makefile:168: recipe for target 'miniz_aarch64.o' failed
make: *** [miniz_aarch64.o] Error 254
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190424/78592e9a/attachment.html>
More information about the llvm-bugs
mailing list