<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - address sanitizer fails to pick up LD_LIBRARY_PATH"
   href="http://llvm.org/bugs/show_bug.cgi?id=19915">19915</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>address sanitizer fails to pick up LD_LIBRARY_PATH
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sstewartgallus00@mylangara.bc.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>What steps will reproduce the problem?

1. Compile and install a new version g++ (not installing in /usr or
/usr/local but in a custom directory).

2. Set LD_LIBRARY_PATH to include g++'s C++ libraries.

3. Compile LLVM with your new version of g++.

4. Compile a program with LLVM and address-sanitizer enabled,

What is the expected output? What do you see instead?

I expect to see normal program output. I see the following first and
then normal program output:

/home/sstewartgallus/local/bin/llvm-symbolizer:
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
(required by /home/sstewartgallus/local/bin/llvm-symbolizer)
==23022==WARNING: external symbolizer didn't start up correctly!

What version of the product are you using? On what operating system?

I'm using the version of address sanitizer that comes with version 3.4
of Clang.

Please provide any additional information below.

I'm not sure if this is a problem with Clang or
address-sanitizer. Basically, the problem is that address-sanitizer
does not pick up the C++ libraries in the environment variable
LD_LIBRARY_PATH that llvm-symbolizer needs.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>