However, I can't get the new configuration to run. It triggers a segmentation fault after reading the initial conditions file. I tested version 6718, and some older versions (6704, 6699), I get the same error in all of them.
Running the model through Valgrind shows the fault happens when the running setupMSEBoxModel (see output below).
Do you have any ideas on what I could have missed or why the fault might be occurring?
==242499== Memcheck, a memory error detector
==242499== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==242499== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==242499== Command: atlantisMerged -i AMPS_2024.nc 0 -o AMPS_OUT.nc -r PugetSound_run.prm -f PugetSound_force.prm -p PugetSound_physics.prm -b AMPSbioparam_mv1_2024_V4.prm -h PugetSound_harvest_mfc_tuned.prm -e VMPA_setas_economics.prm -s PugetSoundAtlantisFunctionalGroups_2024.csv -q AMPS_atharvest_2024.prm -m PugetMigrations_mod_bf.csv -d outputFolder
==242499== Parent PID: 214245
==242499==
==242499== Invalid read of size 1
==242499== at 0x125795: Util_XML_Create_Node (atUtilXML.c:991)
==242499== by 0x38613B: Convert_Groups_To_XML (atGroupsXML.c:257)
==242499== by 0x11E03E: Util_Read_Functional_Group_XML (atUtilGroupIO.c:225)
==242499== by 0x1101D7: setupMSEBoxModel (atlantismain.c:1110)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==242499==
==242499==
==242499== Process terminating with default action of signal 11 (SIGSEGV)
==242499== Access not within mapped region at address 0x0
==242499== at 0x125795: Util_XML_Create_Node (atUtilXML.c:991)
==242499== by 0x38613B: Convert_Groups_To_XML (atGroupsXML.c:257)
==242499== by 0x11E03E: Util_Read_Functional_Group_XML (atUtilGroupIO.c:225)
==242499== by 0x1101D7: setupMSEBoxModel (atlantismain.c:1110)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499== If you believe this happened as a result of a stack
==242499== overflow in your program's main thread (unlikely but
==242499== possible), you can try to increase the size of the
==242499== main thread stack using the --main-stacksize= flag.
==242499== The main thread stack size used in this run was 8388608.
==242499==
==242499== HEAP SUMMARY:
==242499== in use at exit: 6,262,060 bytes in 75,397 blocks
==242499== total heap usage: 236,439 allocs, 161,042 frees, 12,040,505 bytes allocated
==242499==
==242499== 153 (96 direct, 57 indirect) bytes in 1 blocks are definitely lost in loss record 3,158 of 3,931
==242499== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==242499== by 0x397115: add_argument (mapproj.c:582)
==242499== by 0x39665B: mpInitialise (mapproj.c:331)
==242499== by 0x184FBF: parseProjectionString (atgeomIO.c:807)
==242499== by 0x182B85: readMSEBoxModelGeom (atgeomIO.c:130)
==242499== by 0x11009E: setupMSEBoxModel (atlantismain.c:1077)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499==
==242499== 185 (88 direct, 97 indirect) bytes in 1 blocks are definitely lost in loss record 3,165 of 3,931
==242499== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==242499== by 0x397115: add_argument (mapproj.c:582)
==242499== by 0x396623: mpInitialise (mapproj.c:328)
==242499== by 0x184FBF: parseProjectionString (atgeomIO.c:807)
==242499== by 0x182B85: readMSEBoxModelGeom (atgeomIO.c:130)
==242499== by 0x11009E: setupMSEBoxModel (atlantismain.c:1077)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499==
==242499== 193 (112 direct, 81 indirect) bytes in 1 blocks are definitely lost in loss record 3,166 of 3,931
==242499== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==242499== by 0x397115: add_argument (mapproj.c:582)
==242499== by 0x396746: mpInitialise (mapproj.c:338)
==242499== by 0x184FBF: parseProjectionString (atgeomIO.c:807)
==242499== by 0x182B85: readMSEBoxModelGeom (atgeomIO.c:130)
==242499== by 0x11009E: setupMSEBoxModel (atlantismain.c:1077)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499==
==242499== 241 (104 direct, 137 indirect) bytes in 1 blocks are definitely lost in loss record 3,231 of 3,931
==242499== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==242499== by 0x397115: add_argument (mapproj.c:582)
==242499== by 0x396717: mpInitialise (mapproj.c:336)
==242499== by 0x184FBF: parseProjectionString (atgeomIO.c:807)
==242499== by 0x182B85: readMSEBoxModelGeom (atgeomIO.c:130)
==242499== by 0x11009E: setupMSEBoxModel (atlantismain.c:1077)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499==
==242499== LEAK SUMMARY:
==242499== definitely lost: 400 bytes in 4 blocks
==242499== indirectly lost: 372 bytes in 4 blocks
==242499== possibly lost: 0 bytes in 0 blocks
==242499== still reachable: 6,261,288 bytes in 75,389 blocks
==242499== suppressed: 0 bytes in 0 blocks
==242499== Reachable blocks (those to which a pointer was found) are not shown.
==242499== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==242499==
==242499== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
==242499==
==242499== 1 errors in context 1 of 5:
==242499== Invalid read of size 1
==242499== at 0x125795: Util_XML_Create_Node (atUtilXML.c:991)
==242499== by 0x38613B: Convert_Groups_To_XML (atGroupsXML.c:257)
==242499== by 0x11E03E: Util_Read_Functional_Group_XML (atUtilGroupIO.c:225)
==242499== by 0x1101D7: setupMSEBoxModel (atlantismain.c:1110)
==242499== by 0x10E988: main (atlantismain.c:617)
==242499== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==242499==
==242499== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
-- _____________________________
** My most consistent working hours are 9am-2pm (PST) **
** I will respond as soon as possible. Thanks for your patience. **
----------------------------------------------