JGCRI / gcam-core

GCAM -- The Global Change Analysis Model
http://jgcri.github.io/gcam-doc/
Other
263 stars 159 forks source link

Segmentation fault (core dumped) #140

Open sanshuiii opened 3 years ago

sanshuiii commented 3 years ago

My gcam-v4.3 can run successfully with default configuration: configuration_ref.xml. However, when I use GCAM china conguration, Segment fault occurs and it shows that core dump. The same configuration can run successfully on a release version for Windows.

Why segment fault occurs and how can i fix it. Thx a lot

This computer software was prepared by Battelle Memorial Institute,
hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 with
the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
LIABILITY FOR THE USE OF THIS SOFTWARE. This notice including this
sentence must appear on any copies of this computer software.

User agrees that the Software will not be shipped, transferred or
exported into any country or used in any manner prohibited by the United
States Export Administration Act or any other applicable export laws,
restrictions or regulations (collectively the 'Export Laws'). Export of
the Software may require some form of license or other authority from
the U.S. Government, and failure to obtain such export control license
may result in criminal liability under U.S. laws. In addition, if the
Software is identified as export controlled items under the Export Laws,
User represents and warrants that User is not a citizen, or otherwise
located within, an embargoed nation (including without limitation Iran,
Syria, Sudan, Cuba, and North Korea) and that User is not otherwise
prohibited under the Export Laws from receiving the Software.

Copyright 2011 Battelle Memorial Institute.  All Rights Reserved.
Distributed as open-source under the terms of the Educational Community
License version 2.0 (ECL 2.0). http://www.opensource.org/licenses/ecl2.php

For further details, see: http://www.globalchange.umd.edu/models/gcam/

Running GCAM model code base version 4.3 revision gcam-v4.3

Parsing input files...
Parsing ../input/climate/magicc.xml scenario component.
Parsing ../input/magicc/Historical Emissions/Default Emissions Module/Default_Emissions_Input.xml scenario component.
Parsing ../input/gcam-data-system/xml/socioeconomics-xml/interest_rate.xml scenario component.
Parsing ../input/gcam-data-system/xml/socioeconomics-xml/socioeconomics_GCAM3.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/resources.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/en_supply.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/en_transformation.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/electricity.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/heat.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/hydrogen.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/en_distribution.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/industry.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/industry_incelas_gcam3.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/cement.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/cement_incelas_gcam3.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/en_Fert.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/HDDCDD_constdd_no_GCM.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/building_det.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/transportation_UCD.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/Ccoef.xml scenario component.
Parsing ../input/gcam-data-system/xml/energy-xml/Cstorage.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/ag_For_Past_bio_base.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/ag_cost.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/ag_prodchange_ref.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/resbio_input.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/an_input.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/ag_Fert.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/land_input_1.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/land_input_2.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/land_input_3.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/protected_land_input_2.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/protected_land_input_3.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/bio_hi.xml scenario component.
Parsing ../input/gcam-data-system/xml/aglu-xml/demand_input.xml scenario component.
Parsing ../input/gcam-data-system/xml/emissions-xml/ind_urb_processing_sectors.xml scenario component.
Parsing ../input/gcam-data-system/xml/emissions-xml/all_aglu_emissions.xml scenario component.
Parsing ../input/gcam-data-system/xml/emissions-xml/all_energy_emissions.xml scenario component.
Parsing ../input/gcam-data-system/xml/emissions-xml/all_fgas_emissions.xml scenario component.
Parsing ../input/gcam-data-system/xml/emissions-xml/all_unmgd_emissions.xml scenario component.
Parsing ../input/solution/cal_broyden_config.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/socioeconomics_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/interest_rate_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/china_rsrc_placeholders.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/resources_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/Cstorage_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/en_transformation_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/hydrogen_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/electd_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/transportation_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/industry_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/cement_CHINA.xml scenario component.
Parsing ../input/gcam-data-system/xml/gcam-china-xml/Fert_CHINA.xml scenario component.
XML parsing complete.
Starting new scenario: GCAM-China_tax_ref
Segmentation fault (core dumped)
sypnl commented 3 years ago

Source code of GCAM-China could be different from that of the release version 4.3. We don't have GCAM-China available right now but will release it sometime in the future.