Skip to content

[clangd] Assertion failure in clangd: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed. #166843

@ilovepi

Description

@ilovepi

We're seeing an assertion fire in clangd

clangd: llvm/include/llvm/Support/Casting.h:656: decltype(auto) llvm::dyn_cast(From *) [To = clang::UsingShadowDecl, From = const clang::NamedDecl]: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed.

I'm working on getting code and logs I can share, since we're seeing this in internal code. This may take me a bit but I wanted to report this as early as possible. The code base triggering this had a pretty massive upgrade from 03b0f55 to 62adc83, but I'm still able to trigger the assertions as of this morning.

I'm aware of https://clangd.llvm.org/troubleshooting, so I'll try to get logs, a simplified command, and a credeuced/sanitized source file, but some of these steps can take a bit to complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other categoryclangdcrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions