Skip to content

Instantly share code, notes, and snippets.

@bjacob
Created March 5, 2021 19:58
Show Gist options
  • Save bjacob/2de5e1ca5ea19addc9b35d3353556a2a to your computer and use it in GitHub Desktop.
Save bjacob/2de5e1ca5ea19addc9b35d3353556a2a to your computer and use it in GitHub Desktop.
[ 1] // RUN: mlir-proto-opt %s -linalg-comprehensive-bufferize-inplace [FAIL]
mlir-proto-opt /usr/local/google/_blaze_benoitjacob/e44aed074990e2268fd21257b0410155/execroot/google3/blaze-out/k8-asan-dbg/bin/third_party/iree/experimental/runners/test/test_mmt_4d_kernel_unit_000.mlir.test.runfiles/google3/third_party/iree/experimental/runners/test/test_mmt_4d_kernel_unit_000.mlir -linalg-comprehensive-bufferize-inplace
=================================================================
==771875==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60c0000889c0 at pc 0x55bc335ba9a1 bp 0x7ffd14fac140 sp 0x7ffd14fac138
READ of size 8 at 0x60c0000889c0 thread T0
#0 0x55bc335ba9a0 in insertIntoCurrent third_party/llvm/llvm-project/mlir/include/mlir/IR/UseDefLists.h:201:24
#1 0x55bc335ba9a0 in set third_party/llvm/llvm-project/mlir/include/mlir/IR/UseDefLists.h:129:5
#2 0x55bc335ba9a0 in set third_party/llvm/llvm-project/mlir/lib/IR/Value.cpp:215:38
#3 0x55bc335ba9a0 in mlir::IRObjectWithUseList<mlir::OpOperand>::replaceAllUsesWith(mlir::detail::OpaqueValue) third_party/llvm/llvm-project/mlir/include/mlir/IR/UseDefLists.h:53:20
#4 0x55bc335b9c00 in mlir::Value::replaceAllUsesWith(mlir::Value) const third_party/llvm/llvm-project/mlir/lib/IR/Value.cpp:58:24
#5 0x55bc309c9411 in operator() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1292:27
#6 0x55bc309c9411 in Case<mlir::TensorToMemrefOp, (lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1288:17)> third_party/llvm/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:158:7
#7 0x55bc309c9411 in Case<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1288:17)> third_party/llvm/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:54:29
#8 0x55bc309c9411 in (anonymous namespace)::LinalgComprehensiveBufferizePass::bufferizeFuncOpInternals(mlir::FuncOp)::$_18::operator()(mlir::Operation*) const third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1288:12
#9 0x55bc309c8dd3 in void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::LinalgComprehensiveBufferizePass::bufferizeFuncOpInternals(mlir::FuncOp)::$_18>(long, mlir::Operation*) third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:185:12
#10 0x55bc335bf8eb in operator() third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:209:12
#11 0x55bc335bf8eb in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:45:3
#12 0x55bc335bf8ac in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:42:9
#13 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), mlir::Operation *, void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:98:10
#14 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Operation.h:504:12
#15 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/OpDefinition.h:173:19
#16 0x55bc309bb167 in bufferizeFuncOpInternals third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:12
#17 0x55bc309bb167 in operator() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:36
#18 0x55bc309bb167 in operator() third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:117:7
#19 0x55bc309bb167 in void llvm::function_ref<void (mlir::Operation*)>::callback_fn<std::__u::enable_if<(!(llvm::is_one_of<mlir::FuncOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value)) && (std::is_same<void, void>::value), void>::type mlir::detail::walk<(anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation()::$_20, mlir::FuncOp, void>(mlir::Operation*, (anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation()::$_20&&)::'lambda'(mlir::Operation*)>(long, mlir::Operation*) third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:185:12
#20 0x55bc335bf8eb in operator() third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:209:12
#21 0x55bc335bf8eb in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:45:3
#22 0x55bc335bf8ac in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:42:9
#23 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), mlir::FuncOp, void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:119:10
#24 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Operation.h:504:12
#25 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/OpDefinition.h:173:19
#26 0x55bc309b6507 in (anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:10
#27 0x55bc33149793 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:402:11
#28 0x55bc3314a9df in mlir::detail::OpToOpPassAdaptor::runPipeline(llvm::iterator_range<llvm::pointee_iterator<std::__u::unique_ptr<mlir::Pass, std::__u::default_delete<mlir::Pass> >*, mlir::Pass> >, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:444:16
#29 0x55bc33151cf9 in mlir::PassManager::run(mlir::Operation*) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:895:13
#30 0x55bc311f8933 in performActions(llvm::raw_ostream&, bool, bool, llvm::SourceMgr&, mlir::MLIRContext*, mlir::PassPipelineCLParser const&) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:76:17
#31 0x55bc311f5585 in processBuffer(llvm::raw_ostream&, std::__u::unique_ptr<llvm::MemoryBuffer, std::__u::default_delete<llvm::MemoryBuffer> >, bool, bool, bool, bool, mlir::PassPipelineCLParser const&, mlir::DialectRegistry&) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:110:12
#32 0x55bc311f6fab in MlirOptMain third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:147:10
#33 0x55bc311f6fab in mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&, bool) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:251:14
#34 0x55bc309a4837 in main third_party/iree/experimental/runners/mlir-opt.cpp:54:17
#35 0x7f41306cbbbc in __libc_start_main (/usr/grte/v4/lib64/libc.so.6+0x38bbc)
#36 0x55bc308ee108 in _start /usr/grte/v4/debug-src/src/csu/../sysdeps/x86_64/start.S:108
0x60c0000889c0 is located 1984 bytes to the right of 128-byte region [0x60c000088180,0x60c000088200)
freed by thread T0 here:
#0 0x55bc3098a902 in free third_party/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:127:3
#1 0x55bc33580c57 in destroy third_party/llvm/llvm-project/mlir/lib/IR/Operation.cpp:206:3
#2 0x55bc33580c57 in deleteNode third_party/llvm/llvm-project/mlir/lib/IR/Operation.cpp:429:7
#3 0x55bc33580c57 in llvm::iplist_impl<llvm::simple_ilist<mlir::Operation>, llvm::ilist_traits<mlir::Operation> >::erase(llvm::ilist_iterator<llvm::ilist_detail::node_options<mlir::Operation, false, false, void>, false, false>) third_party/llvm/llvm-project/llvm/include/llvm/ADT/ilist.h:268:5
#4 0x55bc3356bc58 in erase third_party/llvm/llvm-project/llvm/include/llvm/ADT/ilist.h:272:39
#5 0x55bc3356bc58 in mlir::Operation::erase() third_party/llvm/llvm-project/mlir/lib/IR/Operation.cpp:478:29
#6 0x55bc309c943b in operator() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1293:19
#7 0x55bc309c943b in Case<mlir::TensorToMemrefOp, (lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1288:17)> third_party/llvm/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:158:7
#8 0x55bc309c943b in Case<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1288:17)> third_party/llvm/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:54:29
#9 0x55bc309c943b in (anonymous namespace)::LinalgComprehensiveBufferizePass::bufferizeFuncOpInternals(mlir::FuncOp)::$_18::operator()(mlir::Operation*) const third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1288:12
#10 0x55bc309c8dd3 in void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::LinalgComprehensiveBufferizePass::bufferizeFuncOpInternals(mlir::FuncOp)::$_18>(long, mlir::Operation*) third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:185:12
#11 0x55bc335bf8eb in operator() third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:209:12
#12 0x55bc335bf8eb in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:45:3
#13 0x55bc335bf8ac in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:42:9
#14 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), mlir::Operation *, void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:98:10
#15 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Operation.h:504:12
#16 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/OpDefinition.h:173:19
#17 0x55bc309bb167 in bufferizeFuncOpInternals third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:12
#18 0x55bc309bb167 in operator() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:36
#19 0x55bc309bb167 in operator() third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:117:7
#20 0x55bc309bb167 in void llvm::function_ref<void (mlir::Operation*)>::callback_fn<std::__u::enable_if<(!(llvm::is_one_of<mlir::FuncOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value)) && (std::is_same<void, void>::value), void>::type mlir::detail::walk<(anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation()::$_20, mlir::FuncOp, void>(mlir::Operation*, (anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation()::$_20&&)::'lambda'(mlir::Operation*)>(long, mlir::Operation*) third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:185:12
#21 0x55bc335bf8eb in operator() third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:209:12
#22 0x55bc335bf8eb in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:45:3
#23 0x55bc335bf8ac in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:42:9
#24 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), mlir::FuncOp, void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:119:10
#25 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Operation.h:504:12
#26 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/OpDefinition.h:173:19
#27 0x55bc309b6507 in (anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:10
#28 0x55bc33149793 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:402:11
#29 0x55bc3314a9df in mlir::detail::OpToOpPassAdaptor::runPipeline(llvm::iterator_range<llvm::pointee_iterator<std::__u::unique_ptr<mlir::Pass, std::__u::default_delete<mlir::Pass> >*, mlir::Pass> >, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:444:16
#30 0x55bc33151cf9 in mlir::PassManager::run(mlir::Operation*) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:895:13
#31 0x55bc311f8933 in performActions(llvm::raw_ostream&, bool, bool, llvm::SourceMgr&, mlir::MLIRContext*, mlir::PassPipelineCLParser const&) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:76:17
#32 0x55bc311f5585 in processBuffer(llvm::raw_ostream&, std::__u::unique_ptr<llvm::MemoryBuffer, std::__u::default_delete<llvm::MemoryBuffer> >, bool, bool, bool, bool, mlir::PassPipelineCLParser const&, mlir::DialectRegistry&) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:110:12
#33 0x55bc311f6fab in MlirOptMain third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:147:10
#34 0x55bc311f6fab in mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&, bool) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:251:14
#35 0x55bc309a4837 in main third_party/iree/experimental/runners/mlir-opt.cpp:54:17
#36 0x7f41306cbbbc in __libc_start_main (/usr/grte/v4/lib64/libc.so.6+0x38bbc)
#37 0x55bc308ee108 in _start /usr/grte/v4/debug-src/src/csu/../sysdeps/x86_64/start.S:108
previously allocated by thread T0 here:
#0 0x55bc3098ab7d in malloc third_party/llvm/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
#1 0x55bc3356866c in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::DictionaryAttr, mlir::BlockRange, unsigned int) third_party/llvm/llvm-project/mlir/lib/IR/Operation.cpp:136:46
#2 0x55bc3356979f in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::DictionaryAttr, mlir::BlockRange, mlir::RegionRange) third_party/llvm/llvm-project/mlir/lib/IR/Operation.cpp:94:19
#3 0x55bc335694ce in mlir::Operation::create(mlir::OperationState const&) third_party/llvm/llvm-project/mlir/lib/IR/Operation.cpp:83:10
#4 0x55bc333f8121 in mlir::OpBuilder::createOperation(mlir::OperationState const&) third_party/llvm/llvm-project/mlir/lib/IR/Builders.cpp:393:17
#5 0x55bc309e726e in mlir::TensorToMemrefOp mlir::OpBuilder::create<mlir::TensorToMemrefOp, mlir::MemRefType&, mlir::Value&>(mlir::Location, mlir::MemRefType&, mlir::Value&) third_party/llvm/llvm-project/mlir/include/mlir/IR/Builders.h:399:16
#6 0x55bc309d1a9d in lookup(mlir::BlockAndValueMapping&, mlir::Value) third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:239:21
#7 0x55bc309cdde8 in convertTransferOp third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:917:26
#8 0x55bc309cdde8 in operator() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1315:33
#9 0x55bc309cdde8 in Case<mlir::VectorTransferOpInterface, (lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1314:17)> third_party/llvm/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:158:7
#10 0x55bc309cdde8 in Case<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1314:17)> third_party/llvm/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:54:29
#11 0x55bc309cdde8 in (anonymous namespace)::LinalgComprehensiveBufferizePass::bufferizeFuncOpInternals(mlir::FuncOp)::$_18::operator()(mlir::Operation*) const third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1314:12
#12 0x55bc309c8dd3 in void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::LinalgComprehensiveBufferizePass::bufferizeFuncOpInternals(mlir::FuncOp)::$_18>(long, mlir::Operation*) third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:185:12
#13 0x55bc335bf8eb in operator() third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:209:12
#14 0x55bc335bf8eb in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:45:3
#15 0x55bc335bf8ac in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:42:9
#16 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), mlir::Operation *, void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:98:10
#17 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Operation.h:504:12
#18 0x55bc309bb167 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:17), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/OpDefinition.h:173:19
#19 0x55bc309bb167 in bufferizeFuncOpInternals third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1271:12
#20 0x55bc309bb167 in operator() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:36
#21 0x55bc309bb167 in operator() third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:117:7
#22 0x55bc309bb167 in void llvm::function_ref<void (mlir::Operation*)>::callback_fn<std::__u::enable_if<(!(llvm::is_one_of<mlir::FuncOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value)) && (std::is_same<void, void>::value), void>::type mlir::detail::walk<(anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation()::$_20, mlir::FuncOp, void>(mlir::Operation*, (anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation()::$_20&&)::'lambda'(mlir::Operation*)>(long, mlir::Operation*) third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:185:12
#23 0x55bc335bf8eb in operator() third_party/llvm/llvm-project/llvm/include/llvm/ADT/STLExtras.h:209:12
#24 0x55bc335bf8eb in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:45:3
#25 0x55bc335bf8ac in mlir::detail::walk(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>) third_party/llvm/llvm-project/mlir/lib/IR/Visitors.cpp:42:9
#26 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), mlir::FuncOp, void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Visitors.h:119:10
#27 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/Operation.h:504:12
#28 0x55bc309b6507 in walk<(lambda at third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:15), void> third_party/llvm/llvm-project/mlir/include/mlir/IR/OpDefinition.h:173:19
#29 0x55bc309b6507 in (anonymous namespace)::LinalgComprehensiveBufferizePass::runOnOperation() third_party/iree/experimental/runners/LinalgComprehensiveBufferizePass.cpp:1344:10
#30 0x55bc33149793 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:402:11
#31 0x55bc3314a9df in mlir::detail::OpToOpPassAdaptor::runPipeline(llvm::iterator_range<llvm::pointee_iterator<std::__u::unique_ptr<mlir::Pass, std::__u::default_delete<mlir::Pass> >*, mlir::Pass> >, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:444:16
#32 0x55bc33151cf9 in mlir::PassManager::run(mlir::Operation*) third_party/llvm/llvm-project/mlir/lib/Pass/Pass.cpp:895:13
#33 0x55bc311f8933 in performActions(llvm::raw_ostream&, bool, bool, llvm::SourceMgr&, mlir::MLIRContext*, mlir::PassPipelineCLParser const&) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:76:17
#34 0x55bc311f5585 in processBuffer(llvm::raw_ostream&, std::__u::unique_ptr<llvm::MemoryBuffer, std::__u::default_delete<llvm::MemoryBuffer> >, bool, bool, bool, bool, mlir::PassPipelineCLParser const&, mlir::DialectRegistry&) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:110:12
#35 0x55bc311f6fab in MlirOptMain third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:147:10
#36 0x55bc311f6fab in mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&, bool) third_party/llvm/llvm-project/mlir/lib/Support/MlirOptMain.cpp:251:14
#37 0x55bc309a4837 in main third_party/iree/experimental/runners/mlir-opt.cpp:54:17
#38 0x7f41306cbbbc in __libc_start_main (/usr/grte/v4/lib64/libc.so.6+0x38bbc)
#39 0x55bc308ee108 in _start /usr/grte/v4/debug-src/src/csu/../sysdeps/x86_64/start.S:108
SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/llvm/llvm-project/mlir/include/mlir/IR/UseDefLists.h:201:24 in insertIntoCurrent
Shadow bytes around the buggy address:
0x0c18800090e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c18800090f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c1880009130: fa fa fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa
0x0c1880009140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009150: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009160: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009170: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c1880009180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==771875==ABORTING
Command failed: exit status 1
[ 2]
[ 3] func @main() {
[ 4] %lhs = constant dense<[[[[2.]]]]> : tensor<1x1x1x1xf32>
[ 5] %c0 = constant 0: index
[ 6] %v0 = constant 0.0 : f32
[ 7] %result_vector = vector.transfer_read %lhs[%c0, %c0, %c0, %c0], %v0 : tensor<1x1x1x1xf32>, vector<1x1x1x1xf32>
[ 8] vector.print %result_vector: vector<1x1x1x1xf32>
[ 9] return
[ 10] }
Some commands failed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment