28224, "jabraham17", "[Bug]: 'mason --version' crashes when built with 'cray-prgenv-gnu'", "2025-12-17T00:19:56Z"
During prep for the 2.7 release, we found that mason gets built incorrectly when using a certain configuration of the backend compiler
To reproduce the issue
module -t list
craype-x86-rome
libfabric/2.2.0rc1
craype-network-ofi
perftools-base/25.03.0
xpmem/2.11.3-1.3_gdbda01a1eb3d
gcc-native/14.2
craype/2.7.34
cray-dsmml/0.3.1
cray-mpich/8.1.32
cray-libsci/25.03.0
PrgEnv-gnu/8.6.0
CHPL_HOST_PLATFORM: hpe-cray-ex
CHPL_HOST_COMPILER: gnu
CHPL_HOST_CC: gcc
CHPL_HOST_CXX: g++
CHPL_HOST_ARCH: x86_64
CHPL_TARGET_PLATFORM: hpe-cray-ex
CHPL_TARGET_COMPILER: cray-prgenv-gnu *
CHPL_TARGET_CC: cc
CHPL_TARGET_CXX: CC
CHPL_TARGET_LD: CC
CHPL_TARGET_ARCH: x86_64
CHPL_TARGET_CPU: x86-rome
CHPL_LOCALE_MODEL: flat
CHPL_COMM: none *
CHPL_TASKS: qthreads
CHPL_LAUNCHER: none *
CHPL_TIMERS: generic
CHPL_UNWIND: bundled
CHPL_HOST_MEM: jemalloc
CHPL_HOST_JEMALLOC: bundled
CHPL_TARGET_MEM: jemalloc
CHPL_TARGET_JEMALLOC: bundled
CHPL_ATOMICS: cstdlib
CHPL_GMP: bundled
CHPL_HWLOC: bundled
CHPL_HWLOC_PCI: disable
CHPL_RE2: bundled
CHPL_LLVM: bundled
CHPL_LLVM_SUPPORT: bundled
CHPL_LLVM_CONFIG: ....
CHPL_LLVM_VERSION: 19
CHPL_AUX_FILESYS: none
CHPL_LIB_PIC: none
CHPL_SANITIZE: none
CHPL_SANITIZE_EXE: none
cd $CHPL_HOME
make all
cd $CHPL_HOME/tools/mason
chpl --launcher=none -g --ccflags=-O3 --savec gen --checks --no-specialize --devel mason.chpl
Running ./mason --version results in a segfault. I've attached a screenshot of the backtrace
Here are the things I've tried
- using
CHPL_TARGET_COMPILER=llvm works fine
- using
CHPL_TARGET_COMPILER=cray-prgenv-cray (and doing module swap PrgEnv-gnu PrgEnv-cray) works fine
CHPL_TARGET_COMPILER=cray-prgenv-gnu with --ccflags=-O2 works fine
I am currently looking into other ways to narrow down the error (i.e. asan)