microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpptools-srv quit unexpectedly

HazemAlindari opened this issue · comments

Environment

  • OS and Version: macOS Sonoma 14.5
  • VS Code Version: 1.89.1
  • C/C++ Extension Version: v1.20.5
  • If using SSH remote, specify OS of remote machine: no

Bug Summary and Steps to Reproduce

Bug Summary:
cpptools-srv keeps crashing every time I open a c/h file with stdio.h inclusion. However, the app vscode keeps working and IntelliSense keeps analyzing problem-free.

Steps to reproduce:

  1. Open any c or h file that has #include <stdio.h>, in which stdio.h is to found in the workspace + the default c compiler stdio.h.
  2. To be more precise, Chipyard (https://github.com/ucb-bar/chipyard) is the workspace but no tools is installed on the Mac itself (used only for reviewing the code)
  3. I added the toolchain include path to C_Cpp.default.includePath

Expected behavior:
I expect it not to crash

Configuration and Logs

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               cpptools-srv [25703]
Path:                  /Users/USER/Library/Mobile Documents/com~apple~CloudDocs/*/cpptools-srv
Identifier:            cpptools-srv
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-06-06 01:02:54.8286 +0200
OS Version:            macOS 14.5 (23F79)
Report Version:        12
Anonymous UUID:        7D5A27AA-352B-FCB2-D9CA-16D3163750AA

Sleep/Wake UUID:       367EC411-57FB-48F2-9D31-E316D9D971EB

Time Awake Since Boot: 47000 seconds
Time Since Wake:       2013 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   cpptools-srv [25703]

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x19496aa60 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1949a2c20 pthread_kill + 288
2   libsystem_c.dylib             	       0x1948afa30 abort + 180
3   libc++abi.dylib               	       0x194959d08 abort_message + 132
4   libc++abi.dylib               	       0x194949fa4 demangling_terminate_handler() + 320
5   libobjc.A.dylib               	       0x1945e81e0 _objc_terminate() + 160
6   libc++abi.dylib               	       0x1949590cc std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x194959070 std::terminate() + 108
8   cpptools-srv                  	       0x1051d25cc crash_handler_data_t::~crash_handler_data_t() + 160
9   cpptools-srv                  	       0x1051d1f30 msvc::atomic_shared_ptr<crash_handler_data_t>::~atomic_shared_ptr() + 56
10  libsystem_c.dylib             	       0x1948602e8 __cxa_finalize_ranges + 476
11  libsystem_c.dylib             	       0x194860070 exit + 44
12  libdyld.dylib                 	       0x1949bb8d0 dyld4::LibSystemHelpers::exit(int) const + 20
13  dyld                          	       0x19461a12c start + 2436


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000019495e29c   x5: 0x000000016b15f230   x6: 0x0000000000000074   x7: 0x0000000000000000
    x8: 0x1ff1679ef440f491   x9: 0x1ff1679f083d3891  x10: 0x0000000000000200  x11: 0x000000000000002d
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000206b91928  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001fc7dcc00  x21: 0x0000000000000103  x22: 0x00000001fc7dcce0  x23: 0x0000000000000000
   x24: 0x0000000000000008  x25: 0x00000001fc7e5000  x26: 0x0000000000000017  x27: 0x0000000000000016
   x28: 0x0000000000000016   fp: 0x000000016b15f1a0   lr: 0x00000001949a2c20
    sp: 0x000000016b15f180   pc: 0x000000019496aa60 cpsr: 0x40001000
   far: 0x0000000000000000  esr: 0x56000080  Address size fault

Binary Images:
       0x104ca0000 -        0x105393fff cpptools-srv (*) <65ba58fa-c76c-3d5a-8d33-76321d900e3a> /Users/USER/Library/Mobile Documents/com~apple~CloudDocs/*/cpptools-srv
       0x194961000 -        0x19499bffb libsystem_kernel.dylib (*) <9b8b53f9-e2b6-36df-98e9-28d8fca732f2> /usr/lib/system/libsystem_kernel.dylib
       0x19499c000 -        0x1949a8fff libsystem_pthread.dylib (*) <386b0fc1-7873-3328-8e71-43269fd1b2c7> /usr/lib/system/libsystem_pthread.dylib
       0x194839000 -        0x1948b7ff7 libsystem_c.dylib (*) <05b44e93-dffc-3bd8-90ab-fd97cb73f171> /usr/lib/system/libsystem_c.dylib
       0x194945000 -        0x194960ffb libc++abi.dylib (*) <4ac7c5cd-3746-3a53-aad6-c231e183b705> /usr/lib/libc++abi.dylib
       0x1945c4000 -        0x194613d83 libobjc.A.dylib (*) <b326b2c3-1069-3d17-b49d-9dcb24efec6f> /usr/lib/libobjc.A.dylib
       0x1949a9000 -        0x1949ceff7 libdyld.dylib (*) <e49303e9-66a8-39d6-a917-e9ea8c42c63f> /usr/lib/system/libdyld.dylib
       0x194614000 -        0x19469ca17 dyld (*) <37bbc384-0755-31c7-a808-0ed49e44dd8e> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=667.7M resident=0K(0%) swapped_out_or_unallocated=667.7M(100%)
Writable regions: Total=692.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=692.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                   32K        1 
MALLOC                           680.1M       23 
MALLOC guard page                   96K        6 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
__AUTH                             343K       67 
__AUTH_CONST                      4087K      148 
__DATA                            6440K      143 
__DATA_CONST                      4161K      149 
__DATA_DIRTY                       365K       58 
__LINKEDIT                       537.9M        2 
__OBJC_RO                         71.9M        1 
__OBJC_RW                         2199K        1 
__TEXT                           129.7M      157 
dyld private memory                272K        2 
shared memory                       32K        2 
===========                     =======  ======= 
TOTAL                              1.5G      762 



-----------
Full Report
-----------

{"app_name":"cpptools-srv","timestamp":"2024-06-06 01:02:55.00 +0200","app_version":"","slice_uuid":"65ba58fa-c76c-3d5a-8d33-76321d900e3a","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.5 (23F79)","roots_installed":0,"incident_id":"2568579F-4A61-4B44-ACEB-B74EAC7F609D","name":"cpptools-srv"}
{
  "uptime" : 47000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,15",
  "coalitionID" : 3146,
  "osVersion" : {
    "train" : "macOS 14.5",
    "build" : "23F79",
    "releaseType" : "User"
  },
  "captureTime" : "2024-06-06 01:02:54.8286 +0200",
  "codeSigningMonitor" : 1,
  "incident" : "2568579F-4A61-4B44-ACEB-B74EAC7F609D",
  "pid" : 25703,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-06-06 00:58:57.4425 +0200",
  "procStartAbsTime" : 1125197463162,
  "procExitAbsTime" : 1130893867238,
  "procName" : "cpptools-srv",
  "procPath" : "\/Users\/USER\/Library\/Mobile Documents\/com~apple~CloudDocs\/*\/cpptools-srv",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.microsoft.VSCode",
  "crashReporterKey" : "7D5A27AA-352B-FCB2-D9CA-16D3163750AA",
  "responsiblePid" : 23490,
  "codeSigningID" : "cpptools-srv-5555494465ba58fac76c3d5a8d3376321d900e3a",
  "codeSigningTeamID" : "UBF8T346G9",
  "codeSigningFlags" : 570503957,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"fyMD1f17v6n9AwCRW+D\/l78DAJH9e8Go\/w9f1sADX9YQKYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkVDg\/5e\/AwCR\/XvBqP8PX9bAA1\/WcAqA0g=="},
  "wakeTime" : 2013,
  "sleepWakeUUID" : "367EC411-57FB-48F2-9D31-E316D9D971EB",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"cpptools-srv","byPid":25703},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":771933,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6787818140},{"value":6091567664},{"value":116},{"value":0},{"value":2301734816963425425},{"value":2301734817298725009},{"value":512},{"value":45},{"value":0},{"value":0},{"value":0},{"value":0},{"value":328},{"value":8702728488},{"value":0},{"value":6},{"value":8531069952,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8531070176,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":8},{"value":8531103744,"symbolLocation":2352,"symbol":"usual_extra"},{"value":23},{"value":22},{"value":22}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6788099104},"cpsr":{"value":1073745920},"fp":{"value":6091567520},"sp":{"value":6091567488},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6787869280,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":39520,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":1},{"imageOffset":27680,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":2},{"imageOffset":485936,"symbol":"abort","symbolLocation":180,"imageIndex":3},{"imageOffset":85256,"symbol":"abort_message","symbolLocation":132,"imageIndex":4},{"imageOffset":20388,"symbol":"demangling_terminate_handler()","symbolLocation":320,"imageIndex":4},{"imageOffset":147936,"symbol":"_objc_terminate()","symbolLocation":160,"imageIndex":5},{"imageOffset":82124,"symbol":"std::__terminate(void (*)())","symbolLocation":16,"imageIndex":4},{"imageOffset":82032,"symbol":"std::terminate()","symbolLocation":108,"imageIndex":4},{"imageOffset":5449164,"symbol":"crash_handler_data_t::~crash_handler_data_t()","symbolLocation":160,"imageIndex":0},{"imageOffset":5447472,"symbol":"msvc::atomic_shared_ptr<crash_handler_data_t>::~atomic_shared_ptr()","symbolLocation":56,"imageIndex":0},{"imageOffset":160488,"symbol":"__cxa_finalize_ranges","symbolLocation":476,"imageIndex":3},{"imageOffset":159856,"symbol":"exit","symbolLocation":44,"imageIndex":3},{"imageOffset":75984,"symbol":"dyld4::LibSystemHelpers::exit(int) const","symbolLocation":20,"imageIndex":6},{"imageOffset":24876,"symbol":"start","symbolLocation":2436,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4375314432,
    "size" : 7290880,
    "uuid" : "65ba58fa-c76c-3d5a-8d33-76321d900e3a",
    "path" : "\/Users\/USER\/Library\/Mobile Documents\/com~apple~CloudDocs\/*\/cpptools-srv",
    "name" : "cpptools-srv"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6787829760,
    "size" : 241660,
    "uuid" : "9b8b53f9-e2b6-36df-98e9-28d8fca732f2",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6788071424,
    "size" : 53248,
    "uuid" : "386b0fc1-7873-3328-8e71-43269fd1b2c7",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6786617344,
    "size" : 520184,
    "uuid" : "05b44e93-dffc-3bd8-90ab-fd97cb73f171",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6787715072,
    "size" : 114684,
    "uuid" : "4ac7c5cd-3746-3a53-aad6-c231e183b705",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6784040960,
    "size" : 327044,
    "uuid" : "b326b2c3-1069-3d17-b49d-9dcb24efec6f",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6788124672,
    "size" : 155640,
    "uuid" : "e49303e9-66a8-39d6-a917-e9ea8c42c63f",
    "path" : "\/usr\/lib\/system\/libdyld.dylib",
    "name" : "libdyld.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6784368640,
    "size" : 559640,
    "uuid" : "37bbc384-0755-31c7-a808-0ed49e44dd8e",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6783614976,
  "size" : 4220698624,
  "uuid" : "3406ad1b-2469-30eb-9863-5dce861e6dea"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=667.7M resident=0K(0%) swapped_out_or_unallocated=667.7M(100%)\nWritable regions: Total=692.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=692.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           680.1M       23 \nMALLOC guard page                   96K        6 \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__AUTH                             343K       67 \n__AUTH_CONST                      4087K      148 \n__DATA                            6440K      143 \n__DATA_CONST                      4161K      149 \n__DATA_DIRTY                       365K       58 \n__LINKEDIT                       537.9M        2 \n__OBJC_RO                         71.9M        1 \n__OBJC_RW                         2199K        1 \n__TEXT                           129.7M      157 \ndyld private memory                272K        2 \nshared memory                       32K        2 \n===========                     =======  ======= \nTOTAL                              1.5G      762 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "73c62f8e0f30510f751ea4224fe9166c1a77bf58",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "632c763c58740028737bfdd2",
      "factorPackIds" : {
        "SIRI_DIALOG_ASSETS" : "64a57d23fa6fd41b2353e2ae"
      },
      "deploymentId" : 240000034
    },
    {
      "rolloutId" : "648a2601f74c42732876cb5b",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "665915a43483687b1278efff"
      },
      "deploymentId" : 240000188
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "4168d455-83f2-4888-acd9-dea8a88471ef",
      "experimentId" : "65c16ae095b5e23d93cdd97c",
      "deploymentId" : 400000006
    }
  ]
}
}

Model: Mac14,15, BootROM 10151.121.1, proc 8:4:4 processors, 8 GB, SMC 
Graphics: Apple M2, Apple M2, Built-In
Display: Color LCD, spdisplays_2880x1864Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Micron
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Apr  4 2024 20:37:43 version 20.103.14.0.8.7.174 FWID 01-95f1e684
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.

Other Extensions

No response

Additional context

No response

@HazemAlindari We believe we have a fix for this in our next 1.21.0 release.

@HazemAlindari We believe we have a fix for this in our next 1.21.0 release.

Thank you and when can we expect to get it

@heartacker We're not sure yet. We're working on reviewing other changes we want to get in. Possibly this week. You can check the current estimated Due Date for the 1.21.0 milestone at https://github.com/microsoft/vscode-cpptools/milestone/168 .

@HazemAlindari We believe this is fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.21.0 (let us know if you're still seeing it or any other crashes).

After switching to the pre-release version 1.21.0 I still experience constant crashes. I can't even open VS Code without cpptools-srv crashing 2-3 times.


Translated Report (Full Report Below)

Process: cpptools-srv [38750]
Path: /Users/USER/*/cpptools-srv
Identifier: cpptools-srv
Version: ???
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2024-06-25 11:52:50.0883 +0200
OS Version: macOS 14.5 (23F79)
Report Version: 12
Anonymous UUID: 5159E2C1-9D87-1BE6-CC62-D35AC7B08F73

Sleep/Wake UUID: CA1312F1-E7E9-4441-B9CC-453AF63B81B7

Time Awake Since Boot: 220000 seconds
Time Since Wake: 672 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: cpptools-srv [38750]

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x195476a60 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1954aec20 pthread_kill + 288
2 libsystem_c.dylib 0x1953bba30 abort + 180
3 libc++abi.dylib 0x195465d08 abort_message + 132
4 libc++abi.dylib 0x195455fa4 demangling_terminate_handler() + 320
5 libobjc.A.dylib 0x1950f41e0 _objc_terminate() + 160
6 libc++abi.dylib 0x1954650cc std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x195465070 std::terminate() + 108
8 cpptools-srv 0x102af6e70 crash_handler_data_t::~crash_handler_data_t() + 168
9 cpptools-srv 0x102af6718 msvc::atomic_shared_ptr<crash_handler_data_t>::~atomic_shared_ptr() + 56
10 libsystem_c.dylib 0x19536c2e8 __cxa_finalize_ranges + 476
11 libsystem_c.dylib 0x19536c070 exit + 44
12 libdyld.dylib 0x1954c78d0 dyld4::LibSystemHelpers::exit(int) const + 20
13 dyld 0x19512612c start + 2436

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000019546a29c x5: 0x000000016d99aff0 x6: 0x0000000000000074 x7: 0x0000000000000000
x8: 0x1b5d26e492ec5f29 x9: 0x1b5d26e56fc2d329 x10: 0x0000000000000200 x11: 0x000000000000002d
x12: 0x0000000000000000 x13: 0x000000000000c040 x14: 0x00000000ffffffff x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x000000020769d928 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001fd2e8c00 x21: 0x0000000000000103 x22: 0x00000001fd2e8ce0 x23: 0x0000000000000000
x24: 0x0000000000000008 x25: 0x00000001fd2f1000 x26: 0x0000000000000017 x27: 0x0000000000000016
x28: 0x0000000000000016 fp: 0x000000016d99af60 lr: 0x00000001954aec20
sp: 0x000000016d99af40 pc: 0x0000000195476a60 cpsr: 0x40001000
far: 0x0000000000000000 esr: 0x56000080 Address size fault

Binary Images:
0x102464000 - 0x102cbffff cpptools-srv () <7a08de5b-42e9-362a-a39b-36e966e6748f> /Users/USER//cpptools-srv
0x19546d000 - 0x1954a7ffb libsystem_kernel.dylib () <9b8b53f9-e2b6-36df-98e9-28d8fca732f2> /usr/lib/system/libsystem_kernel.dylib
0x1954a8000 - 0x1954b4fff libsystem_pthread.dylib (
) <386b0fc1-7873-3328-8e71-43269fd1b2c7> /usr/lib/system/libsystem_pthread.dylib
0x195345000 - 0x1953c3ff7 libsystem_c.dylib () <05b44e93-dffc-3bd8-90ab-fd97cb73f171> /usr/lib/system/libsystem_c.dylib
0x195451000 - 0x19546cffb libc++abi.dylib (
) <4ac7c5cd-3746-3a53-aad6-c231e183b705> /usr/lib/libc++abi.dylib
0x1950d0000 - 0x19511fd83 libobjc.A.dylib () /usr/lib/libobjc.A.dylib
0x1954b5000 - 0x1954daff7 libdyld.dylib (
) /usr/lib/system/libdyld.dylib
0x195120000 - 0x1951a8a17 dyld () <37bbc384-0755-31c7-a808-0ed49e44dd8e> /usr/lib/dyld
0x0 - 0xffffffffffffffff ??? (
) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=667.7M resident=0K(0%) swapped_out_or_unallocated=667.7M(100%)
Writable regions: Total=837.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=837.5M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 32K 1
MALLOC 825.1M 27
MALLOC guard page 96K 6
STACK GUARD 56.0M 1
Stack 8176K 1
__AUTH 343K 67
__AUTH_CONST 4087K 148
__DATA 6344K 145
__DATA_CONST 4257K 150
__DATA_DIRTY 365K 58
__LINKEDIT 536.6M 2
__OBJC_RO 71.9M 1
__OBJC_RW 2199K 1
__TEXT 131.2M 157
dyld private memory 272K 2
shared memory 32K 2
=========== ======= =======
TOTAL 1.6G 769


Full Report

{"app_name":"cpptools-srv","timestamp":"2024-06-25 11:52:50.00 +0200","app_version":"","slice_uuid":"7a08de5b-42e9-362a-a39b-36e966e6748f","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.5 (23F79)","roots_installed":0,"incident_id":"3505BA7F-E866-4372-A241-98892CA9E33B","name":"cpptools-srv"}
{
"uptime" : 220000,
"procRole" : "Unspecified",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,4",
"coalitionID" : 17617,
"osVersion" : {
"train" : "macOS 14.5",
"build" : "23F79",
"releaseType" : "User"
},
"captureTime" : "2024-06-25 11:52:50.0883 +0200",
"codeSigningMonitor" : 1,
"incident" : "3505BA7F-E866-4372-A241-98892CA9E33B",
"pid" : 38750,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-06-25 11:50:55.0927 +0200",
"procStartAbsTime" : 5396602791660,
"procExitAbsTime" : 5399362674814,
"procName" : "cpptools-srv",
"procPath" : "/Users/USER//cpptools-srv",
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.microsoft.VSCode",
"crashReporterKey" : "5159E2C1-9D87-1BE6-CC62-D35AC7B08F73",
"responsiblePid" : 38686,
"codeSigningID" : "cpptools-srv-555549447a08de5b42e9362aa39b36e966e6748f",
"codeSigningTeamID" : "UBF8T346G9",
"codeSigningFlags" : 570503957,
"codeSigningValidationCategory" : 6,
"codeSigningTrustLevel" : 4294967295,
"instructionByteStream" : {"beforePC":"fyMD1f17v6n9AwCRW+D/l78DAJH9e8Go/w9f1sADX9YQKYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p/QMAkVDg/5e/AwCR/XvBqP8PX9bAA1/WcAqA0g=="},
"wakeTime" : 672,
"sleepWakeUUID" : "CA1312F1-E7E9-4441-B9CC-453AF63B81B7",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"cpptools-srv","byPid":38750},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":3338572,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6799401628},{"value":6133755888},{"value":116},{"value":0},{"value":1971774975017508649},{"value":1971774978722550569},{"value":512},{"value":45},{"value":0},{"value":49216},{"value":4294967295},{"value":0},{"value":328},{"value":8714311976},{"value":0},{"value":6},{"value":8542653440,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8542653664,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":8},{"value":8542687232,"symbolLocation":2352,"symbol":"usual_extra"},{"value":23},{"value":22},{"value":22}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6799682592},"cpsr":{"value":1073745920},"fp":{"value":6133755744},"sp":{"value":6133755712},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6799452768,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":39520,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":1},{"imageOffset":27680,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":2},{"imageOffset":485936,"symbol":"abort","symbolLocation":180,"imageIndex":3},{"imageOffset":85256,"symbol":"abort_message","symbolLocation":132,"imageIndex":4},{"imageOffset":20388,"symbol":"demangling_terminate_handler()","symbolLocation":320,"imageIndex":4},{"imageOffset":147936,"symbol":"_objc_terminate()","symbolLocation":160,"imageIndex":5},{"imageOffset":82124,"symbol":"std::__terminate(void (
)())","symbolLocation":16,"imageIndex":4},{"imageOffset":82032,"symbol":"std::terminate()","symbolLocation":108,"imageIndex":4},{"imageOffset":6893168,"symbol":"crash_handler_data_t::~crash_handler_data_t()","symbolLocation":168,"imageIndex":0},{"imageOffset":6891288,"symbol":"msvc::atomic_shared_ptr<crash_handler_data_t>::~atomic_shared_ptr()","symbolLocation":56,"imageIndex":0},{"imageOffset":160488,"symbol":"__cxa_finalize_ranges","symbolLocation":476,"imageIndex":3},{"imageOffset":159856,"symbol":"exit","symbolLocation":44,"imageIndex":3},{"imageOffset":75984,"symbol":"dyld4::LibSystemHelpers::exit(int) const","symbolLocation":20,"imageIndex":6},{"imageOffset":24876,"symbol":"start","symbolLocation":2436,"imageIndex":7}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64",
"base" : 4333125632,
"size" : 8765440,
"uuid" : "7a08de5b-42e9-362a-a39b-36e966e6748f",
"path" : "/Users/USER/*/cpptools-srv",
"name" : "cpptools-srv"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6799413248,
"size" : 241660,
"uuid" : "9b8b53f9-e2b6-36df-98e9-28d8fca732f2",
"path" : "/usr/lib/system/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6799654912,
"size" : 53248,
"uuid" : "386b0fc1-7873-3328-8e71-43269fd1b2c7",
"path" : "/usr/lib/system/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6798200832,
"size" : 520184,
"uuid" : "05b44e93-dffc-3bd8-90ab-fd97cb73f171",
"path" : "/usr/lib/system/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6799298560,
"size" : 114684,
"uuid" : "4ac7c5cd-3746-3a53-aad6-c231e183b705",
"path" : "/usr/lib/libc++abi.dylib",
"name" : "libc++abi.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6795624448,
"size" : 327044,
"uuid" : "b326b2c3-1069-3d17-b49d-9dcb24efec6f",
"path" : "/usr/lib/libobjc.A.dylib",
"name" : "libobjc.A.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6799708160,
"size" : 155640,
"uuid" : "e49303e9-66a8-39d6-a917-e9ea8c42c63f",
"path" : "/usr/lib/system/libdyld.dylib",
"name" : "libdyld.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 6795952128,
"size" : 559640,
"uuid" : "37bbc384-0755-31c7-a808-0ed49e44dd8e",
"path" : "/usr/lib/dyld",
"name" : "dyld"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"sharedCache" : {
"base" : 6795198464,
"size" : 4220698624,
"uuid" : "3406ad1b-2469-30eb-9863-5dce861e6dea"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=667.7M resident=0K(0%) swapped_out_or_unallocated=667.7M(100%)\nWritable regions: Total=837.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=837.5M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nKernel Alloc Once 32K 1 \nMALLOC 825.1M 27 \nMALLOC guard page 96K 6 \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \n__AUTH 343K 67 \n__AUTH_CONST 4087K 148 \n__DATA 6344K 145 \n__DATA_CONST 4257K 150 \n__DATA_DIRTY 365K 58 \n__LINKEDIT 536.6M 2 \n__OBJC_RO 71.9M 1 \n__OBJC_RW 2199K 1 \n__TEXT 131.2M 157 \ndyld private memory 272K 2 \nshared memory 32K 2 \n=========== ======= ======= \nTOTAL 1.6G 769 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"logWritingSignature" : "e8c695cc4a20afb5da7317ce9c93103f1c4c45d4",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "62699e1ec1ff2978b47f6c3b",
"factorPackIds" : {
"SIRI_FIND_MY_CONFIGURATION_FILES" : "652805151bce5442b8d752e1"
},
"deploymentId" : 240000031
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {

  },
  "deploymentId" : 240000413
}

],
"experiments" : [
{
"treatmentId" : "c47ab4cc-c9c3-4b5d-a87c-e2433ce02597",
"experimentId" : "6639bc6ba73d460582162323",
"deploymentId" : 400000006
},
{
"treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
"experimentId" : "6643969b3099cf28e049862f",
"deploymentId" : 400000004
}
]
}
}

