Skip to content

cpptools crash in auto_complete::handle_completion #13748

Open
@x1ntt

Description

@x1ntt

Environment

  • OS and Version: win11 24h2
  • VS Code Version: 1.85.2
  • C/C++ Extension Version: 1.24.0
  • If using SSH remote, specify OS of remote machine: centos7.9

Bug Summary and Steps to Reproduce

Bug Summary:

Unknow... sorry

Steps to reproduce:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior:

Configuration and Logs

cpptools
2025/7/8 16:27:11
SIGSEGV
cpptools_context::textDocument_completion(CompletionParams&&, unsigned int)+969
…
msvc::thread_manager_t::queue_item<msvc::deque_thread<std::function<void ()>>::defer(std::function<void ()>&&)::{lambda()#1}>::operator()()+309
msvc::thread_manager_t::do_work(unsigned int)+486

The following seems to have been resolved: #13358

cpptools-srv
2025/7/8 18:04:26
SIGSEGV
get_mangled_function_name(a_routine*, int)+257
edge::scope_entry::compute_functions() const+186
edge::scope_entry::ensure_functions() const+33
…
…
edge::intellisense_operation::get_auto_complete_members(edge::member_selection_entry*&, edge::scope_entry*&, edge::list<edge::symbol*>*, edge::list<edge::symbol*>*, edge::list<edge::symbol*>*, edge::list<edge::symbol*>*, edge::intellisense_operation::member_list_kind, bool, bool&, bool&, bool&, std::map<edge::symbol*, unsigned int, std::less<edge::symbol*>, std::allocator<std::pair<edge::symbol* const, unsigned int>>>*)+2656
edge::intellisense_operation::get_auto_complete_members(edge::member_selection_entry*&, edge::scope_entry*&, edge::list<edge::symbol*>*, edge::list<edge::symbol*>*, edge::list<edge::symbol*>*, edge::list<edge::symbol*>*, std::map<edge::symbol*, unsigned int, std::less<edge::symbol*>, std::allocator<std::pair<edge::symbol* const, unsigned int>>>*, edge::intellisense_operation::member_list_kind)+63
std::_Function_handler<void (edge::intellisense_operation&, bool&), edge_intellisense_server_impl::handle_completion(cpp_intellisense::DocumentPosition const&, bool, std::string const&, cpp_intellisense::CompletionResponse&, snapshot::snapshot_session_t const&)::{lambda(edge::intellisense_operation&, bool&)#2}>::_M_invoke(std::_Any_data const&, edge::intellisense_operation&, bool&)+118
void edge_intellisense_operation::perform_isense_operation<bool>(char const*, edge::file_position const&, std::function<void (edge::intellisense_operation&, bool&)>&&, bool&, snapshot::snapshot_session_t const&, bool)+203
edge_intellisense_server_impl::handle_completion(cpp_intellisense::DocumentPosition const&, bool, std::string const&, cpp_intellisense::CompletionResponse&, snapshot::snapshot_session_t const&)+1794
cpp_intellisense::server_stub::handle_completion(msvc::deserializer_t&, msvc::serializer_t&)+336
msvc::base_channel_t::dispatch_message(std::vector<unsigned char, std::allocator<unsigned char>> const&, std::vector<unsigned char, std::allocator<unsigned char>>&)+571
msvc::common_channel_t::perform_call(unsigned int, std::vector<unsigned char, std::allocator<unsigned char>> const&)+66

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions