Notarytool crashes in Python running in an Apache Webserver

{"app_name":"notarytool","timestamp":"2024-07-23 14:39:51.00 +0200","app_version":"","slice_uuid":"f0d56d06-73a3-3bd2-b9e4-476d1e949683","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"incident_id":"7BF975C5-9911-4BD6-BBA3-ED94BACA4384","name":"notarytool"}
{
  "uptime" : 1900000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacPro7,1",
  "coalitionID" : 273,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2024-07-23 14:39:51.6763 +0200",
  "incident" : "7BF975C5-9911-4BD6-BBA3-ED94BACA4384",
  "pid" : 7808,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-07-23 14:39:50.7946 +0200",
  "procStartAbsTime" : 1917725223766922,
  "procExitAbsTime" : 1917726105052276,
  "procName" : "notarytool",
  "procPath" : "\/Library\/Developer\/CommandLineTools\/usr\/bin\/notarytool",
  "parentProc" : "Python",
  "parentPid" : 7807,
  "coalitionName" : "homebrew.mxcl.httpd",
  "crashReporterKey" : "203C642C-2515-0625-6DA3-EE1A326D72B4",
  "responsiblePid" : 1133,
  "responsibleProc" : "httpd",
  "bridgeVersion" : {"build":"20P2059","train":"7.1"},
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_INSTRUCTION","******":"SIGILL"},
  "termination" : {"flags":0,"code":4,"namespace":"******","indicator":"Illegal instruction: 4","byProc":"exc handler","byPid":7808},
  "asiSignatures" : ["API Misuse"],
  "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" : 1,
  "threads" : [{"id":41587870,"queue":"com.apple.main-thread","frames":[{"imageOffset":16362,"symbol":"__semwait_******","symbolLocation":10,"imageIndex":0},{"imageOffset":68426,"symbol":"nanosleep","symbolLocation":196,"imageIndex":1},{"imageOffset":113210,"symbol":"sleep","symbolLocation":41,"imageIndex":1},{"imageOffset":107013,"symbol":"APITaskManager.waitForTasks(until:)","symbolLocation":396,"imageIndex":2},{"imageOffset":115589,"symbol":"APITaskManager.authenticateRequest(_:credentials:extraHeaders:)","symbolLocation":2066,"imageIndex":2},{"imageOffset":122738,"symbol":"APITaskManager.postRequest(endpoint:payload:extraHeaders:shouldEndLoop:credentials:)","symbolLocation":1040,"imageIndex":2},{"imageOffset":420996,"symbol":"submitApp(fileURL:fileDigests:taskManager:notifications:extraHeaders:)","symbolLocation":1050,"imageIndex":2},{"imageOffset":251420,"imageIndex":2},{"imageOffset":334829,"imageIndex":2},{"imageOffset":254975,"imageIndex":2},{"imageOffset":250485,"imageIndex":2},{"imageOffset":260296,"imageIndex":2},{"imageOffset":7859,"imageIndex":2},{"imageOffset":7753,"symbol":"main","symbolLocation":9,"imageIndex":2},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":3}]},{"triggered":true,"id":41587912,"instructionState":{"instructionStream":{"bytes":[0,72,141,157,80,255,255,255,15,41,131,144,0,0,0,15,41,131,128,0,0,0,15,41,67,112,15,41,67,96,15,41,67,80,15,41,67,64,15,41,67,48,15,41,67,32,15,41,67,16,15,41,3,72,141,21,156,6,1,0,190,160,0,0,0,72,137,223,49,192,232,41,179,0,0,72,137,29,48,92,251,65,72,141,5,146,6,1,0,72,137,5,42,92,251,65,15,11,72,139,5,25,92,251,65,195,85,72,137,229,65,86,83,72,133,255,116,50,73,137,254,191,24,0,0,0,232,231,83,255,255,72,137,195,76,137,247,232,220,83,255,255,72,137,3,198,0,0,76,137,115,8,72,199,67,16,0,0,0,0,72,137,216,91,65,94,93,195,232,239,168,0,0,72,139,63,233,50,2,254,255,85,72,137,229,83,80,72,137,251,72,139],"offset":96}},"threadState":{"r13":{"value":140703947998551,"objc-selector":"xpcConnection"},"rax":{"value":140703408883713},"rflags":{"value":66050},"cpu":{"value":4},"r14":{"value":503},"rsi":{"value":105553162340928},"r8":{"value":123145525907344},"cr2":{"value":140704482001568},"rdx":{"value":18446744073709551600},"r10":{"value":0},"r9":{"value":140703408883712},"r15":{"value":105553177018624},"rbx":{"value":123145525908016},"trap":{"value":6},"err":{"value":0},"r11":{"value":17592363567168},"rip":{"value":140703408816502,"matchesCrashFrame":1},"rbp":{"value":123145525908192},"rsp":{"value":123145525908016},"r12":{"value":105553171775488},"rcx":{"value":11875668524499927213},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"queue":"com.apple.NSURLSession-work","frames":[{"imageOffset":151926,"symbol":"_xpc_api_misuse","symbolLocation":117,"imageIndex":4},{"imageOffset":52153,"symbol":"xpc_connection_set_target_uid","symbolLocation":188,"imageIndex":4},{"imageOffset":10578,"symbol":"-[SOServiceConnection _connectToService]","symbolLocation":533,"imageIndex":5},{"imageOffset":10007,"symbol":"-[SOServiceConnection initWithQueue:]","symbolLocation":102,"imageIndex":5},{"imageOffset":9778,"symbol":"-[SOClient init]","symbolLocation":122,"imageIndex":5},{"imageOffset":9469,"symbol":"-[SOConfigurationClient init]","symbolLocation":180,"imageIndex":5},{"imageOffset":9268,"symbol":"__38+[SOConfigurationClient defaultClient]_block_invoke","symbolLocation":16,"imageIndex":5},{"imageOffset":10820,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":6},{"imageOffset":15410,"symbol":"_dispatch_once_callout","symbolLocation":20,"imageIndex":6},{"imageOffset":9250,"symbol":"+[SOConfigurationClient defaultClient]","symbolLocation":117,"imageIndex":5},{"imageOffset":9047,"symbol":"+[SOAuthorizationCore _canPerformAuthorizationWithURL:responseCode:callerBundleIdentifier:useInternalExtensions:]","symbolLocation":130,"imageIndex":5},{"imageOffset":6816,"symbol":"appSSO_willHandle","symbolLocation":64,"imageIndex":5},{"imageOffset":1997297,"imageIndex":7},{"imageOffset":1072750,"imageIndex":7},{"imageOffset":83777,"imageIndex":7},{"imageOffset":774468,"imageIndex":7},{"imageOffset":83536,"imageIndex":7},{"imageOffset":83182,"imageIndex":7},{"imageOffset":81639,"imageIndex":7},{"imageOffset":712960,"imageIndex":7},{"imageOffset":6139,"symbol":"_dispatch_call_block_and_release","symbolLocation":12,"imageIndex":6},{"imageOffset":10820,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":6},{"imageOffset":35524,"symbol":"_dispatch_lane_serial_drain","symbolLocation":694,"imageIndex":6},{"imageOffset":38375,"symbol":"_dispatch_lane_invoke","symbolLocation":417,"imageIndex":6},{"imageOffset":80599,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":762,"imageIndex":6},{"imageOffset":11491,"symbol":"_pthread_wqthread","symbolLocation":326,"imageIndex":8},{"imageOffset":7271,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":8}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703411154944,
    "size" : 237560,
    "uuid" : "7c3dcc95-9f42-3c7c-8796-476ff67b9cf7",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703410139136,
    "size" : 561152,
    "uuid" : "376f7cb7-6dd2-3e00-976f-77dd755bdb0d",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4376899584,
    "size" : 8454144,
    "uuid" : "f0d56d06-73a3-3bd2-b9e4-476d1e949683",
    "path" : "\/Library\/Developer\/CommandLineTools\/usr\/bin\/notarytool",
    "name" : "notarytool"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703408037888,
    "size" : 609392,
    "uuid" : "bb7a0970-8c62-3dce-a7a2-5cec9c501f11",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703408664576,
    "size" : 262129,
    "uuid" : "2637a572-5c6d-3b85-853e-98de25f58486",
    "path" : "\/usr\/lib\/system\/libxpc.dylib",
    "name" : "libxpc.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703620055040,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.AppSSOCore",
    "size" : 118776,
    "uuid" : "752dc251-f0da-3f84-91fe-bad15f0648ba",
    "path" : "\/System\/Library\/PrivateFrameworks\/AppSSOCore.framework\/Versions\/A\/AppSSOCore",
    "name" : "AppSSOCore",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703409836032,
    "size" : 290804,
    "uuid" : "6282e528-6a67-334b-accf-1f8fd89369bd",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703487619072,
    "CFBundleShortVersionString" : "1402.0.8",
    "CFBundleIdentifier" : "com.apple.CFNetwork",
    "size" : 3825664,
    "uuid" : "7fd3de97-f5c9-3169-ad7a-04fd106c51cc",
    "path" : "\/System\/Library\/Frameworks\/CFNetwork.framework\/Versions\/A\/CFNetwork",
    "name" : "CFNetwork",
    "CFBundleVersion" : "1402.0.8"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703411392512,
    "size" : 49144,
    "uuid" : "5920e36f-53ec-33f0-b675-8ae48b58418c",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703407431680,
  "size" : 21474836480,
  "uuid" : "ea7f9772-219e-3ece-a4d9-20aeee3bc80f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=422.2M resident=0K(0%) swapped_out_or_unallocated=422.2M(100%)\nWritable regions: Total=805.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=805.6M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           172.2M       18 \nMALLOC guard page                   24K        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.0M        2 \nStack                             8712K        2 \nVM_ALLOCATE                          8K        2 \n__CTF                               756        1 \n__DATA                            17.2M      333 \n__DATA_CONST                      14.6M      199 \n__DATA_DIRTY                       659K      111 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       184.4M        2 \n__OBJC_RO                         65.4M        1 \n__OBJC_RW                         1988K        2 \n__TEXT                           237.8M      354 \ndyld private memory                256K        1 \nmapped file                       29.3M        3 \nshared memory                      584K        7 \n===========                     =======  ======= \nTOTAL                              1.4G     1049 \nTOTAL, minus reserved VM space   789.2M     1049 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.NSURLSession-work"
  }
}
}
I
{"app_name":"notarytool","timestamp":"2024-07-23 10:54:10.00 +0200","app_version":"","slice_uuid":"6eea1537-f37d-3b59-aeff-89a144fb87ef","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"incident_id":"25DBEF93-9C25-4F68-99AE-DDADBB2FC9F6","name":"notarytool"}
{
  "uptime" : 1900000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacPro7,1",
  "coalitionID" : 273,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2024-07-23 10:54:10.6295 +0200",
  "incident" : "25DBEF93-9C25-4F68-99AE-DDADBB2FC9F6",
  "pid" : 96512,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-07-23 10:54:10.5677 +0200",
  "procStartAbsTime" : 1904185558920063,
  "procExitAbsTime" : 1904185620273392,
  "procName" : "notarytool",
  "procPath" : "\/Library\/Developer\/CommandLineTools\/usr\/bin\/notarytool",
  "parentProc" : "Python",
  "parentPid" : 96511,
  "coalitionName" : "homebrew.mxcl.httpd",
  "crashReporterKey" : "203C642C-2515-0625-6DA3-EE1A326D72B4",
  "responsiblePid" : 1133,
  "responsibleProc" : "httpd",
  "bridgeVersion" : {"build":"20P2059","train":"7.1"},
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_INSTRUCTION","******":"SIGILL"},
  "termination" : {"flags":0,"code":4,"namespace":"******","indicator":"Illegal instruction: 4","byProc":"exc handler","byPid":96512},
  "asiSignatures" : ["API Misuse"],
  "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" : 1,
  "threads" : [{"id":41318858,"queue":"com.apple.main-thread","frames":[{"imageOffset":5570,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":62980,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":0},{"imageOffset":23168,"symbol":"clock_get_time","symbolLocation":89,"imageIndex":0},{"imageOffset":68321,"symbol":"nanosleep","symbolLocation":91,"imageIndex":1},{"imageOffset":113210,"symbol":"sleep","symbolLocation":41,"imageIndex":1},{"imageOffset":125303,"symbol":"APITaskManager.authenticateRequest(_:credentials:extraHeaders:)","symbolLocation":2759,"imageIndex":2},{"imageOffset":133844,"symbol":"APITaskManager.postRequest(endpoint:payload:extraHeaders:shouldEndLoop:credentials:)","symbolLocation":1108,"imageIndex":2},{"imageOffset":496694,"symbol":"submitApp(fileURL:fileDigests:taskManager:notifications:extraHeaders:)","symbolLocation":1158,"imageIndex":2},{"imageOffset":282011,"symbol":"closure #1 in Submit.run()","symbolLocation":667,"imageIndex":2},{"imageOffset":378649,"symbol":"partial apply for closure #1 in Submit.run()","symbolLocation":25,"imageIndex":2},{"imageOffset":285977,"symbol":"specialized with<a>(_:block:)","symbolLocation":121,"imageIndex":2},{"imageOffset":281166,"symbol":"Submit.run()","symbolLocation":3566,"imageIndex":2},{"imageOffset":290825,"symbol":"protocol witness for ParsableCommand.run() in conformance Submit","symbolLocation":9,"imageIndex":2},{"imageOffset":7782,"symbol":"main","symbolLocation":102,"imageIndex":2},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":3}]},{"triggered":true,"id":41318859,"instructionState":{"instructionStream":{"bytes":[0,72,141,157,80,255,255,255,15,41,131,144,0,0,0,15,41,131,128,0,0,0,15,41,67,112,15,41,67,96,15,41,67,80,15,41,67,64,15,41,67,48,15,41,67,32,15,41,67,16,15,41,3,72,141,21,156,6,1,0,190,160,0,0,0,72,137,223,49,192,232,41,179,0,0,72,137,29,48,92,251,65,72,141,5,146,6,1,0,72,137,5,42,92,251,65,15,11,72,139,5,25,92,251,65,195,85,72,137,229,65,86,83,72,133,255,116,50,73,137,254,191,24,0,0,0,232,231,83,255,255,72,137,195,76,137,247,232,220,83,255,255,72,137,3,198,0,0,76,137,115,8,72,199,67,16,0,0,0,0,72,137,216,91,65,94,93,195,232,239,168,0,0,72,139,63,233,50,2,254,255,85,72,137,229,83,80,72,137,251,72,139],"offset":96}},"threadState":{"r13":{"value":140703947998551,"objc-selector":"xpcConnection"},"rax":{"value":140703408883713},"rflags":{"value":66050},"cpu":{"value":6},"r14":{"value":503},"rsi":{"value":105553133905984},"r8":{"value":123145513381776},"cr2":{"value":140704482001568},"rdx":{"value":18446744073709551600},"r10":{"value":0},"r9":{"value":140703408883712},"r15":{"value":105553119265024},"rbx":{"value":123145513382448},"trap":{"value":6},"err":{"value":0},"r11":{"value":17592379476544},"rip":{"value":140703408816502,"matchesCrashFrame":1},"rbp":{"value":123145513382624},"rsp":{"value":123145513382448},"r12":{"value":105553132896256},"rcx":{"value":2295325935767322781},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"queue":"com.apple.NSURLSession-work","frames":[{"imageOffset":151926,"symbol":"_xpc_api_misuse","symbolLocation":117,"imageIndex":4},{"imageOffset":52153,"symbol":"xpc_connection_set_target_uid","symbolLocation":188,"imageIndex":4},{"imageOffset":10578,"symbol":"-[SOServiceConnection _connectToService]","symbolLocation":533,"imageIndex":5},{"imageOffset":10007,"symbol":"-[SOServiceConnection initWithQueue:]","symbolLocation":102,"imageIndex":5},{"imageOffset":9778,"symbol":"-[SOClient init]","symbolLocation":122,"imageIndex":5},{"imageOffset":9469,"symbol":"-[SOConfigurationClient init]","symbolLocation":180,"imageIndex":5},{"imageOffset":9268,"symbol":"__38+[SOConfigurationClient defaultClient]_block_invoke","symbolLocation":16,"imageIndex":5},{"imageOffset":10820,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":6},{"imageOffset":15410,"symbol":"_dispatch_once_callout","symbolLocation":20,"imageIndex":6},{"imageOffset":9250,"symbol":"+[SOConfigurationClient defaultClient]","symbolLocation":117,"imageIndex":5},{"imageOffset":9047,"symbol":"+[SOAuthorizationCore _canPerformAuthorizationWithURL:responseCode:callerBundleIdentifier:useInternalExtensions:]","symbolLocation":130,"imageIndex":5},{"imageOffset":6816,"symbol":"appSSO_willHandle","symbolLocation":64,"imageIndex":5},{"imageOffset":1997297,"imageIndex":7},{"imageOffset":1072750,"imageIndex":7},{"imageOffset":83777,"imageIndex":7},{"imageOffset":774468,"imageIndex":7},{"imageOffset":83536,"imageIndex":7},{"imageOffset":83182,"imageIndex":7},{"imageOffset":81639,"imageIndex":7},{"imageOffset":712960,"imageIndex":7},{"imageOffset":6139,"symbol":"_dispatch_call_block_and_release","symbolLocation":12,"imageIndex":6},{"imageOffset":10820,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":6},{"imageOffset":35524,"symbol":"_dispatch_lane_serial_drain","symbolLocation":694,"imageIndex":6},{"imageOffset":38375,"symbol":"_dispatch_lane_invoke","symbolLocation":417,"imageIndex":6},{"imageOffset":80599,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":762,"imageIndex":6},{"imageOffset":11491,"symbol":"_pthread_wqthread","symbolLocation":326,"imageIndex":8},{"imageOffset":7271,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":8}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703411154944,
    "size" : 237560,
    "uuid" : "7c3dcc95-9f42-3c7c-8796-476ff67b9cf7",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703410139136,
    "size" : 561152,
    "uuid" : "376f7cb7-6dd2-3e00-976f-77dd755bdb0d",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4486819840,
    "size" : 8978432,
    "uuid" : "6eea1537-f37d-3b59-aeff-89a144fb87ef",
    "path" : "\/Library\/Developer\/CommandLineTools\/usr\/bin\/notarytool",
    "name" : "notarytool"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703408037888,
    "size" : 609392,
    "uuid" : "bb7a0970-8c62-3dce-a7a2-5cec9c501f11",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703408664576,
    "size" : 262129,
    "uuid" : "2637a572-5c6d-3b85-853e-98de25f58486",
    "path" : "\/usr\/lib\/system\/libxpc.dylib",
    "name" : "libxpc.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703620055040,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.AppSSOCore",
    "size" : 118776,
    "uuid" : "752dc251-f0da-3f84-91fe-bad15f0648ba",
    "path" : "\/System\/Library\/PrivateFrameworks\/AppSSOCore.framework\/Versions\/A\/AppSSOCore",
    "name" : "AppSSOCore",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703409836032,
    "size" : 290804,
    "uuid" : "6282e528-6a67-334b-accf-1f8fd89369bd",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703487619072,
    "CFBundleShortVersionString" : "1402.0.8",
    "CFBundleIdentifier" : "com.apple.CFNetwork",
    "size" : 3825664,
    "uuid" : "7fd3de97-f5c9-3169-ad7a-04fd106c51cc",
    "path" : "\/System\/Library\/Frameworks\/CFNetwork.framework\/Versions\/A\/CFNetwork",
    "name" : "CFNetwork",
    "CFBundleVersion" : "1402.0.8"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703411392512,
    "size" : 49144,
    "uuid" : "5920e36f-53ec-33f0-b675-8ae48b58418c",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703407431680,
  "size" : 21474836480,
  "uuid" : "ea7f9772-219e-3ece-a4d9-20aeee3bc80f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=440.5M resident=0K(0%) swapped_out_or_unallocated=440.5M(100%)\nWritable regions: Total=934.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=934.6M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           181.2M       20 \nMALLOC guard page                   24K        5 \nMALLOC_MEDIUM (reserved)         360.0M        3         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.0M        2 \nStack                             8712K        2 \nVM_ALLOCATE                          8K        2 \n__CTF                               756        1 \n__DATA                            17.2M      332 \n__DATA_CONST                      14.6M      198 \n__DATA_DIRTY                       659K      111 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       202.2M        2 \n__OBJC_RO                         65.4M        1 \n__OBJC_RW                         1988K        2 \n__TEXT                           238.3M      354 \ndyld private memory                256K        1 \nmapped file                       29.3M        3 \nshared memory                      584K        7 \n===========                     =======  ======= \nTOTAL                              1.5G     1050 \nTOTAL, minus reserved VM space   816.4M     1050 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.NSURLSession-work"
  }
}
}
</a>
have two Mac machines and running the same Python script as a CGI script in an Apache webserver (httpd) installed via Homebrew. The Python script calls the subprocess.run() method to call the notarytool via xcrun.

On one server the script runs as expected in the webserver environment and on the other machines it gets an exit code (-)4; SIGILL. On the machines where it fails, the notarytool command works from console, as expected. Additionally, it works if I run the script directly with Python in the console.

I launch the same command in a Perl script in the webserver and the same exit code / issue occured.

I have the same installed version and setup on both servers for

  • Homebrew
  • Apache Webserver (httpd)
  • Python version (3.9.6)
  • xcrun --version: xcrun version 61.
  • xcrun notarytool --version: 1.0.0 (27)
  • the Mac machines are identical, both are bought and set up at the same time

The see similar topics at:

notarytool should not crash. The crash reports you posted make it clear that this is the same crash as discussed in that other thread. Sadly, the developer in that thread didn’t post a bug number — I’m not even sure they filed a bug — so I can’t check on its status.

So, regardless of what else you do here, please file a bug against notarytool and post its bug number here.

As to what’s causing this crash, that’s not easy to explain. Consider:

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000

As you’re on Intel, this suggests that the code trapped. And the crashing thread backtrace confirms that:

Thread 1 Crashed:: Dispatch queue: com.apple.NSURLSession-work
0 libxpc.dylib _xpc_api_misuse + 117
1 libxpc.dylib xpc_connection_set_target_uid + 188
2 AppSSOCore -[SOServiceConnection _connectToService] + 533
3 AppSSOCore -[SOServiceConnection initWithQueue:] + 102
4 AppSSOCore -[SOClient init] + 122
5 AppSSOCore -[SOConfigurationClient init] + 180
6 AppSSOCore __38+[SOConfigurationClient defaultClient]_block_invoke + 16
7 libdispatch.dylib _dispatch_client_callout + 8
8 libdispatch.dylib _dispatch_once_callout + 20
9 AppSSOCore +[SOConfigurationClient defaultClient] + 117
10 AppSSOCore +[SOAuthorizationCore _canPerformAuthorizationWithURL:responseCode:callerBundleIdentif
11 AppSSOCore appSSO_willHandle + 64
12 CFNetwork 0x7ff81565f000 + 1997297
13 CFNetwork 0x7ff81565f000 + 1072750
14 CFNetwork 0x7ff81565f000 + 83777
15 CFNetwork 0x7ff81565f000 + 774468
16 CFNetwork 0x7ff81565f000 + 83536
17 CFNetwork 0x7ff81565f000 + 83182
18 CFNetwork 0x7ff81565f000 + 81639
19 CFNetwork 0x7ff81565f000 + 712960
20 libdispatch.dylib _dispatch_call_block_and_release + 12

It seems that:

  1. notarytool is using CFNetwork (frames 19 through 12).

  2. CFNetwork has decided go down the SSO path (frames 11 through 2).

  3. That’s trying to use XPC to talk a helper process.

  4. That’s triggering a trap.

This is clearly related to the context in which the code is running, but that doesn’t point to a clear reason why one machine fails and the other works.

ARe these machines managed, in the MDM sense?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi,

thank you for the details information. Based on another requirement, I upgraded MacOS and updated the "command line tools for xCode".

The issue is gone and cannot reproducible again. Unfortunately, I have another issue about automounting SMB shares.

The SMB issue seems like mentioned at https://discussions.apple.com/thread/255203652.

But no answer or hints were provided till now.

Do you need more information for looking into the SMB issue?

===

Update/ upgrade Infos:

MacOS upgrade from "13.1.0 Build 22C65" to "14.5.0 Build 23F79". The "CL tools for xCode" update to

% xcrun --version
xcrun version 68.
% xcrun --find notarytool
/Library/Developer/CommandLineTools/usr/bin/notarytool
% xcrun notarytool --version
unknown (0)

===

Thank you for checking and your assistance.

Notarytool crashes in Python running in an Apache Webserver
 
 
Q