Hi,

What is the status on this? I am experiencing the same frequent crashes, which makes working with the extension very painful. I've also upgraded to the latest prerelease version, but no improvement.

Thanks

@schack-lindemann Oh, sorry, I missed your message earlier.

We thought this got fixed at least for some cases. Is anyone on this thread seeing it fixed with 1.21.0, i.e. the people who reported it for 1.20.5?

@terrencebarr Is your crash call stack the same?

Hi @sean-mcmanus

Thanks for the quick reply. I am using v1.21.0 (pre-release). My stack trace seems the same, but I'm attaching it just in case.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               cpptools-srv [58341]
Path:                  /Users/USER/*/cpptools-srv
Identifier:            cpptools-srv
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
Responsible:           Electron [56934]
User ID:               501

Date/Time:             2024-07-03 22:05:59.4804 +0200
OS Version:            macOS 14.5 (23F79)
Report Version:        12
Anonymous UUID:        F7347134-CB2B-643C-96CB-2AF88C0F6E26

Sleep/Wake UUID:       2590E476-A724-4112-9C42-4A5780DAD110

Time Awake Since Boot: 770000 seconds
Time Since Wake:       28 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   cpptools-srv [58341]

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x18d50ea60 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x18d546c20 pthread_kill + 288
2   libsystem_c.dylib             	       0x18d453a30 abort + 180
3   libc++abi.dylib               	       0x18d4fdd08 abort_message + 132
4   libc++abi.dylib               	       0x18d4edfa4 demangling_terminate_handler() + 320
5   libobjc.A.dylib               	       0x18d18c1e0 _objc_terminate() + 160
6   libc++abi.dylib               	       0x18d4fd0cc std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x18d4fd070 std::terminate() + 108
8   cpptools-srv                  	       0x102f2ae70 crash_handler_data_t::~crash_handler_data_t() + 168
9   cpptools-srv                  	       0x102f2a718 msvc::atomic_shared_ptr<crash_handler_data_t>::~atomic_shared_ptr() + 56
10  libsystem_c.dylib             	       0x18d4042e8 __cxa_finalize_ranges + 476
11  libsystem_c.dylib             	       0x18d404070 exit + 44
12  libdyld.dylib                 	       0x18d55f8d0 dyld4::LibSystemHelpers::exit(int) const + 20
13  dyld                          	       0x18d1be12c start + 2436


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000018d50229c   x5: 0x000000016d567010   x6: 0x0000000000000074   x7: 0x000000016d5666b8
    x8: 0xdebc4c82f60c2546   x9: 0xdebc4c8303342946  x10: 0x0000000000000200  x11: 0x000000000000002d
   x12: 0x0000000000000000  x13: 0x0000000021202100  x14: 0x00000000ffffffff  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x00000001ff735928  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001f5380c00  x21: 0x0000000000000103  x22: 0x00000001f5380ce0  x23: 0x0000000000000000
   x24: 0x0000000000000008  x25: 0x00000001f5389000  x26: 0x0000000000000017  x27: 0x0000000000000016
   x28: 0x0000000000000016   fp: 0x000000016d566f80   lr: 0x000000018d546c20
    sp: 0x000000016d566f60   pc: 0x000000018d50ea60 cpsr: 0x40001000
   far: 0x0000000000000000  esr: 0x56000080  Address size fault

Binary Images:
       0x102898000 -        0x1030f3fff cpptools-srv (*) <7a08de5b-42e9-362a-a39b-36e966e6748f> /Users/USER/*/cpptools-srv
       0x18d505000 -        0x18d53fffb libsystem_kernel.dylib (*) <9b8b53f9-e2b6-36df-98e9-28d8fca732f2> /usr/lib/system/libsystem_kernel.dylib
       0x18d540000 -        0x18d54cfff libsystem_pthread.dylib (*) <386b0fc1-7873-3328-8e71-43269fd1b2c7> /usr/lib/system/libsystem_pthread.dylib
       0x18d3dd000 -        0x18d45bff7 libsystem_c.dylib (*) <05b44e93-dffc-3bd8-90ab-fd97cb73f171> /usr/lib/system/libsystem_c.dylib
       0x18d4e9000 -        0x18d504ffb libc++abi.dylib (*) <4ac7c5cd-3746-3a53-aad6-c231e183b705> /usr/lib/libc++abi.dylib
       0x18d168000 -        0x18d1b7d83 libobjc.A.dylib (*) <b326b2c3-1069-3d17-b49d-9dcb24efec6f> /usr/lib/libobjc.A.dylib
       0x18d54d000 -        0x18d572ff7 libdyld.dylib (*) <e49303e9-66a8-39d6-a917-e9ea8c42c63f> /usr/lib/system/libdyld.dylib
       0x18d1b8000 -        0x18d240a17 dyld (*) <37bbc384-0755-31c7-a808-0ed49e44dd8e> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=667.7M resident=0K(0%) swapped_out_or_unallocated=667.7M(100%)
Writable regions: Total=725.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=725.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                   32K        1 
MALLOC                           713.1M       28 
MALLOC guard page                   96K        6 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
__AUTH                             343K       67 
__AUTH_CONST                      4087K      148 
__DATA                            6344K      144 
__DATA_CONST                      4257K      150 
__DATA_DIRTY                       365K       58 
__LINKEDIT                       536.6M        2 
__OBJC_RO                         71.9M        1 
__OBJC_RW                         2199K        1 
__TEXT                           131.2M      157 
dyld private memory                272K        2 
shared memory                       32K        2 
===========                     =======  ======= 
TOTAL                              1.5G      769 



-----------
Full Report
-----------

{"app_name":"cpptools-srv","timestamp":"2024-07-03 22:06:02.00 +0200","app_version":"","slice_uuid":"7a08de5b-42e9-362a-a39b-36e966e6748f","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.5 (23F79)","roots_installed":0,"incident_id":"57AD2142-6DEF-4563-AFD4-487AE8B49428","name":"cpptools-srv"}
{
  "uptime" : 770000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,3",
  "coalitionID" : 143291,
  "osVersion" : {
    "train" : "macOS 14.5",
    "build" : "23F79",
    "releaseType" : "User"
  },
  "captureTime" : "2024-07-03 22:05:59.4804 +0200",
  "codeSigningMonitor" : 1,
  "incident" : "57AD2142-6DEF-4563-AFD4-487AE8B49428",
  "pid" : 58341,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-07-03 14:58:07.9631 +0200",
  "procStartAbsTime" : 18288847408068,
  "procExitAbsTime" : 18603093279806,
  "procName" : "cpptools-srv",
  "procPath" : "\/Users\/USER\/*\/cpptools-srv",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.microsoft.VSCode",
  "crashReporterKey" : "F7347134-CB2B-643C-96CB-2AF88C0F6E26",
  "responsiblePid" : 56934,
  "responsibleProc" : "Electron",
  "codeSigningID" : "cpptools-srv-555549447a08de5b42e9362aa39b36e966e6748f",
  "codeSigningTeamID" : "UBF8T346G9",
  "codeSigningFlags" : 570503957,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"fyMD1f17v6n9AwCRW+D\/l78DAJH9e8Go\/w9f1sADX9YQKYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkVDg\/5e\/AwCR\/XvBqP8PX9bAA1\/WcAqA0g=="},
  "wakeTime" : 28,
  "sleepWakeUUID" : "2590E476-A724-4112-9C42-4A5780DAD110",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"cpptools-srv","byPid":58341},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":11138654,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":6665806492},{"value":6129348624},{"value":116},{"value":6129346232},{"value":16049787297399055686},{"value":16049787297619781958},{"value":512},{"value":45},{"value":0},{"value":555753728},{"value":4294967295},{"value":0},{"value":328},{"value":8580716840},{"value":0},{"value":6},{"value":8409058304,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8409058528,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":8},{"value":8409092096,"symbolLocation":2352,"symbol":"usual_extra"},{"value":23},{"value":22},{"value":22}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6666087456},"cpsr":{"value":1073745920},"fp":{"value":6129348480},"sp":{"value":6129348448},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6665857632,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":39520,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":1},{"imageOffset":27680,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":2},{"imageOffset":485936,"symbol":"abort","symbolLocation":180,"imageIndex":3},{"imageOffset":85256,"symbol":"abort_message","symbolLocation":132,"imageIndex":4},{"imageOffset":20388,"symbol":"demangling_terminate_handler()","symbolLocation":320,"imageIndex":4},{"imageOffset":147936,"symbol":"_objc_terminate()","symbolLocation":160,"imageIndex":5},{"imageOffset":82124,"symbol":"std::__terminate(void (*)())","symbolLocation":16,"imageIndex":4},{"imageOffset":82032,"symbol":"std::terminate()","symbolLocation":108,"imageIndex":4},{"imageOffset":6893168,"symbol":"crash_handler_data_t::~crash_handler_data_t()","symbolLocation":168,"imageIndex":0},{"imageOffset":6891288,"symbol":"msvc::atomic_shared_ptr<crash_handler_data_t>::~atomic_shared_ptr()","symbolLocation":56,"imageIndex":0},{"imageOffset":160488,"symbol":"__cxa_finalize_ranges","symbolLocation":476,"imageIndex":3},{"imageOffset":159856,"symbol":"exit","symbolLocation":44,"imageIndex":3},{"imageOffset":75984,"symbol":"dyld4::LibSystemHelpers::exit(int) const","symbolLocation":20,"imageIndex":6},{"imageOffset":24876,"symbol":"start","symbolLocation":2436,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4337532928,
    "size" : 8765440,
    "uuid" : "7a08de5b-42e9-362a-a39b-36e966e6748f",
    "path" : "\/Users\/USER\/*\/cpptools-srv",
    "name" : "cpptools-srv"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6665818112,
    "size" : 241660,
    "uuid" : "9b8b53f9-e2b6-36df-98e9-28d8fca732f2",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6666059776,
    "size" : 53248,
    "uuid" : "386b0fc1-7873-3328-8e71-43269fd1b2c7",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6664605696,
    "size" : 520184,
    "uuid" : "05b44e93-dffc-3bd8-90ab-fd97cb73f171",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6665703424,
    "size" : 114684,
    "uuid" : "4ac7c5cd-3746-3a53-aad6-c231e183b705",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6662029312,
    "size" : 327044,
    "uuid" : "b326b2c3-1069-3d17-b49d-9dcb24efec6f",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6666113024,
    "size" : 155640,
    "uuid" : "e49303e9-66a8-39d6-a917-e9ea8c42c63f",
    "path" : "\/usr\/lib\/system\/libdyld.dylib",
    "name" : "libdyld.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6662356992,
    "size" : 559640,
    "uuid" : "37bbc384-0755-31c7-a808-0ed49e44dd8e",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6661603328,
  "size" : 4220698624,
  "uuid" : "3406ad1b-2469-30eb-9863-5dce861e6dea"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=667.7M resident=0K(0%) swapped_out_or_unallocated=667.7M(100%)\nWritable regions: Total=725.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=725.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           713.1M       28 \nMALLOC guard page                   96K        6 \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__AUTH                             343K       67 \n__AUTH_CONST                      4087K      148 \n__DATA                            6344K      144 \n__DATA_CONST                      4257K      150 \n__DATA_DIRTY                       365K       58 \n__LINKEDIT                       536.6M        2 \n__OBJC_RO                         71.9M        1 \n__OBJC_RW                         2199K        1 \n__TEXT                           131.2M      157 \ndyld private memory                272K        2 \nshared memory                       32K        2 \n===========                     =======  ======= \nTOTAL                              1.5G      769 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "e8c695cc4a20afb5da7317ce9c93103f1c4c45d4",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112d17137f5d11121dcd4e2",
      "factorPackIds" : {

      },
      "deploymentId" : 240000565
    },
    {
      "rolloutId" : "648cada15dbc71671bb3aa1b",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_ATTENTION_ASSETS" : "65a8118e05d9422724106749",
        "SIRI_UNDERSTANDING_ASR_ASSISTANT" : "65a8115446dfa0720068876d",
        "SIRI_UNDERSTANDING_NL" : "65a811c046dfa0720068876e",
        "SIRI_EXPERIENCE_CAM" : "65a81173096f6a1f1ba46525",
        "SIRI_UNDERSTANDING_MORPHUN" : "65a811a96c2f903aa921c246"
      },
      "deploymentId" : 240000116
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c47ab4cc-c9c3-4b5d-a87c-e2433ce02597",
      "experimentId" : "6639bc6ba73d460582162323",
      "deploymentId" : 400000006
    },
    {
      "treatmentId" : "2dffbe18-a39a-4f33-ada9-2cce30af39ca",
      "experimentId" : "6384d56b96e8d228551ec182",
      "deploymentId" : 400000032
    }
  ]
}
}

