Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LSAN][NFC] Add a new line to a log #66305

Closed
wants to merge 86 commits into from
Closed

Conversation

kstoimenov
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 14, 2023

@llvm/pr-subscribers-mlir-scf
@llvm/pr-subscribers-backend-loongarch
@llvm/pr-subscribers-lld-elf
@llvm/pr-subscribers-mlir-arith
@llvm/pr-subscribers-mlir-bufferization
@llvm/pr-subscribers-mlir-sme
@llvm/pr-subscribers-mlir-tensor
@llvm/pr-subscribers-mlir
@llvm/pr-subscribers-mlir-core
@llvm/pr-subscribers-libc
@llvm/pr-subscribers-coroutines
@llvm/pr-subscribers-mlir-llvm
@llvm/pr-subscribers-clang-format
@llvm/pr-subscribers-lldb
@llvm/pr-subscribers-clang-codegen
@llvm/pr-subscribers-llvm-globalisel
@llvm/pr-subscribers-clang-modules
@llvm/pr-subscribers-backend-aarch64
@llvm/pr-subscribers-clang-static-analyzer-1
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-backend-arm
@llvm/pr-subscribers-backend-x86
@llvm/pr-subscribers-clang-driver
@llvm/pr-subscribers-backend-amdgpu
@llvm/pr-subscribers-backend-risc-v

@llvm/pr-subscribers-compiler-rt-sanitizer

Changes None -- Full diff: https://github.com//pull/66305.diff

1 Files Affected:

  • (modified) compiler-rt/lib/lsan/lsan_common.cpp (+1-1)
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 9b73ddbdc756ffa..fcf765bd03ea7be 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -762,7 +762,7 @@ static bool CheckForLeaks() {
     VReport(1, "LeakSanitizer is disabled");
     return false;
   }
-  VReport(1, "LeakSanitizer: checking for leaks");
+  VReport(1, "LeakSanitizer: checking for leaks\n");
   // Inside LockStuffAndStopTheWorld we can't run symbolizer, so we can't match
   // suppressions. However if a stack id was previously suppressed, it should be
   // suppressed in future checks as well.

Copy link
Collaborator

@hctim hctim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but also maybe do elsewhere in this file?

@@ -762,7 +762,7 @@ static bool CheckForLeaks() {
VReport(1, "LeakSanitizer is disabled");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here?

shiltian and others added 23 commits September 14, 2023 15:47
…vm#66274)

The associated function can be a nullptr if it is an indirect call.
This causes a crash in `CheckCallee` which always assumes the callee
is a valid pointer.

Fix llvm#66904.
…ionEncode{,MultiImage}Frame.

This is a new API that has the same ownership quirk as the old API.

This is a tiny one-liner patch; changes in plists are entirely about
line numbers.
…laration.ll (NFC) (llvm#66088)

According to @drodriguez's reminder in
apple#7168 (comment),
`memory` breaks the backport to the apple branch.

And this is irrelevant to that test. Delete to get better a test case.
The currently rule places .branch_lt after .data, which does not make
sense. The original contributor probably wanted to place .branch_lt
before .got/.toc, but failed to notice that .got/.toc are RELRO and
placed earlier.

Remove the special case so that .branch_lt is actually closer to .toc,
alleviating the distance issue.
The instruction of ISD::FMINNUM/FMAXNUM should be legal if HasFPARMv8 &&
HasNEON.
For the combination of armv7+fp-armv8, armv7 imply the feature HasNEON
on, and fp-armv8 matchs the feature HasFPARMv8, so it is legal

Fixes llvm#65820
There is case that R_PPC64_REL24 with non-zero addend. The assertion is incorrectly triggered in such situation.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D158708
Account for Unicode when computing the prompt column width. Previously,
the string length (i.e. number of bytes) rather than the width of the
Glyph was used to compute the cursor position. The result was that the
cursor would be offset to the right when using a prompt containing
Unicode.
…on ForceCheckCXX20ModulesInputFiles enabled

With overriden input files, e,g,. the compiler get the file from an
in-memroy buffer, the compiler can't get correct modified time information
to indicate whehter the input files are changed or not. Then, the
semantics of ForceCheckCXX20ModulesInputFiles are broken.

In this patch, if both ForceCheckCXX20ModulesInputFiles and
ValidateASTInputFilesContent and enabled, the compiler will still check the
hash value of the contents even if their modification time is the same.
PExpect 4.6, when using 'utf-8' throws a TypeError when trying to write
to the log file:

  File "llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/spawnbase.py", line 126, in _log
    self.logfile.write(s)
  TypeError: a bytes-like object is required, not 'str'

This looks like a bug in PExpect to me. Since the log file is only used
for tracing, work around the issue by disabling the log file when
specifying an encoding. This should fix the Debian bot [1] which runs
the test with tracing enabled (-t).

[1] https://lab.llvm.org/buildbot/#/builders/68/builds/59955
)

For unstructured construct, the blocks are created in advance inside the
function body. This causes issues when the unstructured construct is
inside an OpenACC region operations. This patch adds the same fix than
OpenMP lowering and re-create the blocks inside the op region.

Initial OpenMP fix: 29f167a
…vm#66294)

Make the `DoConstruct` in `OpenACCLoopConstruct` optional and move the
labeled do construct in in the canonicalization step.
…llvm#66296)

This patch adds support for labeled do loop after combined directive. It
relaxes the initial parser and canonicalize labeled do loop into the
OpenACCCombinedConstruct.
Users often want to change the look of their prompt and currently the
only way to do that is by using ANSI escape codes in the prompt itself.
This is not only tedious, it also results in extra whitespace because
our Editline wrapper, when computing the cursor column, doesn't ignore
the invisible escape codes.

We already have various *-ansi-{prefix,suffix} settings that allow the
users to customize the color of auto-suggestions and progress events,
using mnemonics like ${ansi.fg.yellow}. This patch brings the same
mechanism to the prompt.

rdar://115390406
…TTI component from the vtable when -fno-rtti is used"""

This reverts commit e16474b.

This change is still causing a test failure on a bot: https://lab.llvm.org/buildbot/#/builders/139/builds/49666
…sic (llvm#65278)

Co-authored-by: lizhijin <lizhijin3@huawei.com>
Fix typos, add missing periods and reflow comments in the Editline
header.
…son. (llvm#66226)

The name has been changed to adhere to the config option naming format.
The necessary build changes to use the new option have also been made.
This patch simplifies the color handling logic in Editline and
IOHandlerEditline:

 - Remove the m_color_prompts property from Editline and use the prompt
   ANSI prefix and suffix as the single source of truth. This avoids
   having to redraw the prompt unnecessarily, for example when colors
   are enabled but the prompt prefix and suffix are empty.

 - Rename m_color_prompts to just m_color in IOHandlerEditline and use
   it to ensure consistency between colored prompts and colored
   auto-suggestions. Some IOHandler explicitly turn off colors (such as
   IOHandlerConfirm) and it doesn't really make sense to have one or the
   other.
…ter Stop stmt (llvm#66325)

This follow an update made on OpenMP https://reviews.llvm.org/D129969
and was not possible on OpenACC until the unstructured construct was
supported.
@arsenm
Copy link
Contributor

arsenm commented Sep 14, 2023

Why does this have 87 unrelated commits pulled in?

@vitalybuka
Copy link
Collaborator

@llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-arm @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-backend-risc-v

@llvm/pr-subscribers-compiler-rt-sanitizer

Changes

That's not nice.

@MaskRay Any idea how to avoid spam like this?
I recently created PR and it had one already merged commit. But I didn't figure out how to remove it from PR.

@vitalybuka
Copy link
Collaborator

@kstoimenov can you try to git fetch origin; git rebase origin/main; git push -f <your_fork> HEAD:<fork_branch>

@kstoimenov
Copy link
Contributor Author

Why does this have 87 unrelated commits pulled in?

I am learning how to use github. Sorry about the spam.

@MaskRay
Copy link
Member

MaskRay commented Sep 20, 2023

@MaskRay Any idea how to avoid spam like this?
I recently created PR and it had one already merged commit. But I didn't figure out how to remove it from PR.

After #66320, auto-labeler will not label the patch with more than 10 commits:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:AArch64 backend:AMDGPU backend:ARM backend:loongarch backend:RISC-V backend:X86 clang:analysis clang:codegen clang:dataflow Clang Dataflow Analysis framework - https://clang.llvm.org/docs/DataFlowAnalysisIntro.html clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:headers Headers provided by Clang, e.g. for intrinsics clang:modules C++20 modules and Clang Header Modules clang:static analyzer clang Clang issues not falling into any other category cmake Build system in general and CMake in particular compiler-rt:sanitizer compiler-rt coroutines C++20 coroutines flang:fir-hlfir flang:openmp flang Flang issues not falling into any other category github:workflow libc lld:ELF lld lldb llvm:analysis llvm:globalisel llvm:ir llvm:transforms llvm-lit mlir:arith mlir:bufferization Bufferization infrastructure mlir:cf mlir:core MLIR Core Infrastructure mlir:execution-engine mlir:llvm mlir:openmp mlir:scf mlir:sme mlir:tensor mlir:vector mlir:vectorops mlir openacc testing-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet