Failed

lldb-api.functionalities/scripted_process.TestScriptedProcess.py (from lldb-api)

Failing for the past 12 builds (Since #2032 )
Took 3 min 15 sec.

Stacktrace

Script:
--
/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/copied-python /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --codesign-identity lldb_codesign --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex -t --env TERM=vt100 --env LLVM_LIBS_DIR=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib --inferior-env ASAN_OPTIONS=detect_stack_use_after_return=1 --inferior-env DYLD_INSERT_LIBRARIES=/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/lib/clang/14.0.99/lib/darwin/libclang_rt.asan_osx_dynamic.dylib --arch x86_64 --build-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex --lldb-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/lldb --compiler /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/host-compiler/bin/clang --dsymutil /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin/dsymutil --llvm-tools-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./bin --lldb-libs-dir /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/./lib /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/scripted_process -p TestScriptedProcess.py
--
Exit Code: -6

Command Output (stdout):
--
lldb version 14.0.99 (http://labmaster3.local/git/llvm-project.git revision 87261caa550d2399b0556af44f60e1482d8c4179)
  clang revision 87261caa550d2399b0556af44f60e1482d8c4179
  llvm revision 87261caa550d2399b0556af44f60e1482d8c4179
Name of the class that will manage the scripted process: 'stack_core_scripted_process.StackCoreScriptedProcess'
Saving 69632 bytes of data for memory region at 0x7ffeefbef000

--
Command Output (stderr):
--
=================================================================
==39701==ERROR: AddressSanitizer: heap-use-after-free on address 0x6160002508a0 at pc 0x00010ca0bcc0 bp 0x70000b17bcf0 sp 0x70000b17b4b8
READ of size 512 at 0x6160002508a0 thread T6
    #0 0x10ca0bcbf in __asan_memcpy+0x1af (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x44cbf)
    #1 0x11b783838 in lldb_private::DataExtractor::CopyByteOrderedData(unsigned long long, unsigned long long, void*, unsigned long long, lldb::ByteOrder) const DataExtractor.cpp:742
    #2 0x11bd0f42b in lldb_private::ScriptedProcess::DoReadMemory(unsigned long long, void*, unsigned long, lldb_private::Status&) ScriptedProcess.cpp:237
    #3 0x11b5a982c in lldb_private::Process::ReadMemoryFromInferior(unsigned long long, void*, unsigned long, lldb_private::Status&) Process.cpp:2098
    #4 0x11b56406f in lldb_private::MemoryCache::Read(unsigned long long, void*, unsigned long, lldb_private::Status&) Memory.cpp:229
    #5 0x11b5eb081 in lldb_private::RegisterContext::ReadRegisterValueFromMemory(lldb_private::RegisterInfo const*, unsigned long long, unsigned int, lldb_private::RegisterValue&) RegisterContext.cpp:343
    #6 0x11b5fcda6 in lldb_private::RegisterContextUnwind::ReadRegisterValueFromRegisterLocation(lldb_private::UnwindLLDB::RegisterLocation, lldb_private::RegisterInfo const*, lldb_private::RegisterValue&) RegisterContextUnwind.cpp:1138
    #7 0x11b5fa733 in lldb_private::RegisterContextUnwind::ReadGPRValue(lldb::RegisterKind, unsigned int, unsigned long long&) RegisterContextUnwind.cpp:2143
    #8 0x11b5eeeb5 in lldb_private::RegisterContextUnwind::InitializeNonZerothFrame() RegisterContextUnwind.cpp:343
    #9 0x11b5ec220 in lldb_private::RegisterContextUnwind::RegisterContextUnwind(lldb_private::Thread&, std::__1::shared_ptr<lldb_private::RegisterContextUnwind> const&, lldb_private::SymbolContext&, unsigned int, lldb_private::UnwindLLDB&) RegisterContextUnwind.cpp:72
    #10 0x11b745c70 in lldb_private::UnwindLLDB::GetOneMoreFrame(lldb_private::ABI*) UnwindLLDB.cpp:128
    #11 0x11b7448d9 in lldb_private::UnwindLLDB::AddOneMoreFrame(lldb_private::ABI*) UnwindLLDB.cpp:332
    #12 0x11b7455a5 in lldb_private::UnwindLLDB::UpdateUnwindPlanForFirstFrameIfInvalid(lldb_private::ABI*) UnwindLLDB.cpp:305
    #13 0x11b74443d in lldb_private::UnwindLLDB::AddFirstFrame() UnwindLLDB.cpp:99
    #14 0x11b74772d in lldb_private::UnwindLLDB::DoGetFrameInfoAtIndex(unsigned int, unsigned long long&, unsigned long long&, bool&) UnwindLLDB.cpp:395
    #15 0x11b63751a in lldb_private::Unwind::GetFrameInfoAtIndex(unsigned int, unsigned long long&, unsigned long long&, bool&) Unwind.h:53
    #16 0x11b633ddc in lldb_private::StackFrameList::GetFramesUpTo(unsigned int) StackFrameList.cpp:484
    #17 0x11b631ed7 in lldb_private::StackFrameList::ResetCurrentInlinedDepth() StackFrameList.cpp:86
    #18 0x11b6d0b83 in lldb_private::Thread::ShouldStop(lldb_private::Event*) Thread.cpp:805
    #19 0x11b6ea388 in lldb_private::ThreadList::ShouldStop(lldb_private::Event*) ThreadList.cpp:330
    #20 0x11b5b79f0 in lldb_private::Process::ShouldBroadcastEvent(lldb_private::Event*) Process.cpp:3449
    #21 0x11b5ae9c4 in lldb_private::Process::HandlePrivateEvent(std::__1::shared_ptr<lldb_private::Event>&) Process.cpp:3674
    #22 0x11b5b966a in lldb_private::Process::RunPrivateStateThread(bool) Process.cpp:3868
    #23 0x11b5b801d in lldb_private::Process::PrivateStateThread(void*) Process.cpp:3766
    #24 0x11b31d030 in lldb_private::HostNativeThreadBase::ThreadCreateTrampoline(void*) HostNativeThreadBase.cpp:65
    #25 0x7fff73561108 in _pthread_start+0x93 (libsystem_pthread.dylib:x86_64+0x6108)
    #26 0x7fff7355cb8a in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x1b8a)

0x6160002508a0 is located 32 bytes inside of 545-byte region [0x616000250880,0x616000250aa1)
freed by thread T6 here:
    #0 0x10ca0dd59 in wrap_free+0xa9 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x46d59)
    #1 0x10d509af2 in frame_dealloc+0xa0 (Python:x86_64+0x2aaf2)
    #2 0x10d4f8d2a in function_code_fastcall+0xf8 (Python:x86_64+0x19d2a)
    #3 0x10d4f9624 in _PyObject_Call_Prepend+0x95 (Python:x86_64+0x1a624)
    #4 0x10d4f82d2 in _PyObject_FastCallDict+0x107 (Python:x86_64+0x192d2)
    #5 0x10d4f97d2 in _PyObject_CallFunctionVa+0xd0 (Python:x86_64+0x1a7d2)
    #6 0x10d4f9a00 in PyObject_CallMethod+0xa8 (Python:x86_64+0x1aa00)
    #7 0x11bea5120 in std::__1::shared_ptr<lldb_private::DataExtractor> lldb_private::ScriptedPythonInterface::Dispatch<std::__1::shared_ptr<lldb_private::DataExtractor>, unsigned long long, unsigned long>(llvm::StringRef, lldb_private::Status&, unsigned long long, unsigned long) ScriptedPythonInterface.h:93
    #8 0x11bea4574 in lldb_private::ScriptedProcessPythonInterface::ReadMemoryAtAddress(unsigned long long, unsigned long, lldb_private::Status&) ScriptedProcessPythonInterface.cpp:120
    #9 0x11bd0f205 in lldb_private::ScriptedProcess::DoReadMemory(unsigned long long, void*, unsigned long, lldb_private::Status&) ScriptedProcess.cpp:232
    #10 0x11b5a982c in lldb_private::Process::ReadMemoryFromInferior(unsigned long long, void*, unsigned long, lldb_private::Status&) Process.cpp:2098
    #11 0x11b56406f in lldb_private::MemoryCache::Read(unsigned long long, void*, unsigned long, lldb_private::Status&) Memory.cpp:229
    #12 0x11b5eb081 in lldb_private::RegisterContext::ReadRegisterValueFromMemory(lldb_private::RegisterInfo const*, unsigned long long, unsigned int, lldb_private::RegisterValue&) RegisterContext.cpp:343
    #13 0x11b5fcda6 in lldb_private::RegisterContextUnwind::ReadRegisterValueFromRegisterLocation(lldb_private::UnwindLLDB::RegisterLocation, lldb_private::RegisterInfo const*, lldb_private::RegisterValue&) RegisterContextUnwind.cpp:1138
    #14 0x11b5fa733 in lldb_private::RegisterContextUnwind::ReadGPRValue(lldb::RegisterKind, unsigned int, unsigned long long&) RegisterContextUnwind.cpp:2143
    #15 0x11b5eeeb5 in lldb_private::RegisterContextUnwind::InitializeNonZerothFrame() RegisterContextUnwind.cpp:343
    #16 0x11b5ec220 in lldb_private::RegisterContextUnwind::RegisterContextUnwind(lldb_private::Thread&, std::__1::shared_ptr<lldb_private::RegisterContextUnwind> const&, lldb_private::SymbolContext&, unsigned int, lldb_private::UnwindLLDB&) RegisterContextUnwind.cpp:72
    #17 0x11b745c70 in lldb_private::UnwindLLDB::GetOneMoreFrame(lldb_private::ABI*) UnwindLLDB.cpp:128
    #18 0x11b7448d9 in lldb_private::UnwindLLDB::AddOneMoreFrame(lldb_private::ABI*) UnwindLLDB.cpp:332
    #19 0x11b7455a5 in lldb_private::UnwindLLDB::UpdateUnwindPlanForFirstFrameIfInvalid(lldb_private::ABI*) UnwindLLDB.cpp:305
    #20 0x11b74443d in lldb_private::UnwindLLDB::AddFirstFrame() UnwindLLDB.cpp:99
    #21 0x11b74772d in lldb_private::UnwindLLDB::DoGetFrameInfoAtIndex(unsigned int, unsigned long long&, unsigned long long&, bool&) UnwindLLDB.cpp:395
    #22 0x11b63751a in lldb_private::Unwind::GetFrameInfoAtIndex(unsigned int, unsigned long long&, unsigned long long&, bool&) Unwind.h:53
    #23 0x11b633ddc in lldb_private::StackFrameList::GetFramesUpTo(unsigned int) StackFrameList.cpp:484
    #24 0x11b631ed7 in lldb_private::StackFrameList::ResetCurrentInlinedDepth() StackFrameList.cpp:86
    #25 0x11b6d0b83 in lldb_private::Thread::ShouldStop(lldb_private::Event*) Thread.cpp:805
    #26 0x11b6ea388 in lldb_private::ThreadList::ShouldStop(lldb_private::Event*) ThreadList.cpp:330
    #27 0x11b5b79f0 in lldb_private::Process::ShouldBroadcastEvent(lldb_private::Event*) Process.cpp:3449
    #28 0x11b5ae9c4 in lldb_private::Process::HandlePrivateEvent(std::__1::shared_ptr<lldb_private::Event>&) Process.cpp:3674
    #29 0x11b5b966a in lldb_private::Process::RunPrivateStateThread(bool) Process.cpp:3868

previously allocated by thread T6 here:
    #0 0x10ca0dc10 in wrap_malloc+0xa0 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x46c10)
    #1 0x10d52728b in _PyObject_Malloc+0x37 (Python:x86_64+0x4828b)
    #2 0x10d4f0ecc in _PyBytes_FromSize+0x63 (Python:x86_64+0x11ecc)
    #3 0x10d4f0e09 in PyBytes_FromStringAndSize+0x3d (Python:x86_64+0x11e09)
    #4 0x11be569d7 in lldb_private::python::PythonBytes::PythonBytes(unsigned char const*, unsigned long) PythonDataObjects.cpp:290
    #5 0x11aee7a31 in _wrap_SBProcess_ReadMemory(_object*, _object*) LLDBWrapPython.cpp:45785
    #6 0x10d4f9226 in _PyMethodDef_RawFastCallKeywords+0xeb (Python:x86_64+0x1a226)
    #7 0x10d4f88c6 in _PyCFunction_FastCallKeywords+0x2b (Python:x86_64+0x198c6)
    #8 0x10d58e905 in call_function+0x1de (Python:x86_64+0xaf905)
    #9 0x10d5875ee in _PyEval_EvalFrameDefault+0x1b51 (Python:x86_64+0xa85ee)
    #10 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #11 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #12 0x10d5875d5 in _PyEval_EvalFrameDefault+0x1b38 (Python:x86_64+0xa85d5)
    #13 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #14 0x10d4f9624 in _PyObject_Call_Prepend+0x95 (Python:x86_64+0x1a624)
    #15 0x10d4f82d2 in _PyObject_FastCallDict+0x107 (Python:x86_64+0x192d2)
    #16 0x10d4f97d2 in _PyObject_CallFunctionVa+0xd0 (Python:x86_64+0x1a7d2)
    #17 0x10d4f9a00 in PyObject_CallMethod+0xa8 (Python:x86_64+0x1aa00)
    #18 0x11bea5120 in std::__1::shared_ptr<lldb_private::DataExtractor> lldb_private::ScriptedPythonInterface::Dispatch<std::__1::shared_ptr<lldb_private::DataExtractor>, unsigned long long, unsigned long>(llvm::StringRef, lldb_private::Status&, unsigned long long, unsigned long) ScriptedPythonInterface.h:93
    #19 0x11bea4574 in lldb_private::ScriptedProcessPythonInterface::ReadMemoryAtAddress(unsigned long long, unsigned long, lldb_private::Status&) ScriptedProcessPythonInterface.cpp:120
    #20 0x11bd0f205 in lldb_private::ScriptedProcess::DoReadMemory(unsigned long long, void*, unsigned long, lldb_private::Status&) ScriptedProcess.cpp:232
    #21 0x11b5a982c in lldb_private::Process::ReadMemoryFromInferior(unsigned long long, void*, unsigned long, lldb_private::Status&) Process.cpp:2098
    #22 0x11b56406f in lldb_private::MemoryCache::Read(unsigned long long, void*, unsigned long, lldb_private::Status&) Memory.cpp:229
    #23 0x11b5eb081 in lldb_private::RegisterContext::ReadRegisterValueFromMemory(lldb_private::RegisterInfo const*, unsigned long long, unsigned int, lldb_private::RegisterValue&) RegisterContext.cpp:343
    #24 0x11b5fcda6 in lldb_private::RegisterContextUnwind::ReadRegisterValueFromRegisterLocation(lldb_private::UnwindLLDB::RegisterLocation, lldb_private::RegisterInfo const*, lldb_private::RegisterValue&) RegisterContextUnwind.cpp:1138
    #25 0x11b5fa733 in lldb_private::RegisterContextUnwind::ReadGPRValue(lldb::RegisterKind, unsigned int, unsigned long long&) RegisterContextUnwind.cpp:2143
    #26 0x11b5eeeb5 in lldb_private::RegisterContextUnwind::InitializeNonZerothFrame() RegisterContextUnwind.cpp:343
    #27 0x11b5ec220 in lldb_private::RegisterContextUnwind::RegisterContextUnwind(lldb_private::Thread&, std::__1::shared_ptr<lldb_private::RegisterContextUnwind> const&, lldb_private::SymbolContext&, unsigned int, lldb_private::UnwindLLDB&) RegisterContextUnwind.cpp:72
    #28 0x11b745c70 in lldb_private::UnwindLLDB::GetOneMoreFrame(lldb_private::ABI*) UnwindLLDB.cpp:128
    #29 0x11b7448d9 in lldb_private::UnwindLLDB::AddOneMoreFrame(lldb_private::ABI*) UnwindLLDB.cpp:332

Thread T6 created by T0 here:
    #0 0x10ca076ec in wrap_pthread_create+0x5c (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x406ec)
    #1 0x11b340a61 in lldb_private::ThreadLauncher::LaunchThread(llvm::StringRef, void* (*)(void*), void*, unsigned long) ThreadLauncher.cpp:65
    #2 0x11b5b089f in lldb_private::Process::StartPrivateStateThread(bool) Process.cpp:3545
    #3 0x11b5b00db in lldb_private::Process::Launch(lldb_private::ProcessLaunchInfo&) Process.cpp:2591
    #4 0x11b6902cb in lldb_private::Target::Launch(lldb_private::ProcessLaunchInfo&, lldb_private::Stream*) Target.cpp:3001
    #5 0x11aa6b6b0 in lldb::SBTarget::Launch(lldb::SBLaunchInfo&, lldb::SBError&) SBTarget.cpp:439
    #6 0x11af2586a in _wrap_SBTarget_Launch(_object*, _object*) LLDBWrapPython.cpp:54088
    #7 0x10d4f8bda in PyCFunction_Call+0x140 (Python:x86_64+0x19bda)
    #8 0x10d5879e2 in _PyEval_EvalFrameDefault+0x1f45 (Python:x86_64+0xa89e2)
    #9 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #10 0x10d4f888b in _PyFunction_FastCallKeywords+0xe0 (Python:x86_64+0x1988b)
    #11 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #12 0x10d5875d5 in _PyEval_EvalFrameDefault+0x1b38 (Python:x86_64+0xa85d5)
    #13 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #14 0x10d587905 in _PyEval_EvalFrameDefault+0x1e68 (Python:x86_64+0xa8905)
    #15 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #16 0x10d4f84f4 in _PyFunction_FastCallDict+0x1b8 (Python:x86_64+0x194f4)
    #17 0x10d587905 in _PyEval_EvalFrameDefault+0x1e68 (Python:x86_64+0xa8905)
    #18 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #19 0x10d4f888b in _PyFunction_FastCallKeywords+0xe0 (Python:x86_64+0x1988b)
    #20 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #21 0x10d58768c in _PyEval_EvalFrameDefault+0x1bef (Python:x86_64+0xa868c)
    #22 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #23 0x10d4f888b in _PyFunction_FastCallKeywords+0xe0 (Python:x86_64+0x1988b)
    #24 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #25 0x10d58768c in _PyEval_EvalFrameDefault+0x1bef (Python:x86_64+0xa868c)
    #26 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #27 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #28 0x10d5875d5 in _PyEval_EvalFrameDefault+0x1b38 (Python:x86_64+0xa85d5)
    #29 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #30 0x10d4f84f4 in _PyFunction_FastCallDict+0x1b8 (Python:x86_64+0x194f4)
    #31 0x10d4f9624 in _PyObject_Call_Prepend+0x95 (Python:x86_64+0x1a624)
    #32 0x10d4f89d4 in PyObject_Call+0x87 (Python:x86_64+0x199d4)
    #33 0x10d587905 in _PyEval_EvalFrameDefault+0x1e68 (Python:x86_64+0xa8905)
    #34 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #35 0x10d4f84f4 in _PyFunction_FastCallDict+0x1b8 (Python:x86_64+0x194f4)
    #36 0x10d4f9624 in _PyObject_Call_Prepend+0x95 (Python:x86_64+0x1a624)
    #37 0x10d5364af in slot_tp_call+0x46 (Python:x86_64+0x574af)
    #38 0x10d4f872c in _PyObject_FastCallKeywords+0x166 (Python:x86_64+0x1972c)
    #39 0x10d58e976 in call_function+0x24f (Python:x86_64+0xaf976)
    #40 0x10d58768c in _PyEval_EvalFrameDefault+0x1bef (Python:x86_64+0xa868c)
    #41 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #42 0x10d4f888b in _PyFunction_FastCallKeywords+0xe0 (Python:x86_64+0x1988b)
    #43 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #44 0x10d5875d5 in _PyEval_EvalFrameDefault+0x1b38 (Python:x86_64+0xa85d5)
    #45 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #46 0x10d4f888b in _PyFunction_FastCallKeywords+0xe0 (Python:x86_64+0x1988b)
    #47 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #48 0x10d5875d5 in _PyEval_EvalFrameDefault+0x1b38 (Python:x86_64+0xa85d5)
    #49 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #50 0x10d4f9624 in _PyObject_Call_Prepend+0x95 (Python:x86_64+0x1a624)
    #51 0x10d4f89d4 in PyObject_Call+0x87 (Python:x86_64+0x199d4)
    #52 0x10d587905 in _PyEval_EvalFrameDefault+0x1e68 (Python:x86_64+0xa8905)
    #53 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #54 0x10d4f84f4 in _PyFunction_FastCallDict+0x1b8 (Python:x86_64+0x194f4)
    #55 0x10d4f9624 in _PyObject_Call_Prepend+0x95 (Python:x86_64+0x1a624)
    #56 0x10d5364af in slot_tp_call+0x46 (Python:x86_64+0x574af)
    #57 0x10d4f872c in _PyObject_FastCallKeywords+0x166 (Python:x86_64+0x1972c)
    #58 0x10d58e976 in call_function+0x24f (Python:x86_64+0xaf976)
    #59 0x10d58768c in _PyEval_EvalFrameDefault+0x1bef (Python:x86_64+0xa868c)
    #60 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #61 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #62 0x10d5875d5 in _PyEval_EvalFrameDefault+0x1b38 (Python:x86_64+0xa85d5)
    #63 0x10d4f8ca1 in function_code_fastcall+0x6f (Python:x86_64+0x19ca1)
    #64 0x10d58e97d in call_function+0x256 (Python:x86_64+0xaf97d)
    #65 0x10d5875ee in _PyEval_EvalFrameDefault+0x1b51 (Python:x86_64+0xa85ee)
    #66 0x10d58f2da in _PyEval_EvalCodeWithName+0x72a (Python:x86_64+0xb02da)
    #67 0x10d585a14 in PyEval_EvalCode+0x29 (Python:x86_64+0xa6a14)
    #68 0x10d5b42aa in run_mod+0x35 (Python:x86_64+0xd52aa)
    #69 0x10d5b32c5 in PyRun_FileExFlags+0xa3 (Python:x86_64+0xd42c5)
    #70 0x10d5b29a4 in PyRun_SimpleFileExFlags+0x114 (Python:x86_64+0xd39a4)
    #71 0x10d5ca010 in pymain_main+0x13de (Python:x86_64+0xeb010)
    #72 0x10d5ca7b7 in _Py_UnixMain+0x67 (Python:x86_64+0xeb7b7)
    #73 0x7fff73358cc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

SUMMARY: AddressSanitizer: heap-use-after-free (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x44cbf) in __asan_memcpy+0x1af
Shadow bytes around the buggy address:
  0x1c2c0004a0c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a0d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a0e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a0f0: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa
  0x1c2c0004a100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x1c2c0004a110: fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a120: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a130: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a140: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1c2c0004a150: fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa
  0x1c2c0004a160: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==39701==ABORTING
Fatal Python error: Aborted

Thread 0x000000011a3dbdc0 (most recent call first):
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/lldb-build/lib/python3.7/site-packages/lldb/__init__.py", line 10301 in Launch
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py", line 149 in test_launch_scripted_process_stack_frames
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 149 in wrapper
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 149 in wrapper
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1715 in test_method
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/case.py", line 413 in runMethod
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/case.py", line 383 in run
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/case.py", line 458 in __call__
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/suite.py", line 117 in _wrapped_run
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/suite.py", line 115 in _wrapped_run
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/suite.py", line 85 in run
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/suite.py", line 66 in __call__
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/runner.py", line 165 in run
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/packages/Python/lldbsuite/test/dotest.py", line 996 in run_suite
  File "/Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/test/API/dotest.py", line 7 in <module>

--