Skip to content

Instantly share code, notes, and snippets.

@pashu123
Created November 15, 2024 03:35
Show Gist options
  • Save pashu123/29bb25c4d7ba7261bd6f903513dd5bf3 to your computer and use it in GitHub Desktop.
Save pashu123/29bb25c4d7ba7261bd6f903513dd5bf3 to your computer and use it in GitHub Desktop.
==2213870==ERROR: AddressSanitizer: heap-use-after-free on address 0x50e000021d2c at pc 0x7b499bfdc2d7 bp 0x7fff58a95a70 sp 0x7fff58a95a68
READ of size 4 at 0x50e000021d2c thread T0
#0 0x7b499bfdc2d6 in mlir::Operation::getRegions() /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Operation.h:674:9
#1 0x7b499bfdc2d6 in mlir::ForwardIterator::makeIterable(mlir::Operation&) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Visitors.cpp:18:16
#2 0x7b499bd783f1 in void mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, mlir::WalkOrder) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Visitors.h:176:23
#3 0x7b49a160111e in std::enable_if<!llvm::is_one_of<mlir::gpu::ThreadIdOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value && std::is_same<void, void>::value, void>::type mlir::detail::walk<(mlir::WalkOrder)1, mlir::ForwardIterator, void replaceUnitMappingIdsHelper<mlir::gpu::ThreadIdOp, mlir::Operation>(mlir::RewriterBase&, mlir::Location, mlir::Operation*, mlir::Value, llvm::ArrayRef<long>)::'lambda'(mlir::gpu::ThreadIdOp), mlir::gpu::ThreadIdOp, void>(mlir::Operation*, void replaceUnitMappingIdsHelper<mlir::gpu::ThreadIdOp, mlir::Operation>(mlir::RewriterBase&, mlir::Location, mlir::Operation*, mlir::Value, llvm::ArrayRef<long>)::'lambda'(mlir::gpu::ThreadIdOp)&&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Visitors.h:340:10
#4 0x7b49a160111e in std::enable_if<llvm::function_traits<std::decay<void replaceUnitMappingIdsHelper<mlir::gpu::ThreadIdOp, mlir::Operation>(mlir::RewriterBase&, mlir::Location, mlir::Operation*, mlir::Value, llvm::ArrayRef<long>)::'lambda'(mlir::gpu::ThreadIdOp)>::type>::num_args == 1, void>::type mlir::Operation::walk<(mlir::WalkOrder)1, mlir::ForwardIterator, void replaceUnitMappingIdsHelper<mlir::gpu::ThreadIdOp, mlir::Operation>(mlir::RewriterBase&, mlir::Location, mlir::Operation*, mlir::Value, llvm::ArrayRef<long>)::'lambda'(mlir::gpu::ThreadIdOp), void>(void replaceUnitMappingIdsHelper<mlir::gpu::ThreadIdOp, mlir::Operation>(mlir::RewriterBase&, mlir::Location, mlir::Operation*, mlir::Value, llvm::ArrayRef<long>)::'lambda'(mlir::gpu::ThreadIdOp)&&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Operation.h:794:12
#5 0x7b49a160111e in void replaceUnitMappingIdsHelper<mlir::gpu::ThreadIdOp, mlir::Operation>(mlir::RewriterBase&, mlir::Location, mlir::Operation*, mlir::Value, llvm::ArrayRef<long>) /home/nod/iree/third_party/llvm-project/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp:408:11
#6 0x7b49a160111e in mlir::transform::gpu::mapNestedForallToThreadsImpl(mlir::RewriterBase&, std::optional<mlir::transform::TransformOpInterface>, mlir::Operation*, llvm::ArrayRef<long>, long, bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp:875:3
#7 0x7b49a152ffd7 in mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp)::operator()(mlir::scf::ForallOp) const /home/nod/iree/compiler/src/iree/compiler/Codegen/Common/GPU/GPUDistribute.cpp:55:18
#8 0x7b49a152ffd7 in std::enable_if<!llvm::is_one_of<mlir::scf::ForallOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value && std::is_same<mlir::WalkResult, mlir::WalkResult>::value, mlir::WalkResult>::type mlir::detail::walk<(mlir::WalkOrder)1, mlir::ForwardIterator, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp), mlir::scf::ForallOp, mlir::WalkResult>(mlir::Operation*, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp)&&)::'lambda'(mlir::Operation*)::operator()(mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Visitors.h:375:14
#9 0x7b49a152ffd7 in mlir::WalkResult llvm::function_ref<mlir::WalkResult (mlir::Operation*)>::callback_fn<std::enable_if<!llvm::is_one_of<mlir::scf::ForallOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value && std::is_same<mlir::WalkResult, mlir::WalkResult>::value, mlir::WalkResult>::type mlir::detail::walk<(mlir::WalkOrder)1, mlir::ForwardIterator, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp), mlir::scf::ForallOp, mlir::WalkResult>(mlir::Operation*, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp)&&)::'lambda'(mlir::Operation*)>(long, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#10 0x7b499ba65165 in mlir::WalkResult mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<mlir::WalkResult (mlir::Operation*)>, mlir::WalkOrder) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Visitors.h:273:13
#11 0x7b499ba65165 in mlir::WalkResult mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<mlir::WalkResult (mlir::Operation*)>, mlir::WalkOrder) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Visitors.h:273:13
#12 0x7b49a152f7d8 in std::enable_if<!llvm::is_one_of<mlir::scf::ForallOp, mlir::Operation*, mlir::Region*, mlir::Block*>::value && std::is_same<mlir::WalkResult, mlir::WalkResult>::value, mlir::WalkResult>::type mlir::detail::walk<(mlir::WalkOrder)1, mlir::ForwardIterator, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp), mlir::scf::ForallOp, mlir::WalkResult>(mlir::Operation*, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp)&&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Visitors.h:378:10
#13 0x7b49a152f7d8 in std::enable_if<llvm::function_traits<std::decay<mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp)>::type>::num_args == 1, mlir::WalkResult>::type mlir::Operation::walk<(mlir::WalkOrder)1, mlir::ForwardIterator, mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp), mlir::WalkResult>(mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation()::'lambda'(mlir::scf::ForallOp)&&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Operation.h:794:12
#14 0x7b49a152f7d8 in mlir::iree_compiler::(anonymous namespace)::GPUDistributePass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Codegen/Common/GPU/GPUDistribute.cpp:49:37
#15 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#16 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#17 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#18 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#19 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#20 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#21 0x7b499c23cd44 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:509:12
#22 0x7b499c23cd44 in llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0>(long, mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#23 0x7b49a0a6cbf4 in llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#24 0x7b49a0a6cbf4 in mlir::Pass::runPipeline(mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/Pass/Pass.h:200:12
#25 0x7b49a0a6cbf4 in mlir::iree_compiler::(anonymous namespace)::LLVMGPULowerExecutableTargetPass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPULowerExecutableTarget.cpp:173:14
#26 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#27 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#28 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#29 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#30 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#31 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#32 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#33 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#34 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#35 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#36 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#37 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#38 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#39 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#40 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#41 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#42 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#43 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#44 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#45 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#46 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#47 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#48 0x7b499c23cd44 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:509:12
#49 0x7b499c23cd44 in llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0>(long, mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#50 0x7b499fe0125f in llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#51 0x7b499fe0125f in mlir::Pass::runPipeline(mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/Pass/Pass.h:200:12
#52 0x7b499fe0125f in mlir::iree_compiler::IREE::HAL::(anonymous namespace)::TranslateTargetExecutableVariantsPass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp:68:16
#53 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#54 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#55 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#56 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#57 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#58 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#59 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#60 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#61 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#62 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#63 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#64 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#65 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#66 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#67 0x7b499c23cd44 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:509:12
#68 0x7b499c23cd44 in llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0>(long, mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#69 0x7b499fe02f36 in llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#70 0x7b499fe02f36 in mlir::Pass::runPipeline(mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/Pass/Pass.h:200:12
#71 0x7b499fe02f36 in mlir::iree_compiler::IREE::HAL::(anonymous namespace)::TranslateExecutablesPass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp:108:16
#72 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#73 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#74 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#75 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#76 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#77 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#78 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#79 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#80 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#81 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#82 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#83 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#84 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#85 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#86 0x7b499c237a0e in mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:905:10
#87 0x7b499c237a0e in mlir::PassManager::run(mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:885:60
#88 0x7b499ba90f4e in mlir::iree_compiler::embed::(anonymous namespace)::Invocation::runPipeline(iree_compiler_pipeline_t) /home/nod/iree/compiler/src/iree/compiler/API/Internal/CompilerDriver.cpp:1008:27
#89 0x7b499ba90f4e in ireeCompilerInvocationPipeline /home/nod/iree/compiler/src/iree/compiler/API/Internal/CompilerDriver.cpp:1447:23
#90 0x7b499c080dd9 in mlir::iree_compiler::runIreecMain(int, char**)::$_2::operator()(iree_compiler_source_t*) const /home/nod/iree/compiler/src/iree/compiler/Tools/iree_compile_lib.cc:254:12
#91 0x7b499c07f884 in mlir::iree_compiler::runIreecMain(int, char**) /home/nod/iree/compiler/src/iree/compiler/Tools/iree_compile_lib.cc:355:10
#92 0x7b498d829d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#93 0x7b498d829e3f in __libc_start_main csu/../csu/libc-start.c:392:3
#94 0x6537ea170e54 in _start (/home/nod/iree-build/tools/iree-compile+0x67e54) (BuildId: 2c094ba9c7dc6f92)
0x50e000021d2c is located 44 bytes inside of 152-byte region [0x50e000021d00,0x50e000021d98)
freed by thread T0 here:
#0 0x6537ea20adf6 in free (/home/nod/iree-build/tools/iree-compile+0x101df6) (BuildId: 2c094ba9c7dc6f92)
#1 0x7b499bf15807 in mlir::Operation::destroy() /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Operation.cpp:214:3
#2 0x7b499bf15807 in llvm::ilist_traits<mlir::Operation>::deleteNode(mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Operation.cpp:492:7
#3 0x7b499bf15807 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, void>, false, false>) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/ilist.h:205:5
previously allocated by thread T0 here:
#0 0x6537ea20b08f in malloc (/home/nod/iree-build/tools/iree-compile+0x10208f) (BuildId: 2c094ba9c7dc6f92)
#1 0x7b499befc7da in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::DictionaryAttr, mlir::OpaqueProperties, mlir::BlockRange, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Operation.cpp:114:46
#2 0x7b499befbe89 in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::NamedAttrList&&, mlir::OpaqueProperties, mlir::BlockRange, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Operation.cpp:75:10
#3 0x7b499befbe89 in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::NamedAttrList&&, mlir::OpaqueProperties, mlir::BlockRange, mlir::RegionRange) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Operation.cpp:58:7
#4 0x7b499befbad9 in mlir::Operation::create(mlir::OperationState const&) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Operation.cpp:36:7
#5 0x7b499bd7592f in mlir::OpBuilder::create(mlir::OperationState const&) /home/nod/iree/third_party/llvm-project/mlir/lib/IR/Builders.cpp:498:17
#6 0x7b49a4ce9062 in mlir::scf::(anonymous namespace)::ForallOpInterface::bufferize(mlir::Operation*, mlir::RewriterBase&, mlir::bufferization::BufferizationOptions const&) const /home/nod/iree/third_party/llvm-project/mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp:1267:28
#7 0x7b49a4ce9062 in mlir::bufferization::detail::BufferizableOpInterfaceInterfaceTraits::FallbackModel<mlir::scf::(anonymous namespace)::ForallOpInterface>::bufferize(mlir::bufferization::detail::BufferizableOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::RewriterBase&, mlir::bufferization::BufferizationOptions const&) /home/nod/iree-build/llvm-project/tools/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h.inc:1052:49
#8 0x7b49a501ad6e in mlir::bufferization::bufferizeOp(mlir::Operation*, mlir::bufferization::BufferizationOptions const&, mlir::bufferization::BufferizationStatistics*) /home/nod/iree/third_party/llvm-project/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp:478:31
#9 0x7b49a2561ca5 in mlir::iree_compiler::runIREEOneShotBufferize(mlir::Operation*, mlir::iree_compiler::IREEOneShotBufferizationOptions const&) /home/nod/iree/compiler/src/iree/compiler/Codegen/Common/IREEComprehensiveBufferizePass.cpp:213:10
#10 0x7b49a2561ca5 in mlir::iree_compiler::(anonymous namespace)::IREEComprehensiveBufferizePass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Codegen/Common/IREEComprehensiveBufferizePass.cpp:230:14
#11 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#12 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#13 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#14 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#15 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#16 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#17 0x7b499c23cd44 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:509:12
#18 0x7b499c23cd44 in llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0>(long, mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#19 0x7b49a0a6cbf4 in llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#20 0x7b49a0a6cbf4 in mlir::Pass::runPipeline(mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/Pass/Pass.h:200:12
#21 0x7b49a0a6cbf4 in mlir::iree_compiler::(anonymous namespace)::LLVMGPULowerExecutableTargetPass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPULowerExecutableTarget.cpp:173:14
#22 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#23 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#24 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#25 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#26 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#27 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#28 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#29 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#30 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#31 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#32 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#33 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#34 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#35 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#36 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#37 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#38 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#39 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#40 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#41 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#42 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#43 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#44 0x7b499c23cd44 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:509:12
#45 0x7b499c23cd44 in llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0>(long, mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#46 0x7b499fe0125f in llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#47 0x7b499fe0125f in mlir::Pass::runPipeline(mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/Pass/Pass.h:200:12
#48 0x7b499fe0125f in mlir::iree_compiler::IREE::HAL::(anonymous namespace)::TranslateTargetExecutableVariantsPass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp:68:16
#49 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#50 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#51 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#52 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#53 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#54 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#55 0x7b499c235a95 in mlir::detail::OpToOpPassAdaptor::runOnOperationImpl(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:733:20
#56 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:715:5
#57 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:524:20
#58 0x7b499c22f7ab in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#59 0x7b499c22f7ab in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#60 0x7b499c22f7ab in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#61 0x7b499c22f7ab in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
#62 0x7b499c2309d0 in mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:592:16
#63 0x7b499c23cd44 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:509:12
#64 0x7b499c23cd44 in llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_0>(long, mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#65 0x7b499fe02f36 in llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager&, mlir::Operation*)>::operator()(mlir::OpPassManager&, mlir::Operation*) const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#66 0x7b499fe02f36 in mlir::Pass::runPipeline(mlir::OpPassManager&, mlir::Operation*) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/Pass/Pass.h:200:12
#67 0x7b499fe02f36 in mlir::iree_compiler::IREE::HAL::(anonymous namespace)::TranslateExecutablesPass::runOnOperation() /home/nod/iree/compiler/src/iree/compiler/Dialect/HAL/Transforms/TranslateExecutables.cpp:108:16
#68 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1::operator()() const /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:526:17
#69 0x7b499c22f3f7 in void llvm::function_ref<void ()>::callback_fn<mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int)::$_1>(long) /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#70 0x7b499c22f3f7 in llvm::function_ref<void ()>::operator()() const /home/nod/iree/third_party/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
#71 0x7b499c22f3f7 in void mlir::MLIRContext::executeAction<mlir::PassExecutionAction, mlir::Pass&>(llvm::function_ref<void ()>, llvm::ArrayRef<mlir::IRUnit>, mlir::Pass&) /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/MLIRContext.h:280:7
#72 0x7b499c22f3f7 in mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/nod/iree/third_party/llvm-project/mlir/lib/Pass/Pass.cpp:520:21
SUMMARY: AddressSanitizer: heap-use-after-free /home/nod/iree/third_party/llvm-project/mlir/include/mlir/IR/Operation.h:674:9 in mlir::Operation::getRegions()
Shadow bytes around the buggy address:
0x50e000021a80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x50e000021b00: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x50e000021b80: fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa
0x50e000021c00: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x50e000021c80: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa
=>0x50e000021d00: fd fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd
0x50e000021d80: fd fd fd fa fa fa fa fa fa fa fa fa 00 00 00 00
0x50e000021e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa
0x50e000021e80: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x50e000021f00: 00 00 00 00 00 00 00 00 00 00 00 fa fa fa fa fa
0x50e000021f80: 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
==2213870==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment