python / cpython

The Python programming language
https://www.python.org
Other
62.15k stars 29.86k forks source link

zsh: segmentation fault python src/toolkit/app.py #121047

Closed asittiwari07 closed 2 months ago

asittiwari07 commented 2 months ago

Crash report

What happened?


Translated Report (Full Report Below)

Process: jamfRemoteAssistLauncher [62386] Path: /Library/Application Support/JAMF/*/jamfRemoteAssistLauncher Identifier: jamfRemoteAssistLauncher Version: ??? Code Type: ARM-64 (Native) Parent Process: jamfRemoteAssistConnector [58007] Responsible: jamfRemoteAssistConnector [58007] User ID: 0

Date/Time: 2024-06-26 06:56:09.9438 +0530 OS Version: macOS 14.5 (23F79) Report Version: 12 Anonymous UUID: 6049761D-91BD-5C32-E7AB-D91A6A071340

Sleep/Wake UUID: D4443378-E4AF-48DB-A8F9-18BCD0203A7C

Time Awake Since Boot: 54000 seconds

System Integrity Protection: enabled

Crashed Thread: 2

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

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: jamfRemoteAssistLauncher [62386]

Application Specific Information: abort() called

Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x18f0319ec __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x18f06f55c _pthread_cond_wait + 1228 2 jamfRemoteAssistLauncher 0x1046d8cbc 0x104660000 + 494780 3 jamfRemoteAssistLauncher 0x104864194 0x104660000 + 2113940 4 dyld 0x18ece60e0 start + 2360

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

Thread 2 Crashed: 0 libsystem_kernel.dylib 0x18f036a60 __pthread_kill + 8 1 libsystem_pthread.dylib 0x18f06ec20 pthread_kill + 288 2 libsystem_c.dylib 0x18ef7ba30 abort + 180 3 libsystem_malloc.dylib 0x18ee8bdc4 malloc_vreport + 896 4 libsystem_malloc.dylib 0x18ee8f430 malloc_report + 64 5 libsystem_malloc.dylib 0x18eea9494 find_zone_and_free + 528 6 jamfRemoteAssistLauncher 0x1048439a0 0x104660000 + 1980832 7 jamfRemoteAssistLauncher 0x10480f7cc 0x104660000 + 1767372 8 jamfRemoteAssistLauncher 0x1048bc0fc 0x104660000 + 2474236 9 jamfRemoteAssistLauncher 0x104896f80 0x104660000 + 2322304 10 jamfRemoteAssistLauncher 0x104897e20 0x104660000 + 2326048 11 libsystem_pthread.dylib 0x18f06ef94 _pthread_start + 136 12 libsystem_pthread.dylib 0x18f069d34 thread_start + 8

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

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

Thread 5: 0 libsystem_kernel.dylib 0x18f03218c __unlink + 8 1 libsystem_kernel.dylib 0x18f032168 unlink + 16 2 jamfRemoteAssistLauncher 0x1048cce24 0x104660000 + 2543140 3 jamfRemoteAssistLauncher 0x1048c2e60 0x104660000 + 2502240 4 jamfRemoteAssistLauncher 0x1048bd06c 0x104660000 + 2478188 5 jamfRemoteAssistLauncher 0x1048a16a4 0x104660000 + 2365092 6 jamfRemoteAssistLauncher 0x1048a0fb0 0x104660000 + 2363312 7 jamfRemoteAssistLauncher 0x10485b6c4 0x104660000 + 2078404 8 jamfRemoteAssistLauncher 0x104867dac 0x104660000 + 2129324 9 jamfRemoteAssistLauncher 0x104866a0c 0x104660000 + 2124300 10 jamfRemoteAssistLauncher 0x104879b5c 0x104660000 + 2202460 11 libsystem_pthread.dylib 0x18f06ef94 _pthread_start + 136 12 libsystem_pthread.dylib 0x18f069d34 thread_start + 8

Thread 6: 0 libsystem_kernel.dylib 0x18f02e6a4 mach_absolute_time + 80 1 libsystem_kernel.dylib 0x18f0300d8 __commpage_gettimeofday_internal + 44 2 libsystem_c.dylib 0x18ef0bdd4 gettimeofday + 56 3 jamfRemoteAssistLauncher 0x1046d8c28 0x104660000 + 494632 4 jamfRemoteAssistLauncher 0x1048bb414 0x104660000 + 2470932 5 jamfRemoteAssistLauncher 0x1048bae04 0x104660000 + 2469380 6 jamfRemoteAssistLauncher 0x1048ac4a0 0x104660000 + 2409632 7 jamfRemoteAssistLauncher 0x1046e97b4 0x104660000 + 563124 8 libsystem_pthread.dylib 0x18f06ef94 _pthread_start + 136 9 libsystem_pthread.dylib 0x18f069d34 thread_start + 8

Thread 7: 0 libsystem_kernel.dylib 0x18f032780 __recvfrom + 8 1 jamfRemoteAssistLauncher 0x10470b518 0x104660000 + 701720 2 jamfRemoteAssistLauncher 0x1048a29d0 0x104660000 + 2370000 3 jamfRemoteAssistLauncher 0x1046e97b4 0x104660000 + 563124 4 libsystem_pthread.dylib 0x18f06ef94 _pthread_start + 136 5 libsystem_pthread.dylib 0x18f069d34 thread_start + 8

Thread 8: 0 libsystem_pthread.dylib 0x18f069d20 start_wqthread + 0

Thread 9: 0 libsystem_pthread.dylib 0x18f069d20 start_wqthread + 0

Thread 10: 0 libsystem_pthread.dylib 0x18f069d20 start_wqthread + 0

Thread 11: 0 libsystem_pthread.dylib 0x18f069d20 start_wqthread + 0

Thread 12: 0 libsystem_kernel.dylib 0x18f03261c __select_nocancel + 8 1 libsystem_dnssd.dylib 0x19bcde640 deliver_request + 692 2 libsystem_dnssd.dylib 0x19bcdde3c DNSServiceCreateConnection + 108 3 libsystem_info.dylib 0x18f0ad298 _mdns_search_ex + 584 4 libsystem_info.dylib 0x18f0afc68 mdns_addrinfo + 360 5 libsystem_info.dylib 0x18f0afab0 search_addrinfo + 176 6 libsystem_info.dylib 0x18f0a8b64 si_addrinfo + 1312 7 libsystem_info.dylib 0x18f0a859c getaddrinfo + 168 8 jamfRemoteAssistLauncher 0x104809afc 0x104660000 + 1743612 9 jamfRemoteAssistLauncher 0x1048025e4 0x104660000 + 1713636 10 jamfRemoteAssistLauncher 0x10480d144 0x104660000 + 1757508 11 libsystem_pthread.dylib 0x18f06ef94 _pthread_start + 136 12 libsystem_pthread.dylib 0x18f069d34 thread_start + 8

Thread 2 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000073 x5: 0x000000000000002e x6: 0x0000000000000001 x7: 0x0000000000000000 x8: 0x02e0e53ee7f669a6 x9: 0x02e0e53f8c7419a6 x10: 0x000000000000000a x11: 0x0000000000000000 x12: 0x0000000000000036 x13: 0x0000000000000000 x14: 0x0000000107900000 x15: 0x000000000000000c x16: 0x0000000000000148 x17: 0x000000020125d928 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x000000016b827000 x21: 0x000000000000100b x22: 0x000000016b8270e0 x23: 0x000000016b826dd0 x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x000000016b79fcd0 x27: 0x000000016b827000 x28: 0x0000600000c84000 fp: 0x000000016b826720 lr: 0x000000018f06ec20 sp: 0x000000016b826700 pc: 0x000000018f036a60 cpsr: 0x40001000 far: 0x0000000000000000 esr: 0x56000080 Address size fault

Binary Images: 0x104660000 - 0x10495bfff jamfRemoteAssistLauncher () <2847cde0-2a27-35da-ab51-6c8271405858> /Library/Application Support/JAMF//jamfRemoteAssistLauncher 0x18f02d000 - 0x18f067ffb libsystem_kernel.dylib () <9b8b53f9-e2b6-36df-98e9-28d8fca732f2> /usr/lib/system/libsystem_kernel.dylib 0x18f068000 - 0x18f074fff libsystem_pthread.dylib () <386b0fc1-7873-3328-8e71-43269fd1b2c7> /usr/lib/system/libsystem_pthread.dylib 0x18ece0000 - 0x18ed68a17 dyld () <37bbc384-0755-31c7-a808-0ed49e44dd8e> /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? () <00000000-0000-0000-0000-000000000000> ??? 0x18ef05000 - 0x18ef83ff7 libsystem_c.dylib () <05b44e93-dffc-3bd8-90ab-fd97cb73f171> /usr/lib/system/libsystem_c.dylib 0x18ee7d000 - 0x18eeb9ff7 libsystem_malloc.dylib () /usr/lib/system/libsystem_malloc.dylib 0x19bcdd000 - 0x19bce5fff libsystem_dnssd.dylib () <5b174353-095d-346a-9f28-14a42de6b305> /usr/lib/system/libsystem_dnssd.dylib 0x18f0a3000 - 0x18f0cfffb libsystem_info.dylib () <927ab7d1-ea20-36ce-a394-e86f5af9375b> /usr/lib/system/libsystem_info.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=779.5M resident=0K(0%) swapped_out_or_unallocated=779.5M(100%) Writable regions: Total=1.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.9G(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 Kernel Alloc Once 32K 1 MALLOC 1.9G 45 MALLOC guard page 96K 6 STACK GUARD 56.2M 13 Stack 14.4M 14 VM_ALLOCATE 16K 1 AUTH 731K 171 AUTH_CONST 12.7M 312 DATA 3204K 300 DATA_CONST 15.8M 315 DATA_DIRTY 703K 106 __FONT_DATA 4K 1 LINKEDIT 533.2M 2 OBJC_RO 71.9M 1 __OBJC_RW 2199K 1 TEXT 246.3M 329 dyld private memory 272K 2 mapped file 31.4M 3 shared memory 48K 3 =========== ======= ======= TOTAL 2.8G 1627


Full Report

{"app_name":"jamfRemoteAssistLauncher","timestamp":"2024-06-26 06:56:10.00 +0530","app_version":"","slice_uuid":"2847cde0-2a27-35da-ab51-6c8271405858","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":"C87103C4-73F1-452E-B7F1-85E17A8DBFBE","name":"jamfRemoteAssistLauncher"} { "uptime" : 54000, "procRole" : "Unspecified", "version" : 2, "userID" : 0, "deployVersion" : 210, "modelCode" : "Mac15,7", "coalitionID" : 10118, "osVersion" : { "train" : "macOS 14.5", "build" : "23F79", "releaseType" : "User" }, "captureTime" : "2024-06-26 06:56:09.9438 +0530", "codeSigningMonitor" : 1, "incident" : "C87103C4-73F1-452E-B7F1-85E17A8DBFBE", "pid" : 62386, "translated" : false, "cpuType" : "ARM-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2024-06-26 06:39:55.3543 +0530", "procStartAbsTime" : 1313812222037, "procExitAbsTime" : 1313897680147, "procName" : "jamfRemoteAssistLauncher", "procPath" : "\/Library\/Application Support\/JAMF\/*\/jamfRemoteAssistLauncher", "parentProc" : "jamfRemoteAssistConnector", "parentPid" : 58007, "coalitionName" : "com.jamf.remoteassist.connector", "crashReporterKey" : "6049761D-91BD-5C32-E7AB-D91A6A071340", "responsiblePid" : 58007, "responsibleProc" : "jamfRemoteAssistConnector", "codeSigningID" : "com.jamf.remoteassist.launcher", "codeSigningTeamID" : "483DWKW443", "codeSigningFlags" : 570503953, "codeSigningValidationCategory" : 6, "codeSigningTrustLevel" : 4294967295, "instructionByteStream" : {"beforePC":"fyMD1f17v6n9AwCRW+D\/l78DAJH9e8Go\/w9f1sADX9YQKYDSARAA1A==","atPC":"AwEAVH8jA9X9e7+p\/QMAkVDg\/5e\/AwCR\/XvBqP8PX9bAA1\/WcAqA0g=="}, "sleepWakeUUID" : "D4443378-E4AF-48DB-A8F9-18BCD0203A7C", "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":"jamfRemoteAssistLauncher","byPid":62386}, "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" : 2, "threads" : [{"id":1104553,"threadState":{"x":[{"value":260},{"value":0},{"value":0},{"value":0},{"value":0},{"value":160},{"value":0},{"value":49998000},{"value":6098118808},{"value":0},{"value":4372193760},{"value":1099511628034},{"value":256},{"value":0},{"value":256},{"value":1099511628032},{"value":305},{"value":8609192160},{"value":0},{"value":4372193736},{"value":4372193800},{"value":8437533920,"symbolLocation":224,"symbol":"_main_thread"},{"value":49998000},{"value":0},{"value":0},{"value":8704},{"value":9216},{"value":4371913920},{"value":6098119904}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6694565212},"cpsr":{"value":1610616832},"fp":{"value":6098118928},"sp":{"value":6098118784},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694312428},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":18924,"symbol":"psynch_cvwait","symbolLocation":8,"imageIndex":1},{"imageOffset":30044,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":2},{"imageOffset":494780,"imageIndex":0},{"imageOffset":2113940,"imageIndex":0},{"imageOffset":24800,"symbol":"start","symbolLocation":2360,"imageIndex":3}]},{"id":1104560,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6099251200},{"value":4871},{"value":6098714624},{"value":0},{"value":409603},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6099251200},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"triggered":true,"id":1104567,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":115},{"value":46},{"value":1},{"value":0},{"value":207417641201461670},{"value":207417643961162150},{"value":10},{"value":0},{"value":54},{"value":0},{"value":4421844992},{"value":12},{"value":328},{"value":8609192232},{"value":0},{"value":6},{"value":6098677760},{"value":4107},{"value":6098677984},{"value":6098677200},{"value":0},{"value":0},{"value":6098123984},{"value":6098677760},{"value":105553129390080}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6694562848},"cpsr":{"value":1073745920},"fp":{"value":6098675488},"sp":{"value":6098675456},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694333024,"matchesCrashFrame":1},"far":{"value":0}},"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":5},{"imageOffset":60868,"symbol":"malloc_vreport","symbolLocation":896,"imageIndex":6},{"imageOffset":74800,"symbol":"malloc_report","symbolLocation":64,"imageIndex":6},{"imageOffset":181396,"symbol":"find_zone_and_free","symbolLocation":528,"imageIndex":6},{"imageOffset":1980832,"imageIndex":0},{"imageOffset":1767372,"imageIndex":0},{"imageOffset":2474236,"imageIndex":0},{"imageOffset":2322304,"imageIndex":0},{"imageOffset":2326048,"imageIndex":0},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":2},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":2}]},{"id":1104580,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6101544960},{"value":9475},{"value":6101008384},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6101544960},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"id":1104581,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6102118400},{"value":5387},{"value":6101581824},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6102118400},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"id":1104594,"frames":[{"imageOffset":20876,"symbol":"unlink","symbolLocation":8,"imageIndex":1},{"imageOffset":20840,"symbol":"unlink","symbolLocation":16,"imageIndex":1},{"imageOffset":2543140,"imageIndex":0},{"imageOffset":2502240,"imageIndex":0},{"imageOffset":2478188,"imageIndex":0},{"imageOffset":2365092,"imageIndex":0},{"imageOffset":2363312,"imageIndex":0},{"imageOffset":2078404,"imageIndex":0},{"imageOffset":2129324,"imageIndex":0},{"imageOffset":2124300,"imageIndex":0},{"imageOffset":2202460,"imageIndex":0},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":2},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":2}],"threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":0},{"value":400},{"value":16},{"value":105553148363152},{"value":480},{"value":4294967168},{"value":105553148363152},{"value":123029596143616},{"value":80},{"value":105553182943096},{"value":2095104},{"value":2043},{"value":2273716230},{"value":10},{"value":8609177280},{"value":0},{"value":0},{"value":0},{"value":105553182998608},{"value":6100394568},{"value":6100395304},{"value":6100395328},{"value":4571843072},{"value":6100394928},{"value":0},{"value":4372193280}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6694314344},"cpsr":{"value":2684358656},"fp":{"value":6100394176},"sp":{"value":6100394176},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694314380},"far":{"value":0}}},{"id":1104611,"frames":[{"imageOffset":5796,"symbol":"mach_absolute_time","symbolLocation":80,"imageIndex":1},{"imageOffset":12504,"symbol":"commpage_gettimeofday_internal","symbolLocation":44,"imageIndex":1},{"imageOffset":28116,"symbol":"gettimeofday","symbolLocation":56,"imageIndex":5},{"imageOffset":494632,"imageIndex":0},{"imageOffset":2470932,"imageIndex":0},{"imageOffset":2469380,"imageIndex":0},{"imageOffset":2409632,"imageIndex":0},{"imageOffset":563124,"imageIndex":0},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":2},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":2}],"threadState":{"x":[{"value":6100970864},{"value":18446735353351961063},{"value":2},{"value":68719460488},{"value":38482906981632},{"value":9216},{"value":0},{"value":99999000},{"value":0},{"value":1099511628034},{"value":1099511628032},{"value":1099511628034},{"value":256},{"value":1099511628032},{"value":512},{"value":0},{"value":6694305956,"symbolLocation":0,"symbol":"commpage_gettimeofday"},{"value":8609191944},{"value":0},{"value":0},{"value":6100970864},{"value":1313897669520},{"value":68719460640},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6694306008},"cpsr":{"value":1610616832},"fp":{"value":6100970752},"sp":{"value":6100970720},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694299300},"far":{"value":0}}},{"id":1104612,"frames":[{"imageOffset":22400,"symbol":"__recvfrom","symbolLocation":8,"imageIndex":1},{"imageOffset":701720,"imageIndex":0},{"imageOffset":2370000,"imageIndex":0},{"imageOffset":563124,"imageIndex":0},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":2},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":2}],"threadState":{"x":[{"value":4},{"value":0},{"value":4},{"value":0},{"value":0},{"value":0},{"value":0},{"value":416},{"value":0},{"value":2},{"value":0},{"value":2},{"value":0},{"value":0},{"value":2403999765},{"value":21},{"value":29},{"value":8609192256},{"value":0},{"value":105553170383856},{"value":4},{"value":0},{"value":6102691136},{"value":4},{"value":6102691280},{"value":6102691248},{"value":6102691448},{"value":105553136812672},{"value":12885000192}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4369462552},"cpsr":{"value":536875008},"fp":{"value":6102691024},"sp":{"value":6102690944},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694315904},"far":{"value":0}}},{"id":1104617,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6103265280},{"value":13575},{"value":6102728704},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6103265280},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"id":1104850,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6103838720},{"value":16391},{"value":6103302144},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6103838720},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"id":1104851,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6104412160},{"value":14087},{"value":6103875584},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6104412160},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"id":1104852,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":2}],"threadState":{"x":[{"value":6104985600},{"value":0},{"value":6104449024},{"value":0},{"value":278532},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6104985600},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":6694542624},"far":{"value":0}}},{"id":1104853,"frames":[{"imageOffset":22044,"symbol":"select_nocancel","symbolLocation":8,"imageIndex":1},{"imageOffset":5696,"symbol":"deliver_request","symbolLocation":692,"imageIndex":7},{"imageOffset":3644,"symbol":"DNSServiceCreateConnection","symbolLocation":108,"imageIndex":7},{"imageOffset":41624,"symbol":"_mdns_search_ex","symbolLocation":584,"imageIndex":8},{"imageOffset":52328,"symbol":"mdns_addrinfo","symbolLocation":360,"imageIndex":8},{"imageOffset":51888,"symbol":"search_addrinfo","symbolLocation":176,"imageIndex":8},{"imageOffset":23396,"symbol":"si_addrinfo","symbolLocation":1312,"imageIndex":8},{"imageOffset":21916,"symbol":"getaddrinfo","symbolLocation":168,"imageIndex":8},{"imageOffset":1743612,"imageIndex":0},{"imageOffset":1713636,"imageIndex":0},{"imageOffset":1757508,"imageIndex":0},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":2},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":2}],"threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":0},{"value":6105557088},{"value":0},{"value":105553181037344},{"value":6105555950},{"value":60},{"value":134217728},{"value":0},{"value":32},{"value":105553182945780},{"value":2095104},{"value":2043},{"value":3664449690},{"value":407},{"value":8609193960},{"value":0},{"value":105553181037344},{"value":27},{"value":4294967295},{"value":6105557120},{"value":0},{"value":28},{"value":0},{"value":0},{"value":1719364197},{"value":26}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6908929600},"cpsr":{"value":2684358656},"fp":{"value":6105557344},"sp":{"value":6105557024},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6694315548},"far":{"value":0}}}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 4368760832, "size" : 3129344, "uuid" : "2847cde0-2a27-35da-ab51-6c8271405858", "path" : "\/Library\/Application Support\/JAMF\/*\/jamfRemoteAssistLauncher", "name" : "jamfRemoteAssistLauncher" }, { "source" : "P", "arch" : "arm64e", "base" : 6694293504, "size" : 241660, "uuid" : "9b8b53f9-e2b6-36df-98e9-28d8fca732f2", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6694535168, "size" : 53248, "uuid" : "386b0fc1-7873-3328-8e71-43269fd1b2c7", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6690832384, "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" }, { "source" : "P", "arch" : "arm64e", "base" : 6693081088, "size" : 520184, "uuid" : "05b44e93-dffc-3bd8-90ab-fd97cb73f171", "path" : "\/usr\/lib\/system\/libsystem_c.dylib", "name" : "libsystem_c.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6692524032, "size" : 249848, "uuid" : "c6337a38-2b5c-3805-95e8-cf1786e2f4e7", "path" : "\/usr\/lib\/system\/libsystem_malloc.dylib", "name" : "libsystem_malloc.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6908923904, "size" : 36864, "uuid" : "5b174353-095d-346a-9f28-14a42de6b305", "path" : "\/usr\/lib\/system\/libsystem_dnssd.dylib", "name" : "libsystem_dnssd.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6694776832, "size" : 184316, "uuid" : "927ab7d1-ea20-36ce-a394-e86f5af9375b", "path" : "\/usr\/lib\/system\/libsystem_info.dylib", "name" : "libsystem_info.dylib" } ], "sharedCache" : { "base" : 6690078720, "size" : 4220698624, "uuid" : "3406ad1b-2469-30eb-9863-5dce861e6dea" }, "vmSummary" : "ReadOnly portion of Libraries: Total=779.5M resident=0K(0%) swapped_out_or_unallocated=779.5M(100%)\nWritable regions: Total=1.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.9G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nKernel Alloc Once 32K 1 \nMALLOC 1.9G 45 \nMALLOC guard page 96K 6 \nSTACK GUARD 56.2M 13 \nStack 14.4M 14 \nVM_ALLOCATE 16K 1 \nAUTH 731K 171 \nAUTH_CONST 12.7M 312 \nDATA 3204K 300 \nDATA_CONST 15.8M 315 \nDATA_DIRTY 703K 106 \n__FONT_DATA 4K 1 \nLINKEDIT 533.2M 2 \nOBJC_RO 71.9M 1 \n__OBJC_RW 2199K 1 \nTEXT 246.3M 329 \ndyld private memory 272K 2 \nmapped file 31.4M 3 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 2.8G 1627 \n", "legacyInfo" : { "threadTriggered" : {

} }, "logWritingSignature" : "6e231672fdb79eec49b5ca9eecdbb34aacc4d3d5" }

CPython versions tested on:

3.10

Operating systems tested on:

macOS

Output from running 'python -VV' on the command line:

Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]

ronaldoussoren commented 2 months ago

I don't see a reference to Python in the crash report, why do you think this issue is related to Python?

picnixz commented 2 months ago

I don't see a reference to Python in the crash report

I think it's because of src/toolkit/app.py but I highly suspect that this is not an issue from the core library itself. Unless we know what src/toolkit/app.py does, I don't think we can help.

asittiwari07 commented 2 months ago

I am running a Python code in Mac M3 Sonoma 14.5. And it gives me Segmentation fault 11. Can you guide me what us leading this fault? The code app.py is running a pytorch_lightning code. I crashes the moment it starts.

picnixz commented 2 months ago

Without the source code, we cannot help you. It might be an issue with pytorch_lightning and thus, the issue should be reported on their side (or it might also be an issue with what is written in that code).

asittiwari07 commented 2 months ago

I have run the same code on Windows and it worked, but failed in MacOs.

picnixz commented 2 months ago

You are still not giving me the code. Without the content of src/toolkit/app.py, we cannot help you at all. We don't know what your code is supposed to do.

asittiwari07 commented 2 months ago

`import pandas as pd import concurrent.futures from statsmodel import StatsForecastModels import neuralmodel as nm

from neuralmodel import NeuralForecastModels

from utilsforecast.evaluation import evaluate from utilsforecast.losses import smape, mape, mse, rmse, mae, rmae, mase

date_mapping = { "MM/DD/YYYY": "%m-%d-%Y", "DD/MM/YYYY": "%d-%m-%Y", "DD-MM-YYYY": "%d-%m-%Y", "MM-DD-YYYY": "%m-%d-%Y", "YYYY/MM/DD": "%Y-%m-%d", }

def rank_forecast(pred, evaluate):

df_tmp_transform_ = evaluate__.reset_index().T.reset_index()
headers = df_tmp_transform_.iloc[0]
df_tmp_rank_ = pd.DataFrame(df_tmp_transform_.values[1:], columns=headers)
df_tmp_rank_.rename(columns={"unique_id": "models"}, inplace=True)
df_tmp_rank_ = df_tmp_rank_[df_tmp_rank_["models"] != "best_model"].reset_index(
    drop=True
)
df_int_ = pd.DataFrame()
for id_ in pred__["unique_id"].unique():
    df_tmp_rank_[id_] = df_tmp_rank_[id_].astype(float)
    df_tmp_ = df_tmp_rank_[["models", id_]].sort_values(by=id_)
    df_tmp_pred = pd.DataFrame()
    rank = 1
    for mdl_ in df_tmp_["models"]:
        df_tmp_pred = pred__[pred__["unique_id"] == id_].reset_index(drop=True)[
            ["unique_id", "ds"]
        ]
        df_tmp_pred["model"] = mdl_
        df_tmp_pred["forecast"] = pred__[mdl_]
        df_tmp_pred["rank"] = rank
        df_int_ = pd.concat([df_int_, df_tmp_pred], ignore_index=True)
        rank += 1

return df_int_

def evaluate_cross_validation(df, metric): error_metric = globals()[metric] models = df.drop(columns=["uniqueid", "ds", "cutoff", "y"]).columns.tolist() evals = [] for cutoff in df["cutoff"].unique(): eval = evaluate( df[df["cutoff"] == cutoff], metrics=[errormetric], models=models ) evals.append(eval) evaluated = pd.concat(evals) evaluated = evaluated.groupby("unique_id").mean(numeric_only=True)

evaluated.insert(0, "best_model", evaluated.idxmin(axis=1))
return evaluated

def train_statistical_model(df, model_type, seasonal_length, date_format, data_frequency, forecast_horizon, ignore_neg_fcsts, error_metric, eval): stats = StatsForecastModels( model_type=[model_type], seasonal_length=seasonal_length, freq=data_frequency, date_format=date_format, ) stats.fit(df) df_pred = stats.predict(horizon=forecast_horizon, ignore_neg_fcsts=ignore_neg_fcsts) df_crossval = stats.crossvalidation(error_metric=error_metric, ) #ignore_neg_fcsts=ignore_neg_fcsts)

if eval:
    df_performance = evaluate_cross_validation(df_crossval, error_metric)
    df_rank = rank_forecast(df_pred, df_performance)
else:
    df_performance, df_rank = pd.DataFrame(), pd.DataFrame()

return df_pred, df_performance, df_rank, df_crossval

def train_neural_model(df, model_type, date_format, data_frequency, forecast_horizon, ignore_neg_fcsts, error_metric, eval): neural = nm.NeuralForecastModels( model_type=[model_type], forecast_horizon=forecast_horizon, freq=data_frequency, date_format=date_format, MDL_SPEED_MAPPING=nm.MDL_SPEED_MAPPING, NEURAL_MDL=nm.NEURAL_MDL, MDL_PARAMETERS=nm.MDL_PARAMETERS, ENSEMBLE_MAPPING=nm.ENSEMBLE_MAPPING, ) neural.fit(df) df_pred = neural.predict(horizon=forecast_horizon, ignore_neg_fcsts=ignore_neg_fcsts) df_crossval = neural.crossvalidation( error_metric=error_metric, ignore_neg_fcsts=ignore_neg_fcsts )

if eval:
    df_performance = evaluate_cross_validation(df_crossval, error_metric)
    df_rank = rank_forecast(df_pred, df_performance)
else:
    df_performance, df_rank = pd.DataFrame(), pd.DataFrame()

return df_pred, df_performance, df_rank, df_crossval

def run_forecast( seasonal_length, data_frequency, error_metric, ignore_neg_fcsts, date_format, forecast_horizon, df, model_type, ):

# Define a helper function to train the models in parallel
def train_models(model_type, eval=True):
    if model_type == "Statistical":
        return train_statistical_model(df, model_type, seasonal_length, date_format, data_frequency, forecast_horizon, 
                                       ignore_neg_fcsts, error_metric, eval=eval)
    elif model_type == "Machine-Learning":
        return train_neural_model(df, model_type, date_format, data_frequency, forecast_horizon, ignore_neg_fcsts, 
                                  error_metric, eval=eval)

if model_type in ["Statistical & Machine-Learning", "Test"]:
    if model_type=="Test":
        type1 = "Test"
        type2 = "Test"
    else:
        type1 = "Statistical"
        type2 = "Machine-Learning"

    with concurrent.futures.ThreadPoolExecutor() as executor:
        future_s = executor.submit(train_statistical_model, df, type1, seasonal_length, date_format, data_frequency, forecast_horizon, ignore_neg_fcsts, error_metric, eval=False)
        future_n = executor.submit(train_neural_model, df, type2, date_format, data_frequency, forecast_horizon, ignore_neg_fcsts, error_metric, eval=False)

        df_pred_s, _, _, df_crossval_s = future_s.result()
        df_pred_n, _, _, df_crossval_n = future_n.result()

    df_pred = df_pred_s.merge(df_pred_n, on=["unique_id", "ds"], how="inner")
    df_crossval_s["y"] = df_crossval_s["y"].astype("Float32")
    df_crossval_n["y"] = df_crossval_n["y"].astype("float32")
    df_crossval = pd.merge(df_crossval_s, df_crossval_n, on=["unique_id", "ds", "cutoff", "y"], how="inner")
    ensemble_col_ = [
        col
        for col in df_pred.columns
        if (("ensemble" not in col) & ("ds" not in col) & ("unique_id" not in col))
    ]
    df_pred["Stats & ML ensemble"] = df_pred[ensemble_col_].mean(axis=1)
    df_performance = evaluate_cross_validation(df_crossval, error_metric)
    df_rank = rank_forecast(df_pred, df_performance)

    return df_pred, df_performance, df_rank, df_crossval
else:
    return train_models(model_type)

if name == "main": df = pd.read_csv('./src/data/FakeProjectDailyData__.csv')

df_pred, df_performance, df_rank, df_crossval = run_forecast(
    seasonal_length=12,
    data_frequency="D",
    error_metric="rmse",
    ignore_neg_fcsts=False,
    date_format="DD-MM-YYYY",
    forecast_horizon=13,
    df=df,
    model_type="Machine-Learning",
)

print(df_pred)

`

asittiwari07 commented 2 months ago

The problem happens when i run the neuralmodel, which is open source package called Nixtla which is a pytorch Lightning based Models like NHITS, RNN etc. The input data is like, Col 1 unique ID's, col2 is Dates and Col3 is values, The code runs fine in windows machine, but have segmentation fault in MacOs M3 Sonoma 14.5. For your reference attaching the nixtla link i used https://nixtlaverse.nixtla.io/neuralforecast/index.html. if you need some other code then please do let me know, i will be able to attach.

picnixz commented 2 months ago

Mmh, so it's something related to a third-party library (probably). I would suggest you open an issue on neuralmodel but you need to include the python traceback, not the system traceback. Like, if you run python src/toolkit/app.py, do you simply get a message like "Segmentation fault" or do you get more?

By the way, I see that there is some ThreadPoolExecutor being used, so before that I'd suggest you try to remove whatever parallelization code being used. I suspect that the issue is with this neuralmodel library or maybe with statsmodel (I don't know what is being implemented out there). Could you try to reproduce a crash with a smaller example and with that library? in addition, could we get the Python output (like, if there's an exception being thrown before the segmentation fault or something like that).

asittiwari07 commented 2 months ago

I have tried this without the ThreadPoolExecutor and it still does not work. I simply get "Segmentation fault" without anything else. The stats model run without any issue but the problem is only with neural model. I can also send you the neural model code if needed, Its simple code.

ambv commented 2 months ago

This is not an issue related to CPython. Please use StackOverflow or discuss.python.org to find help with third-party libraries.