Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash due to an assertion in libswiftCore #1311

Open
low-batt opened this issue Mar 10, 2023 · 0 comments
Open

Crash due to an assertion in libswiftCore #1311

low-batt opened this issue Mar 10, 2023 · 0 comments

Comments

@low-batt
Copy link

On my MacBookPro18,2 running macOS Ventura 13.2.1 and Xcode 14.1 I happened to bring up Console and found 6 swift-driver crash reports. They all seem to be due to an assertion in libswiftCore. I have no idea what triggered these failures. I tried to reproduce the crash but was unable to do so.

Crash Report:
Translated Report (Full Report Below)
-------------------------------------

Process:               swift-driver [21971]
Path:                  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver
Identifier:            swift-driver
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        XCBBuildService [2145]
Responsible:           Xcode [2113]
User ID:               503

Date/Time:             2023-03-06 18:51:34.6341 -0500
OS Version:            macOS 13.2.1 (22D68)
Report Version:        12
Anonymous UUID:        C8F97525-3322-572C-B9CE-A91EB243AC3C


Time Awake Since Boot: 13000 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001bd4cc218

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [21971]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib            	       0x1bd4cc218 _assertionFailure(_:_:file:line:flags:) + 316
1   libswiftCore.dylib            	       0x1bd4cc218 _assertionFailure(_:_:file:line:flags:) + 316
2   swift-driver                  	       0x102078058 main + 2648
3   dyld                          	       0x1af3c3e50 start + 2544

Thread 1:
0   libsystem_pthread.dylib       	       0x1af6e8e18 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x1af6e8e18 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x1af6e8e18 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	       0x1af6e8e18 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	       0x1af6e8e18 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x80000001025162d0   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000600002275b00
    x4: 0x0000000000000000   x5: 0x000000016dd89350   x6: 0x0000000000000073   x7: 0x0000000000000001
    x8: 0x0000000000000100   x9: 0x00000000000000ff  x10: 0x0000000000001ac0  x11: 0x00000000000007fb
   x12: 0x00000000cf049ffb  x13: 0x00000000000007fd  x14: 0x00000000cf24a06c  x15: 0x00000000cf049ffb
   x16: 0x000000000000006c  x17: 0x000000004f200000  x18: 0x0000000000000000  x19: 0x80000001025162d0
   x20: 0x0000000000000002  x21: 0x0000000000000000  x22: 0x0000000000000017  x23: 0x00000001025162d0
   x24: 0xd000000000000025  x25: 0x0000000102516d20  x26: 0x000000000000000b  x27: 0x00000001025d6280
   x28: 0x0000000000000000   fp: 0x000000016dd894a0   lr: 0x00000001bd4cc218
    sp: 0x000000016dd89420   pc: 0x00000001bd4cc218 cpsr: 0x60001000
   far: 0x0000000102f3c610  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x1bd495000 -        0x1bd9e2fff libswiftCore.dylib (*) <5034430d-70ab-3345-9d7d-f5e05067eeb2> /usr/lib/swift/libswiftCore.dylib
       0x102074000 -        0x10258ffff swift-driver (*) <62d33a8b-561b-3fd0-ae9c-b467417e714b> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver
       0x1af3be000 -        0x1af448ba3 dyld (*) <191e84f1-4b95-39c8-b253-1c1ef56c0fa8> /usr/lib/dyld
       0x1af6e7000 -        0x1af6f3ffb libsystem_pthread.dylib (*) <9f3b729a-ed04-3e65-adac-d75ad06ebbdc> /usr/lib/system/libsystem_pthread.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: 20
    thread_create: 0
    thread_set_state: 800

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           216.2M       27 
MALLOC guard page                   96K        5 
MALLOC_MEDIUM (reserved)         240.0M        2         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.1M        6 
Stack                             10.6M        6 
VM_ALLOCATE                         16K        1 
__AUTH                             461K      102 
__AUTH_CONST                      8023K      230 
__DATA                            2488K      218 
__DATA_CONST                      9444K      232 
__DATA_DIRTY                       445K       84 
__FONT_DATA                        2352        1 
__LINKEDIT                       776.7M        2 
__OBJC_CONST                       643K       81 
__OBJC_RO                         65.5M        1 
__OBJC_RW                         1988K        1 
__TEXT                           163.6M      241 
dyld private memory                256K        1 
mapped file                       29.1M        2 
shared memory                      624K        7 
===========                     =======  ======= 
TOTAL                              1.9G     1253 
TOTAL, minus reserved VM space     1.3G     1253 



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

