I am making some modifications to a number of routines in the UM (specifically in the UKCA part). The modifications should not change the semantics in any way, but to help performance. Unfortunately, while compilation works, I now get a runtime error:
 exceptions: An exception was raised:11 (Segmentation fault)
 exceptions: the exception reports the extra information: Sent by the kernel.
 exceptions: whilst in a serial region
 exceptions: Task had pid=16410 on host ip-172-31-15-74
 exceptions: Program is “/home/ubuntu/cylc-run/u-cl636/share/fcm_make/build-atmos/bin/um-atmos.exe”
In a simple world, I’d re-run the program with GDB via something like:
<… seg fault occurs …>
Unfortunately, the UM kindly hides all the details from me behind a number of scripts, which makes it particulary joyful when thinking of debugging.
Can anyone suggest how I can run um-atmos.exe with a debugger so that I actually can make some progress?