[flang-commits] [flang] [flang][runtime] Fix odd "invalid descriptor" runtime crash (PR #107785)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Tue Sep 10 17:17:02 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `flang` at step 6 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/8451
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build-unified-tree) failure: build (failure)
...
129.322 [25/6/3099] Generating ../../../../include/flang/ieee_features.mod
129.324 [25/5/3100] Generating ../../../../include/flang/__cuda_builtins.mod
129.325 [24/5/3101] Generating ../../../../include/flang/iso_c_binding.mod
129.326 [24/4/3102] Generating ../../../../include/flang/__fortran_ieee_exceptions.mod
129.356 [22/5/3103] Generating ../../../../include/flang/cudadevice.mod
129.363 [22/4/3104] Generating ../../../../include/flang/iso_fortran_env_impl.mod, iso_fortran_env_impl.o
129.376 [21/4/3105] Generating ../../../../include/flang/ieee_exceptions.mod
129.396 [21/3/3106] Generating ../../../../include/flang/ieee_arithmetic.mod
129.412 [21/2/3107] Generating ../../../../include/flang/iso_fortran_env.mod
129.689 [21/1/3108] Generating ../../../../include/flang/__ppc_types.mod
FAILED: include/flang/__ppc_types.mod /build/buildbot/premerge-monolithic-linux/build/include/flang/__ppc_types.mod
cd /build/buildbot/premerge-monolithic-linux/build/tools/flang/tools/f18 && /etc/cmake/bin/cmake -E make_directory /build/buildbot/premerge-monolithic-linux/build/include/flang && /build/buildbot/premerge-monolithic-linux/build/bin/flang-new -cpp -fsyntax-only -module-dir /build/buildbot/premerge-monolithic-linux/build/include/flang /build/buildbot/premerge-monolithic-linux/llvm-project/flang/module/__ppc_types.f90
fatal internal error: CHECK(iter != schemata.end()) failed at /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Semantics/runtime-type-info.cpp(676)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /build/buildbot/premerge-monolithic-linux/build/bin/flang-new -fc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -target-cpu x86-64 -module-dir /build/buildbot/premerge-monolithic-linux/build/include/flang -resource-dir /build/buildbot/premerge-monolithic-linux/build/lib/clang/20 -mframe-pointer=all -x f95-cpp-input /build/buildbot/premerge-monolithic-linux/llvm-project/flang/module/__ppc_types.f90
#0 0x0000583b49c21b18 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13
#1 0x0000583b49c1f64e llvm::sys::RunSignalHandlers() /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/lib/Support/Signals.cpp:106:18
#2 0x0000583b49c222f8 SignalHandler(int) /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#3 0x00007d27b6e7c520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007d27b6ed09fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x00007d27b6e7c476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x00007d27b6e627f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x0000583b4b2c61d6 (/build/buildbot/premerge-monolithic-linux/build/bin/flang-new+0x7c731d6)
#8 0x0000583b4a61ac77 get<Fortran::semantics::ObjectEntityDetails> /build/buildbot/premerge-monolithic-linux/llvm-project/flang/include/flang/Semantics/symbol.h:800:5
#9 0x0000583b4a61ac77 Fortran::semantics::RuntimeTableBuilder::GetEnumValue(char const*) const /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Semantics/runtime-type-info.cpp:715:39
#10 0x0000583b4a61a6bc Fortran::semantics::RuntimeTableBuilder::RuntimeTableBuilder(Fortran::semantics::SemanticsContext&, Fortran::semantics::RuntimeDerivedTypeTables&) /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Semantics/runtime-type-info.cpp:183:7
#11 0x0000583b4a626613 globalScope /build/buildbot/premerge-monolithic-linux/llvm-project/flang/include/flang/Semantics/semantics.h:107:33
#12 0x0000583b4a626613 Fortran::semantics::BuildRuntimeDerivedTypeTables(Fortran::semantics::SemanticsContext&) /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Semantics/runtime-type-info.cpp:1287:35
#13 0x0000583b49c6c170 make_unique<Fortran::semantics::RuntimeDerivedTypeTables, Fortran::semantics::RuntimeDerivedTypeTables> /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:962:30
#14 0x0000583b49c6c170 Fortran::frontend::FrontendAction::generateRtTypeTables() /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Frontend/FrontendAction.cpp:207:7
#15 0x0000583b49c6b16c Fortran::frontend::FrontendAction::beginSourceFile(Fortran::frontend::CompilerInstance&, Fortran::frontend::FrontendInputFile const&) /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Frontend/FrontendAction.cpp:0:8
#16 0x0000583b49c53ee3 Fortran::frontend::CompilerInstance::executeAction(Fortran::frontend::FrontendAction&) /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Frontend/CompilerInstance.cpp:172:9
#17 0x0000583b49c6f7f8 Fortran::frontend::executeCompilerInvocation(Fortran::frontend::CompilerInstance*) /build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:223:25
#18 0x0000583b48512cc1 fc1_main(llvm::ArrayRef<char const*>, char const*) /build/buildbot/premerge-monolithic-linux/llvm-project/flang/tools/flang-driver/fc1_main.cpp:67:13
#19 0x0000583b4851134b executeFC1Tool /build/buildbot/premerge-monolithic-linux/llvm-project/flang/tools/flang-driver/driver.cpp:66:12
#20 0x0000583b4851134b main /build/buildbot/premerge-monolithic-linux/llvm-project/flang/tools/flang-driver/driver.cpp:109:14
#21 0x00007d27b6e63d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#22 0x00007d27b6e63e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#23 0x0000583b48510d65 _start (/build/buildbot/premerge-monolithic-linux/build/bin/flang-new+0x4ebdd65)
flang-new: error: unable to execute command: Aborted
flang-new: error: flang frontend command failed due to signal (use -v to see invocation)
flang-new version 20.0.0git (https://github.com/llvm/llvm-project.git 15106c26662a573df31e8dfdd9350c313b8bfd84)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /build/buildbot/premerge-monolithic-linux/build/bin
Build config: +assertions
flang-new: note: diagnostic msg:
```
</details>
https://github.com/llvm/llvm-project/pull/107785
More information about the flang-commits
mailing list