{"app_name":"swift-driver","timestamp":"2023-03-06 18:51:34.00 -0500","app_version":"","slice_uuid":"62d33a8b-561b-3fd0-ae9c-b467417e714b","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.2.1 (22D68)","roots_installed":0,"incident_id":"122C3082-7A47-4F5E-9EE7-51CE476B11FA","name":"swift-driver"}
{
  "uptime" : 13000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 503,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,2",
  "coalitionID" : 1258,
  "osVersion" : {
    "train" : "macOS 13.2.1",
    "build" : "22D68",
    "releaseType" : "User"
  },
  "captureTime" : "2023-03-06 18:51:34.6341 -0500",
  "incident" : "122C3082-7A47-4F5E-9EE7-51CE476B11FA",
  "pid" : 21971,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-03-06 18:51:33.5509 -0500",
  "procStartAbsTime" : 330378302183,
  "procExitAbsTime" : 330404288671,
  "procName" : "swift-driver",
  "procPath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/swift-driver",
  "parentProc" : "XCBBuildService",
  "parentPid" : 2145,
  "coalitionName" : "com.apple.dt.Xcode",
  "crashReporterKey" : "C8F97525-3322-572C-B9CE-A91EB243AC3C",
  "responsiblePid" : 2113,
  "responsibleProc" : "Xcode",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001bd4cc218","rawCodes":[1,7470891544],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":21971},
  "os_fault" : {"process":"swift-driver"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":800,"task_for_pid":20},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":180731,"threadState":{"x":[{"value":9223372041188631248},{"value":0},{"value":0},{"value":105553152400128},{"value":0},{"value":6137877328},{"value":115},{"value":1},{"value":256},{"value":255},{"value":6848},{"value":2043},{"value":3473186811},{"value":2045},{"value":3475284076},{"value":3473186811},{"value":108},{"value":1327497216},{"value":0},{"value":9223372041188631248},{"value":2},{"value":0},{"value":23},{"value":4333855440},{"value":14987979559889010725},{"value":4333858080},{"value":11},{"value":4334641792,"symbolLocation":0,"symbol":"localFileSystem"},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7470891544},"cpsr":{"value":1610616832},"fp":{"value":6137877664},"sp":{"value":6137877536},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":7470891544,"matchesCrashFrame":1},"far":{"value":4344497680}},"queue":"com.apple.main-thread","frames":[{"imageOffset":225816,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":316,"imageIndex":0},{"imageOffset":225816,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":316,"imageIndex":0},{"imageOffset":16472,"symbol":"main","symbolLocation":2648,"imageIndex":1},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":2}]},{"id":180732,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":180736,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":180750,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":180760,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":180761,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7470665728,
    "size" : 5562368,
    "uuid" : "5034430d-70ab-3345-9d7d-f5e05067eeb2",
    "path" : "\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4328996864,
    "size" : 5357568,
    "uuid" : "62d33a8b-561b-3fd0-ae9c-b467417e714b",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/swift-driver",
    "name" : "swift-driver"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7234904064,
    "size" : 568228,
    "uuid" : "191e84f1-4b95-39c8-b253-1c1ef56c0fa8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7238217728,
    "size" : 53244,
    "uuid" : "9f3b729a-ed04-3e65-adac-d75ad06ebbdc",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 7234256896,
  "size" : 3447455744,
  "uuid" : "835716ae-b363-3187-b065-cf94139bfc85"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=940.3M resident=0K(0%) swapped_out_or_unallocated=940.3M(100%)\nWritable regions: Total=851.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=851.3M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           216.2M       27 \nMALLOC guard page                   96K        5 \nMALLOC_MEDIUM (reserved)         240.0M        2         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        6 \nStack                             10.6M        6 \nVM_ALLOCATE                         16K        1 \n__AUTH                             461K      102 \n__AUTH_CONST                      8023K      230 \n__DATA                            2488K      218 \n__DATA_CONST                      9444K      232 \n__DATA_DIRTY                       445K       84 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       776.7M        2 \n__OBJC_CONST                       643K       81 \n__OBJC_RO                         65.5M        1 \n__OBJC_RW                         1988K        1 \n__TEXT                           163.6M      241 \ndyld private memory                256K        1 \nmapped file                       29.1M        2 \nshared memory                      624K        7 \n===========                     =======  ======= \nTOTAL                              1.9G     1253 \nTOTAL, minus reserved VM space     1.3G     1253 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {

      },
      "deploymentId" : 240000025
    },
    {
      "rolloutId" : "63582c5f8a53461413999550",
      "factorPackIds" : {

      },
      "deploymentId" : 240000002
    }
  ],
  "experiments" : [

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

No branches or pull requests

1 participant