# How to get the crash stacktrace function name?

Here is a problem when I tried to excute a ‘mlir-opt --linalg-detensorize’ with a mlir document, which I expect a crash stacktrace with function but a following log.

``````mlir-opt: /data/mlir-fuzz/llvm/include/llvm/Support/Casting.h:578: decltype(auto) llvm::cast(From*) [with To = mlir::FunctionOpInterface; From = mlir::Operation]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: ../../build/bin/mlir-opt --linalg-detensorize temp1.mlir
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
../../build/bin/mlir-opt(+0x4bc57c)[0x5579ea9aa57c]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f8453917e87]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f84539197f1]
/lib/x86_64-linux-gnu/libc.so.6(+0x303fa)[0x7f84539093fa]
/lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7f8453909472]
../../build/bin/mlir-opt(+0xa32164)[0x5579eaf20164]
../../build/bin/mlir-opt(+0x1ab5e39)[0x5579ebfa3e39]
../../build/bin/mlir-opt(+0x1ab6bb9)[0x5579ebfa4bb9]
../../build/bin/mlir-opt(+0x1ab7230)[0x5579ebfa5230]
../../build/bin/mlir-opt(+0x1aa91ab)[0x5579ebf971ab]
../../build/bin/mlir-opt(+0x1aa98c2)[0x5579ebf978c2]
../../build/bin/mlir-opt(+0x1aa9bdf)[0x5579ebf97bdf]
../../build/bin/mlir-opt(+0x1b6a960)[0x5579ec058960]
../../build/bin/mlir-opt(+0x1aa85f6)[0x5579ebf965f6]
../../build/bin/mlir-opt(+0x1aaa01b)[0x5579ebf9801b]
../../build/bin/mlir-opt(+0x4265a0)[0x5579ea9145a0]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f84538fac87]
../../build/bin/mlir-opt(+0x49d1ba)[0x5579ea98b1ba]
Aborted (core dumped)
``````

Have you tried the suggestion that is provided here?

I put llvm-symbolizer in my PATH and get the right crash stacktrace function name. Thanks for your help.