Model: Mac15,3, BootROM 10151.121.1, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M3, Apple M3, Built-In
Display: LG HDR WQHD, 3440 x 1440 (UWQHD - Ultra-Wide Quad HD), Main, MirrorOff, Online
Display: Color LCD, 3024 x 1964 Retina, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4388), wl0: Apr  4 2024 20:57:11 version 23.30.58.0.41.51.138 FWID 01-baea9d27
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Anker large 1 Gbps, Ethernet, en14
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: Anker USB-C Hub Device
USB Device: USB3.0 Card Reader
USB Device: USB 10/100/1000 LAN
USB Device: Anker USB-C Hub Device
USB Device: Anker
USB Device: USB31Bus
USB Device: 4-Port USB 2.0 Hub
USB Device: HD Pro Webcam C920
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

@schack-lindemann @terrencebarr We made multiple fixes that could potentially cause this issue with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.21.1, but since we weren't able to get a repro we're not sure if it's fixed or not. Can you see if it still repros with that version? Also, if it still repros, do you have any more info on when the crash occurs or if there are scenarios where it doesn't occur? It's a crash on startup and not shutdown?

FYI, there's a known crash with modules_cleanup at #12479 .

Have just completely reset VScode and reinstalled all extensions. I installed the C/C++ pre-release v. 1.21.1 from the start and the problem still persist. It seem to happen more or less randomly, but always at startup and shutdown of VScode and also when opening any C based file. I mainly use VScode writing code for microcontrollers like Arduino and ESP8266 and the extension crashes when opening/closing all these files.

@schack-lindemann Okay, we'll look into it more for 1.22.0. Your call stack indicates that something is triggering the cpptools-srv.exe process to shutdown (maybe some change in configuration) and then it's crashing during the shutdown.

We made a fix with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.21.5, but since we didn't repro the issue and we don't know what exactly is causing it, we're not sure if there are more issues still...at the very least we expect the crash call stack to be different.

Let us know if anyone still hits this issue and we can follow up in 1.22.0.

I just updated to 1.21.5 via the VS Code extension manager and restarted VS Code. I still get cpptools-srv crashes -- see attached. The crashes happen quite frequently when I am doing operations related to C/C++ parsing or even just closing a C file that is open in the editor ... but the crashes not always predictable. For me, cpptools-srv will typically crash several times in the span of 5 minutes.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               cpptools-srv [24297]
Path:                  /Users/USER/*/cpptools-srv
Identifier:            cpptools-srv
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
Responsible:           Electron [23901]
User ID:               501

Date/Time:             2024-08-01 14:25:47.1189 +0200
OS Version:            macOS 14.6 (23G80)
Report Version:        12
Anonymous UUID:        F7347134-CB2B-643C-96CB-2AF88C0F6E26

Sleep/Wake UUID:       7F5BED9F-9885-40D5-8426-D77889C4288D

Time Awake Since Boot: 45000 seconds
Time Since Wake:       4256 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   cpptools-srv [24297]

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x187a355f0 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x187a6dc20 pthread_kill + 288
2   libsystem_c.dylib             	       0x1879441e0 raise + 32
3   cpptools-srv                  	       0x1050289b0 (anonymous namespace)::reraise_signal(int, crash_handler_data_t*) + 196
4   cpptools-srv                  	       0x105028728 crash_handler(int, __siginfo*, void*) + 124
5   libsystem_platform.dylib      	       0x187a9e584 _sigtramp + 56
6   libsystem_pthread.dylib       	       0x187a6dc20 pthread_kill + 288
7   libsystem_c.dylib             	       0x18797aa30 abort + 180
8   libc++abi.dylib               	       0x187a24d08 abort_message + 132
9   libc++abi.dylib               	       0x187a14fa4 demangling_terminate_handler() + 320
10  libobjc.A.dylib               	       0x1876afc00 _objc_terminate() + 160
11  libc++abi.dylib               	       0x187a240cc std::__terminate(void (*)()) + 16
12  libc++abi.dylib               	       0x187a24070 std::terminate() + 108
13  cpptools-srv                  	       0x105028424 (anonymous namespace)::crash_shutdown_handler_t::~crash_shutdown_handler_t() + 92
14  libsystem_c.dylib             	       0x18792b2e8 __cxa_finalize_ranges + 476
15  libsystem_c.dylib             	       0x18792b070 exit + 44
16  libdyld.dylib                 	       0x187a86850 dyld4::LibSystemHelpers::exit(int) const + 20
17  dyld                          	       0x1876e31a0 start + 2552


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x000000016b46ab40
    x4: 0x000000016b46aba8   x5: 0xf07b6d34c7cbe725   x6: 0x0000000000000074   x7: 0x000000016b46a6c8
    x8: 0x0b50ff688f2b1ccd   x9: 0x0b50ff6960a0538d  x10: 0x0000000000000200  x11: 0x000000000000002d
   x12: 0x0000000000000000  x13: 0x0000000004210901  x14: 0x00000000ffffffff  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x00000001f9fb6198  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001ef8b4f40  x21: 0x0000000000000103  x22: 0x00000001ef8b5020  x23: 0x0000000000000000
   x24: 0x0000000000000008  x25: 0x00000001ef8be000  x26: 0x0000000000000016  x27: 0x0000000000000015
   x28: 0x0000000000000015   fp: 0x000000016b46a8d0   lr: 0x0000000187a6dc20
    sp: 0x000000016b46a8b0   pc: 0x0000000187a355f0 cpsr: 0x40001000
   far: 0x0000000000000000  esr: 0x56000080  Address size fault

Binary Images:
       0x104994000 -        0x1051e7fff cpptools-srv (*) <546090b5-864f-305a-8b4c-9ae1db64a70b> /Users/USER/*/cpptools-srv
       0x187a2c000 -        0x187a66ffb libsystem_kernel.dylib (*) <ce96c53b-e417-3f7c-ad79-6d61f69ca819> /usr/lib/system/libsystem_kernel.dylib
       0x187a67000 -        0x187a73fff libsystem_pthread.dylib (*) <e03e8478-6f5c-3d21-a79a-58408f514000> /usr/lib/system/libsystem_pthread.dylib
       0x187904000 -        0x187982ff7 libsystem_c.dylib (*) <d30f1830-93d0-3d0b-8cba-9544e84bfd5b> /usr/lib/system/libsystem_c.dylib
       0x187a9a000 -        0x187aa1fe7 libsystem_platform.dylib (*) <b4bf9f89-31d7-3742-8ce7-ab3554f9f525> /usr/lib/system/libsystem_platform.dylib
       0x187a10000 -        0x187a2bffb libc++abi.dylib (*) <68e3eb36-b4ba-30e0-a240-31e942936d06> /usr/lib/libc++abi.dylib
       0x18768c000 -        0x1876dce0b libobjc.A.dylib (*) <5c6386bd-f308-3370-bce9-63d1a89dab87> /usr/lib/libobjc.A.dylib
       0x187a74000 -        0x187a99ff7 libdyld.dylib (*) <c433509d-7cd3-3884-b24d-5d68b9b95627> /usr/lib/system/libdyld.dylib
       0x1876dd000 -        0x187766507 dyld (*) <015e99c9-3c3f-3e28-ac31-9c9770316250> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=660.0M resident=0K(0%) swapped_out_or_unallocated=660.0M(100%)
Writable regions: Total=980.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=980.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                   32K        1 
MALLOC                           968.1M       29 
MALLOC guard page                   96K        6 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
__AUTH                             343K       67 
__AUTH_CONST                      4087K      148 
__DATA                            6311K      144 
__DATA_CONST                      4305K      150 
__DATA_DIRTY                       365K       58 
__LINKEDIT                       528.9M        2 
__OBJC_RO                         71.9M        1 
__OBJC_RW                         2200K        1 
__TEXT                           131.1M      157 
dyld private memory                272K        2 
shared memory                       32K        2 
===========                     =======  ======= 
TOTAL                              1.7G      770 



-----------
Full Report
-----------

{"app_name":"cpptools-srv","timestamp":"2024-08-01 14:25:47.00 +0200","app_version":"","slice_uuid":"546090b5-864f-305a-8b4c-9ae1db64a70b","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 14.6 (23G80)","roots_installed":0,"incident_id":"6C9FC854-8411-46F7-ADF7-909D788F6C5A","name":"cpptools-srv"}
{
  "uptime" : 45000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,3",
  "coalitionID" : 9775,
  "osVersion" : {
    "train" : "macOS 14.6",
    "build" : "23G80",
    "releaseType" : "User"
  },
  "captureTime" : "2024-08-01 14:25:47.1189 +0200",
  "codeSigningMonitor" : 1,
  "incident" : "6C9FC854-8411-46F7-ADF7-909D788F6C5A",
  "pid" : 24297,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-08-01 14:25:44.8066 +0200",
  "procStartAbsTime" : 1083894302921,
  "procExitAbsTime" : 1083949792908,
  "procName" : "cpptools-srv",
  "procPath" : "\/Users\/USER\/*\/cpptools-srv",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.microsoft.VSCode",
  "crashReporterKey" : "F7347134-CB2B-643C-96CB-2AF88C0F6E26",
  "responsiblePid" : 23901,
  "responsibleProc" : "Electron",
  "codeSigningID" : "cpptools-srv-55554944546090b5864f305a8b4c9ae1db64a70b",
  "codeSigningTeamID" : "UBF8T346G9",
  "codeSigningFlags" : 570503957,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"fyMD1f17v6n9AwCRd+D\/l78DAJH9e8Go\/w9f1sADX9YQKYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkWzg\/5e\/AwCR\/XvBqP8PX9bAA1\/WcAqA0g=="},
  "wakeTime" : 4256,
  "sleepWakeUUID" : "7F5BED9F-9885-40D5-8426-D77889C4288D",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort trap: 6","byProc":"cpptools-srv","byPid":24297},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":759567,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":6094760768},{"value":6094760872},{"value":17328564064695871269},{"value":116},{"value":6094759624},{"value":815432357097708749},{"value":815432360611828621},{"value":512},{"value":45},{"value":0},{"value":69273857},{"value":4294967295},{"value":0},{"value":328},{"value":8488968600},{"value":0},{"value":6},{"value":8313851712,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8313851936,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":8},{"value":8313888768,"symbolLocation":2080,"symbol":"usual"},{"value":22},{"value":21},{"value":21}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6570826784},"cpsr":{"value":1073745920},"fp":{"value":6094760144},"sp":{"value":6094760112},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6570595824,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":38384,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":1},{"imageOffset":27680,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":2},{"imageOffset":262624,"symbol":"raise","symbolLocation":32,"imageIndex":3},{"imageOffset":6900144,"symbol":"(anonymous namespace)::reraise_signal(int, crash_handler_data_t*)","symbolLocation":196,"imageIndex":0},{"imageOffset":6899496,"symbol":"crash_handler(int, __siginfo*, void*)","symbolLocation":124,"imageIndex":0},{"imageOffset":17796,"symbol":"_sigtramp","symbolLocation":56,"imageIndex":4},{"imageOffset":27680,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":2},{"imageOffset":485936,"symbol":"abort","symbolLocation":180,"imageIndex":3},{"imageOffset":85256,"symbol":"abort_message","symbolLocation":132,"imageIndex":5},{"imageOffset":20388,"symbol":"demangling_terminate_handler()","symbolLocation":320,"imageIndex":5},{"imageOffset":146432,"symbol":"_objc_terminate()","symbolLocation":160,"imageIndex":6},{"imageOffset":82124,"symbol":"std::__terminate(void (*)())","symbolLocation":16,"imageIndex":5},{"imageOffset":82032,"symbol":"std::terminate()","symbolLocation":108,"imageIndex":5},{"imageOffset":6898724,"symbol":"(anonymous namespace)::crash_shutdown_handler_t::~crash_shutdown_handler_t()","symbolLocation":92,"imageIndex":0},{"imageOffset":160488,"symbol":"__cxa_finalize_ranges","symbolLocation":476,"imageIndex":3},{"imageOffset":159856,"symbol":"exit","symbolLocation":44,"imageIndex":3},{"imageOffset":75856,"symbol":"dyld4::LibSystemHelpers::exit(int) const","symbolLocation":20,"imageIndex":7},{"imageOffset":24992,"symbol":"start","symbolLocation":2552,"imageIndex":8}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4372119552,
    "size" : 8732672,
    "uuid" : "546090b5-864f-305a-8b4c-9ae1db64a70b",
    "path" : "\/Users\/USER\/*\/cpptools-srv",
    "name" : "cpptools-srv"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6570557440,
    "size" : 241660,
    "uuid" : "ce96c53b-e417-3f7c-ad79-6d61f69ca819",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6570799104,
    "size" : 53248,
    "uuid" : "e03e8478-6f5c-3d21-a79a-58408f514000",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6569345024,
    "size" : 520184,
    "uuid" : "d30f1830-93d0-3d0b-8cba-9544e84bfd5b",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6571008000,
    "size" : 32744,
    "uuid" : "b4bf9f89-31d7-3742-8ce7-ab3554f9f525",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6570442752,
    "size" : 114684,
    "uuid" : "68e3eb36-b4ba-30e0-a240-31e942936d06",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6566756352,
    "size" : 331276,
    "uuid" : "5c6386bd-f308-3370-bce9-63d1a89dab87",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6570852352,
    "size" : 155640,
    "uuid" : "c433509d-7cd3-3884-b24d-5d68b9b95627",
    "path" : "\/usr\/lib\/system\/libdyld.dylib",
    "name" : "libdyld.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6567088128,
    "size" : 562440,
    "uuid" : "015e99c9-3c3f-3e28-ac31-9c9770316250",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6566330368,
  "size" : 4214308864,
  "uuid" : "2652ccc8-2581-3c2f-b259-753b7522cfa5"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=660.0M resident=0K(0%) swapped_out_or_unallocated=660.0M(100%)\nWritable regions: Total=980.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=980.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           968.1M       29 \nMALLOC guard page                   96K        6 \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__AUTH                             343K       67 \n__AUTH_CONST                      4087K      148 \n__DATA                            6311K      144 \n__DATA_CONST                      4305K      150 \n__DATA_DIRTY                       365K       58 \n__LINKEDIT                       528.9M        2 \n__OBJC_RO                         71.9M        1 \n__OBJC_RW                         2200K        1 \n__TEXT                           131.1M      157 \ndyld private memory                272K        2 \nshared memory                       32K        2 \n===========                     =======  ======= \nTOTAL                              1.7G      770 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "c273095f37b9c9407fb2a69bad4e270efb787b79",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "645eb1d0417dab722a215927",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    },
    {
      "rolloutId" : "648cada15dbc71671bb3aa1b",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_ATTENTION_ASSETS" : "65a8118e05d9422724106749",
        "SIRI_UNDERSTANDING_ASR_ASSISTANT" : "65a8115446dfa0720068876d",
        "SIRI_UNDERSTANDING_NL" : "65a811c046dfa0720068876e",
        "SIRI_EXPERIENCE_CAM" : "65a81173096f6a1f1ba46525",
        "SIRI_UNDERSTANDING_MORPHUN" : "65a811a96c2f903aa921c246"
      },
      "deploymentId" : 240000116
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c47ab4cc-c9c3-4b5d-a87c-e2433ce02597",
      "experimentId" : "6639bc6ba73d460582162323",
      "deploymentId" : 400000006
    },
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000007
    }
  ]
}
}

Model: Mac15,3, BootROM 10151.140.19, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M3, Apple M3, Built-In
Display: LG HDR WQHD, 3440 x 1440 (UWQHD - Ultra-Wide Quad HD), Main, MirrorOff, Online
Display: Color LCD, 3024 x 1964 Retina, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4388), wl0: Apr  4 2024 20:57:11 version 23.30.58.0.41.51.138 FWID 01-baea9d27
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Anker large 1 Gbps, Ethernet, en14
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: Anker USB-C Hub Device
USB Device: USB3.0 Card Reader
USB Device: USB 10/100/1000 LAN
USB Device: Anker USB-C Hub Device
USB Device: Anker
USB Device: USB31Bus
USB Device: 4-Port USB 2.0 Hub
USB Device: HD Pro Webcam C920
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

@terrencebarr From what I can tell, that particular code ~crash_shutdown_handler_t would only crash if there was some memory corruption. Are you able to repro the crash only when opening particular workspaces or files? Or can you get it to occur with an empty source file?

@sean-mcmanus If I open an empty C file or a helloWorld example, I don't seem to get crashes -- at least, not yet. But when I open a more complex workspace crashes start happening very soon. So it does seem to relate to the complexity of the code or workspace. I'll try to dig some more tomorrow.

@terrencebarr The crash_shutdown_handler_t code is run in cpptools too and it sounds like that process is not crashing. I'm not sure yet why only cpptools-srv would be hitting this crash (other than it having a memory corruption issue that cpptools isn't hitting).

@terrencebarr We have some other potential fixes we can try for 1.22.0 (planned for next week).

@sean-mcmanus Thanks for continuing to investigate. I played with this some more, and contrary to my previous comment, I now find that even a simple file test.c containing int main (void) { } crashes cpptools-srv. I open a folder containing test.c in VS Code, the editor opens, I wait a few seconds, and close the editor window ... within 2 seconds I get the crash report. I was able to reproduce this 10 times in a row.

@terrencebarr We finally believe we've figured out the cause and fix for the crash.

heihei, can you please tell us why? 😄

@heartacker The cause of the crash? We were incorrectly handling temp file cleanup used to log the crashes in cpptools-srv during global object destruction causing it to throw an exception in ~temp_file_manager which triggered std::terminate. We previously thought the crash was with the crash handler code itself, which was new, and not the old temp_file_manager code which was pre-existing and not expected to have a problem.

@sean-mcmanus Thanks -- this is looking promising, no crashes in the first 5 minutes of testing. Will test some more today.

Hi. I used the extension for about 1.5 hours so far, with no crashes. It look like you found and fixed the problem -- thanks!