<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 --- - Clang 3.3./Sanitizer: malformed blacklist causes panic"
   href="http://llvm.org/bugs/show_bug.cgi?id=16768">16768</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang 3.3./Sanitizer: malformed blacklist causes panic
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>noloader@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Working with Clang 3.3 on Mac OS X 10.8.3 (x64).

Testing sanitizer blacklist to suppress findings.

I wanted to see how the tool would respond with an empty/malformed blacklist
file.

In the case below, the blacklist file has one entry of just "fun:", without the
CRLF:

  riemann::cryptopp$ cat clang_sanitize_ignore.txt 
  fun:riemann::cryptopp$ 

~~~~~

Last login: Thu Aug  1 00:45:35 on ttys000
riemann::cryptopp$ make cryptest.exe CXX="/usr/local/bin/clang++
-fsanitize-blacklist=clang_sanitize_ignore.txt -fsanitize=address
-fsanitize=undefined -fno-sanitize=vptr"
/usr/local/bin/clang++ -fsanitize-blacklist=clang_sanitize_ignore.txt
-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr -DNDEBUG -g -O2
-DCRYPTOPP_DISABLE_ASM -pipe -Wno-tautological-compare -c 3way.cpp
fatal error: error in backend: malformed blacklist line: fun
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/mk/y7lk0xrx72lcn_2q3d12jcch0000gn/T/3way-yYvTGG.cpp
clang: note: diagnostic msg:
/var/folders/mk/y7lk0xrx72lcn_2q3d12jcch0000gn/T/3way-yYvTGG.sh
clang: note: diagnostic msg: 

********************
make: *** [3way.o] Error 70
riemann::cryptopp$</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>