<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [11.1.0, 12.0.0] AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x7ffdc47fa0b0 sp 0x7ffdc47f9e18 T0)"
   href="https://bugs.llvm.org/show_bug.cgi?id=50108">50108</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[11.1.0, 12.0.0] AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x7ffdc47fa0b0 sp 0x7ffdc47f9e18 T0)
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>asan
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sebastian@pipping.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi!

Many thanks for developing Clang and its sanitizers as software libre, it's
been of great help to me multiple times.

I'm running into a situation with AddressSanitizer that could be a bug in
AddressSanitizer, hence this report.  The context is libexpat and the related
libexpat issue on GitHub is at <a href="https://github.com/libexpat/libexpat/issues/332">https://github.com/libexpat/libexpat/issues/332</a>
.

Here's how to reproduce it and the related output:

  # cd "$(mktemp -d)"
  # git clone --depth 1 --branch
issue-332-drop-clang-asan-plus-min-size-workaround
<a href="https://github.com/libexpat/libexpat">https://github.com/libexpat/libexpat</a>
  # cd libexpat/
  # CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
CMAKE_ARGS=-DEXPAT_MIN_SIZE=ON ./.travis.sh
  [..]
  AddressSanitizer:DEADLYSIGNAL
  =================================================================
  ==30109==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x000000000000 bp 0x7ffc68554570 sp 0x7ffc685542d8 T0)
  ==30109==Hint: pc points to the zero page.
  ==30109==The signal is caused by a READ memory access.
  ==30109==Hint: address points to the zero page.
      #0 0x0  (<unknown module>)
      #1 0x7f43fba7671f  (/lib64/libpthread.so.0+0x1271f)

  AddressSanitizer can not provide additional info.
  SUMMARY: AddressSanitizer: SEGV (<unknown module>) 
  ==30109==ABORTING
  [..]

  # clang --version
  clang version 12.0.0
  Target: x86_64-pc-linux-gnu
  Thread model: posix
  InstalledDir: /usr/lib/llvm/12/bin

Is this a bug?

Many thanks in advance!

Best



Sebastian</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>