CEMPD / SMOKE

Create emissions inputs for multiple air quality modeling systems with unmatched speed and flexibility
https://www.cmascenter.org/smoke/
45 stars 21 forks source link

Smokereport segmentation fault issues #45

Closed christos-e closed 2 years ago

christos-e commented 2 years ago

Another configuration that causes a Smkreport segmentation fault with SMOKE 4.8.1, even with the UNC-compiled version that fixed some of our other issues. These new faults do not happen with Smkreport from 4.8.

To replicate the segmentation fault, start with the public 2016v2 emissions platform, 2016fj_16j case, cmv_c1c2 sector, onetime job (Annual_cmv_c1c2_onetime_12US1_2016fj_16j.csh). Replace the COSTCY, GSPROTMP_A, GSREFTMP_A, and REPCONFIG_INV with the files from the attached inputs. This setup is giving us a segmentation fault referencing the agsnbins.f program.

For a second test, replace EMISINV_A, EMISINV_B, and EMISINV_C with the inventories in the attached inventories. This setup gives a different seg fault, referencing the rdstcy.f program

christos-e commented 2 years ago

The current SMOKE 4.8.1 compiled with ifort 17.2, ioapi 3.2 (Makeinclude.Linux2_x86_64ifort_medium), netcdf-fortran-4.4.5, netcdf-c-4.7.0 does not crash with either test. The 4.8 binaries (current workaround) work fine as expected. The 4.8.1 version binaries that are distributed with the latest platform is smaller in size and probably compiled in a different way. That one is reported to be crashing in our side as well. I keep copies of the Makeinclude files, flags, and compilation logs in case we need them.