[lldb-dev] [Bug 40588] New: NativeProcessLinux::MonitorCallback incorrectly logs value of libc "signal" function
via lldb-dev
lldb-dev at lists.llvm.org
Mon Feb 4 07:44:41 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40588
Bug ID: 40588
Summary: NativeProcessLinux::MonitorCallback incorrectly logs
value of libc "signal" function
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: jcowgill+llvm at jcowgill.uk
CC: llvm-bugs at lists.llvm.org
In commit 4d99ca2308f9 ("Add pretty-printer for wait(2) statuses and modernize
the code handling them"), the "signal" parameter was removed from
NativeProcessLinux::MonitorCallback. Unfortunately not all uses of this
parameter were removed and as a result these uses now refer to the "signal"
function from libc which is probably unintended!
Both users are debug logging calls.
Call 1:
LLDB_LOG(log, "got exit signal({0}) , tid = {1} ({2} main thread)", signal,
pid, is_main_thread ? "is" : "is not");
Call 2:
LLDB_LOG(log,
"GetSignalInfo failed: {0}, tid = {1}, signal = {2}, "
"status = {3}, main_thread = {4}, thread_found: {5}",
info_err, pid, signal, status, is_main_thread, thread_found);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190204/a854d276/attachment.html>
More information about the lldb-dev
mailing list