From: "adam12 (Adam Daniels)" Date: 2021-11-03T21:52:39+00:00 Subject: [ruby-core:105922] [Ruby master Bug#18284] Macosx M1 Issue #18284 has been updated by adam12 (Adam Daniels). I'm not sure it's related, but a `pod` related error came up on the #ruby IRC channel today, and the user solved their problem by using this command: ``` sudo arch -x86_64 gem install ffi ``` Which they found here: https://stackoverflow.com/questions/65403551/pod-install-failed-on-macos-big-sur/65404796 I'm a little surprised that it solved their issue, and wonder if now they have a strange mix-arch setup, where the ruby binary is aarch64 and ffi is x86-64. Maybe this is also the case here? ---------------------------------------- Bug #18284: Macosx M1 https://bugs.ruby-lang.org/issues/18284#change-94464 * Author: docygrumpy (Bobby Brown) * Status: Open * Priority: Normal * ruby -v: ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- crash at pod update `{"app_name":"ruby","timestamp":"2021-11-02 10:17:47.00 +0100","app_version":"","slice_uuid":"72ddeba3-1e94-3bb4-a5f7-da590f21374c","bu ��� ild_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.0.1 (21A559)","inciden ��� t_id":"10454014-DFAB-4CF5-A3C1-790822B76C5B","name":"ruby"} 2 ��� { 3 ��� "uptime" : 280000, 4 ��� "procLaunch" : "2021-11-02 10:17:44.5910 +0100", 5 ��� "procRole" : "Unspecified", 6 ��� "version" : 2, 7 ��� "userID" : 501, 8 ��� "deployVersion" : 210, 9 ��� "modelCode" : "MacBookAir10,1", 10 ��� "procStartAbsTime" : 6910195517164, 11 ��� "coalitionID" : 1764, 12 ��� "osVersion" : { 13 ��� "train" : "macOS 12.0.1", 14 ��� "build" : "21A559", 15 ��� "releaseType" : "User" 16 ��� }, 17 ��� "captureTime" : "2021-11-02 10:17:46.5542 +0100", 18 ��� "incident" : "10454014-DFAB-4CF5-A3C1-790822B76C5B", 19 ��� "bug_type" : "309", 20 ��� "pid" : 26965, 21 ��� "procExitAbsTime" : 6910242533941, 22 ��� "translated" : false, 23 ��� "cpuType" : "ARM-64", 24 ��� "procName" : "ruby", 25 ��� "procPath" : "\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.6\/usr\/bin\/ruby", 26 ��� "parentProc" : "zsh", 27 ��� "parentPid" : 24325, 28 ��� "coalitionName" : "com.googlecode.iterm2", 29 ��� "crashReporterKey" : "5065057F-077F-73A6-713E-353F1E5438FC", 30 ��� "responsiblePid" : 2720, 31 ��� "wakeTime" : 181, 32 ��� "sleepWakeUUID" : "636A5354-D440-47CD-9C43-B93B15D7584F", 33 ��� "sip" : "enabled", 34 ��� "isCorpse" : 1, 35 ��� "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_INSTRUCTION","signal":"SIGABRT"}, 36 ��� "asi" : {"libsystem_c.dylib":["abort() called"]}, 37 ��� "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"ta ��� sk_for_pid":1},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, 38 ��� "faultingThread" : 0, 39 ��� "threads" : [{"triggered":true,"id":2465952,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":18446744072 ��� 784592546},{"value":18},{"value":10},{"value":5234657200},{"value":1394741123307154995},{"value":1394741119051115443},{"value":2},{"va ��� lue":4294967293},{"value":0},{"value":0},{"value":1},{"value":2},{"value":328},{"value":8504210736},{"value":0},{"value":6},{"value":4 ��� 344644992,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":0},{"value":5215265480},{"value":0},{"value":4294967295}, ��� {"value":5215260040},{"value":105553150687872},{"value":9290669808,"symbolLocation":0,"symbol":"rb_cSymbol"}],"flavor":"ARM_THREAD_STA ��� TE64","lr":{"value":6990172508},"cpsr":{"value":1073741824},"fp":{"value":6126041920},"sp":{"value":6126041888},"esr":{"value":1442840 ��� 704,"description":" Address size fault"},"pc":{"value":6989961656,"matchesCrashFrame":1},"far":{"value":4926659376}},"queue":"com.appl ��� e.main-thread","frames":[{"imageOffset":39352,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29020,"symbo ��� l":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":496404,"symbol":"abort","symbolLocation":164,"imageIndex":2},{"i ��� mageOffset":378688,"imageIndex":3},{"imageOffset":378816,"symbol":"rb_bug_context","symbolLocation":128,"imageIndex":3},{"imageOffset" ��� :1204488,"imageIndex":3},{"imageOffset":17636,"symbol":"_sigtramp","symbolLocation":56,"imageIndex":4},{"imageOffset":1597928,"imageIn ��� dex":3},{"imageOffset":1524220,"imageIndex":3},{"imageOffset":1583584,"symbol":"rb_vm_exec","symbolLocation":2016,"imageIndex":3},{"im ��� ageOffset":651928,"imageIndex":3},{"imageOffset":654280,"symbol":"rb_require_internal","symbolLocation":704,"imageIndex":3},{"imageOff ��� set":652208,"symbol":"rb_require_safe","symbolLocation":24,"imageIndex":3},{"imageOffset":1597928,"imageIndex":3},{"imageOffset":15242 ��� 20,"imageIndex":3},{"imageOffset":1583584,"symbol":"rb_vm_exec","symbolLocation":2016,"imageIndex":3},{"imageOffset":651928,"imageInde ��� x":3},{"imageOffset":654280,"symbol":"rb_require_internal","symbolLocation":704,"imageIndex":3},{"imageOffset":652208,"symbol":"rb_req ��� uire_safe","symbolLocation":24,"imageIndex":3},{"imageOffset":1597928,"imageIndex":3},{"imageOffset":1524220,"imageIndex":3},{"imageOf ��� fset":1583584,"symbol":"rb_vm_exec","symbolLocation":2016,"imageIndex":3},{"imageOffset":651928,"imageIndex":3},{"imageOffset":654280, ��� "symbol":"rb_require_internal","symbolLocation":704,"imageIndex":3},{"imageOffset":652208,"symbol":"rb_require_safe","symbolLocation": ��� 24,"imageIndex":3},{"imageOffset":1597928,"imageIndex":3},{"imageOffset":1524220,"imageIndex":3},{"imageOffset":1583584,"symbol":"rb_v ��� m_exec","symbolLocation":2016,"imageIndex":3},{"imageOffset":651928,"imageIndex":3},{"imageOffset":654280,"symbol":"rb_require_interna ��� l","symbolLocation":704,"imageIndex":3},{"imageOffset":652208,"symbol":"rb_require_safe","symbolLocation":24,"imageIndex":3},{"imageOf ��� fset":1597928,"imageIndex":3},{"imageOffset":1524220,"imageIndex":3},{"imageOffset":1583584,"symbol":"rb_vm_exec","symbolLocation":201 ��� 6,"imageIndex":3},{"imageOffset":1563976,"symbol":"rb_yield_1","symbolLocation":92,"imageIndex":3},{"imageOffset":18404,"symbol":"rb_a ��� ry_each","symbolLocation":92,"imageIndex":3},{"imageOffset":1597928,"imageIndex":3},{"imageOffset":1524052,"imageIndex":3},{"imageOffs ��� et":1583584,"symbol":"rb_vm_exec","symbolLocation":2016,"imageIndex":3},{"imageOffset":1563976,"symbol":"rb_yield_1","symbolLocation": ��� 92,"imageIndex":3},{"imageOffset":408592,"symbol":"rb_ensure","symbolLocation":188,"imageIndex":3},{"imageOffset":1597928,"imageIndex" ��� :3},{"imageOffset":1524052,"imageIndex":3},{"imageOffset":1583584,"symbol":"rb_vm_exec","symbolLocation":2016,"imageIndex":3},{"imageO ��� ffset":1563976,"symbol":"rb_yield_1","symbolLocation":92,"imageIndex":3},{"imageOffset":18404,"symbol":"rb_ary_each","symbolLocation": ��� 92,"imageIndex":3},{"imageOffset":1597928,"imageIndex":3},{"imageOffset":1524052,"imageIndex":3},{"imageOffset":1583584,"symbol":"rb_v ��� m_exec","symbolLocation":2016,"imageIndex":3},{"imageOffset":651928,"imageIndex":3},{"imageOffset":651192,"imageIndex":3},{"imageOffse ��� t":656004,"imageIndex":3},{"imageOffset":1597928,"imageIndex":3},{"imageOffset":1524220,"imageIndex":3},{"imageOffset":1583584,"symbol ��� ":"rb_vm_exec","symbolLocation":2016,"imageIndex":3},{"imageOffset":405948,"imageIndex":3},{"imageOffset":405676,"symbol":"ruby_run_no ��� de","symbolLocation":72,"imageIndex":3},{"imageOffset":13576,"symbol":"main","symbolLocation":92,"imageIndex":5},{"imageOffset":20724, ��� "symbol":"start","symbolLocation":520,"imageIndex":6}]},{"id":2465956,"frames":[{"imageOffset":39632,"symbol":"poll","symbolLocation": ��� 8,"imageIndex":0},{"imageOffset":1402380,"imageIndex":3},{"imageOffset":29932,"symbol":"_pthread_start","symbolLocation":148,"imageInd ��� ex":1},{"imageOffset":8912,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":2465966,"frames":[{"imageOffset":20672, symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":31412,"symbol":"_pthread_cond_wait","symbolLocation":1228, ��� "imageIndex":1},{"imageOffset":1399220,"imageIndex":3},{"imageOffset":1399524,"imageIndex":3},{"imageOffset":29932,"symbol":"_pthread_ ��� start","symbolLocation":148,"imageIndex":1},{"imageOffset":8912,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":246 ��� 5967,"name":"open3.rb:395","frames":[{"imageOffset":20672,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset" ��� :31412,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":1},{"imageOffset":1399220,"imageIndex":3},{"imageOffset":13995 ��� 24,"imageIndex":3},{"imageOffset":29932,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":8912,"symbol":"t ��� hread_start","symbolLocation":8,"imageIndex":1}]}], 40 ��� "usedImages" : [ 41 ��� { 42 ��� "source" : "P", 43 ��� "arch" : "arm64e", 44 ��� "base" : 6989922304, 45 ��� "size" : 221184, 46 ��� "uuid" : "c8524c02-b14f-30bd-a228-c44b4a448e68", 47 ��� "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", 48 ��� "name" : "libsystem_kernel.dylib" 49 ��� }, 50 ��� { 51 ��� "source" : "P", 52 ��� "arch" : "arm64e", 53 ��� "base" : 6990143488, 54 ��� "size" : 53248, 55 ��� "uuid" : "4786e19a-9312-38e6-80ef-9c1394548118", 56 ��� "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", 57 ��� "name" : "libsystem_pthread.dylib" 58 ��� }, 59 ��� { 60 ��� "source" : "P", 61 ��� "arch" : "arm64e", 62 ��� "base" : 6988877824, 63 ��� "size" : 528384, 64 ��� "uuid" : "002a39ae-6431-3b2e-85e7-c45fc2f95ad0", 65 ��� "path" : "\/usr\/lib\/system\/libsystem_c.dylib", 66 ��� "name" : "libsystem_c.dylib" 67 ��� }, 68 ��� { 69 ��� "source" : "P", 70 ��� "arch" : "arm64e", 71 ��� "base" : 8667635712, 72 ��� "size" : 2293760, 73 ��� "uuid" : "a4977407-c694-3616-97f3-c415293e3cfa", 74 ��� "path" : "\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.6\/usr\/lib\/libruby.2.6.dylib", 75 ��� "name" : "libruby.2.6.dylib" 76 ��� }, 77 ��� { 78 ��� "source" : "P", 79 ��� "arch" : "arm64e", 80 ��� "base" : 6990249984, 81 ��� "size" : 32768, 82 ��� "uuid" : "06ce953d-f22a-3724-b6d5-829b45179897", 83 ��� "path" : "\/usr\/lib\/system\/libsystem_platform.dylib", 84 ��� "name" : "libsystem_platform.dylib" 85 ��� }, 86 ��� { 87 ��� "source" : "P", 88 ��� "arch" : "arm64e", 89 ��� "base" : 4340826112, 90 ��� "size" : 16384, 91 ��� "uuid" : "72ddeba3-1e94-3bb4-a5f7-da590f21374c", 92 ��� "path" : "\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.6\/usr\/bin\/ruby", 93 ��� "name" : "ruby" 94 ��� }, 95 ��� { 96 ��� "source" : "P", 97 ��� "arch" : "arm64e", 98 ��� "base" : 4344184832, 99 ��� "size" : 393216, 100 ��� "uuid" : "86a8ba48-8bb4-3b30-9cda-051f73c74f44", 101 ��� "path" : "\/usr\/lib\/dyld", 102 ��� "name" : "dyld" 103 ��� } 104 ��� ], 105 ��� "sharedCache" : { 106 ��� "base" : 6986973184, 107 ��� "size" : 3072180224, 108 ��� "uuid" : "a6162d66-93e3-3251-93cc-b11f7c8c830e" 109 ��� }, 110 ��� "vmSummary" : "ReadOnly portion of Libraries: Total=656.8M resident=0K(0%) swapped_out_or_unallocated=656.8M(100%)\nWritable regions ��� : Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)\n\n VIRTUAL REG ��� ION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity T ��� racing 256K 1 \nKernel Alloc Once 32K 1 \nMALLOC 260.2M 106 ��� "base" : 6986973184, 107 ��� "size" : 3072180224, 108 ��� "uuid" : "a6162d66-93e3-3251-93cc-b11f7c8c830e" 109 ��� }, 110 ��� "vmSummary" : "ReadOnly portion of Libraries: Total=656.8M resident=0K(0%) swapped_out_or_unallocated=656.8M(100%)\nWritable regions ��� : Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)\n\n VIRTUAL REG ��� ION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity T ��� racing 256K 1 \nKernel Alloc Once 32K 1 \nMALLOC 260.2M ��� 34 \nMALLOC guard page 96K 5 \nMALLOC_MEDIUM (reserved) 480.0M 4 reserved VM addre ��� ss space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD ��� 56.1M 4 \nStack 10.6M 4 \nVM_ALLOCATE 1.0G ��� 2 \nVM_ALLOCATE (reserved) 12K 1 reserved VM address space (unallocated)\n__AUTH ��� 247K 60 \n__AUTH_CONST 2999K 141 \n__DATA 1338K 150 \n__DATA_CON ��� ST 4185K 166 \n__DATA_DIRTY 234K 52 \n__LINKEDIT 571.2M ��� 28 \n__OBJC_CONST 279K 31 \n__OBJC_RO 81.8M 1 \n__OBJC_RW ��� 3088K 1 \n__TEXT 85.6M 174 \n__UNICODE 588K 1 \ndyld ��� private memory 1024K 1 \nshared memory 32K 2 \n=========== ==== ��� === ======= \nTOTAL 2.9G 865 \nTOTAL, minus reserved VM space 2.1G 865 \n", 111 ��� "legacyInfo" : { 112 ��� "threadTriggered" : { 113 ��� "queue" : "com.apple.main-thread" 114 ��� } 115 ��� }, 116 ��� "trialInfo" : { 117 ��� "rollouts" : [ 118 ��� { 119 ��� "rolloutId" : "60356660bbe37970735c5624", 120 ��� "factorPackIds" : { 121 ��� 122 ��� }, 123 ��� "deploymentId" : 250000013 124 ��� }, 125 ��� { 126 ��� "rolloutId" : "601d9415f79519000ccd4b69", 127 ��� "factorPackIds" : { 128 ��� "SIRI_TEXT_TO_SPEECH" : "61704e71b6f6b8421579caf8" 129 ��� }, 130 ��� "deploymentId" : 240000293 131 ��� }, 132 ��� { 133 ��� "rolloutId" : "602ad4dac86151000cf27e46", 134 ��� "factorPackIds" : { 135 ��� "SIRI_DICTATION_ASSETS" : "6169fcb10fc7aa5ad211cc7b" 136 ��� }, 137 ��� "deploymentId" : 240000238 138 ��� }, 139 ��� { 140 ��� "rolloutId" : "60da5e84ab0ca017dace9abf", 141 ��� "factorPackIds" : { 142 ��� 143 ��� }, 144 ��� "deploymentId" : 240000008 145 ��� }, 146 ��� { 147 ��� "rolloutId" : "607844aa04477260f58a8077", 148 ��� "factorPackIds" : { 149 ��� "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a" 150 ��� }, 151 ��� "deploymentId" : 240000066 152 ��� }, 153 ��� { 154 ��� "rolloutId" : "5ffde50ce2aacd000d47a95f", 155 ��� "factorPackIds" : { 156 ��� 157 ��� }, 158 ��� "deploymentId" : 240000068 159 ��� }, 160 ��� { 161 ��� "rolloutId" : "5fc94383418129005b4e9ae0", 162 ��� "factorPackIds" : { 163 ��� 164 ��� }, 165 ��� "deploymentId" : 240000153 166 ��� } 167 ��� ], 168 ��� "experiments" : [ 169 ��� 170 ��� ] 171 ��� } 172 ��� } ` -- https://bugs.ruby-lang.org/ Unsubscribe: