Skip to content

Segmentation Fault (MPAS-Ocean) #8

Closed

Description

@raycao88124

Version of MPAS (From source, in README.md, core's Registry.xml file, and output file):
MPAS-O Release 2.0

Description of issue:
Segmentation Fault, Address not mapped when running test cases(overflow, baroclinic). The only test case that could run without error is overflow_10km_40layer.
Verisions of I/O libraries are those that are recommended in the user's guide in section 3.2

Platform used (System Specs, as well as name, and operating system if possible):
Marmot Cluster at CMU
Hardware Spec:
128 Nodes, Dual Socket, Single Core AMD Opteron
Opteron 242, 64 bit, 1 MB L2, 1GHz HT CPU
PassMark 1510 (dual cpu) PassMark
Passive Heatsink cooling Alpha U81C Heatsink

    8 GB RAM per core
    SMART 2GB, RDIMM, PC3200, CL3 Memory 

Hard Drives
    1x Western Digital Black SATA 7200rpm 2 TB WD Caviar Black 

Power supply
    Lemacs 500w 100-240v ATX Power Supply 

PDU
    13x 10 socket Ice-Box 3000 

Supermicro H8DCE Motherboard
    nVidia Pro 2200/2050 chipset
    Dual-port Gigabit LAN, 8x SATA, 2xUSB
    AMI BIOS 

Connections
    2x Gigabit ethernet
    Mellanox MHES 18-XTC XSC XS 

Switches
    288 port Voltaire Grid Detector ISR9288 Infiniband switch
    152 port Extreme Networks BlackDiamond 6808 Ethernet switch
    6x 24 port Dell PowerConnect 5224 Ethernet switch 

Operating System:
Standard 64-bit ubuntu 12 image

Compiler used (With version):
gfortran 4.6.3

NetCDF version used: 4.1.3

Parallel NetCDF version used: 1.3.1

Parallel I/O version used: 1.4.1

Number of processors used: 1 - 20

Test case used (if applicable):
overflow_10km_40layer(no error)
overflow_1km_100layer(segmentation fault, address not mapped, there are also warnings about variables such as bottomDepth,etc)
baroclinic_channel_10000m_20levs(segmentation fault, address not mapped)
baroclinic_channel_4000m_20levs(segmentation fault, address not mapped)
baroclinic_channel_1000m_20levs(segmentation fault, address not mapped)

Is this issue reproducible in debug mode (make ... DEBUG=TRUE): Yes

If possible, please provide a backtrace for this issue:
This message is from log.0000.err of baroclinic_channel_10000m test case
[h0:03366] *** Process received signal ***
[h0:03366] Signal: Segmentation fault (11)
[h0:03366] Signal code: Address not mapped (1)
[h0:03366] Failing at address: 0xffffffffb42d3010
[h0:03366] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f08bcc0acb0]
[h0:03366] [ 1] /lib/x86_64-linux-gnu/libc.so.6(+0x91a8b) [0x7f08bc8cda8b]
[h0:03366] [ 2] /usr/local/lib/openmpi/mca_io_romio.so(ADIOI_NFS_WriteStrided+0xb23) [0x7f08b4572b03]
[h0:03366] [ 3] /usr/local/lib/openmpi/mca_io_romio.so(ADIOI_GEN_WriteStridedColl+0xcea) [0x7f08b457d19a]
[h0:03366] [ 4] /usr/local/lib/openmpi/mca_io_romio.so(MPIOI_File_write_all+0x1d3) [0x7f08b4589b03]
[h0:03366] [ 5] /usr/local/lib/openmpi/mca_io_romio.so(mca_io_romio_dist_MPI_File_write_all+0x29) [0x7f08b4589bc9]
[h0:03366] [ 6] /usr/local/lib/libmpi.so.1(MPI_File_write_all+0xf6) [0x7f08bd8d3056]
[h0:03366] [ 7] ocean_model() [0x669e15]
[h0:03366] [ 8] ocean_model() [0x66a2b4]
[h0:03366] [ 9] ocean_model(ncmpii_wait+0x294) [0x66ad84]
[h0:03366] [10] ocean_model(ncmpi_wait_all+0x40) [0x66b530]
[h0:03366] [11] ocean_model(__piodarray_MOD_darray_write_complete+0x1b8) [0x6106e8]
[h0:03366] [12] ocean_model(__piolib_mod_MOD_closefile+0x118) [0x5adba8]
[h0:03366] [13] ocean_model(__mpas_io_streams_MOD_mpas_closestream+0x46) [0x5902e6]
[h0:03366] [14] ocean_model(__mpas_io_output_MOD_mpas_output_state_finalize+0x15) [0x581ba5]
[h0:03366] [15] ocean_model(__mpas_subdriver_MOD_mpas_finalize+0x19) [0x42eb89]
[h0:03366] [16] ocean_model(main+0x37) [0x42ea77]
[h0:03366] [17] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f08bc85d76d]
[h0:03366] [18] ocean_model() [0x42eaa9]
[h0:03366] *** End of error message **

