# And another segmentation fault in finalizing with nvfortran 23.1

**URL:** <https://forums.developer.nvidia.com/t/and-another-segmentation-fault-in-finalizing-with-nvfortran-23-1/253042>\
**Category:** nvc, nvc++ and nvfortran\
**Tags:** nvbugs\
**Created:** [May 11, 2023, 4:19pm UTC](https://forums.developer.nvidia.com/t/and-another-segmentation-fault-in-finalizing-with-nvfortran-23-1/253042 "2023-05-11T16:19:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juergen.reuter](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/juergen.reuter/32/38283_2.png) [@juergen.reuter](https://forums.developer.nvidia.com/u/juergen.reuter)\
**Post date:** [May 11, 2023, 4:19pm UTC](https://forums.developer.nvidia.com/t/and-another-segmentation-fault-in-finalizing-with-nvfortran-23-1/253042/1 "2023-05-11T16:19:30Z")

</div>

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

```auto
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](https://forums.developer.nvidia.com/uploads/short-url/h9gz1k3Kmhyoj9SDgM08VevsxsE.f90) (99.0 KB)

---

<div class="post-metadata">

**Author:** ![MatColgrove](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/matcolgrove/32/14047_2.png) [@MatColgrove](https://forums.developer.nvidia.com/u/MatColgrove)\
**Post date:** [May 11, 2023, 4:42pm UTC](https://forums.developer.nvidia.com/t/and-another-segmentation-fault-in-finalizing-with-nvfortran-23-1/253042/2 "2023-05-11T16:42:01Z")

</div>

Thanks Juergen. Filed as TPR #33596.

-Mat

---

<div class="post-metadata">

**Author:** ![alexander.pletzer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alexander.pletzer](https://forums.developer.nvidia.com/u/alexander.pletzer)\
**Post date:** [December 2, 2024, 12:29am UTC](https://forums.developer.nvidia.com/t/and-another-segmentation-fault-in-finalizing-with-nvfortran-23-1/253042/3 "2024-12-02T00:29:28Z")

</div>

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