Issue 128344
Summary [MLIR]`--mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t` triggers LLVM ERROR: Local crash reproduction can't be setup on a pass-manager without disabling multi-threading first
Labels mlir
Assignees
Reporter xisang0
    Test on commit: https://github.com/llvm/llvm-project/commit/1d070988d9172965dee227e5629fa886845b815f
steps to reproduce:
```
mlir-opt test.mlir --mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t
```
test case:
```
module {

}
```
crash trace:
```
LLVM ERROR: Local crash reproduction can't be setup on a pass-manager without disabling multi-threading first.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: ./mlir-opt /home/workdir/test.mlir --mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t
 #0 0x0000652425b022b8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (./mlir-opt+0x10b62b8)
 #1 0x0000652425affdde llvm::sys::RunSignalHandlers() (./mlir-opt+0x10b3dde)
 #2 0x0000652425b02cc8 SignalHandler(int) Signals.cpp:0:0
 #3 0x000072d05a342520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x000072d05a3969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #5 0x000072d05a342476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #6 0x000072d05a3287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #7 0x0000652425b222bc llvm::report_fatal_error(llvm::Twine const&, bool) (./mlir-opt+0x10d62bc)
 #8 0x0000652425b22106 (./mlir-opt+0x10d6106)
 #9 0x0000652428f029d6 (./mlir-opt+0x44b69d6)
#10 0x0000652428f028a6 mlir::PassManager::enableCrashReproducerGeneration(llvm::StringRef, bool) (./mlir-opt+0x44b68a6)
#11 0x0000652428f047b3 mlir::applyPassManagerCLOptions(mlir::PassManager&) (./mlir-opt+0x44b87b3)
#12 0x0000652428ef4033 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#13 0x0000652428ef3d03 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, 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::raw_ostream&) MlirOptMain.cpp:0:0
#14 0x0000652428f9d465 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::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (./mlir-opt+0x4551465)
#15 0x0000652428eed962 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (./mlir-opt+0x44a1962)
#16 0x0000652428eedc13 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (./mlir-opt+0x44a1c13)
#17 0x0000652428eede22 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (./mlir-opt+0x44a1e22)
#18 0x0000652425ae14d7 main (./mlir-opt+0x10954d7)
#19 0x000072d05a329d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#20 0x000072d05a329e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#21 0x0000652425ae1045 _start (./mlir-opt+0x1095045)
Aborted (core dumped)
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to