Linux系统下mpi 编程出现:Signal: Segmentation fault, Signal code: Address not mapped

Posted 大雨海棠

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux系统下mpi 编程出现:Signal: Segmentation fault, Signal code: Address not mapped相关的知识,希望对你有一定的参考价值。

在Ubuntu(安装了mpich和openmpi)下MPI编程时,代码没问题,但是在mpirun运行的时候出现如下问题
[ubuntu:04803] *** Process received signal *** [ubuntu:04803] Signal: Segmentation fault (11) [ubuntu:04803] Signal code: Address not mapped (1) [ubuntu:04803] Failing at address: 0x7548d0c [ubuntu:04803] [ 0] [0x86b410] [ubuntu:04803] [ 1] /lib/tls/i686/cmov/libc.so.6(fclose+0x1a0) [0x186b00] [ubuntu:04803] [ 2] ./exmpi_2(main+0x78e) [0x80492c2] [ubuntu:04803] [ 3] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x141bd6] [ubuntu:04803] [ 4] ./exmpi_2() [0x8048aa1] [ubuntu:04803] *** End of error message ***

折腾了半天,最后删掉了openmpi
sudo apt-get remove  libopenmpi-dev openmpi-bin

   安装mpich 

sudo apt-get install  libmpich-dev openmpi-bin

  一切搞定!!!

 




以上是关于Linux系统下mpi 编程出现:Signal: Segmentation fault, Signal code: Address not mapped的主要内容,如果未能解决你的问题,请参考以下文章

什么是“收到信号 15”

Linux-Ubuntu open-mpi运行错误

MPI集群配置

linux系统安装配置MPI及遇到的问题(以Ubuntu为例)

MPI 分段故障(信号 11)

Linux系统编程-进程间通信(管道)