diff options
author | Walter Erquinigo <wallace@fb.com> | 2022-03-21 13:26:57 -0700 |
---|---|---|
committer | Walter Erquinigo <wallace@fb.com> | 2022-03-21 16:03:37 -0700 |
commit | a80c6c7d36d25999a28cfad32e1f461db95ba4dc (patch) | |
tree | 5a14fc589b676bc0a9cb7c1fe93e840fb2f2e241 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 31e44c01e3b5cc2cc7a9f1dc49806b3f050efb82 (diff) | |
download | llvm-a80c6c7d36d25999a28cfad32e1f461db95ba4dc.zip llvm-a80c6c7d36d25999a28cfad32e1f461db95ba4dc.tar.gz llvm-a80c6c7d36d25999a28cfad32e1f461db95ba4dc.tar.bz2 |
[trace] clear any existing tracing sessions before relaunching the binary
There's a bug caused when a process is relaunched: the target, which
doesn't change, keeps the Trace object from the previous process, which
is already defunct, and causes segmentation faults when it's attempted
to be used.
A fix is to clean up the Trace object when the target is disposing of
the previous process during relaunches.
A way to reproduce this:
```
lldb a.out
b main
r
process trace start
c
r
process trace start
```
Differential Revision: https://reviews.llvm.org/D122176
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions