Open HazemAlindari opened 1 month ago
@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.
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
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 ()
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
{"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
},
"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 https://github.com/microsoft/vscode-cpptools/issues/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.
Environment
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:
Expected behavior: I expect it not to crash
Configuration and Logs
Other Extensions
No response
Additional context
No response