chapel icon indicating copy to clipboard operation
chapel copied to clipboard

[Bug]: Mentioning a generic type without invoking the type constructor results in asan failure

Open jabraham17 opened this issue 5 months ago • 0 comments

Summary of Problem

Description: Mentioning a generic type name as just typeName; results in an asan compiler failure

Steps to Reproduce

Source Code:

record R { var arg; }
R;

Compile command:

export CHPL_SANITIZE_EXE=address
export CHPL_SANITIZE=address
export ASAN_OPTIONS="detect_leaks=0"
chpl foo.chpl

Configuration Information

  • Output of chpl --version: 2.2
  • Output of $CHPL_HOME/util/printchplenv --anonymize:
CHPL_TARGET_PLATFORM: darwin
CHPL_TARGET_COMPILER: clang *
CHPL_TARGET_ARCH: arm64
CHPL_TARGET_CPU: native *
CHPL_LOCALE_MODEL: flat
CHPL_COMM: none
CHPL_TASKS: fifo *
CHPL_LAUNCHER: none
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: cstdlib
CHPL_ATOMICS: cstdlib
CHPL_GMP: system *
CHPL_HWLOC: none *
CHPL_RE2: bundled *
CHPL_LLVM: system
CHPL_AUX_FILESYS: none
  • Back-end compiler and version, e.g. gcc --version or clang --version: LLVM 18

jabraham17 avatar Sep 05 '24 18:09 jabraham17