View Issue Details

IDProjectCategoryView StatusLast Update
0002167XdebugInstallationpublic2023-07-04 15:58
ReporterJoseph_Leedy Assigned Toderick  
Status resolvedResolutionunable to reproduce 
PlatformARM64; Apple M2OSmacOSOS Version13.2.1
Product Version3.2.1 
Summary0002167: Xdebug 3.2.1 Crashes PHP 8.1 on Apple M2 Hardware

When I try to install Xdebug in PHP 8.1, after the install completes, I get a "Killed" error:

Build process completed successfully
Installing '/opt/homebrew/Cellar/php@8.1/8.1.17/pecl/20210902/'
[1] 34409 killed pecl install xdebug

When trying to run php -v with Xdebug enabled, I get the same error:

$ php -v
[1] 41614 killed php -v

Looking at the output in (see attached), I see this error:

EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))

Reinstalling PHP 8.1 (through Homebrew) and Xdebug 3.2.1 (through PECL) does not resolve this issue. Disabling Xdebug resolves error.

Steps To Reproduce
  1. Install PHP 8.1.7 through Homebrew on an Apple M2 MacBook
  2. Run pecl install xdebug
  3. Observe crash and error
Tagsapple m2, crash, php 8.1
Attached Files
Operating SystemmacOS 13.2.1
PHP Version8.1.10-8.1.19



2023-03-29 15:11

reporter   ~0006540

It's worth noting that this issue does not occur with PHP 8.2 installed identically on the same machine.


2023-04-28 15:54

reporter   ~0006554

This issue appears to be resolved in PHP 8.1.18.

$ php -v
PHP 8.1.18 (cli) (built: Apr 14 2023 06:28:40) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.18, Copyright (c) Zend Technologies
with Zend OPcache v8.1.18, Copyright (c), by Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans


2023-05-24 16:23

administrator   ~0006566

Xdebug does not exactly crash here, it's just a way how the Operating System also signals invalid signed code. As that is something happens on the OS, through Homebrew or something, there is not much I can do.

However, I think you have already resolved this on your side now?


2023-07-04 15:58

administrator   ~0006576

Can't reproduce this, and no feedback has been provided for a while.

Issue History

Date Modified Username Field Change
2023-03-29 15:06 Joseph_Leedy New Issue
2023-03-29 15:06 Joseph_Leedy Tag Attached: apple m2
2023-03-29 15:06 Joseph_Leedy Tag Attached: crash
2023-03-29 15:06 Joseph_Leedy Tag Attached: php 8.1
2023-03-29 15:06 Joseph_Leedy File Added: php-2023-03-29-095547.ips
2023-03-29 15:11 Joseph_Leedy Note Added: 0006540
2023-04-28 15:54 Joseph_Leedy Note Added: 0006554
2023-05-24 16:23 derick Assigned To => derick
2023-05-24 16:23 derick Status new => feedback
2023-05-24 16:23 derick Note Added: 0006566
2023-07-04 15:58 derick Status feedback => resolved
2023-07-04 15:58 derick Resolution open => unable to reproduce
2023-07-04 15:58 derick Note Added: 0006576