Siegmar and all,
i am puzzled with this error.
on one hand, it is caused by an invalid buffer
(e.g. buffer size is 1, but user suggests size is 2)
so i am fine with current behavior (e.g.
java.lang.ArrayIndexOutOfBoundsException is thrown)
/* if that was a C program, it would very likely SIGSEGV, e.g. Open MPI
does not catch this kind of error when checking params */
on the other hand, Open MPI could be enhanced to check the buffer size,
and throw a MPIException in this case.
as far as i am concerned, this is a feature request and not a bug.
thoughts anyone ?
Cheers,
Gilles
On 8/29/2016 3:48 PM, Siegmar Gross wrote:
Hi,
I have installed v1.10.3-31-g35ba6a1, openmpi-v2.0.0-233-gb5f0a4f,
and openmpi-dev-4691-g277c319 on my "SUSE Linux Enterprise Server
12 (x86_64)" with Sun C 5.14 beta and gcc-6.1.0. In May I had
reported a problem with Java execeptions (PR 1698) which had
been solved in June (PR 1803).
https://github.com/open-mpi/ompi/issues/1698
https://github.com/open-mpi/ompi/pull/1803
Unfortunately the problem still exists or exists once more
in all three branches.
loki fd1026 112 ompi_info | grep -e "Open MPI repo revision" -e "C
compiler absolute"
Open MPI repo revision: dev-4691-g277c319
C compiler absolute: /opt/solstudio12.5b/bin/cc
loki fd1026 112 mpijavac Exception_2_Main.java
warning: [path] bad path element
"/usr/local/openmpi-master_64_cc/lib64/shmem.jar": no such file or
directory
1 warning
loki fd1026 113 mpiexec -np 1 java Exception_2_Main
Set error handler for MPI.COMM_WORLD to MPI.ERRORS_RETURN.
Call "bcast" with index out-of bounds.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at mpi.Comm.bcast(Native Method)
at mpi.Comm.bcast(Comm.java:1252)
at Exception_2_Main.main(Exception_2_Main.java:22)
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero
status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[58548,1],0]
Exit code: 1
--------------------------------------------------------------------------
loki fd1026 114 exit
loki fd1026 116 ompi_info | grep -e "Open MPI repo revision" -e "C
compiler absolute"
Open MPI repo revision: v2.0.0-233-gb5f0a4f
C compiler absolute: /opt/solstudio12.5b/bin/cc
loki fd1026 117 mpijavac Exception_2_Main.java
warning: [path] bad path element
"/usr/local/openmpi-2.0.1_64_cc/lib64/shmem.jar": no such file or
directory
1 warning
loki fd1026 118 mpiexec -np 1 java Exception_2_Main
Set error handler for MPI.COMM_WORLD to MPI.ERRORS_RETURN.
Call "bcast" with index out-of bounds.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at mpi.Comm.bcast(Native Method)
at mpi.Comm.bcast(Comm.java:1252)
at Exception_2_Main.main(Exception_2_Main.java:22)
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero
status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[58485,1],0]
Exit code: 1
--------------------------------------------------------------------------
loki fd1026 119 exit
loki fd1026 107 ompi_info | grep -e "Open MPI repo revision" -e "C
compiler absolute"
Open MPI repo revision: v1.10.3-31-g35ba6a1
C compiler absolute: /opt/solstudio12.5b/bin/cc
loki fd1026 107 mpijavac Exception_2_Main.java
loki fd1026 108 mpiexec -np 1 java Exception_2_Main
Set error handler for MPI.COMM_WORLD to MPI.ERRORS_RETURN.
Call "bcast" with index out-of bounds.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at mpi.Comm.bcast(Native Method)
at mpi.Comm.bcast(Comm.java:1231)
at Exception_2_Main.main(Exception_2_Main.java:22)
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero
status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[34400,1],0]
Exit code: 1
--------------------------------------------------------------------------
loki fd1026 109 exit
I would be grateful, if somebody can fix the problem. Thank you
very much for any help in advance.
Kind regards
Siegmar
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users