[Swift CI] Build Failure: 1. OSS - Swift ASAN - OS X (master) #3818

Report

[FAILURE] oss-swift-incremental-ASAN-RA-osx [#3818]

Build URL:
https://ci.swift.org/job/oss-swift-incremental-ASAN-RA-osx/3818/
Project:
oss-swift-incremental-ASAN-RA-osx
Date of build:
Fri, 20 Sep 2019 05:29:44 -0500
Build duration:
4 hr 20 min

Changes

  • Commit 8fab074bb53f4d38b900b2f5b8f0352871cb5243 by spestov:
    AST: Fix regression from SubstFlags::UseErrorTypes removal

    • edit: lib/AST/SubstitutionMap.cpp
    • add: validation-test/compiler_crashers_2_fixed/0206-rdar54952911.swift
  • Commit a7fce599f5ad4a8971a6cc4d6230f018d3cfbec7 by dgregor:
    [SILGen] Properly substitute contextual archetypes when generating

    • edit: lib/SILGen/SILGenLValue.cpp
    • edit: test/SILGen/property_wrappers.swift
  • Commit 5e3b9b58bde9cf3f59f9726347e761a3a02c8a63 by nate_chandler:
    [cmpcodesize] Allowed args to specify dirs.

    • edit: utils/cmpcodesize/cmpcodesize/main.py
  • Commit 4ade7ae11f628b5f33d51de8e90489aa45039a2b by github:
    [docs] CToSwift: swift_name for all top-level declarations (#27227)

    • edit: docs/CToSwiftNameTranslation.md
  • Commit 74ced92abd3d68d67ac59042c279441b0aa98bba by mgottesman:
    Revert "[sil] Teach the SILVerifier how to validate that a builtin insts

    • edit: lib/SIL/SILVerifier.cpp
  • Commit 9864cb9c06180b68290502edb34188841111cd61 by mgottesman:
    [polymorphic-builtins] Teach constant folding how to fold a polymorphic

    • edit: lib/SILOptimizer/Utils/ConstantFolding.cpp
    • edit: lib/SIL/InstructionUtils.cpp
    • edit: lib/SIL/SILVerifier.cpp
    • edit: include/swift/SIL/SILInstruction.h
    • edit: include/swift/SIL/InstructionUtils.h
    • add: test/SILOptimizer/polymorphic_builtins.sil

This looks like a real failure caught by ASan:

07:03:27 =================================================================
07:03:27 ==17833==ERROR: AddressSanitizer: heap-use-after-free on address 0x60f0000009a0 at pc 0x00010e9ff4d0 bp 0x7ffee33f7790 sp 0x7ffee33f7788
07:03:27 READ of size 8 at 0x60f0000009a0 thread T0
07:03:27 ==17833==WARNING: Can't read from symbolizer at fd 5
07:03:27 ==17833==WARNING: Can't read from symbolizer at fd 5
07:03:27 ==17833==WARNING: Can't read from symbolizer at fd 5
07:03:27 ==17833==WARNING: Can't read from symbolizer at fd 5
07:03:27 ==17833==WARNING: Failed to use and restart external symbolizer!
07:03:27 #0 0x10e9ff4cf in swift::SILInstruction::getResultsImpl() const (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x1021fc4cf)
07:03:27 #1 0x10d99d2b5 in swift::ConstantFolder::processWorkList() (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x10119a2b5)
07:03:27 #2 0x10d467e2f in (anonymous namespace)::ConstantPropagation::run() (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100c64e2f)
07:03:27 #3 0x10d55dc44 in swift::SILPassManager::runPassOnFunction(unsigned int, swift::SILFunction*) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100d5ac44)
07:03:27 #4 0x10d5610de in swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100d5e0de)
07:03:27 #5 0x10d564eaa in swift::SILPassManager::execute() (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100d61eaa)
07:03:27 #6 0x10c813167 in swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100010167)
07:03:27 #7 0x10c808ef9 in main (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100005ef9)
07:03:27 #8 0x7fff58c333d4 in start (/usr/lib/system/libdyld.dylib:x86_64+0x163d4)
07:03:27
07:03:27 0x60f0000009a0 is located 0 bytes inside of 168-byte region [0x60f0000009a0,0x60f000000a48)
07:03:27 freed by thread T0 here:
07:03:27 #0 0x120f7a98d in wrap_free (/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x6098d)
07:03:27 #1 0x10e99e08c in swift::SILBasicBlock::erase(swift::SILInstruction*) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x10219b08c)
07:03:27 #2 0x10d99d282 in swift::ConstantFolder::processWorkList() (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x10119a282)
07:03:27 #3 0x10d467e2f in (anonymous namespace)::ConstantPropagation::run() (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100c64e2f)
07:03:27 #4 0x10d55dc44 in swift::SILPassManager::runPassOnFunction(unsigned int, swift::SILFunction*) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100d5ac44)
07:03:27 #5 0x10d5610de in swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100d5e0de)
07:03:27 #6 0x10d564eaa in swift::SILPassManager::execute() (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100d61eaa)
07:03:27 #7 0x10c813167 in swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100010167)
07:03:27 #8 0x10c808ef9 in main (/Users/buildnode/jenkins/workspace/oss-swift-incremental-ASAN-RA-osx/buildbot_incremental_asan/swift-macosx-x86_64/bin/sil-opt:x86_64+0x100005ef9)
07:03:27 #9 0x7fff58c333d4 in start (/usr/lib/system/libdyld.dylib:x86_64+0x163d4)

I have a fix for this already. I am waiting for testing.

I think there is something wrong with the ASAN bot so once the smoke test for os x finishes I am going to merge.

Michael

Thanks, Michael!

No problem. Sorry for the build breakage!

Merged

Terms of Service

Privacy Policy

Cookie Policy