llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[mlir] Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed.

Open Anonymous7i0em3yd opened this issue 5 months ago • 2 comments

git version: 5492d06d4fb99795b3b7247be374cdcb47f5ac03

system: Ubuntu 18.04.6 LTS

reproduce with: mlir-opt -convert-openmp-to-llvm -convert-vector-to-llvm -acc-implicit-data a.mlir

a.mlir:

module {
  func.func @test(%arg0: memref<10xf32>, %arg1: index) {
    %0 = acc.create varPtr(%arg0 : memref<10xf32>) -> memref<10xf32>
    acc.serial dataOperands(%0 : memref<10xf32>) {
      %c0 = arith.constant 0 : index
      %c0_0 = arith.constant 0 : index
      %1 = arith.cmpi sge, %arg1, %c0 : index
      %2 = arith.cmpi slt, %arg1, %c0 : index
      %3 = arith.andi %1, %2 : i1
      cf.assert %3, "ERROR: Runtime op verification failed\0A%7 = \22memref.load\22(%arg1, %arg2) : (memref<10xf32>, index) -> f32\0A^ out-of-bounds access\0ALocation: loc(\22/data/szy/MLIR/seed729/tmp.fJQ9P1y8uQ.mlir\22:2:8)"
      %4 = memref.load %arg0[%arg1] : memref<10xf32>
      acc.yield
    }
    return
  }
}

stack trace:

mlir-opt: /data/szy/MLIR/llvm-release/llvm-project/llvm/include/llvm/Support/Casting.h:656: decltype(auto) llvm::dyn_cast(From *) [To = mlir::acc::CopyinOp, From = mlir::Operation]: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt -convert-openmp-to-llvm -convert-vector-to-llvm -acc-implicit-data 58.mlir
 #0 0x0000556dc5ca10f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20300f8)
 #1 0x0000556dc5c9df91 llvm::sys::RunSignalHandlers() (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x202cf91)
 #2 0x0000556dc5ca2216 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007fe14dbdc420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #4 0x00007fe14d21900b raise /build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #5 0x00007fe14d1f8859 abort /build/glibc-LcI20x/glibc-2.31/stdlib/abort.c:81:7
 #6 0x00007fe14d1f8729 get_sysdep_segment_value /build/glibc-LcI20x/glibc-2.31/intl/loadmsgcat.c:509:8
 #7 0x00007fe14d1f8729 _nl_load_domain /build/glibc-LcI20x/glibc-2.31/intl/loadmsgcat.c:970:34
 #8 0x00007fe14d209fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #9 0x0000556dc7aa98bc mlir::acc::getBounds(mlir::Operation*) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x3e388bc)
#10 0x0000556dc66973c4 (anonymous namespace)::fillInBoundsForUnknownDimensions(mlir::Operation*, mlir::OpBuilder&) ACCImplicitData.cpp:0:0
#11 0x0000556dc6695350 (anonymous namespace)::ACCImplicitData::runOnOperation()::$_0::operator()(mlir::Operation*) const ACCImplicitData.cpp:0:0
#12 0x0000556dc5d62ece void mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, mlir::WalkOrder) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20f1ece)
#13 0x0000556dc5d62ece void mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, mlir::WalkOrder) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20f1ece)
#14 0x0000556dc6690595 (anonymous namespace)::ACCImplicitData::runOnOperation() ACCImplicitData.cpp:0:0
#15 0x0000556dce64c502 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9db502)
#16 0x0000556dce64d344 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9dc344)
#17 0x0000556dce65425a mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9e325a)
#18 0x0000556dce653b8f mlir::PassManager::run(mlir::Operation*) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9e2b8f)
#19 0x0000556dc5d503d0 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#20 0x0000556dc5d4f606 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#21 0x0000556dce9a08a5 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xad2f8a5)
#22 0x0000556dc5d46666 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20d5666)
#23 0x0000556dc5d46a45 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20d5a45)
#24 0x0000556dc5d46da5 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20d5da5)
#25 0x0000556dc5c86b82 main (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x2015b82)
#26 0x00007fe14d1fa083 __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:342:3
#27 0x0000556dc5c866be _start (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20156be)
Aborted (core dumped)

Anonymous7i0em3yd avatar Jun 23 '26 07:06 Anonymous7i0em3yd

@llvm/issue-subscribers-mlir

Author: Anonymous7i0em3yd

git version: 5492d06d4fb99795b3b7247be374cdcb47f5ac03

system: Ubuntu 18.04.6 LTS

reproduce with: mlir-opt -convert-openmp-to-llvm -convert-vector-to-llvm -acc-implicit-data a.mlir

a.mlir:

module {
  func.func @<!-- -->test(%arg0: memref&lt;10xf32&gt;, %arg1: index) {
    %0 = acc.create varPtr(%arg0 : memref&lt;10xf32&gt;) -&gt; memref&lt;10xf32&gt;
    acc.serial dataOperands(%0 : memref&lt;10xf32&gt;) {
      %c0 = arith.constant 0 : index
      %c0_0 = arith.constant 0 : index
      %1 = arith.cmpi sge, %arg1, %c0 : index
      %2 = arith.cmpi slt, %arg1, %c0 : index
      %3 = arith.andi %1, %2 : i1
      cf.assert %3, "ERROR: Runtime op verification failed\0A%7 = \22memref.load\22(%arg1, %arg2) : (memref&lt;10xf32&gt;, index) -&gt; f32\0A^ out-of-bounds access\0ALocation: loc(\22/data/szy/MLIR/seed729/tmp.fJQ9P1y8uQ.mlir\22:2:8)"
      %4 = memref.load %arg0[%arg1] : memref&lt;10xf32&gt;
      acc.yield
    }
    return
  }
}

stack trace:

mlir-opt: /data/szy/MLIR/llvm-release/llvm-project/llvm/include/llvm/Support/Casting.h:656: decltype(auto) llvm::dyn_cast(From *) [To = mlir::acc::CopyinOp, From = mlir::Operation]: Assertion `detail::isPresent(Val) &amp;&amp; "dyn_cast on a non-existent value"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt -convert-openmp-to-llvm -convert-vector-to-llvm -acc-implicit-data 58.mlir
 #<!-- -->0 0x0000556dc5ca10f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20300f8)
 #<!-- -->1 0x0000556dc5c9df91 llvm::sys::RunSignalHandlers() (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x202cf91)
 #<!-- -->2 0x0000556dc5ca2216 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #<!-- -->3 0x00007fe14dbdc420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #<!-- -->4 0x00007fe14d21900b raise /build/glibc-LcI20x/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #<!-- -->5 0x00007fe14d1f8859 abort /build/glibc-LcI20x/glibc-2.31/stdlib/abort.c:81:7
 #<!-- -->6 0x00007fe14d1f8729 get_sysdep_segment_value /build/glibc-LcI20x/glibc-2.31/intl/loadmsgcat.c:509:8
 #<!-- -->7 0x00007fe14d1f8729 _nl_load_domain /build/glibc-LcI20x/glibc-2.31/intl/loadmsgcat.c:970:34
 #<!-- -->8 0x00007fe14d209fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #<!-- -->9 0x0000556dc7aa98bc mlir::acc::getBounds(mlir::Operation*) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x3e388bc)
#<!-- -->10 0x0000556dc66973c4 (anonymous namespace)::fillInBoundsForUnknownDimensions(mlir::Operation*, mlir::OpBuilder&amp;) ACCImplicitData.cpp:0:0
#<!-- -->11 0x0000556dc6695350 (anonymous namespace)::ACCImplicitData::runOnOperation()::$_0::operator()(mlir::Operation*) const ACCImplicitData.cpp:0:0
#<!-- -->12 0x0000556dc5d62ece void mlir::detail::walk&lt;mlir::ForwardIterator&gt;(mlir::Operation*, llvm::function_ref&lt;void (mlir::Operation*)&gt;, mlir::WalkOrder) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20f1ece)
#<!-- -->13 0x0000556dc5d62ece void mlir::detail::walk&lt;mlir::ForwardIterator&gt;(mlir::Operation*, llvm::function_ref&lt;void (mlir::Operation*)&gt;, mlir::WalkOrder) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20f1ece)
#<!-- -->14 0x0000556dc6690595 (anonymous namespace)::ACCImplicitData::runOnOperation() ACCImplicitData.cpp:0:0
#<!-- -->15 0x0000556dce64c502 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9db502)
#<!-- -->16 0x0000556dce64d344 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&amp;, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9dc344)
#<!-- -->17 0x0000556dce65425a mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9e325a)
#<!-- -->18 0x0000556dce653b8f mlir::PassManager::run(mlir::Operation*) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xa9e2b8f)
#<!-- -->19 0x0000556dc5d503d0 performActions(llvm::raw_ostream&amp;, std::shared_ptr&lt;llvm::SourceMgr&gt; const&amp;, mlir::MLIRContext*, mlir::MlirOptMainConfig const&amp;) MlirOptMain.cpp:0:0
#<!-- -->20 0x0000556dc5d4f606 llvm::LogicalResult llvm::function_ref&lt;llvm::LogicalResult (std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;)&gt;::callback_fn&lt;mlir::MlirOptMain(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, mlir::DialectRegistry&amp;, mlir::MlirOptMainConfig const&amp;)::$_0&gt;(long, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;) MlirOptMain.cpp:0:0
#<!-- -->21 0x0000556dce9a08a5 mlir::splitAndProcessBuffer(std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::function_ref&lt;llvm::LogicalResult (std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, llvm::MemoryBufferRef const&amp;, llvm::raw_ostream&amp;)&gt;, llvm::raw_ostream&amp;, llvm::StringRef, llvm::StringRef) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0xad2f8a5)
#<!-- -->22 0x0000556dc5d46666 mlir::MlirOptMain(llvm::raw_ostream&amp;, std::unique_ptr&lt;llvm::MemoryBuffer, std::default_delete&lt;llvm::MemoryBuffer&gt;&gt;, mlir::DialectRegistry&amp;, mlir::MlirOptMainConfig const&amp;) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20d5666)
#<!-- -->23 0x0000556dc5d46a45 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&amp;) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20d5a45)
#<!-- -->24 0x0000556dc5d46da5 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&amp;) (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20d5da5)
#<!-- -->25 0x0000556dc5c86b82 main (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x2015b82)
#<!-- -->26 0x00007fe14d1fa083 __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:342:3
#<!-- -->27 0x0000556dc5c866be _start (/data/szy/MLIR/llvm-release/llvm-project/build/bin/mlir-opt+0x20156be)
Aborted (core dumped)

The following program triggers the same crash with mlir-opt -acc-implicit-data.

module {
  llvm.func @malloc(i32) -> !llvm.ptr
  
  func.func @m() -> () {
    %7 = llvm.mlir.constant(0 : index) : i32
    
    %12 = llvm.mlir.zero : !llvm.ptr
    %21 = llvm.getelementptr %12[10] : (!llvm.ptr) -> !llvm.ptr, f32
    %22 = llvm.ptrtoint %21 : !llvm.ptr to i32
    %23 = llvm.call @malloc(%22) : (i32) -> !llvm.ptr
    
    acc.serial {
      %131 = llvm.getelementptr inbounds|nuw %23[%7] : (!llvm.ptr, i32) -> !llvm.ptr, f32
      acc.terminator
    }
    return
  }
}

The stacktrace:

mlir-opt: /data2/dependency/dev/llvm-project/llvm/include/llvm/Support/Casting.h:656: decltype(auto) llvm::dyn_cast(From*) [with To = mlir::acc::CopyinOp; From = mlir::Operation]: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.      Program arguments: /data2/dependency/dev/llvm-project/build/bin/mlir-opt -acc-implicit-data a.mlir
 #0 0x000055c9b4ea923f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25cf23f)
 #1 0x000055c9b4ea59fc llvm::sys::RunSignalHandlers() (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25cb9fc)
 #2 0x000055c9b4ea5b97 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007f8210c46420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #4 0x00007f821073100b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
 #5 0x00007f8210710859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
 #6 0x00007f8210710729 (/lib/x86_64-linux-gnu/libc.so.6+0x22729)
 #7 0x00007f8210721fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #8 0x000055c9b6accda4 decltype(auto) llvm::dyn_cast<mlir::acc::CopyinOp, mlir::Operation>(mlir::Operation*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x41f2da4)
 #9 0x000055c9b6bd292e mlir::acc::getBounds(mlir::Operation*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x42f892e)
#10 0x000055c9b5a09703 void (anonymous namespace)::ACCImplicitData::generateImplicitDataOps<mlir::acc::SerialOp>(mlir::ModuleOp&, mlir::acc::SerialOp, std::optional<mlir::acc::ClauseDefaultValue>&, mlir::acc::OpenACCSupport&) ACCImplicitData.cpp:0:0
#11 0x000055c9b5a0cf59 void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::ACCImplicitData::runOnOperation()::'lambda'(mlir::Operation*)>(long, mlir::Operation*) ACCImplicitData.cpp:0:0
#12 0x000055c9b5a01f7c void mlir::detail::walk<mlir::ForwardIterator>(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, mlir::WalkOrder) (.constprop.1) ACCImplicitData.cpp:0:0
#13 0x000055c9b5a0caa5 (anonymous namespace)::ACCImplicitData::runOnOperation() ACCImplicitData.cpp:0:0
#14 0x000055c9bdce6051 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb40c051)
#15 0x000055c9bdce63e0 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb40c3e0)
#16 0x000055c9bdce8494 mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb40e494)
#17 0x000055c9bdce9521 mlir::PassManager::run(mlir::Operation*) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb40f521)
#18 0x000055c9b4f6f2db performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#19 0x000055c9b4f6fd83 processBuffer(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef, mlir::MlirOptMainConfig const&, mlir::DialectRegistry&, mlir::SourceMgrDiagnosticVerifierHandler*, llvm::ThreadPoolInterface*) MlirOptMain.cpp:0:0
#20 0x000055c9b4f7000b llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::'lambda'(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef, llvm::raw_ostream&)>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#21 0x000055c9be0bf515 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0xb7e5515)
#22 0x000055c9b4f66114 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (.part.0) MlirOptMain.cpp:0:0
#23 0x000055c9b4f70527 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x2696527)
#24 0x000055c9b4f70763 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x2696763)
#25 0x000055c9b4dd5b8c main (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x24fbb8c)
#26 0x00007f8210712083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#27 0x000055c9b4e8592e _start (/data2/dependency/dev/llvm-project/build/bin/mlir-opt+0x25ab92e)
Aborted (core dumped)

Aran-414 avatar Jun 25 '26 02:06 Aran-414