I would argue that if the standard does not mention NULL as a valid argument, we should probably remove it from the man pages. I can not recall having seen a code using that feature to be honest.

Thanks
Edgar


On 5/11/2017 8:46 PM, Bert Wesarg via users wrote:
Hi,

the MPI_File_set_view.3 manual from Open MPI 2.1.0 tells me:

        To obtain the default value (or "native"), pass NULL.

Though, that results in SIGSEGV:

#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007ffff74fb41e in __GI___strdup (s=0x0) at strdup.c:41
#2  0x00007fffde917d3c in mca_io_ompio_set_view_internal (fh=0x73e910,
disp=0, etype=0x602200 <ompi_mpi_int>, filetype=0x602200 <ompi_mpi_int>,
datarep=0x0, info=0x0) at
../../../../../ompi/mca/io/ompio/io_ompio_file_set_view.c:108
#3  0x00007fffde918318 in mca_io_ompio_file_set_view (fp=0x746610,
disp=0, etype=0x602200 <ompi_mpi_int>, filetype=0x602200 <ompi_mpi_int>,
datarep=0x0, info=0x0) at
../../../../../ompi/mca/io/ompio/io_ompio_file_set_view.c:239
#4  0x00007ffff7b1a44d in PMPI_File_set_view (fh=0x746610, disp=0,
etype=0x602200 <ompi_mpi_int>, filetype=0x602200 <ompi_mpi_int>,
datarep=0x0, info=0x0) at pfile_set_view.c:73
#5  0x0000000000400fea in main (argc=2, argv=0x7fffffffbfe8) at
mpi_io_test.c:58

Note, that the MPI 3.1 document does not mention NULL as a valid value
for datarep
in 13.5 at all.

Best,
Bert

_______________________________________________
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

Reply via email to