From owner-freebsd-ports-bugs@freebsd.org Wed Feb 1 01:55:55 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2476BCCBBF0 for ; Wed, 1 Feb 2017 01:55:55 +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 mx1.freebsd.org (Postfix) with ESMTPS id 0986912EF for ; Wed, 1 Feb 2017 01:55:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v111tsZx087875 for ; Wed, 1 Feb 2017 01:55:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216684] virtualbox-ose VBox.sh sets an incomplete PATH causing other applications to intermittently fail. Date: Wed, 01 Feb 2017 01:55:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mrT1188123@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 01:55:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216684 Bug ID: 216684 Summary: virtualbox-ose VBox.sh sets an incomplete PATH causing other applications to intermittently fail. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: mrT1188123@gmail.com This issue has to do with VirtualBox-ose the part that runs on the host. I was experiencing intermittent issues were some executeables were not found (on the host) I traced the issue to /usr/local/lib/virtualbox/VBox.sh VBox.sh hard-codes: PATH=3D"/usr/bin:/bin:/usr/sbin:/sbin" and launches: /usr/local/lib/virtualbox/VirtualBox According to FreeBSD audit trails, VirtualBox launches: 'kdeinit4 Running..= .' (/usr/local/bin/kdeinit4) inheriting that PATH. Since that is the second 'kdeinit4 Running...' (and not exclusive to VirtualBox) running on my system I was experiencing some executables workin= g OK where some would not be found. It is not clear to me why VirtualBox is launching this second copy of 'kdeinit4 Running...' but I might suggest either getting VirtualBox to use = it for its exclusive purposes or to establish the PATH more consistent with wh= at everything else uses. The most obvious missing part of that PATH is '/usr/local/sbin:/usr/local/b= in' It would seem best to inherit a PATH rather than hard-code it. I have done some testing with just committing out that hard-coded PATH and it seems to work better. Version info: virtualbox-ose 5.1.12 Options : ALSA : off DBUS : on DEBUG : off GUESTADDITIONS : on MANUAL : off NLS : on PULSEAUDIO : off PYTHON : on QT4 : on QT5 : off R0LOGGING : off UDPTUNNEL : on VDE : off VNC : on VPX : off WEBSERVICE : on X11 : on . This version of VirtualBox-ose was compiled on: uname -a FreeBSD MT2016 10.3-RELEASE-p5 FreeBSD 10.3-RELEASE-p5 #0: Thu Jun 30 03:52= :15 UTC 2016 root@amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC amd= 64 KDE apps:.....4.14.3_1 KDE plasma:...4.11.21 Sincerely, Mark T. --=20 You are receiving this mail because: You are the assignee for the bug.=