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

Assertion failure in LLDB when evaluating an expression with 'std::deque' #128387

Open
igorkudrin opened this issue Feb 23, 2025 · 1 comment
Open
Labels

Comments

@igorkudrin
Copy link
Collaborator

Steps to reproduce:

> cat test.cpp
#include <deque>

int main(int argc, char **argv) {
  std::deque<int> a = {3, 1, 2};
  return 0; // Set break point at this line.
}
> clang++ test.cpp -stdlib=libc++ -g -o test.out
> lldb
(lldb) settings set target.import-std-module true
(lldb) file test.out
(lldb) br set -p "// Set break"
(lldb) run
(lldb) expr -- std::deque<int>({1,2,3}).front()
lldb: .../lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp:258: virtual anonymous}::CompleteTagDeclsScope::~CompleteTagDeclsScope(): Assertion `to_context_md->getOrigin(decl).ctx == m_src_ctx' failed.
....
@llvmbot
Copy link
Member

llvmbot commented Feb 23, 2025

@llvm/issue-subscribers-lldb

Author: Igor Kudrin (igorkudrin)

Steps to reproduce: ``` > cat test.cpp #include <deque>

int main(int argc, char **argv) {
std::deque<int> a = {3, 1, 2};
return 0; // Set break point at this line.
}
> clang++ test.cpp -stdlib=libc++ -g -o test.out
> lldb
(lldb) settings set target.import-std-module true
(lldb) file test.out
(lldb) br set -p "// Set break"
(lldb) run
(lldb) expr -- std::deque<int>({1,2,3}).front()
lldb: .../lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp:258: virtual anonymous}::CompleteTagDeclsScope::~CompleteTagDeclsScope(): Assertion `to_context_md->getOrigin(decl).ctx == m_src_ctx' failed.
....


</details>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants