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

cpptools-srv crashes frequently,(Comes with stack) #12956

Open
x1ntt opened this issue Nov 12, 2024 · 6 comments
Open

cpptools-srv crashes frequently,(Comes with stack) #12956

x1ntt opened this issue Nov 12, 2024 · 6 comments

Comments

@x1ntt
Copy link

x1ntt commented Nov 12, 2024

Environment

  • OS and Version: windows11 23H2
  • VS Code Version: 1.85.2
  • C/C++ Extension Version: 1.23.1
  • If using SSH remote, specify OS of remote machine: CentOS7.9

Bug Summary and Steps to Reproduce

Bug Summary:

I didn't find a pattern for its crashes. I only saw "IntelliSense process crashed handle_quick_info" in the output window, and obtained a large number of core files. It crashed very frequently, and each core was 200-300MB in size. I guess it should fill up my hard drive soon.
I need a way to stop this process from generating core files. For example, execute ulimit -c 0 only for this process

Expected behavior:
No Crash.

Configuration and Logs

Sorry, due to development environment limitations, I can't easily get the log file, but I can provide the stack trace

{
    "configurations": [
        {
            "name": "gs",
            "includePath": [
                "${workspaceFolder}/game/common",
                "${workspaceFolder}/game/",
                "${workspaceFolder}/game/include",
                "${workspaceFolder}/game/gs",
                "${workspaceFolder}/iolib/inc"
            ],
            "defines": [
                "LINUX",
                "__linux__",
                "__x86_64__",
                "_GNU_SOURCE"
            ],

            "compilerPath": "/usr/local/bin/g++",
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "${default}",
            "forcedInclude": [
                "${workspaceFolder}/game/ss/world.h",
                "${workspaceFolder}/game/ss/sdef.h",
                "${workspaceFolder}/game/ss/msg.h"
            ]
            // "configurationProvider": "ms-vscode.makefile-tools"
        },
        {
            "name": "cnet",
            "includePath": [
                "${workspaceFolder}/cc/gdcc",
                "${workspaceFolder}/cc/common",
                "${workspaceFolder}/cc/io",
                "${workspaceFolder}/cc/rpc",
                "${workspaceFolder}/cc/perf",
                "${workspaceFolder}/cc/",
                "${workspaceFolder}/net/",
                "${workspaceFolder}/net/include",
                "${workspaceFolder}/net/rpcdata",
                "${workspaceFolder}/net/inl",
                "${workspaceFolder}/net/log"
            ],
            "defines": [
                "LINUX",
                "__linux__",
                "__x86_64__",
                "_GNU_SOURCE",
            ],

            "compilerPath": "/usr/local/bin/g++",
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "${default}",
            "forcedInclude": [
            ]
            // "configurationProvider": "ms-vscode.makefile-tools"
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

$ gdb cpptools-srv core.79293 
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from cpptools-srv...

warning: Can't open file /tmp/edg0_79293 (deleted) during file-backed mapping note processing
[New LWP 79295]
[New LWP 79297]
[New LWP 79296]
[New LWP 79298]
[New LWP 79299]
[New LWP 79293]
[New LWP 79294]

warning: Expected absolute pathname for libpthread in the inferior, but got ./libc.so.

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `/export/home/xx/.vscode-server/extensions/ms-vscode.cpptools-1.23.1/b'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fc62a9655fe in __restore_sigs () from ./libc.so
[Current thread is 1 (LWP 79295)]
(gdb) thread apply all bt

Thread 7 (LWP 79294):
#0  0x00007fc62a973b25 in __cp_end () from ./libc.so
#1  0x00007fc62a970aa0 in __syscall_cp_c () from ./libc.so
#2  0x00007fc62a93d8de in epoll_pwait () from ./libc.so
#3  0x0000000000e051e8 in uv.io_poll ()
#4  0x0000000000e0088f in uv_run ()
#5  0x0000000000daee93 in msvc::loop_t::run_loop() ()
#6  0x0000000000db00e8 in msvc::thread_t::invoker_t<void (*)(std::shared_ptr<msvc::loop_t>), std::shared_ptr<msvc::loop_t>&>::invoke() ()
#7  0x0000000000dfaa4c in msvc::thread_helper_t::thread_entry(void*) ()
#8  0x00007fc62a9715ef in start () from ./libc.so
#9  0x00007fc62a973af2 in __clone () from ./libc.so
#10 0x0000000000000000 in ?? ()

Thread 6 (LWP 79293):
#0  0x00007fc62a973b25 in __cp_end () from ./libc.so
#1  0x00007fc62a970aa0 in __syscall_cp_c () from ./libc.so
#2  0x00007fc62a970002 in __timedwait_cp () from ./libc.so
#3  0x00007fc62a970ee0 in pthread_cond_timedwait () from ./libc.so
#4  0x00000000006b012f in RunServer(msvc::process_id_t, char const*) ()
#5  0x000000000066f6fb in main ()

Thread 5 (LWP 79299):
#0  0x00007fc62a973b25 in __cp_end () from ./libc.so
#1  0x00007fc62a970aa0 in __syscall_cp_c () from ./libc.so
#2  0x00007fc62a970002 in __timedwait_cp () from ./libc.so
#3  0x00007fc62a970ee0 in pthread_cond_timedwait () from ./libc.so
#4  0x0000000000e34390 in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /mnt/vss/_work/1/s/src/musl-cross-make/build/local/x86_64-linux-musl/obj_gcc/x86_64-linux-musl/libstdc++-v3/include/x86_64-linux-musl/bits/gthr-default.h:865
#5  std::__condvar::wait (__m=..., this=<optimized out>) at /mnt/vss/_work/1/s/src/musl-cross-make/build/local/x86_64-linux-musl/obj_gcc/x86_64-linux-musl/libstdc++-v3/include/bits/std_mutex.h:155
#6  std::condition_variable::wait (this=<optimized out>, __lock=...) at ../../../../../src_gcc/libstdc++-v3/src/c++11/condition_variable.cc:41
#7  0x0000000000733e9c in a_compiler_thread::fetch_fragment() ()
#8  0x00000000007978ad in before_tu_wrapup() ()
#9  0x0000000000c883a1 in process_translation_unit(char const*, int, an_exported_template_file*) ()
#10 0x000000000081b7f9 in cfe_main(int, char**) ()
#11 0x0000000000ccf4ed in cfe_main_exception_handler(int, char**) ()
#12 0x000000000081b8fd in edg_main(int, char**) ()
#13 0x0000000000cc5feb in invoke_edge_compiler(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) ()
#14 0x0000000000cc7528 in edge_compiler_main(int, char const**) ()
#15 0x000000000073574e in a_compiler_thread::compiler_thread_routine(a_compiler_thread*) ()
#16 0x0000000000dfaa4c in msvc::thread_helper_t::thread_entry(void*) ()
#17 0x00007fc62a9715ef in start () from ./libc.so
#18 0x00007fc62a973af2 in __clone () from ./libc.so
#19 0x0000000000000000 in ?? ()

Thread 4 (LWP 79298):
#0  0x00007fc62a973b25 in __cp_end () from ./libc.so
#1  0x00007fc62a970aa0 in __syscall_cp_c () from ./libc.so
#2  0x00007fc62a970002 in __timedwait_cp () from ./libc.so
#3  0x00007fc62a970ee0 in pthread_cond_timedwait () from ./libc.so
#4  0x0000000000e0f3ed in uv_cond_wait ()
#5  0x0000000000dfc48e in worker ()
#6  0x00007fc62a9715ef in start () from ./libc.so
#7  0x00007fc62a973af2 in __clone () from ./libc.so
#8  0x0000000000000000 in ?? ()

Thread 3 (LWP 79296):
#0  0x00007fc62a973b25 in __cp_end () from ./libc.so
#1  0x00007fc62a970aa0 in __syscall_cp_c () from ./libc.so
#2  0x00007fc62a970002 in __timedwait_cp () from ./libc.so
#3  0x00007fc62a970ee0 in pthread_cond_timedwait () from ./libc.so
#4  0x0000000000e0f3ed in uv_cond_wait ()
#5  0x0000000000dfc48e in worker ()
#6  0x00007fc62a9715ef in start () from ./libc.so
#7  0x00007fc62a973af2 in __clone () from ./libc.so
#8  0x0000000000000000 in ?? ()

--Type <RET> for more, q to quit, c to continue without paging--
Thread 2 (LWP 79297):
#0  0x00007fc62a973b25 in __cp_end () from ./libc.so
#1  0x00007fc62a970aa0 in __syscall_cp_c () from ./libc.so
#2  0x00007fc62a970002 in __timedwait_cp () from ./libc.so
#3  0x00007fc62a970ee0 in pthread_cond_timedwait () from ./libc.so
#4  0x0000000000e0f3ed in uv_cond_wait ()
#5  0x0000000000dfc48e in worker ()
#6  0x00007fc62a9715ef in start () from ./libc.so
#7  0x00007fc62a973af2 in __clone () from ./libc.so
#8  0x0000000000000000 in ?? ()

Thread 1 (LWP 79295):
#0  0x00007fc62a9655fe in __restore_sigs () from ./libc.so
#1  0x00007fc62a965778 in raise () from ./libc.so
#2  0x0000000000d521ef in (anonymous namespace)::reraise_signal(int, crash_handler_data_t*) ()
#3  0x0000000000d52435 in crash_handler(int, siginfo_t*, void*) ()
#4  <signal handler called>
#5  0x00007fc62a96f98d in memcpy () from ./libc.so
#6  0x00000000007b56b4 in a_region_tracker::build_sections(std::vector<a_boundary_point_template<a_tracked_region>, std::allocator<a_boundary_point_template<a_tracked_region> > >) ()
#7  0x00000000007b7576 in a_region_tracker::build_sections() ()
#8  0x00000000007b7b0c in a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const ()
#9  0x0000000000743f03 in edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool) ()
#10 0x00000000007444a3 in edge::scoped_query_manager::update_fragment(edge::file_position const&, edge::file_position const&, edge::file_position const&, edge::update_fragment_options const&) ()
#11 0x0000000000744c39 in edge::an_edge_translation_unit_impl::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*> > const&, edge::query_action_data&) ()
#12 0x0000000000745ac7 in edge::translation_unit::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*> > const&, edge::query_action_data&) ()
#13 0x000000000068a28c in edge_intellisense_server_impl::update_range(std::shared_ptr<edge::translation_unit> const&, char const*, edge::update_range_options, snapshot::snapshot_session_t const&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t> >&) ()
#14 0x00000000006a87f9 in edge_intellisense_server_impl::handle_update_intellisense(cpp_intellisense::UpdateIntelliSenseRequest const&, cpp_intellisense::UpdateIntelliSenseResponse&, snapshot::snapshot_session_t const&) ()
#15 0x0000000000710ee4 in cpp_intellisense::server_stub::handle_update_intellisense(msvc::deserializer_t&, msvc::serializer_t&) ()
#16 0x00000000006b12cb in msvc::base_channel_t::dispatch_message(std::vector<unsigned char, std::allocator<unsigned char> > const&, std::vector<unsigned char, std::allocator<unsigned char> >&) ()
#17 0x0000000000daa1d2 in msvc::common_channel_t::perform_call(unsigned int, std::vector<unsigned char, std::allocator<unsigned char> > const&) ()
#18 0x0000000000dfc2fc in worker ()
#19 0x00007fc62a9715ef in start () from ./libc.so
#20 0x00007fc62a973af2 in __clone () from ./libc.so
#21 0x0000000000000000 in ?? ()
(gdb) 


cpptools-srv
2024/11/12 17:25:00
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::update_fragment(edge::file_position const&, edge::file_position const&, edge::file_position const&, edge::update_fragment_options const&)+51
edge::an_edge_translation_unit_impl::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*>> const&, edge::query_action_data&)+1209
edge::translation_unit::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*>> const&, edge::query_action_data&)+119
edge_intellisense_server_impl::update_range(std::shared_ptr<edge::translation_unit> const&, char const*, edge::update_range_options, snapshot::snapshot_session_t const&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>&)+524
edge_intellisense_server_impl::handle_update_intellisense(cpp_intellisense::UpdateIntelliSenseRequest const&, cpp_intellisense::UpdateIntelliSenseResponse&, snapshot::snapshot_session_t const&)+521
cpp_intellisense::server_stub::handle_update_intellisense(msvc::deserializer_t&, msvc::serializer_t&)+292
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

cpptools-srv
2024/11/12 17:28:10
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::get_trees_overlapping_span(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, int, edge::tree_query_result_builder*)+173
edge::intellisense_operation::symbol_at_cursor(bool, edge::macro_invocation_info*)+193
edge_intellisense_server_impl::handle_goto_def(cpp_intellisense::DocumentPosition const&, cpp_intellisense::goto_mode, cpp_intellisense::GoToDefResponse&, snapshot::snapshot_session_t const&)::{lambda(edge::intellisense_operation&, cpp_intellisense::GoToDefResponse&)#1}::operator()(edge::intellisense_operation&, cpp_intellisense::GoToDefResponse&) const+107
void edge_intellisense_operation::perform_isense_operation<cpp_intellisense::GoToDefResponse>(char const*, edge::file_position const&, std::function<void (edge::intellisense_operation&, cpp_intellisense::GoToDefResponse&)>&&, cpp_intellisense::GoToDefResponse&, snapshot::snapshot_session_t const&, bool)+342
edge_intellisense_server_impl::handle_goto_def(cpp_intellisense::DocumentPosition const&, cpp_intellisense::goto_mode, cpp_intellisense::GoToDefResponse&, snapshot::snapshot_session_t const&)+752
cpp_intellisense::server_stub::handle_goto_def(msvc::deserializer_t&, msvc::serializer_t&)+272
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

cpptools-srv
2024/11/12 17:28:12
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::update_fragment(edge::file_position const&, edge::file_position const&, edge::file_position const&, edge::update_fragment_options const&)+51
edge::an_edge_translation_unit_impl::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*>> const&, edge::query_action_data&)+1209
edge::translation_unit::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*>> const&, edge::query_action_data&)+119
edge_intellisense_server_impl::update_range(std::shared_ptr<edge::translation_unit> const&, char const*, edge::update_range_options, snapshot::snapshot_session_t const&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>&)+524
edge_intellisense_server_impl::handle_update_intellisense(cpp_intellisense::UpdateIntelliSenseRequest const&, cpp_intellisense::UpdateIntelliSenseResponse&, snapshot::snapshot_session_t const&)+521
cpp_intellisense::server_stub::handle_update_intellisense(msvc::deserializer_t&, msvc::serializer_t&)+292
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

cpptools-srv
2024/11/12 17:32:07
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::get_trees_overlapping_span(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, int, edge::tree_query_result_builder*)+173
edge::intellisense_operation::symbol_at_cursor(bool, edge::macro_invocation_info*)+193
std::_Function_handler<void (edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&), edge_intellisense_server_impl::handle_quick_info(cpp_intellisense::DocumentPosition const&, int, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&)::{lambda(edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)#1}>::_M_invoke(std::_Any_data const&, edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)+151
void edge_intellisense_operation::perform_isense_operation<cpp_intellisense::QuickInfoResponse>(char const*, edge::file_position const&, std::function<void (edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)>&&, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&, bool)+342
edge_intellisense_server_impl::handle_quick_info(cpp_intellisense::DocumentPosition const&, int, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&)+625
cpp_intellisense::server_stub::handle_quick_info(msvc::deserializer_t&, msvc::serializer_t&)+313
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

cpptools-srv
2024/11/12 17:32:08
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::get_trees_overlapping_span(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, int, edge::tree_query_result_builder*)+173
edge::intellisense_operation::symbol_at_cursor(bool, edge::macro_invocation_info*)+193
edge_intellisense_server_impl::handle_goto_def(cpp_intellisense::DocumentPosition const&, cpp_intellisense::goto_mode, cpp_intellisense::GoToDefResponse&, snapshot::snapshot_session_t const&)::{lambda(edge::intellisense_operation&, cpp_intellisense::GoToDefResponse&)#1}::operator()(edge::intellisense_operation&, cpp_intellisense::GoToDefResponse&) const+107
void edge_intellisense_operation::perform_isense_operation<cpp_intellisense::GoToDefResponse>(char const*, edge::file_position const&, std::function<void (edge::intellisense_operation&, cpp_intellisense::GoToDefResponse&)>&&, cpp_intellisense::GoToDefResponse&, snapshot::snapshot_session_t const&, bool)+342
edge_intellisense_server_impl::handle_goto_def(cpp_intellisense::DocumentPosition const&, cpp_intellisense::goto_mode, cpp_intellisense::GoToDefResponse&, snapshot::snapshot_session_t const&)+752
cpp_intellisense::server_stub::handle_goto_def(msvc::deserializer_t&, msvc::serializer_t&)+272
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

cpptools-srv
2024/11/12 17:32:18
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::get_trees_overlapping_span(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, int, edge::tree_query_result_builder*)+173
edge::intellisense_operation::symbol_at_cursor(bool, edge::macro_invocation_info*)+193
std::_Function_handler<void (edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&), edge_intellisense_server_impl::handle_quick_info(cpp_intellisense::DocumentPosition const&, int, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&)::{lambda(edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)#1}>::_M_invoke(std::_Any_data const&, edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)+151
void edge_intellisense_operation::perform_isense_operation<cpp_intellisense::QuickInfoResponse>(char const*, edge::file_position const&, std::function<void (edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)>&&, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&, bool)+342
edge_intellisense_server_impl::handle_quick_info(cpp_intellisense::DocumentPosition const&, int, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&)+625
cpp_intellisense::server_stub::handle_quick_info(msvc::deserializer_t&, msvc::serializer_t&)+313
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

cpptools-srv
2024/11/12 17:32:37
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::update_fragment(edge::file_position const&, edge::file_position const&, edge::file_position const&, edge::update_fragment_options const&)+51
edge::an_edge_translation_unit_impl::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*>> const&, edge::query_action_data&)+1209
edge::translation_unit::update_range(edge::allocator*, snapshot::snapshot_session_t, edge::file_position, edge::file_position, edge::update_range_options const&, edge::file_position, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>*, an_array_list<edge::update_range_action*, std::allocator<edge::update_range_action*>> const&, edge::query_action_data&)+119
edge_intellisense_server_impl::update_range(std::shared_ptr<edge::translation_unit> const&, char const*, edge::update_range_options, snapshot::snapshot_session_t const&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>&, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>&)+524
edge_intellisense_server_impl::handle_update_intellisense(cpp_intellisense::UpdateIntelliSenseRequest const&, cpp_intellisense::UpdateIntelliSenseResponse&, snapshot::snapshot_session_t const&)+521
cpp_intellisense::server_stub::handle_update_intellisense(msvc::deserializer_t&, msvc::serializer_t&)+292
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

cpptools-srv
2024/11/12 17:41:40
SIGSEGV
a_region_tracker::build_sections()+982
a_tracking_manager::check_edits(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, bool, bool*, bool*, a_tracked_region**, a_region_scope_info*) const+892
edge::scoped_query_manager::check_and_compile(edge::file_position const&, edge::file_position const&, edge::file_position const&, bool, bool, bool)+899
edge::scoped_query_manager::get_trees_overlapping_span(a_canonicalized_file_name, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, msvc::strong_typedef<msvc::offset_traits<msvc::offset_tag_t>>, int, edge::tree_query_result_builder*)+173
edge::intellisense_operation::symbol_at_cursor(bool, edge::macro_invocation_info*)+193
std::_Function_handler<void (edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&), edge_intellisense_server_impl::handle_quick_info(cpp_intellisense::DocumentPosition const&, int, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&)::{lambda(edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)#1}>::_M_invoke(std::_Any_data const&, edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)+151
void edge_intellisense_operation::perform_isense_operation<cpp_intellisense::QuickInfoResponse>(char const*, edge::file_position const&, std::function<void (edge::intellisense_operation&, cpp_intellisense::QuickInfoResponse&)>&&, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&, bool)+342
edge_intellisense_server_impl::handle_quick_info(cpp_intellisense::DocumentPosition const&, int, cpp_intellisense::QuickInfoResponse&, snapshot::snapshot_session_t const&)+625
cpp_intellisense::server_stub::handle_quick_info(msvc::deserializer_t&, msvc::serializer_t&)+313
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
@x1ntt
Copy link
Author

x1ntt commented Nov 12, 2024

In addition, I would like to ask by the way that there are multiple executable files in my project, so I wrote multiple configurations (such as game and cnet in the configuration file above), but when I edit the code files of the two modules, the configuration does not switch. Is there a way to switch automatically? Or how to configure auto-completion and reference search for multiple executable files in the project?

@sean-mcmanus
Copy link
Collaborator

@x1ntt You can use a multi-root workspace, one workspace folder for each executable and each workspace folder can have a different configuration.

@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Nov 12, 2024

@x1ntt We're aware of that crash, although the additional crash data might help us. We were tracking it with #12666, but we believe there are multiple causes of the build_sections crash, so we can keep both issues open.

@sean-mcmanus
Copy link
Collaborator

@x1ntt I'm not sure how you can configure your OS to stop logging crashes dumps. Our extension isn't creating though dmp files (although cpptools-srv is crashing). You can delete the dmp files.

Are you able to find a sample repro code that repros the issue you can share with us?

@x1ntt
Copy link
Author

x1ntt commented Nov 13, 2024

@x1ntt I'm not sure how you can configure your OS to stop logging crashes dumps. Our extension isn't creating though dmp files (although cpptools-srv is crashing). You can delete the dmp files.

Are you able to find a sample repro code that repros the issue you can share with us?

Setting the process to generate core is used to track bugs in our project. It is an accident to collect the core of cpptools-srv, but maybe it will be helpful? If there is any information that needs to be obtained from the core, I can provide help (such as specific stack, specific heap variables), can you give me a debug version of cpptools-srv with symbol information, or tell me how to build cpptools-srv (I hope this is cpp development), I can reproduce it 100% here (in fact, it has crashed dozens of times just a while ago, just clicking randomly or waiting for it to analyze the project), but I can't provide the core file (the project I maintain is not open source, nor does it belong to me, the core file may contain the project structure).

For example, how is cpptools-srv started? I can execute ulimit -c 0 before its startup script or parent process starts to suppress the generation of core

I will try to reproduce it using open source projects on my own personal computer, and pay attention to possible clues in existing projects. I will feedback here, or #12666 is also OK.

@x1ntt
Copy link
Author

x1ntt commented Nov 13, 2024

@sean-mcmanus Note: Although version 1.20.0 also crashes, it can completely scan my project, while 1.23.1 can't even completely scan the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants