[all-commits] [llvm/llvm-project] 676085: [lldb] Fix data race in statusline format handling...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Tue Jun 3 19:12:52 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6760857bf3ad82a44c56d45a6a88a21b3fe521be
https://github.com/llvm/llvm-project/commit/6760857bf3ad82a44c56d45a6a88a21b3fe521be
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2025-06-03 (Tue, 03 Jun 2025)
Changed paths:
M lldb/include/lldb/Core/Debugger.h
M lldb/include/lldb/Core/FormatEntity.h
M lldb/include/lldb/Interpreter/OptionValue.h
M lldb/include/lldb/Target/Language.h
M lldb/source/Core/Debugger.cpp
M lldb/source/Core/Disassembler.cpp
M lldb/source/Core/FormatEntity.cpp
M lldb/source/Core/Statusline.cpp
M lldb/source/Interpreter/OptionValue.cpp
M lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
M lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h
M lldb/source/Target/StackFrame.cpp
M lldb/source/Target/Thread.cpp
M lldb/source/Target/ThreadPlanTracer.cpp
M lldb/unittests/Core/DebuggerTest.cpp
Log Message:
-----------
[lldb] Fix data race in statusline format handling (#142489)
This fixes a data race between the main thread and the default event
handler thread. The statusline format option value was protected by a
mutex, but it was returned as a pointer, allowing one thread to access
it while another was modifying it.
Avoid the data race by returning format values by value instead of by
pointer.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list