Bug 214784 - net/mpich receiving signal 10 when calling MPI_Barrier(MPI_COMM_WORLD);
Summary: net/mpich receiving signal 10 when calling MPI_Barrier(MPI_COMM_WORLD);
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-23 14:27 UTC by otacilio.neto
Modified: 2016-11-23 22:30 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (tijl)


Attachments
This program cam be used to raise the error. The same program woks with openmpi2 (1.93 KB, text/plain)
2016-11-23 14:27 UTC, otacilio.neto
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description otacilio.neto 2016-11-23 14:27:20 UTC
Created attachment 177335 [details]
This program cam be used to raise the error. The same program woks with openmpi2

When calling MPI_Barrier(MPI_COMM_WORLD); the process receive a 

[ota@nostromo ~/Desktop]$ mpicc -o check_status check_status.c
[ota@nostromo ~/Desktop]$ mpirun  -np 2 ./check_status
0 sent 33 numbers to 1
1 received 33 numbers from 0. Message source = 0, tag = 0
Prepare MPI_Barrier
Prepare MPI_Barrier

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 63320 RUNNING AT nostromo
=   EXIT CODE: 138
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Bus error (signal 10)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions


This same program works fine with openmpi2

The attached program cam be used to raise the error.

FreeBSD 11 clang 3.8.0
Comment 1 commit-hook freebsd_committer 2016-11-23 18:17:32 UTC
A commit references this bug:

Author: tijl
Date: Wed Nov 23 18:16:56 UTC 2016
New revision: 426949
URL: https://svnweb.freebsd.org/changeset/ports/426949

Log:
  Add patch to apply alignment attribute to a struct instead of a typedef.
  This rounds the size of the struct to a multiple of the alignment such that
  malloc and friends allocate memory with the correct alignment.

  PR:		214784
  MFH:		2016Q4

Changes:
  head/net/mpich/Makefile
  head/net/mpich/files/patch-src-include-mpiimpl.h
Comment 2 commit-hook freebsd_committer 2016-11-23 22:30:58 UTC
A commit references this bug:

Author: tijl
Date: Wed Nov 23 22:29:55 UTC 2016
New revision: 426981
URL: https://svnweb.freebsd.org/changeset/ports/426981

Log:
  MFH: r426949

  Add patch to apply alignment attribute to a struct instead of a typedef.
  This rounds the size of the struct to a multiple of the alignment such that
  malloc and friends allocate memory with the correct alignment.

  PR:		214784
  Approved by:	ports-secteam (feld)

Changes:
_U  branches/2016Q4/
  branches/2016Q4/net/mpich/Makefile
  branches/2016Q4/net/mpich/files/patch-src-include-mpiimpl.h