<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 - clang_rt_asan_dynamic_x86_64 crash running ASan build of Firefox on Windows 11"
   href="https://bugs.llvm.org/show_bug.cgi?id=51721">51721</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang_rt_asan_dynamic_x86_64 crash running ASan build of Firefox on Windows 11
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>cpeterson@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I try to run an ASan build of Firefox on Windows 11 Beta (version
10.0.22000.1), it crashes with a 0xc0000142 (STATUS_DLL_INIT_FAILED) error. I
filed Firefox bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1723593">https://bugzilla.mozilla.org/show_bug.cgi?id=1723593</a>

The crash happens in Clang's runtime clang_rt.asan_dynamic-x86_64.dll here:

0:000> r
rax=0000000000000005 rbx=00007ffcc085c200 rcx=0000000000d28548
rdx=0000000000000000 rsi=0000000000000000 rdi=00007ffcc11b7bd0
rip=00007ffcc0831ac6 rsp=000000b44f5fe1b8 rbp=0000000000000001
 r8=0000000074d28548  r9=0000000000008548 r10=00000000ffff8548
r11=8080808080808080 r12=00007ffcf50d8200 r13=00007ffcc0873508
r14=0000000000000002 r15=00007ffcc11b7bd0
iopl=0         nv up ei pl nz na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000204
clang_rt_asan_dynamic_x86_64+0x1ac6:
00007ffc`c0831ac6 cc              int     3
0:000> knL
 # Child-SP          RetAddr           Call Site
00 000000b4`4f5fe1b8 00007ffc`c0831b13 clang_rt_asan_dynamic_x86_64+0x1ac6
01 000000b4`4f5fe1c0 00007ffc`c08320db clang_rt_asan_dynamic_x86_64+0x1b13
02 000000b4`4f5fe260 00007ffc`c0861ebd clang_rt_asan_dynamic_x86_64+0x20db
03 000000b4`4f5fe2c0 00007ffc`c086b88f
clang_rt_asan_dynamic_x86_64!_asan_wrap_atol+0x2fd
04 000000b4`4f5fe2f0 00007ffc`c084d4f9
clang_rt_asan_dynamic_x86_64!_asan_storeN_noabort+0x57f
05 000000b4`4f5fe360 00007ffc`c084dcb8
clang_rt_asan_dynamic_x86_64!_ubsan_get_current_report_data+0x1679
06 000000b4`4f5fe400 00007ffc`c0863106
clang_rt_asan_dynamic_x86_64!_ubsan_get_current_report_data+0x1e38
07 000000b4`4f5fe450 00007ffc`c08a0d16
clang_rt_asan_dynamic_x86_64!_asan_memmove+0x5d6
08 000000b4`4f5fece0 00007ffc`c08a0d9c
clang_rt_asan_dynamic_x86_64!_ubsan_handle_function_type_mismatch_v1_abort+0x2ea76
09 000000b4`4f5fed10 00007ffc`c08ab7af
clang_rt_asan_dynamic_x86_64!_ubsan_handle_function_type_mismatch_v1_abort+0x2eafc
0a 000000b4`4f5fed40 00007ffc`c0872f1c
clang_rt_asan_dynamic_x86_64!_ubsan_handle_function_type_mismatch_v1_abort+0x3950f
0b 000000b4`4f5fed70 00007ffc`c0873226
clang_rt_asan_dynamic_x86_64!_ubsan_handle_function_type_mismatch_v1_abort+0xc7c
0c 000000b4`4f5feda0 00007ffc`c0873424
clang_rt_asan_dynamic_x86_64!_ubsan_handle_function_type_mismatch_v1_abort+0xf86
0d 000000b4`4f5fedd0 00007ffc`f507fb97
clang_rt_asan_dynamic_x86_64!_ubsan_handle_function_type_mismatch_v1_abort+0x1184
0e 000000b4`4f5fee30 00007ffc`f50b2a2e ntdll!LdrpCallInitRoutine+0x6b
0f 000000b4`4f5feea0 00007ffc`f50b27de ntdll!LdrpInitializeNode+0x1ca
10 000000b4`4f5fefe0 00007ffc`f50b2850 ntdll!LdrpInitializeGraphRecurse+0x42
11 000000b4`4f5ff020 00007ffc`f511f5b2 ntdll!LdrpInitializeGraphRecurse+0xb4
12 000000b4`4f5ff060 00007ffc`f510cee2 ntdll!LdrpInitializeProcess+0x1c86
13 000000b4`4f5ff420 00007ffc`f50ba7a3 ntdll!_LdrpInitialize+0x52706
14 000000b4`4f5ff4a0 00007ffc`f50ba6ce ntdll!LdrpInitializeInternal+0x6b
15 000000b4`4f5ff720 00000000`00000000 ntdll!LdrInitializeThunk+0xe

Firefox ASan builds had a similar crash on Windows 10 four years ago:
GetInstructionSize <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Problems intercepting strnlen on Windows 10 build 1703"
   href="show_bug.cgi?id=32895">bug 32895</a></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>