Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Reproducible clangd crash #39973

Open Quuxplusone opened 5 years ago

Quuxplusone commented 5 years ago
Bugzilla Link PR41003
Status NEW
Importance P enhancement
Reported by Petr Hosek (phosek@chromium.org)
Reported on 2019-03-07 19:58:46 -0800
Last modified on 2021-05-23 12:19:27 -0700
Version unspecified
Hardware PC Linux
CC llvm-bugs@lists.llvm.org, sielicki@yandex.com
Fixed by commit(s)
Attachments vscode.logs.tar (92160 bytes, application/x-tar)
Blocks
Blocked by
See also
Created attachment 21576
VSCode logs

One of our developers have been seeing the following clangd crash when using
VSCode:

  clangd: /b/s/w/ir/kitchen-workdir/llvm-project/clang-tools-extra/clangd/Selection.cpp:201: bool clang::clangd::(anonymous namespace)::SelectionVisitor::nodesCoverRange(
llvm::ArrayRef<const Node *>, unsigned int, unsigned int): Assertion
`R.isTokenRange()' failed.

The crash can be reproduced using the files in https://fuchsia-
review.googlesource.com/c/fuchsia/+/258851. For the crash to happen, it's
necessary need to have two editors open side-by-side on these exact files:
page_storage_impl.cc, live_commit_tracker.cc

The logs from VSCode are attached as well.
Quuxplusone commented 5 years ago

Attached vscode.logs.tar (92160 bytes, application/x-tar): VSCode logs

Quuxplusone commented 3 years ago

The assertion in the crash corresponds to a code that isn't present anymore.