Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm | PHPUnit | Feature test | Xdebug | Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

I have used a feature test of PHPUnit. When my herd (I use Herd for local development) updated PHP - I received that strange exception when I launched the feature test:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

enter image description here

I expected that the feature unit test will works.

Stack with issue:

  • php8.1 (Xdebug - 3.3.1)
like image 230
ELWAHAB Avatar asked Oct 21 '25 05:10

ELWAHAB


2 Answers

After some searching - I have found that it looks like some issue with xdebug of the 3.3.1 version (I also had this version Xdebug after update PHP).

As I use herd, I have found a possibility to change the current version of my Xdebug to 3.2.2.

My solution:

Downgrade Xdebug version from 3.3.1 -> 3.2.2

Change xdebug version for herd: Here you can found how add the additional extension for herd: https://herd.laravel.com/docs/1/advanced-usage/additional-extensions#adding-extensions

In my case, I simply installed a new version pecl install xdebug-3.2.2

Extension location: On an M1/M2 Mac, the extension can be fount at /opt/homebrew/lib/php/pecl. On an Intel Mac, it will be at /usr/local/lib/php/pecl.

The whole path in my case: /usr/local/lib/php/pecl/20210902/xdebug.so

In the phpstorm I have changed the debugger extension path to a new one and it started works

Source where I have found information about issue with xdebug version: https://youtrack.jetbrains.com/issue/WI-68171/Process-finished-with-exit-code-139-interrupted-by-signal-11-SIGSEGV#focus=Comments-27-8664531.0-0

enter image description here

like image 106
ELWAHAB Avatar answered Oct 23 '25 19:10

ELWAHAB


I had same problem with php 8.3 and xdebug 3.3.1. Changing

XDEBUG_MODE=develop,debug,coverage

to

XDEBUG_MODE=debug,coverage

has solve that problem.

like image 27
Alexey Mashkarin Avatar answered Oct 23 '25 19:10

Alexey Mashkarin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!