[flang][aborting with derrived type]
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
stacktrace:
[group_io-fd1a4c.html](https://github.com/user-attachments/files/26681400/group_io-fd1a4c.html)
[group_io-fd1a4c.sh](https://github.com/user-attachments/files/26681403/group_io-fd1a4c.sh)
[sources.zip](https://github.com/user-attachments/files/26681432/sources.zip)
```
:wall | if filereadable('Makefile') | make all | else | cd .. | make all | cd - | endif
:!make all 2>&1| tee /tmp/nvim.zwtqbb/r11sHX/0
flang-22 -std=f2018 -fimplicit-none -fintrinsic-modules-path /include/flang/ -c src/environment.f90 -J obj/ -o obj/e
nvironment.o
flang-22 -std=f2018 -fimplicit-none -fintrinsic-modules-path /include/flang/ -c src/group_io.f90 -J obj/ -o obj/grou
p_io.o
loc("/home/zwtqbb/sd/lr1_1/lab_1_3/src/group_io.f90":36:42): error: runtime derived type info descriptor was not gen
erated and skipExternalRttiDefinition and ignoreMissingTypeDescriptors options are not set
LLVM ERROR: aborting
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instr
uctions to reproduce the bug.
Stack dump:
0. Program arguments: /usr/bin/flang -fc1 -triple x86_64-unknown-linux-gnu -emit-obj -fimplicit-none -mrelocati
on-model pic -pic-level 2 -pic-is-pie -target-cpu x86-64 -std=f2018 -fintrinsic-modules-path /include/flang/ -module
-dir obj/ -resource-dir /usr/lib/clang/22 -mframe-pointer=all -o obj/group_io.o -x f95 src/group_io.f90
#0 0x000056e299583395 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/flang+0x3624395)
#1 0x000056e299580372 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x0000742533c45330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#3 0x0000742533c9eb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
#4 0x0000742533c4527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
#5 0x0000742533c288ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
#6 0x000056e2975d4fe9 llvm::DisplayGraph(llvm::StringRef, bool, llvm::GraphProgram::Name) (.cold) GraphWriter.cpp:0
:0
#7 0x000056e2994d4d6e (/usr/bin/flang+0x3575d6e)
#8 0x000056e2999b566a (/usr/bin/flang+0x3a5666a)
#9 0x000056e29aa28272 (/usr/bin/flang+0x4ac9272)
#10 0x000056e29aa2eebc mlir::Value EmboxCommonConversion::populateDescriptor(mlir::Loc
ation, mlir::ModuleOp, fir::BaseBoxType, mlir::Type, mlir::ConversionPatternRewriter&, unsigned int, mlir::Value, ml
ir::Value, mlir::Value, int, mlir::Value) const (/usr/bin/flang+0x4acfebc)
#11 0x000056e29aa51af1 EmboxOpConversion::matchAndRewrite(fir::EmboxOp, fir::EmboxOpAdaptor, mlir::ConversionPattern
Rewriter&) const (/usr/bin/flang+0x4af2af1)
#12 0x000056e29aa16793 fir::FIROpConversion::matchAndRewrite(mlir::Operation*, llvm::ArrayRef, mlir::ConversionPatternRewriter&) const (/usr/bin/flang+0x4ab7793)
#13 0x000056e29e006989 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/us
r/bin/flang+0x80a7989)
#14 0x000056e29e04e9d4 mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::func
tion_ref, llvm::function_ref, llvm::function_ref) (/usr/bin/flang+0x80ef9d4)
#15 0x000056e29e009e6b (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*) DialectConversion.cpp:0
:0
#16 0x000056e29e009f84 mlir::OperationConverter::convert(mlir::Operation*, bool) (/usr/bin/flang+0x80aaf84)
#17 0x000056e29e00e8b6 mlir::OperationConverter::applyConversion(llvm::ArrayRef) (/usr/bin/flang+0
x80af8b6)
#18 0x000056e29e010040 applyConversion(llvm::ArrayRef, mlir::ConversionTarget const&, mlir::Frozen
RewritePatternSet const&, mlir::ConversionConfig, (anonymous namespace)::OpConversionMode) DialectConversion.cpp:0:0
#19 0x000056e29e01030b mlir::applyFullConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewrit
ePatternSet const&, mlir::ConversionConfig) (/usr/bin/flang+0x80b130b)
#20 0x000056e29aa391c6 (anonymous namespace)::FIRToLLVMLowering::runOnOperation() CodeGen.cpp:0:0
#21 0x000056e29f73ea86 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bo
ol, unsigned int) (/usr/bin/flang+0x97dfa86)
#22 0x000056e29f73ed30 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::An
alysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/
usr/bin/flang+0x97dfd30)
#23 0x000056e29f73f8dd mlir::PassManager::run(mlir::Operation*) (/usr/bin/flang+0x97e08dd)
#24 0x000056e2998bea04 Fortran::frontend::CodeGenAction::generateLLVMIR() (/usr/bin/flang+0x395fa04)
#25 0x000056e2998c3078 Fortran::frontend::CodeGenAction::executeAction() (/usr/bin/flang+0x3964078)
#26 0x000056e2995ef100 Fortran::frontend::FrontendAction::execute() (/usr/bin/flang+0x3690100)
#27 0x000056e2995da858 Fortran::frontend::CompilerInstance::executeAction(Fortran::frontend::FrontendAction&) (/usr/
bin/flang+0x367b858)
bin/flang+0x367b858)
#28 0x000056e2995f9f50 Fortran::frontend::executeCompilerInvocation(Fortran::frontend::CompilerInstance*) (/usr/bin/
flang+0x369af50)
#29 0x000056e2977b2626 fc1_main(llvm::ArrayRef, char const*) (/usr/bin/flang+0x1853626)
#30 0x000056e297636a82 main (/usr/bin/flang+0x16d7a82)
#31 0x0000742533c2a1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#32 0x0000742533c2a28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#33 0x000056e2977b0dd5 _start (/usr/bin/flang+0x1851dd5)
flang-22: error: unable to execute command: Aborted (core dumped)
flang-22: error: flang frontend command failed due to signal (use -v to see invocation)
flang version 22.1.1 (https://github.com/llvm/llvm-project.git fef02d48c08db859ef83f84232ed78bd9d1c323a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
flang-22: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
flang-22: note: diagnostic msg: /tmp/group_io-fd1a4c
flang-22: note: diagnostic msg: /tmp/group_io-fd1a4c.sh
flang-22: note: diagnostic msg:
********************
make: *** [Makefile:7: all] Error 254
(3 of 57): 42): error: runtime derived type info descriptor was not generated and skipExternalRttiDefinition and ign
oreMissingTypeDescriptors options are not set
```
Contributor guide
Assessment
This issue has not been assessed yet.