[LLVMbugs] [Bug 24237] New: attempting to call malloc_usable_size() for pointer which is not owned:

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 23 14:45:11 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24237

            Bug ID: 24237
           Summary: attempting to call malloc_usable_size() for pointer
                    which is not owned:
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: raymond.forbes at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I have successfully built firefox on Windows 8 using Clang and ASAN but I am
getting the following error on startup.

rforbes at 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 at 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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150723/d4480884/attachment.html>


More information about the llvm-bugs mailing list