Open penguian opened 8 years ago
@jin.lee@bom.gov.au commented
I put in the bug fix in this branch, https://access-svn.nci.org.au/trac/odb/browser/branches/dev/jtl548/odb/r116_Odb-1.0.0-Source-meto_nci_integer_size
Code change required to fix the bug is [119:121]
@jin.lee@bom.gov.au commented
Hi Milton,
Would you be able to review the ticket, please? Once that's done I'll close the ticket. Thanks.
Jin
@jin.lee@bom.gov.au commented
I used following steps to build the new ODB which has the integer-overflow-bug fix and test the build:
raijin3:/home/548/jtl548/da/ops/odb/test_odb_migrator/data/glu_ops_odb_to_odb2_atms.16_pools/atms.out.odb.5.0
raijin3:/home/548/jtl548/da/ops/odb/test_odb_migrator/scripts/test_odb_migrator.bash
odb_migrator
. To run this case,
ECMA.atms.out.odb.5.0
to /home/548/jtl548/da/ops/odb/test_odb_migrator/data/glu_odb/atms/16_pools
test_odb_migrator.bash
so that it used the standard ODB and ODB API: module load odb/1.0.0
and module load odbapi/0.10.3
test_odb_migrator.bash
so that it used the new ODB and ODB API builds: i.e. module unload odb
and module unload odbapi
I set up ODB and ODB API environments by explicitly exporting necessary environment variables. See raijin:~jtl548/odb/scripts/odb.ksh
and raijin:~jtl548/odbapi/scripts/odbapi.ksh
for examples of what environment variables need to be exportedodb_migrator
did not encounter the integer overflow problem
keyword_ODB_ODB_API_integer_overflow_odb_migrator
| by jtl548@nci.org.auThe version of ODB software we are using for APS3 global is ODB 1.0.0 which we received from UKMO (see #217 for its importation into access-svn repos and #215 for its building). This ODB version has a bug which causes an overflow in certain integer variables which are used in the calculation of memory allocation. This problem was discovered while running odb_migrator. Other ODB and ODB API tools may suffer from the same bug.
The ODB software we use comes from UKMO (who received it from ECMWF). We decided not to use a new build with the bug fixed but instead put in a workaround at the suite level as the task of maintaining compatibility with UKMO software would prove to be harder if we decided to use a modified version of ODB software. However, we anticipate that we will be in correspondence with UKMO and ECMWF to get this bug fix included in their ODB software.
Issue migrated from trac:289 at 2024-01-31 18:26:03 +1100