Date: Fri, 23 Mar 2018 11:05:14 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 226722] lang/opencoarrays: Silently reboots system when running "make test" Message-ID: <bug-226722-13-UpMG58cO9a@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-226722-13@https.bugs.freebsd.org/bugzilla/> References: <bug-226722-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226722 --- Comment #4 from Anton Shterenlikht <as@cmplx.uk> --- I've done a bit more digging. "make test" results in a halt only when run as root, which is the default. When I do "chown -R user:user work", where user is some unprivileged user, then "make test" does not cause a hang. The ideal solution is not to run the tests as root anyway. In fact, if lang/opencoarrays is built with OpenMPI or OpenMPI2, than the tests will not run under root: Script started on Thu Mar 22 11:41:05 2018 Command: ctest -VV UpdateCTestConfiguration from :/usr/ports/lang/opencoarrays/work/.build/DartConfiguration.tcl UpdateCTestConfiguration from :/usr/ports/lang/opencoarrays/work/.build/DartConfiguration.tcl Test project /usr/ports/lang/opencoarrays/work/.build Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 1 Start 1: initialize_mpi 1: Test command: /usr/local/bin/bash "/usr/ports/lang/opencoarrays/work/.build/bin/cafrun" "-np" "2" "--hostfile" "/usr/ports/lang/opencoarrays/work/.build/hostfile" "/usr/ports/lang/opencoarrays/work /.build/bin/OpenCoarrays-2.0.0-tests/initialize_mpi" 1: Test timeout computed to be: 9.99988e+06 1: ------------------------------------------------------------------------= -- 1: mpiexec has detected an attempt to run as root. 1: Running at root is *strongly* discouraged as any mistake (e.g., in 1: defining TMPDIR) or bug can result in catastrophic damage to the OS 1: file system, leaving your system in an unusable state. 1: 1: You can override this protection by adding the --allow-run-as-root 1: option to your cmd line. However, we reiterate our strong advice 1: against doing so - please do so at your own risk. 1: ------------------------------------------------------------------------= -- 1: Error: Command: 1: `/usr/local/mpi/openmpi2/bin/mpiexec -n 2 --hostfile /usr/ports/lang/opencoarrays/work/.build/ hostfile /usr/ports/lang/opencoarrays/work/.build/bin/OpenCoarrays-2.0.0-tests/initi= alize_mpi` 1: failed to run. 1/63 Test #1: initialize_mpi .......................***Failed Required regular expression not fou nd.Regex=3D[Test passed. Yes, adding --allow-run-as-root works, and the tests can be run as root, but it's a bad idea, as the halt shows. So the question is: Is anybody in FreeBSD interested in investigating why the hang happens when the tests are run as root? If so, then this PR should be fixed. If no, meaning that running make test under root is asking for trouble, and a halt in an MPI program run as root is not that surprising, then this PR can be closed, as there is no problem. I'll then open another PR asking for help to change the port to *not* run the tests as root. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226722-13-UpMG58cO9a>