_Log of baroclinic_channel_1000m_*
[h0:01639] *** Process received signal ***
[h0:01639] Signal: Segmentation fault (11)
[h0:01639] Signal code: Address not mapped (1)
[h0:01639] Failing at address: 0x7f76e64c0010
[h0:01639] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f767bd6fcb0]
[h0:01639] [ 1] /lib/x86_64-linux-gnu/libc.so.6(+0x91a8b) [0x7f767ba32a8b]
[h0:01639] [ 2] /usr/local/lib/openmpi/mca_io_romio.so(ADIOI_NFS_WriteStrided+0xb23) [0x7f7674e37b03]
[h0:01639] [ 3] /usr/local/lib/openmpi/mca_io_romio.so(ADIOI_GEN_WriteStridedColl+0xcea) [0x7f7674e4219a]
[h0:01639] [ 4] /usr/local/lib/openmpi/mca_io_romio.so(MPIOI_File_write_all+0x1d3) [0x7f7674e4eb03]
[h0:01639] [ 5] /usr/local/lib/openmpi/mca_io_romio.so(mca_io_romio_dist_MPI_File_write_all+0x29) [0x7f7674e4ebc9]
[h0:01639] [ 6] /usr/local/lib/libmpi.so.1(MPI_File_write_all+0xf6) [0x7f767ca38056]
[h0:01639] [ 7] ocean_model() [0x647a05]
[h0:01639] [ 8] ocean_model() [0x647ea4]
[h0:01639] [ 9] ocean_model(ncmpii_wait+0x294) [0x648974]
[h0:01639] [10] ocean_model(ncmpi_wait_all+0x40) [0x649120]
[h0:01639] [11] ocean_model(__piodarray_MOD_darray_write_complete+0x1b8) [0x5ee2d8]
[h0:01639] [12] ocean_model(__piodarray_MOD_add_data_to_buffer_double+0x1f8) [0x5ee7e8]
[h0:01639] [13] ocean_model(__piodarray_MOD_write_darray_nf_double+0xda9) [0x5f2769]
[h0:01639] [14] ocean_model(__piodarray_MOD_write_darray_1d_double+0x110) [0x5fc550]
[h0:01639] [15] ocean_model(__piodarray_MOD_write_darray_2d_double+0x177) [0x5fcb37]
[h0:01639] [16] ocean_model(__mpas_io_MOD_mpas_io_put_var_generic+0x11c6) [0x53d476]
[h0:01639] [17] ocean_model(__mpas_io_MOD_mpas_io_put_var_real2d+0x105) [0x53e3e5]
[h0:01639] [18] ocean_model(__mpas_io_streams_MOD_mpas_writestream+0x6b6a) [0x57508a]
[h0:01639] [19] ocean_model(__mpas_io_output_MOD_mpas_output_state_for_domain+0x1a5c) [0x5611fc]
[h0:01639] [20] ocean_model(__mpas_core_MOD_ocn_write_output_frame+0x390) [0x432580]
[h0:01639] [21] ocean_model(__mpas_core_MOD_mpas_core_run+0x61d) [0x432bfd]
[h0:01639] [22] ocean_model(main+0x30) [0x42ea70]
[h0:01639] [23] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f767b9c276d]
[h0:01639] [24] ocean_model() [0x42eaa9]
[h0:01639] *** End of error message ***

