Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash backtrace in mltc-opt with AffineExpr operations. #120941

Open
wodylm opened this issue Dec 23, 2024 · 3 comments
Open

Crash backtrace in mltc-opt with AffineExpr operations. #120941

wodylm opened this issue Dec 23, 2024 · 3 comments
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] incomplete Issue not complete (e.g. missing a reproducer, build arguments, etc.) mlir:affine

Comments

@wodylm
Copy link

wodylm commented Dec 23, 2024

when I use affineExpr's operator*:
#0 0x00007f9ebf90145f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22
#1 0x00007f9ebf901912 PrintStackTraceSignalHandler(void*) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:798:1
#2 0x00007f9ebf8fe833 llvm::sys::RunSignalHandlers() /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Signals.cpp:105:20
#3 0x00007f9ebf900b2a SignalHandler(int) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#4 0x00007f9ea384e090 (/lib/x86_64-linux-gnu/libc.so.6+0x43090)
#5 0x00007f9ebb59afa2 mlir::AffineExpr::getKind() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:31:16
#6 0x00007f9ebb59bc05 mlir::AffineExpr::isSymbolicOrConstant() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:170:3
#7 0x00007f9ebb59bc75 mlir::AffineExpr::isSymbolicOrConstant() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:184:49
#8 0x00007f9ebb59e512 simplifyMul(mlir::AffineExpr, mlir::AffineExpr) /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:771:7
#9 0x00007f9ebb59e7d4 mlir::AffineExpr::operator*(mlir::AffineExpr) const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:809:49
#10 0x00007f9eb411346b mltc::lnpu::CosAffineCompute::computeAffineInt(mlir::Operation*, mlir::OpBuilder)::'lambda1'(mlir::Operation*)::operator()(mlir::Operation*) const /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:1035:35
#11 0x00007f9eb4114685 mltc::lnpu::CosAffineCompute::computeAffineInt(mlir::Operation*, mlir::OpBuilder) /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:1231:1
#12 0x00007f9eb2ab6a41 mltc::lnpu::AffineCompute::visitArithOp(mlir::Operation*, mlir::OpBuilder) /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:551:21

@EugeneZelenko EugeneZelenko added mlir:affine incomplete Issue not complete (e.g. missing a reproducer, build arguments, etc.) crash Prefer [crash-on-valid] or [crash-on-invalid] and removed new issue labels Dec 23, 2024
@llvmbot
Copy link
Member

llvmbot commented Dec 23, 2024

@llvm/issue-subscribers-mlir-affine

Author: None (wodylm)

when I use affineExpr's operator*: #0 0x00007f9ebf90145f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22 #1 0x00007f9ebf901912 PrintStackTraceSignalHandler(void*) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:798:1 #2 0x00007f9ebf8fe833 llvm::sys::RunSignalHandlers() /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Signals.cpp:105:20 #3 0x00007f9ebf900b2a SignalHandler(int) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1 #4 0x00007f9ea384e090 (/lib/x86_64-linux-gnu/libc.so.6+0x43090) #5 0x00007f9ebb59afa2 mlir::AffineExpr::getKind() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:31:16 #6 0x00007f9ebb59bc05 mlir::AffineExpr::isSymbolicOrConstant() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:170:3 #7 0x00007f9ebb59bc75 mlir::AffineExpr::isSymbolicOrConstant() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:184:49 #8 0x00007f9ebb59e512 simplifyMul(mlir::AffineExpr, mlir::AffineExpr) /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:771:7 #9 0x00007f9ebb59e7d4 mlir::AffineExpr::operator*(mlir::AffineExpr) const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:809:49 #10 0x00007f9eb411346b mltc::lnpu::CosAffineCompute::computeAffineInt(mlir::Operation*, mlir::OpBuilder)::'lambda1'(mlir::Operation*)::operator()(mlir::Operation*) const /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:1035:35 #11 0x00007f9eb4114685 mltc::lnpu::CosAffineCompute::computeAffineInt(mlir::Operation*, mlir::OpBuilder) /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:1231:1 #12 0x00007f9eb2ab6a41 mltc::lnpu::AffineCompute::visitArithOp(mlir::Operation*, mlir::OpBuilder) /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:551:21

@EugeneZelenko
Copy link
Contributor

Could you please provide reproducer?

@wodylm
Copy link
Author

wodylm commented Dec 24, 2024

Could you please provide reproducer?

Thank you, I solve this problem, I check my code, it may index out of limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] incomplete Issue not complete (e.g. missing a reproducer, build arguments, etc.) mlir:affine
Projects
None yet
Development

No branches or pull requests

3 participants