New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 694402 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocked on:
issue 685244



Sign in to add a comment

Win ASAN build failure (since Feb 15)

Project Member Reported by infe...@chromium.org, Feb 21 2017

Issue description

https://build.chromium.org/p/chromium.lkgr/builders/Win%20ASan%20Release/builds/3961/steps/compile/logs/stdio

[11001/35819] CXX obj/third_party/webrtc/modules/audio_coding/neteq/time_stretch.obj
[11002/35819] ACTION //chrome/app:generated_resources_grit(//build/toolchain/win:clang_x86)
ninja: build stopped: subcommand failed.
step returned non-zero exit code: 1
@@@STEP_FAILURE@@@

Reid, can you please take a look, any idea what changed ?
 

Comment 1 by thakis@chromium.org, Feb 21 2017

Started here https://build.chromium.org/p/chromium.lkgr/builders/Win%20ASan%20Release/builds/3961

Nothing obvious, jochen's cdb change probably looks most related if you want to try and speculatively revert something.

Comment 2 by aarya@google.com, Feb 21 2017

Cc: jochen@chromium.org r...@chromium.org
Owner: och...@chromium.org
I am OOO. Oliver, can you try the revert and see if it fixes.

Comment 3 by och...@chromium.org, Feb 21 2017

Cc: machenb...@chromium.org vogelheim@chromium.org hablich@chromium.org littledan@chromium.org
Owner: ----
Real error seems to be:

[10803/35819] ACTION //v8:run_mkpeephole(//build/toolchain/win:clang_x86)
FAILED: gen/v8/bytecode-peephole-table.cc 
C:/b/depot_tools/python276_bin/python.exe ../../v8/tools/run.py ./mkpeephole gen/v8/bytecode-peephole-table.cc
=================================================================
==7368==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x0018fe58 in thread T0
    #0 0xcd381a in free e:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\lib\asan\asan_malloc_win.cc:45
    #1 0x6a4b0ba1 in ltoa+0x1a1 (C:\b\c\b\Win_ASan_Release\src\out\Release\ucrtbase.DLL+0x10030ba1)
    #2 0x77668ea4 in RtlIsCurrentThreadAttachExempt+0x5e (C:\Windows\SysWOW64\ntdll.dll+0x7dea8ea4)
    #3 0x77689d91 in LdrShutdownProcess+0x96 (C:\Windows\SysWOW64\ntdll.dll+0x7dec9d91)
    #4 0x77689cdd in RtlExitUserProcess+0x73 (C:\Windows\SysWOW64\ntdll.dll+0x7dec9cdd)
    #5 0x754d79dc in ExitProcess+0x14 (C:\Windows\syswow64\kernel32.dll+0x7dd779dc)
    #6 0xcf9470 in exit_or_terminate_process d:\rs1\minkernel\crts\ucrt\src\appcrt\startup\exit.cpp:129
    #7 0xcf942e in common_exit d:\rs1\minkernel\crts\ucrt\src\appcrt\startup\exit.cpp:265
    #8 0xcf9567 in exit d:\rs1\minkernel\crts\ucrt\src\appcrt\startup\exit.cpp:278
    #9 0xcecea7 in __scrt_common_main_seh f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:260
    #10 0x754d3379 in BaseThreadInitThunk+0x11 (C:\Windows\syswow64\kernel32.dll+0x7dd73379)
    #11 0x776692e1 in RtlInitializeExceptionChain+0x62 (C:\Windows\SysWOW64\ntdll.dll+0x7dea92e1)
    #12 0x776692b4 in RtlInitializeExceptionChain+0x35 (C:\Windows\SysWOW64\ntdll.dll+0x7dea92b4)

Address 0x0018fe58 is a wild pointer.
SUMMARY: AddressSanitizer:

Reverting jochen's CL doesn't fix this. Might be an issue with the V8 roll?

Comment 4 by och...@chromium.org, Feb 21 2017

Status: Available (was: Assigned)

Comment 5 by r...@chromium.org, Feb 21 2017

Owner: etienneb@chromium.org
Status: Assigned (was: Available)
Looks identical to the issue Etienne was fixing here: https://reviews.llvm.org/D25946

Which also showed up on the TOT bots here: https://bugs.chromium.org/p/chromium/issues/detail?id=693718

I'm going to merge that issue into this one.

Did someone re-image the VM this bot uses? Basically, this bug depends on which version of dbghelp.dll is installed on the machine running ASan.

As Etienne mentioned in the other bug, if mkpeephole was recently switched from being 32-bit to 64-bit that could have also caused this.

I think this will be fixed in the next Clang roll.

Comment 6 by r...@chromium.org, Feb 21 2017

 Issue 693718  has been merged into this issue.

Comment 7 by r...@chromium.org, Feb 21 2017

Blockedon: 685244
Cc: chrisha@chromium.org
I observed on 64-bit that recent CRT are doing allocations before asan is able to hook.

But, I believe this may also happen on 32-bit architecture.

So, as Reid mentioned, did someone update CRT, compiler, etc..?


> I think this will be fixed in the next Clang roll.

No, if this issue is on a 32-bit executable. The fix that landed in LLVM 
only apply to windows-64.
Status: Fixed (was: Assigned)
Roll landed and helped.
That means it was a bug caused by that fixed:
  https://reviews.llvm.org/D25946

The executable was probably built for x64.

Sign in to add a comment