From owner-freebsd-ports-bugs@freebsd.org Fri Mar 23 11:05:17 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5706F60286 for ; Fri, 23 Mar 2018 11:05:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DB066DCAD for ; Fri, 23 Mar 2018 11:05:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B0D9C162D4 for ; Fri, 23 Mar 2018 11:05:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2NB5F6l053933 for ; Fri, 23 Mar 2018 11:05:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2NB5FAQ053931 for freebsd-ports-bugs@FreeBSD.org; Fri, 23 Mar 2018 11:05:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 226722] lang/opencoarrays: Silently reboots system when running "make test" Date: Fri, 23 Mar 2018 11:05:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: as@cmplx.uk X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 11:05:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226722 --- Comment #4 from Anton Shterenlikht --- 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.=