And another segmentation fault in finalizing with nvfortran 23.1

This seems to stumble over old deallocation routines from the original PGI core:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7afcaf4 in pgf90_dealloc_mbr03_i8 () from /scratch/reuter/local/nvidia/hpc_sdk/Linux_x86_64/2023/compilers/lib/libnvf.so
(gdb) bt
#0  0x00007ffff7afcaf4 in pgf90_dealloc_mbr03_i8 () from /scratch/reuter/local/nvidia/hpc_sdk/Linux_x86_64/2023/compilers/lib/libnvf.so
#1  0x00007ffff7bafe25 in pgf90_dealloc_poly_mbr03a_i8 () from /scratch/reuter/local/nvidia/hpc_sdk/Linux_x86_64/2023/compilers/lib/libnvf.so
#2  0x0000000000430ac2 in prc_test_uti::prc_test_1 () at main_ut.f90:3303
#3  0x0000000000431a57 in main_ut () at main_ut.f90:3310

This is the reproducer:
main_ut.f90 (99.0 KB)

1 Like

Thanks Juergen. Filed as TPR #33596.

-Mat

This code crashes with version 24.11 but runs fine with gfortran 11.4.0