The OpenBSD 6.0 release was announced slightly under 12 hours before Jeff
announced the Open MPI 2.0.1rc3 tarball.
So, I just *had* to try them out together.

First, let me say that I have no expectation that the following issue be
fixed for 2.0.1, but hopefully before 2.2.

It appears that abort() is being called from mprotect() when called from
the patcher code.
This is very likely to be because the call asks for RWX, but by default
OpenBSD-6.0 *prohibits* W+X.
To allow both Write and eXec requires *both* a linker flag
(-Wl,-z,wxneeded) and that the executable be on an f/s mounted with the
"wxallowed" option.
Manually working to satisfy those conditions allows "make check" and ring_c
to run w/o failures.

-Paul


$ gdb .libs/dlopen_test dlopen_test.core
GNU gdb 6.3
[...]
This GDB was configured as "amd64-unknown-openbsd6.0"...
Core was generated by `dlopen_test'.
Program terminated with signal 6, Aborted.
[...]
#0  0x00000b726a6cf44a in mprotect () at <stdin>:2
2       <stdin>: No such file or directory.
        in <stdin>
(gdb) where
#0  0x00000b726a6cf44a in mprotect () at <stdin>:2
#1  0x00000b72813d5943 in ModifyMemoryProtection (addr=12586039598736,
length=4096, prot=7)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/patcher/base/patcher_base_patch.c:127
#2  0x00000b72813d59aa in apply_patch (patch_data=0xb728e72fe60
"Iā–’ā–’-=\201r\v", address=12586039598736,
    data_size=13)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/patcher/base/patcher_base_patch.c:135
#3  0x00000b72813d5a49 in mca_base_patcher_patch_apply_binary
(patch=0xb728e72fe00)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/patcher/base/patcher_base_patch.c:152
#4  0x00000b7340474f73 in mca_patcher_overwrite_apply_patch
(patch=0xb728e72fe00)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/patcher/overwrite/patcher_overwrite_module.c:151
#5  0x00000b7340474ff3 in mca_patcher_overwrite_patch_address
(sys_addr=12586039598736,
    hook_addr=12586422447608)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/patcher/overwrite/patcher_overwrite_module.c:255
#6  0x00000b73404753f3 in mca_patcher_overwrite_patch_symbol
(func_symbol_name=0xb728150038f "munmap",
    func_new_addr=12586422447608, func_old_addr=0xb7281827ed8)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/patcher/overwrite/patcher_overwrite_module.c:301
#7  0x00000b72813d301c in patcher_open ()
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/memory/patcher/memory_patcher_component.c:442
#8  0x00000b728136f87d in open_components (framework=0xb72818240c0)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/base/mca_base_components_open.c:117
#9  0x00000b728136f7a0 in mca_base_framework_components_open
(framework=0xb72818240c0,
    flags=MCA_BASE_OPEN_DEFAULT)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/base/mca_base_components_open.c:65
#10 0x00000b72813d2bab in opal_memory_base_open
(flags=MCA_BASE_OPEN_DEFAULT)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/memory/base/memory_base_open.c:137
#11 0x00000b7281370aad in mca_base_framework_open (framework=0xb72818240c0,
flags=MCA_BASE_OPEN_DEFAULT)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/mca/base/mca_base_framework.c:174
#12 0x00000b728133e39d in opal_init (pargc=0x7f7ffffc9ffc,
pargv=0x7f7ffffc9ff0)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/opal/runtime/opal_init.c:459
#13 0x00000b70441012d3 in main (argc=1, argv=0x7f7ffffca068)
    at
/home/phargrov/OMPI/openmpi-2.0.1rc3-openbsd6-amd64/openmpi-2.0.1rc3/ompi/debuggers/dlopen_test.c:134




-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to