Bug #81666 [Com]: Random error 1 ext/opcache/jit/zend_jit.lo when building on Mac ARM64
| From: | dc dot link at yahoo dot fr | Date: | Sat, 27 Nov 2021 21:47:08 +0000 |
| Subject: | Bug #81666 [Com]: Random error 1 ext/opcache/jit/zend_jit.lo when building on Mac ARM64 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-238011@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81666&edit=1
ID: 81666
Comment by: dc dot link at yahoo dot fr
Reported by: ruudk at mphuis dot com
Summary: Random error 1 ext/opcache/jit/zend_jit.lo when
building on Mac ARM64
Status: Open
Type: Bug
Package: Compile Failure
Operating System: macOS Monterey (12)
PHP Version: 8.1.0
Block user comment: N
Private report: N
New Comment:
Does it happen also with other compilers than the Xcode's one ? gcc or clang from homebrew for
ex.
Previous Comments:
------------------------------------------------------------------------
[2021-11-27 13:55:41] contact at shivammathur dot com
This crash randomly happens while Compiling PHP-8.1 opcache on macOS arm64 on both Big Sur and
Monterey.
Crash Report
Process: clang [99845]
Path:
/Applications/Xcode_13.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Identifier: clang
Version: 13.0.0 (1300.0.29)
Code Type: ARM-64 (Native)
Parent Process: clang [99844]
Responsible: Terminal [1141]
User ID: 501
Date/Time: 2021-11-27 04:43:10.620 -0800
OS Version: macOS 11.6 (20G165)
Report Version: 12
Anonymous UUID: 356B8802-1477-1905-8226-D014EE69A76E
Time Awake Since Boot: 2700000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xe000000000000010 -> 0x0000000000000010 (possible
pointer authentication failure)
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [99845]
VM Regions Near 0x10:
-->
__TEXT 100868000-104328000 [ 58.8M] r-x/r-x SM=COW
/Applications/Xcode_13.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Application Specific Information:
dyld2 mode
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 clang 0x0000000100d93b5c (anonymous
namespace)::CodeGenPrepare::tryToPromoteExts((anonymous namespace)::TypePromotionTransaction&,
llvm::SmallVectorImpl<llvm::Instruction*> const&,
llvm::SmallVectorImpl<llvm::Instruction*>&, unsigned int) + 172
1 clang 0x0000000100d8c9bc (anonymous
namespace)::CodeGenPrepare::optimizeInst(llvm::Instruction*, bool&) + 17484
2 clang 0x0000000100d8c9bc (anonymous
namespace)::CodeGenPrepare::optimizeInst(llvm::Instruction*, bool&) + 17484
3 clang 0x0000000100d82d68 (anonymous
namespace)::CodeGenPrepare::runOnFunction(llvm::Function&) + 5356
4 clang 0x0000000101018690
llvm::FPPassManager::runOnFunction(llvm::Function&) + 460
5 clang 0x000000010101d0e4
llvm::FPPassManager::runOnModule(llvm::Module&) + 52
6 clang 0x0000000101018ec0
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 552
7 clang 0x0000000101563404
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >) + 6728
8 clang 0x00000001016cbcec
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 604
9 clang 0x00000001020c5860 clang::ParseAST(clang::Sema&, bool, bool)
+ 348
10 clang 0x00000001018246d0 clang::FrontendAction::Execute() + 60
11 clang 0x00000001017da020
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1300
12 clang 0x000000010186cab4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1212
13 clang 0x000000010086e960 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 1424
14 clang 0x000000010086d568 ExecuteCC1Tool(llvm::SmallVectorImpl<char
const*>&) + 692
15 clang 0x000000010086d2ac driver_main(int, char const**) + 4056
16 clang 0x000000010086c2b4 main + 108
17 libdyld.dylib 0x000000018abb5430 start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000118b91fd0 x1: 0x000000016f592d08 x2: 0x000000016f592c80 x3:
0x000000016f592cb8
x4: 0x0000000000000000 x5: 0x000000010cf70880 x6: 0x0000000000000000 x7:
0x00000001186e0f00
x8: 0xe000000000000000 x9: 0x000000016f592c90 x10: 0x0000000118b92150 x11:
0x0000000118b91fd0
x12: 0x0000000000000000 x13: 0xfffffffffffff000 x14: 0x0000000000000002 x15:
0x0000000118b921e0
x16: 0x0000000118b92278 x17: 0x0000000000000098 x18: 0x0000000000000000 x19:
0x000000010ea72330
x20: 0x000000016f592d08 x21: 0x000000016f592c98 x22: 0x0000000118b92128 x23:
0x000000016f592aa8
x24: 0x000000016f592c90 x25: 0x000000016f592dc8 x26: 0x000000010ea72330 x27:
0x000000016f592bc0
x28: 0x0000000118b9209c fp: 0x000000016f592b30 lr: 0x0000000100d8c9bc
sp: 0x000000016f592a00 pc: 0x0000000100d93b5c cpsr: 0x60000000
far: 0xe000000000000010 esr: 0x92000006
Binary Images:
0x100868000 - 0x104327fff +clang (13.0.0 - 1300.0.29)
<EED6AF36-6DD3-34BF-BF11-1376B4FA633D>
/Applications/Xcode_13.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
0x10615c000 - 0x1061dbfff dyld (852.2) <38657979-1ABE-3C9A-BF64-EF3B746216AB>
/usr/lib/dyld
0x18a8f2000 - 0x18a8f3fff libsystem_blocks.dylib (79)
<BA713F79-1620-38B2-8717-79849B8E897E> /usr/lib/system/libsystem_blocks.dylib
0x18a8f4000 - 0x18a92bfff libxpc.dylib (2038.120.1)
<0E990C5D-C4F7-304A-9714-4409647CC2EF> /usr/lib/system/libxpc.dylib
0x18a92c000 - 0x18a943fff libsystem_trace.dylib (1277.120.1)
<7A6B4800-8D94-3091-AC78-2D6B97A9B496> /usr/lib/system/libsystem_trace.dylib
0x18a944000 - 0x18a9b7fff libcorecrypto.dylib (1000.140.4)
<FAF9B49D-2583-34EF-850B-047F050ED996> /usr/lib/system/libcorecrypto.dylib
0x18a9b8000 - 0x18a9e3fff libsystem_malloc.dylib (317.140.5)
<A454F3F2-7BC4-3808-A60F-F5F4BC55577F> /usr/lib/system/libsystem_malloc.dylib
0x18a9e4000 - 0x18aa28fff libdispatch.dylib (1271.120.2)
<4EDD5F72-2296-3891-B2A1-6741DB6C05C9> /usr/lib/system/libdispatch.dylib
0x18aa29000 - 0x18aa62fff libobjc.A.dylib (824)
<252C93CC-2D39-3C15-87F6-1336658B2F49> /usr/lib/libobjc.A.dylib
0x18aa63000 - 0x18aa65fff libsystem_featureflags.dylib (28.60.1)
<61A79E0B-1836-376D-AC24-171B40A9FAE7> /usr/lib/system/libsystem_featureflags.dylib
0x18aa66000 - 0x18aae7fff libsystem_c.dylib (1439.141.1)
<9B3C0AD0-1E0B-39D1-BE25-B97F8EA7E623> /usr/lib/system/libsystem_c.dylib
0x18aae8000 - 0x18ab43fff libc++.1.dylib (905.6)
<BED05B96-CCAE-365A-B3F5-F8D72F5E77E1> /usr/lib/libc++.1.dylib
0x18ab44000 - 0x18ab5bfff libc++abi.dylib (905.6)
<3C5176E2-CE48-312B-97F6-23D4E7AFA43F> /usr/lib/libc++abi.dylib
0x18ab5c000 - 0x18ab8ffff libsystem_kernel.dylib (7195.141.6)
<FA7E835C-CB30-3D98-9331-30CE6584423D> /usr/lib/system/libsystem_kernel.dylib
0x18ab90000 - 0x18ab9cfff libsystem_pthread.dylib (454.120.2)
<BDC1C5DA-9499-3580-9588-2928DE2440DD> /usr/lib/system/libsystem_pthread.dylib
0x18ab9d000 - 0x18abdefff libdyld.dylib (852.2)
<BE0B539A-2EDF-3A99-9632-731C5928BBAC> /usr/lib/system/libdyld.dylib
0x18abdf000 - 0x18abe5fff libsystem_platform.dylib (254.80.2)
<2CC11FAD-1E31-3533-B1D8-9CDDF5DFE595> /usr/lib/system/libsystem_platform.dylib
0x18abe6000 - 0x18ac11fff libsystem_info.dylib (542.40.3)
<3B5B9F97-ECFB-3F6E-9B85-D8C62A8B3205> /usr/lib/system/libsystem_info.dylib
0x18cfa7000 - 0x18cfb1fff libsystem_darwin.dylib (1439.141.1)
<9BF54A49-874D-3D91-B319-6B2F676FE42D> /usr/lib/system/libsystem_darwin.dylib
0x18d3ea000 - 0x18d3f5fff libsystem_notify.dylib (279.40.4)
<FA85C044-99A5-352D-B7AD-45FB31B295FF> /usr/lib/system/libsystem_notify.dylib
0x18f3c9000 - 0x18f3d8fff libsystem_networkextension.dylib (1295.140.3)
<0FFACDE5-D546-306D-B9FA-06EC8FCAEEF9> /usr/lib/system/libsystem_networkextension.dylib
0x18f42e000 - 0x18f445fff libsystem_asl.dylib (385)
<7F462B8A-541F-3195-9BAE-CDEDFA3BA8A4> /usr/lib/system/libsystem_asl.dylib
0x19099f000 - 0x1909a6fff libsystem_symptoms.dylib (1431.140.1)
<0B4FC817-CC87-31F2-872B-BD505D29F5EE> /usr/lib/system/libsystem_symptoms.dylib
0x1927fb000 - 0x19280cfff libsystem_containermanager.dylib (318.100.4)
<FCE2D8EA-A9D8-3A5D-A908-3E9C0AFFB941> /usr/lib/system/libsystem_containermanager.dylib
0x193479000 - 0x19347dfff libsystem_configuration.dylib (1109.140.1)
<9BC511C4-6613-3F1D-8592-7D3971B24921> /usr/lib/system/libsystem_configuration.dylib
0x19347e000 - 0x193482fff libsystem_sandbox.dylib (1441.141.4)
<CABF63A0-DDAF-3A54-8447-1256DFFD2907> /usr/lib/system/libsystem_sandbox.dylib
0x193e3f000 - 0x193e41fff libquarantine.dylib (119.40.2)
<DE9BFFD7-62ED-38ED-BF58-388F192BE6FC> /usr/lib/system/libquarantine.dylib
0x1943a2000 - 0x1943a6fff libsystem_coreservices.dylib (127.1)
<F107780A-EFAD-3DC8-A62F-825DD954128E> /usr/lib/system/libsystem_coreservices.dylib
0x19458c000 - 0x19459dfff libz.1.dylib (76)
<4838F5D2-C9BB-366A-9745-209A80BCC426> /usr/lib/libz.1.dylib
0x19459e000 - 0x1945cbfff libsystem_m.dylib (3186.100.3)
<092A6565-3BE3-3EEF-844E-B846793A4115> /usr/lib/system/libsystem_m.dylib
0x1945cd000 - 0x1945d2fff libmacho.dylib (980)
<F6CBC87D-DC83-3E5F-A7C0-B0115E7D1BC1> /usr/lib/system/libmacho.dylib
0x1945eb000 - 0x1945f8fff libcommonCrypto.dylib (60178.120.3)
<146E6A52-3060-32A1-9119-C3D6F8B5C57B> /usr/lib/system/libcommonCrypto.dylib
0x1945f9000 - 0x194603fff libunwind.dylib (201)
<2A01EF92-F92D-35F7-B638-8CBC6896DCAA> /usr/lib/system/libunwind.dylib
0x194604000 - 0x19460bfff liboah.dylib (203.58)
<6802DEC1-9ED5-3667-BFE0-3BDDE8BB40E1> /usr/lib/liboah.dylib
0x19460c000 - 0x194614fff libcopyfile.dylib (173.40.2)
<8477DD43-56AA-3422-BF23-4ADC7B98462F> /usr/lib/system/libcopyfile.dylib
0x194615000 - 0x194618fff libcompiler_rt.dylib (102.2)
<50E8F23E-3E63-31BF-BFC3-EE75D281B151> /usr/lib/system/libcompiler_rt.dylib
0x194619000 - 0x19461bfff libsystem_collections.dylib (1439.141.1)
<EA89016C-2C72-3531-84D9-2A696F2DAC85> /usr/lib/system/libsystem_collections.dylib
0x19461c000 - 0x19461efff libsystem_secinit.dylib (87.60.1)
<836B23E3-DF08-31C8-98AD-4A9B12A4B404> /usr/lib/system/libsystem_secinit.dylib
0x19461f000 - 0x194621fff libremovefile.dylib (49.120.1)
<687A6E36-0460-30BC-A675-7F83059AE2D9> /usr/lib/system/libremovefile.dylib
0x194622000 - 0x194622fff libkeymgr.dylib (31)
<C5D64EE9-AB76-3D4C-BC4F-2BE8415DC21A> /usr/lib/system/libkeymgr.dylib
0x194623000 - 0x19462bfff libsystem_dnssd.dylib (1310.140.1)
<DEE0783F-DDC9-35A6-9F6E-6B8FE94FBF0A> /usr/lib/system/libsystem_dnssd.dylib
0x19462c000 - 0x194631fff libcache.dylib (83)
<2EA812B3-0565-35FA-BF54-DF98EF3DB5DE> /usr/lib/system/libcache.dylib
0x194632000 - 0x194633fff libSystem.B.dylib (1292.120.1)
<1E75FCDF-2357-30FE-AAAD-5290BA722464> /usr/lib/libSystem.B.dylib
0x197a51000 - 0x197a51fff liblaunch.dylib (2038.120.1)
<AA4E8477-1B82-357E-8275-FFED1F957AF9> /usr/lib/system/liblaunch.dylib
0x199f05000 - 0x199f05fff libsystem_product_info_filter.dylib (8.40.1)
<14136F56-3690-3346-90A0-31FC34DF3E1B> /usr/lib/system/libsystem_product_info_filter.dylib
0x1aa625000 - 0x1aa655fff libncurses.5.4.dylib (57)
<0300C82B-7239-32FD-8A28-45A25D89EAAC> /usr/lib/libncurses.5.4.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=577.7M resident=0K(0%) swapped_out_or_unallocated=577.7M(100%)
Writable regions: Total=1.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%)
unallocated=1.3G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 32K 1
MALLOC 402.2M 164
MALLOC guard page 96K 5
MALLOC_MEDIUM (reserved) 864.0M 8 reserved VM address space (unallocated)
STACK GUARD 16K 1
Stack 64.0M 1
VM_ALLOCATE 1.0G 1
__AUTH 45K 12
__AUTH_CONST 76K 40
__DATA 789K 39
__DATA_CONST 4446K 40
__DATA_DIRTY 73K 21
__LINKEDIT 514.2M 4
__OBJC_CONST 10K 5
__OBJC_RO 75.1M 1
__OBJC_RW 2576K 1
__TEXT 63.6M 46
mapped file 9232K 32
shared memory 16K 1
=========== ======= =======
TOTAL 3.0G 423
TOTAL, minus reserved VM space 2.1G 423
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=81666
--
Edit this bug report at https://bugs.php.net/bug.php?id=81666&edit=1