Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change function pointers to function prototypes #695

Merged
merged 4 commits into from
Dec 19, 2022

Conversation

Gnimuc
Copy link
Contributor

@Gnimuc Gnimuc commented Dec 19, 2022

fix #694

@giordano
Copy link
Member

Unfortunately this doesn't fix my troubles in #684

(mvapich) pkg> add https://github.com/Gnimuc/MPI.jl.git#fix-694
     Cloning git-repo `https://github.com/Gnimuc/MPI.jl.git`
    Updating git-repo `https://github.com/Gnimuc/MPI.jl.git`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
    Updating `~/tmp/mvapich/Project.toml`
  [da04e1cc] ~ MPI v0.20.5 `~/.julia/dev/MPI`  v0.20.5 `https://github.com/Gnimuc/MPI.jl.git#fix-694`
    Updating `~/tmp/mvapich/Manifest.toml`
  [da04e1cc] ~ MPI v0.20.5 `~/.julia/dev/MPI`  v0.20.5 `https://github.com/Gnimuc/MPI.jl.git#fix-694`
Precompiling environment...
  1 dependency successfully precompiled in 11 seconds. 12 already precompiled.

julia> using MPI

julia> MPI.Init(;threadlevel=:single)
MPI.ThreadLevel(0)

julia> MPI.Datatype(Char)
MPI.Datatype(Char): 

julia> MPI.Finalize()

[1197027] signal (11.1): Segmentation fault
in expression starting at REPL[5]:1
MPIR_Call_attr_delete at /lustre/software/mvapich2/gcc11/2.3.6/lib/libmpi.so (unknown line)
MPIR_Attr_delete_list at /lustre/software/mvapich2/gcc11/2.3.6/lib/libmpi.so (unknown line)
Allocations: 3851567 (Pool: 3848167; Big: 3400); GC: 7
Segmentation fault (core dumped)

@t-bltg
Copy link
Collaborator

t-bltg commented Dec 19, 2022

I'm trying to come up with a representative test.

MPI_Comm_create_errhandler might be a good candidate.

Porting the example from http://mpi.deino.net/mpi_functions/MPI_Comm_create_errhandler.html to test/test_errorhandler.jl shouldn't be too hard, trying that now.

@Gnimuc
Copy link
Contributor Author

Gnimuc commented Dec 19, 2022

The default backend works locally on my machine:

Screenshot 2022-12-19 at 22 56 37

@giordano which backend should I use to reproduce this segfault?

@giordano
Copy link
Member

All problems I reported in #684 are on Ookami, most of them with MVAPICH2. I have no clue how to reproduce them outside of that environment.

@simonbyrne simonbyrne merged commit 3a46698 into JuliaParallel:master Dec 19, 2022
@simonbyrne
Copy link
Member

Thanks for fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take function prototypes seriously
4 participants