20187, "milthorpe", "Chapel compiler crashes with LLVM UNREACHABLE executed when called with -O -g", "2022-07-11T03:48:13Z"
Summary of Problem
The Chapel compiler crashes with an LLVM error when invoked with -O -g
. Neither flag causes a problem if used by itself, nor does --fast -g
.
Steps to Reproduce
When I invoke the Chapel compiler on any code e.g. examples/hello.chpl
with the flags -O -g
, it crashes with the following error:
Remaining virtual register operands
UNREACHABLE executed at /noback/milthorpe/chapel-1.27.0/third-party/llvm/llvm-src/lib/CodeGen/MachineRegisterInfo.cpp:208!
Aborted (core dumped)
Compile command:
chpl -O -g $CHPL_HOME/examples/hello.chpl
Configuration Information
- Output of
chpl --version
:
chpl version 1.27.0
built with LLVM version 14.0.0
Copyright 2020-2022 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)
- Output of
$CHPL_HOME/util/printchplenv --anonymize
:
CHPL_TARGET_PLATFORM: linux64
CHPL_TARGET_COMPILER: llvm
CHPL_TARGET_ARCH: x86_64
CHPL_TARGET_CPU: native
CHPL_LOCALE_MODEL: flat
CHPL_COMM: none
CHPL_TASKS: qthreads
CHPL_LAUNCHER: none
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: jemalloc
CHPL_ATOMICS: cstdlib
CHPL_GMP: bundled
CHPL_HWLOC: bundled
CHPL_RE2: bundled
CHPL_LLVM: bundled
CHPL_AUX_FILESYS: none
- Intel x86 architecture (Intel(R) Xeon(R) CPU E5-2698 v4 @ 2.20GHz)
- Ubuntu 20.04