Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D6F418A95 for ; Thu, 29 Oct 2015 21:36:30 +0000 (UTC) Received: (qmail 83568 invoked by uid 500); 29 Oct 2015 21:36:28 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 83185 invoked by uid 500); 29 Oct 2015 21:36:28 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 83160 invoked by uid 99); 29 Oct 2015 21:36:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 21:36:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DD1CE2C1F57 for ; Thu, 29 Oct 2015 21:36:27 +0000 (UTC) Date: Thu, 29 Oct 2015 21:36:27 +0000 (UTC) From: "James Peach (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-3725) shared library loading depends on environment variable updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981334#comment-14981334 ] James Peach commented on MESOS-3725: ------------------------------------ [~tillt], can you shepherd this, since it is needed for MESOS-3608? > shared library loading depends on environment variable updates > -------------------------------------------------------------- > > Key: MESOS-3725 > URL: https://issues.apache.org/jira/browse/MESOS-3725 > Project: Mesos > Issue Type: Bug > Components: modules, stout > Reporter: James Peach > Assignee: James Peach > > {{ModuleTest::SetUpTestCase()}} and the various {{libraries::paths()}} is stout assume that updating {{LD_LIBRARY_PATH}} or {{DYLD_LIBRARY_PATH}} is sufficient to alter the search path used by dlopen(3). It is not; those environment variables are only bound at program load. > My preference is to fix this by requiring the clients of {{DynamicLibrary}} to always pass in an absolute path and to remove all mention of these environment variables. > FWIW, the tests in {{ModuleTest::SetUpTestCase()}} only work because the libtool wrapper script sets up the library path to the expected value prior to running the tests. -- This message was sent by Atlassian JIRA (v6.3.4#6332)