_Log of overflow_1km_
Abort: NaN detected
[h0:10035] *** Process received signal ***
[h0:10035] Signal: Segmentation fault (11)
[h0:10035] Signal code: Address not mapped (1)
[h0:10035] Failing at address: 0x50
[h0:10035] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f686040fcb0]
[h0:10035] [ 1] /usr/local/lib/libmpi.so.1(PMPI_Abort+0x2f) [0x7f68610b72cf]
[h0:10035] [ 2] /usr/local/lib/libmpi_f77.so.1(MPI_ABORT+0x26) [0x7f686140ea06]
[h0:10035] [ 3] ocean_model(__mpas_dmpar_MOD_mpas_dmpar_abort+0x19) [0x537e69]
[h0:10035] [ 4] ocean_model(__ocn_time_integration_MOD_ocn_timestep+0x1ac) [0x44fadc]
[h0:10035] [ 5] ocean_model(__mpas_core_MOD_mpas_core_run+0x38a) [0x43296a]
[h0:10035] [ 6] ocean_model(main+0x30) [0x42ea70]
[h0:10035] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f686006276d]
[h0:10035] [ 8] ocean_model() [0x42eaa9]
[h0:10035] *** End of error message ***

Activity

  1. douglasjacobsen commented on Mar 13, 2014

    @douglasjacobsen
    Member

    @raycao88124: I just tested these test cases on an ubuntu 12.04 machine with the libraries/compilers you mentioned. All of the test cases worked fine in my tests.

    Could you provide the full log.0000.err file for a debug build/run of the baroclinic_channel_10000m test case (none of the others). You can post it to a gist (gist.github.com) and link to it in a comment here.

    The issue you're seeing on the overflow_1km is different than the others, as I can see a Abort: NaN detected line at the top of messages you posted. But maybe fixing the other issues will get rid of this too. The other thing you could try is using a newer PIO library, as it seems like most of the issues are related to IO.

  2. raycao88124 commented on Mar 14, 2014

    @raycao88124
    Author

    @douglasjacobsen :
    Hi Doug,
    This is the link for the log: https://gist.github.com/raycao88124/9555934
    I tried another configuration on chapter 15 in the user's guide:
    OpenMPI 1.4.3
    netCDF 4.1.1
    Paralle-netCDF 1.3.1
    PIO 1.7.2
    With this configuration, I could run the following test cases without any error:
    Overflow_10km
    baroclinic_channel_10000m
    baroclinic_channel_4000m
    These two test cases would still give erros:
    overflow_1km
    baroclinic_channel_1000m
    This is the error log of barclinic_channel 1000m with configuration in chapter 15: https://gist.github.com/raycao88124/9556031
    This is the error log of overflow_1km with configuration in chapter 15:https://gist.github.com/raycao88124/9556139
    I am sorry for the late reply. I was very sick yesterday. Thank you so much for helping me with the issue! I hope we could get this solved soon.

  3. douglasjacobsen commented on Mar 15, 2014

    @douglasjacobsen
    Member

    @raycao88124 It seems like two of the three log issues you posted are problems with something on the computer you're running on, rather than the code. Both the two baroclinic channel test case looks make it seem like something is wrong with ROMIO on the machine, or at a minimum on the of I/O libraries you have built. So, I'm not sure there's much I can help with related to those.

    As for the other one (the overflow test case), can you post the namelist you're running with, along with the command you're using to run (how many processors). Also, can you set config_write_output_on_startup = .true. in your namelist if it's not already set, and then post the output of ncdump -h output.0000-01-01_00.00.00.nc for me, along with a git describe --dirty if you used git to checkout the code.

  4. raycao88124 commented on Mar 15, 2014

    @raycao88124
    Author

    @douglasjacobsen
    Hi Doug,
    I tried the setting in 3.2 but I used PIO 1.7.2 instead of 1.4.1. The errors are the same as before. It seems they are related to ROMIO.
    Only overflow_10km can be run without any error now. Let me send you the overflow_1km output: https://gist.github.com/raycao88124/9573569. I ran with mpirun -n 1. The namelist.input is : https://gist.github.com/raycao88124/9573589
    I set the run duration relatively short because I just wanted to see if it could run without errors.
    The log.0000.err of overflow_1km is here:https://gist.github.com/raycao88124/9573628
    Thank you very much!

  5. douglasjacobsen commented on Mar 15, 2014

    @douglasjacobsen
    Member

    Can you try setting config_alter_ICs_for_pbcs = .true. in the namelist for the 1km overflow test and running again?

  6. raycao88124 commented on Mar 15, 2014

    @raycao88124
    Author
  7. douglasjacobsen commented on Mar 16, 2014

    @douglasjacobsen
    Member

    Well, the good news is that fixed the problem on the MPAS side of your overflow 1km test. The bad news however is now you're seeing the same ROMIO issue with all but one of the test cases.

    If you want to make sure the 1km overflow will run for some number of time steps, you can try setting config_write_output_on_startup = .false., but my bet is after the timer reaches 1 hour, you'll see the same ROMIO issue.

    Two more things you could try:

    • When building parallel netcdf you can try using the --enable-mpi-io-test flag during configure to see if it passes those tests.
    • When building PIO, you can try using the --disable-mpiio flag. I'm not sure if this flag will work, but it's at least a test.

    You can also look in the config.log file for PIO to see if MPIIO is turned on or not. Since we only use NETCDF output/input, you shouldn't need MPIIO.

  8. raycao88124 commented on Mar 17, 2014

    @raycao88124
    Author

    Hi Doug,
    I used --enable-mpi-io-test when building parallel netcdf and there was no error. I used --disable-mpiio when building pio, but the errors persists for overflow_1km test case. I checked the config.log and I did not see mpiio anywhere in the log. Here is the config.log for pio: https://gist.github.com/raycao88124/9607561 Would you please check it out.
    Thank you very much!

  9. raycao88124 commented on Mar 18, 2014

    @raycao88124
    Author

    Hi Doug,
    Would you mind telling me which version of openmpi you are using? What was the configuration settings when you built it?
    Thanks!

  10. douglasjacobsen commented on Mar 18, 2014

    @douglasjacobsen
    Member

    I've tested with OpenMPI 1.4.5 (packaged from the ubuntu PPA's) and custom builds of version 1.4.5, 1.6.3 but those were built by our HPC staff, but it looks like they were built using the following flags:
    --with-platform=/usr/projects/hpctools/dshrader/hpcsoft/openmpi/1.6.3/tlcc-optimized-panasas --prefix=/usr/projects/hpcsoft/toss2.1/mustang/openmpi/1.6.3-gcc-4.6

    Not sure if this helps any, but I was able to reproduce your issue using a 1.6.5 build I tested this morning. I haven't had any luck fixing it yet, but changing to 1.6.3 got rid of the problem. I'll keep looking into the 1.6.5 issue, and let you know if I find anything.

  11. raycao88124 commented on Mar 18, 2014

    @raycao88124
    Author

    I am going to try using 1.6.3. Also I will try the library versions suggested in 3.2: netCDF 4.1.3, parallel-netCDF 1.3.1, and the latest PIO 1.7.2.

  12. jedwards4b commented on Mar 18, 2014

    @jedwards4b

    Hi,

    If you can I would recommend the following versions:

    NetCDF version : 4.3.0
    Parallel NetCDF version: 1.4.1
    Parallel I/O version : 1.8.11

  13. raycao88124 commented on Mar 25, 2014

    @raycao88124
    Author

    Hi Doug,
    I tried openmpi 1.6.3 but still no luck. The same error persists. I was trying to install netcdf 4.3.0 but I got weird errors during installation that I could not figure out....

  14. 30 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions