Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Bettina Krammer (krammer_at_[hidden])
Date: 2007-08-02 08:13:22


my send finger was too fast, I wanted to add that according to the MPI
standard, MPI_Comm_rank is defined as
int MPI_Comm_rank ( MPI_Comm comm, int *rank )
therefore I wouldn't recommend to use anything else than an int for rank...

regards, Bettina

Dirk Eddelbuettel schrieb:

>Dear Open MPI developers,
>
>We (as in the Debian maintainer for Open MPI) got this bug report from
>Uwe who sees mpi apps segfault on Debian systems with the FreeBSD
>kernel. Is there anybody here familiar with any BSD peculiarties that
>may play a role?
>
>Any input would be greatly appreciated!
>
Hi Dirk

have you tried using an int instead of unsigned int for rank?

regards, Bettina

>
>Dirk
>
>
>
>
>
> ------------------------------------------------------------------------
>
> Betreff:
> [Pkg-openmpi-maintainers] Bug#435581: openmpi-bin: Segfault on Debian
> GNU/kFreeBSD
> Von:
> Uwe Hermann <uwe_at_[hidden]>
> Datum:
> Wed, 1 Aug 2007 21:15:17 +0200
> An:
> Debian Bug Tracking System <submit_at_[hidden]>
>
>
>Package: openmpi-bin
>Version: 1.2.3-1
>Severity: important
>Tags: patch
>User: glibc-bsd-devel_at_[hidden]
>Usertags: kfreebsd
>
>Hi,
>
>openmpi segfaults on kFreeBSD, I'm not sure where the problem lies.
>
>My openmpi is built from source on i386 kFreeBSD using the patch from
>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435573
>
>$ cat a.c
>#include <stdio.h>
>#include <mpi.h>
>
>int main(int argc, char *argv[])
>{
> unsigned int rank;
>
> MPI_Init(&argc, &argv);
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> printf("Hello world, I'm process %d\n", rank);
> MPI_Finalize();
>}
>$ mpicc a.c
>$ mpirun -np 1 ./a.out
>[debian:10755] *** Process received signal ***
>[debian:10755] Signal: Segmentation fault (11)
>[debian:10755] Signal code: (1)
>[debian:10755] Failing at address: (nil)
>[debian:10755] [ 0] /lib/i686/cmov/libpthread.so.0 [0x28170c9c]
>[debian:10755] [ 1] [0xbfbfffb4]
>[debian:10755] [ 2] /lib/ld.so.1 [0x28060aa0]
>[debian:10755] [ 3] /lib/ld.so.1 [0x2805c7ab]
>[debian:10755] [ 4] /lib/ld.so.1 [0x280600ee]
>[debian:10755] [ 5] /lib/i686/cmov/libdl.so.2 [0x28120b99]
>[debian:10755] [ 6] /lib/ld.so.1 [0x2805c7ab]
>[debian:10755] [ 7] /lib/i686/cmov/libdl.so.2 [0x2812124c]
>[debian:10755] [ 8] /lib/i686/cmov/libdl.so.2(dlopen+0x41) [0x28120ad1]
>[debian:10755] [ 9] /usr/lib/libopen-pal.so.0 [0x280daaf2]
>[debian:10755] [10] /usr/lib/libopen-pal.so.0 [0x280d901b]
>[debian:10755] [11] /usr/lib/libopen-pal.so.0 [0x280d924a]
>[debian:10755] [12] /usr/lib/libopen-pal.so.0 [0x280d9a79]
>[debian:10755] [13] /usr/lib/libopen-pal.so.0(lt_dlopenext+0xc6) [0x280d9ed6]
>[debian:10755] [14] /usr/lib/libopen-pal.so.0 [0x280e09e1]
>[debian:10755] [15] /usr/lib/libopen-pal.so.0(mca_base_component_find+0x2fb) [0x280e145b]
>[debian:10755] [16] /usr/lib/libopen-pal.so.0(mca_base_components_open+0x11d) [0x280e1e1d]
>[debian:10755] [17] /usr/lib/libopen-rte.so.0(orte_gpr_base_open+0x64d) [0x28097b6d]
>[debian:10755] [18] /usr/lib/libopen-rte.so.0(orte_init_stage1+0x218) [0x28088d28]
>[debian:10755] [19] /usr/lib/libopen-rte.so.0(orte_system_init+0x1f) [0x2808c2ff]
>[debian:10755] [20] /usr/lib/libopen-rte.so.0(orte_init+0x70) [0x280889c0]
>[debian:10755] [21] mpirun(orterun+0x141) [0x804a185]
>[debian:10755] [22] mpirun(main+0x1e) [0x804a036]
>[debian:10755] [23] /lib/i686/cmov/libc.so.0.1(__libc_start_main+0xab) [0x2819197b]
>[debian:10755] [24] mpirun [0x8049fa1]
>[debian:10755] *** End of error message ***
>Segmentation fault (core dumped)
>
>
>Please let me know if/how I can provide more information.
>
>
>Thanks, Uwe.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Pkg-openmpi-maintainers mailing list
>Pkg-openmpi-maintainers_at_[hidden]
>http://lists.alioth.debian.org/mailman/listinfo/pkg-openmpi-maintainers
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>devel mailing list
>devel_at_[hidden]
>http://www.open-mpi.org/mailman/listinfo.cgi/devel
>

-- 
---------------------------------------------
* NEW PHONE AND FAX-NUMBERS *
---------------------------------------------
Dipl.-Math. Bettina Krammer
High Performance Computing Center (HLRS)
University of Stuttgart
Nobelstrasse 19
D-70569 Stuttgart
Phone: ++49 (0)711-685-65890
Fax: ++49 (0)711-685-65832
email: krammer_at_[hidden]
URL: http://www.hlrs.de
---------------------------------------------
_______________________________________________
devel mailing list
devel_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/devel