<html>
    <head>
      <base href="https://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 --- - attempting to call malloc_usable_size() for pointer which is not owned:" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24237&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=mIaY9hoMOaYy-eGTu7MrRyqbfEI66aEeW2VreqxMd68&s=jVFo-Ho3iiQ2H1BL6Z7VhjWmXhNzM0ET5E_pNJfKc2k&e=">24237</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>attempting to call malloc_usable_size() for pointer which is not owned:
          </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>other
          </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>raymond.forbes@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>I have successfully built firefox on Windows 8 using Clang and ASAN but I am
getting the following error on startup.

rforbes@FUZZER-WINDOWS /c/src/mozilla-central
$ mach run
 0:00.80 c:\src\mozilla-central\obj-ff-asan\dist\bin\firefox.exe -no-remote
-profile c:\src\mozilla-central\obj-ff-asan\tmp\scratc
h_user
=================================================================
==2768==ERROR: AddressSanitizer: attempting to call malloc_usable_size() for
pointer which is not owned: 0x059fef80
    #0 0x647a07d5 in _msize
c:\tools\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:109
    #1 0x69c7bf06 in onexit+0x9b (C:\windows\SYSTEM32\MSVCR120.dll+0x2bf06)
    #2 0x69c7be8b in onexit+0x20 (C:\windows\SYSTEM32\MSVCR120.dll+0x2be8b)
    #3 0xb66635 in _onexit f:\dd\vctools\crt\crtw32\dllstuff\atonexit.c:138
    #4 0xb666ba in atexit f:\dd\vctools\crt\crtw32\dllstuff\atonexit.c:175
    #5 0xb660b9 in `anonymous namespace'::ScheduleUnregisterGlobals
c:\tools\llvm\projects\compiler-rt\lib\asan\asan_win_dynamic_r
untime_thunk.cc:72
    #6 0xb66487 in __tmainCRTStartup
f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:532
    #7 0x76017c03 in BaseThreadInitThunk+0x23
(C:\windows\SYSTEM32\KERNEL32.DLL+0x17c03)
    #8 0x7792ad1e in RtlInitializeExceptionChain+0x8e
(C:\windows\SYSTEM32\ntdll.dll+0x5ad1e)
    #9 0x7792ace9 in RtlInitializeExceptionChain+0x59
(C:\windows\SYSTEM32\ntdll.dll+0x5ace9)

AddressSanitizer can not describe address in more detail (wild memory access
suspected).
SUMMARY: AddressSanitizer: bad-malloc_usable_size
c:\tools\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:109 in _msize
==2768==ABORTING
==2768==AddressSanitizer: while reporting a bug found another one. Ignoring.

rforbes@FUZZER-WINDOWS /c/src/mozilla-central
$

I know there is a asan option to disable tracking of usable size but I am
hoping to get a long term solution for this.

Is there anything I can do to narrow down exactly what part of the code is
causing this error?

Thanks!</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>