# Segmentation fault during atmos\_main

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683>\
**Category:** Unified Model\
**Created:** [3 April 2025 15:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683 "2025-04-03T15:40:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![isangha](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@isangha](https://cms-helpdesk.ncas.ac.uk/u/isangha)\
**Post date:** [3 April 2025 15:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/1 "2025-04-03T15:40:40Z")

</div>

I am trying to update a branch that I have been working on from UM vn13.4 to UM vn13.8. I’m running in suite u-do774 and I’ve got it compiling, but am now getting the following segmentation fault during atmos\_main job:

[258] exceptions: An exception was raised:11 (Segmentation fault)  
[258] exceptions: the exception reports the extra information: Address not mapped to object.  
[258] exceptions: whilst in a serial region  
[258] exceptions: Task had pid=35283 on host nid01246  
[258] exceptions: Program is “/home/d03/isangha/cylc-run/u-do774/share/fcm\_make\_um/build-atmos/bin/um-atmos.exe”  
[258] exceptions: calling registered handler @ 0x00423460  
\_pmiu\_daemon(SIGCHLD): [NID 01246] [c6-0c1s7n2] [Thu Apr 3 15:19:05 2025] PE RANK 258 exit signal Segmentation fault  
[NID 01246] 2025-04-03 15:19:05 Apid 228806418: initiated application termination  
[FAIL] um-atmos # return-code=137  
2025-04-03T15:19:10Z CRITICAL - failed/EXIT

Any advice on how to go about debugging this would be much appreciated! Thanks 🙂

---

<div class="post-metadata">

**Author:** ![mdalvi](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdalvi](https://cms-helpdesk.ncas.ac.uk/u/mdalvi)\
**Post date:** [3 April 2025 16:32 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/2 "2025-04-03T16:32:29Z")

</div>

Hi Isabella,

There are multiple changes (to suite and branches) being made at the same time, so it would be better to check that the base configuration works. If you can run the suite _without_ your branches that will be a good start.  
After that if it is possible to add your branches but not use the changes that would be ideal. However, I see that are no new switches (namelist items) being added so it might be that your changes are ‘active’ by default. Even if you cannot turn off the new code, maybe deactivating the new diagnostics will help determine if the diag processing has any issues.  
I see that you have PrintStatus set to Diag, so that will be helpful, but the log indicates error happening on PE 258, so to get output from that (and all other PEs) you will need to change in _app/um/rose-app.conf_ → [namelist:prnt\_contrl] → prnt\_writers=1.  
Hopefully these changes will give some indication. about the cause.

–  
Mohit

---

<div class="post-metadata">

**Author:** ![grenville](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/grenville/32/29_2.png) [@grenville](https://cms-helpdesk.ncas.ac.uk/u/grenville)\
**Post date:** [4 April 2025 07:26 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/3 "2025-04-04T07:26:58Z")

</div>

It stopped in ukca\_main1-ukca\_amin1.F90 trying to deallocate (if that’s any help)

```auto
#20 0x0000000002db1082 in __DEALLOCATE ()
#21 0x0000000000eca720 in ukca_main1$ukca_main1_mod_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/ukca/src/control/core/top_level/ukca_main1-ukca_main1.F90:2807
#22 0x0000000000e96919 in ukca_step_3d_domain$ukca_step_mod_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/ukca/src/control/core/top_level/ukca_step_mod.F90:378
#23 0x0000000001abdffd in atmos_ukca$atmos_ukca_mod_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/um/src/control/ukca_interface/atmos_ukca_mod.F90:1004
#24 0x0000000000e3a925 in atm_step_4a$atm_step_4a_mod_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/um/src/control/top_level/atm_step_4A.F90:4702
#25 0x0000000000494a6b in u_model_4a$u_model_4a_mod_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/um/src/control/top_level/u_model_4A.F90:331
#26 0x0000000000411b15 in um_shell$um_shell_mod_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/um/src/control/top_level/um_shell.F90:704
#27 0x00000000004085c8 in um_main_ () at /home/d03/isangha/cylc-run/u-do774/share/fcm_make_um/preprocess-atmos/src/um/src/control/top_level/um_main.F90:20
```

---

<div class="post-metadata">

**Author:** ![mdalvi](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdalvi](https://cms-helpdesk.ncas.ac.uk/u/mdalvi)\
**Post date:** [4 April 2025 08:34 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/4 "2025-04-04T08:34:19Z")

</div>

Thanks Grenville,

The suite seems to have been resubmitted this morning so will wait for the latest output and see if any more information is available.

M

---

<div class="post-metadata">

**Author:** ![isangha](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@isangha](https://cms-helpdesk.ncas.ac.uk/u/isangha)\
**Post date:** [4 April 2025 09:53 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/5 "2025-04-04T09:53:54Z")

</div>

Thanks Grenville and Mohit,

I am trying to figure out why there is the error occurring with the DEALLOCATE in ukca\_main1. I have changed the _app/um/rose-app.conf_ → [namelist:prnt\_contrl] → prnt\_writers to 1. To see the outputs on the PE will it be under the share folder?

Best,  
Izzy

---

<div class="post-metadata">

**Author:** ![mdalvi](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdalvi](https://cms-helpdesk.ncas.ac.uk/u/mdalvi)\
**Post date:** [4 April 2025 10:30 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/6 "2025-04-04T10:30:10Z")

</div>

The model log files are can be found in work/date-time/atmos\_main/pe\_output/

---

<div class="post-metadata">

**Author:** ![mdalvi](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdalvi](https://cms-helpdesk.ncas.ac.uk/u/mdalvi)\
**Post date:** [4 April 2025 11:09 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/7 "2025-04-04T11:09:14Z")

</div>

The backtrace from latest run seems to be pointing to a DEALLOCATE statement in [asad\_diags\_output\_ctl.F90](https://code.metoffice.gov.uk/trac/ukca/browser/main/branches/dev/isabellesangha/um13.8_ukca_psc_box/src/control/core/diagnostics/asad_diags_output_ctl_mod.F90?rev=5889#L200), so in the first instance try to deactivate the STASH requests for any new diagnostics and see if the rest of the changes are working.

---

<div class="post-metadata">

**Author:** ![isangha](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@isangha](https://cms-helpdesk.ncas.ac.uk/u/isangha)\
**Post date:** [4 April 2025 12:38 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/8 "2025-04-04T12:38:52Z")

</div>

I tried running again without any of the new STASH and it still pulls a segmentation fault on multiple PEs. The error has this line:  
’ the exception reports the extra information: Address not mapped to object. ’  
but I’m not sure how to interpret this.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![mdalvi](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mdalvi](https://cms-helpdesk.ncas.ac.uk/u/mdalvi)\
**Post date:** [4 April 2025 13:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/9 "2025-04-04T13:06:22Z")

</div>

Yes, the nature of the failure has changed, but there does not seem to enough information available to get the exact location.  
It might help to check the base configuration itself by excluding your branches - to see if the upgrade to vn13.8 has any issues.  
Remember to use ‘rose suite-run --new’ to remove old build and data, core files, etc.

Mohit

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [4 May 2025 13:07 UTC](https://cms-helpdesk.ncas.ac.uk/t/segmentation-fault-during-atmos-main/1683/10 "2025-05-04T13:07:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
