ghost_init segfault on Emmy.

Create issue
Issue #313 resolved
Martin Galgon created an issue

It seems that the non-MPI compilation commits eccd357 and b444188 messed something up. I'm getting a segfault in ghost_init() on Emmy. 262e6b1 seems to be okay.

Comments (6)

  1. Moritz Kreutzer

    I cannot reproduce this with a quick build of GHOST on Emmy and the "test/minimal" application. Could you provide some more information please?

  2. Martin Galgon reporter

    In my tests the call to ghost_init was the only instruction in the code, but maybe other stuff plays a role as well. I'll see if I can produce a minimal example.

  3. Martin Galgon reporter

    Okay, here goes.

    #include <ghost.h>
    
    int main(int argc, char* argv[])
    {
        ghost_init(argc, argv);
        return 0;
    }
    

    Compiled with:

    module load intel64
    mpicc -o ghost_init ghost_init.c \
    -I${HOME}/ghost/install/include \
    -I${HOME}/hwloc-1.10.1/install/include \
    -L${HOME}/ghost/install/lib/ghost -lghost \
    -L${HOME}/hwloc-1.10.1/install/lib -lhwloc \
    -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread \
    -lmkl_core -liomp5 -lpthread -lm -ldl \
    -Wl,-rpath=${HOME}/ghost/install/lib/ghost \
    -Wl,-rpath=${HOME}/hwloc-1.10.1/install/lib
    

    And finally run on an interactive node:

    module load intel64
    ./ghost_init                       (segfault)
    mpiexec.hydra ./ghost_init         (segfault)
    mpirun_rrze ./ghost_init           (signal 9)
    

    With varying number of nodes via -np. I tried sequential MKL and static linking as well. Ghost is at 5cea83b. hwloc version is 1.10.1 as can be seen above.

    Not sure how your test went trough, it doesn't get any simpler. Maybe there is something going on with my hwloc.

    Edit: I should probably mention my GHOST config as well.

    CC=icc \
    CXX=icpc \
    cmake .. \
    -DHWLOC_INCLUDE_DIR=$HOME/hwloc-1.10.1/install/include \
    -DCMAKE_INSTALL_PREFIX=$HOME/ghost/install \
    -DGHOST_IDX64_LOCAL=Off \
    -DGHOST_IDX64_GLOBAL=On \
    -DGHOST_INSTRUMENT=TIMING \
    -DGHOST_USE_CUDA=Off
    
  4. Log in to comment