View Issue Details

IDProjectCategoryView StatusLast Update
0001636XdebugUsage problems (Wrong Results)public2019-02-23 12:53
ReporterchrisminettAssigned Toderick 
Status resolvedResolutionno change required 
PlatformOSmacOSOS Version10.14.3
Product Version2.7.0RC2 
Target VersionFixed in Version 
Summary0001636: Segmentation fault for phpunit on php 7.3.2
DescriptionSorry this is going to be an incomplete report.

I'm getting a seg fault when attempting to run PHPUnit using PHP 7.3.2 with Xdebug 2.7.0RC2 however it only happens with our main project, and all our smaller packages appear to run without issue.

I've followed the bug reporting issues, and installed gdb, including the code-signing steps, only to find it's not compatible with Mojave. Also, Valgrind isn't compatible with Mojave, so I'm stuck to include any useful information. Please let me know if there's any way I can dig further into this.

Here's the output with the two exports. There are two variants of errors:

 $ php73 ./vendor/bin/phpunit -vv --no-coverage
PHPUnit 7.5.4 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.2 with Xdebug 2.7.0RC2
Configuration: /Volumes/Sites/maxemail/application/phpunit.xml

.php73(45634,0x107b405c0) malloc: Incorrect checksum for freed object 0x7faeba9cd1b8: probably modified after being freed.
Corrupt value: 0x4746361462f63
php73(45634,0x107b405c0) malloc: *** set a breakpoint in malloc_error_break to debug
[1] 45634 abort php73 ./vendor/bin/phpunit -vv --no-coverage

 $ php73 ./vendor/bin/phpunit -vv --no-coverage
PHPUnit 7.5.4 by Sebastian Bergmann and contributors.

Runtime: PHP 7.3.2 with Xdebug 2.7.0RC2
Configuration: /Volumes/Sites/maxemail/application/phpunit.xml

.php73(45695,0x10a30b5c0) malloc: tiny_free_list_remove_ptr: Internal invariant broken (prev ptr of next): ptr=0x7f7f49a08190, next_prev=0x7f7f49a08180
php73(45695,0x10a30b5c0) malloc: *** set a breakpoint in malloc_error_break to debug
[1] 45695 abort php73 ./vendor/bin/phpunit -vv --no-coverage
TagsNo tags attached.
Operating SystemmacOS Mojave 10.14.3
PHP Version7.3.2-7.3.4



2019-02-21 11:58

reporter   ~0004916

OK, so this might actually be my mistake. I was looking to test the fix for 0001625 which was affecting us, but actually the issue I've posted here continues without Xdebug loaded. :(

Please close!


2019-02-21 22:08

administrator   ~0004920


that's all right — please do file a bug at though, and if you have already done so, would you please mind adding a link to the issue here?



2019-02-22 10:13

reporter   ~0004922

Hi Derick,

Thanks for the update. I've managed to find the culprit by trial and error running different unit tests. It's down to ext-mailparse, which is not yet compatible with php73 (but has unreleased commits which suggest support is coming ). My php install comes from MacPorts, which has added a php73-mailparse port using the 2016 release of mailparse 3.0.2. I've reported to MacPorts that this is not yet compatible:



2019-02-23 12:53

administrator   ~0004923

That's for letting me know!

I'm closing this, at it turned out to be a bug in the mailparse extension.

Issue History

Date Modified Username Field Change
2019-02-21 10:14 chrisminett New Issue
2019-02-21 11:58 chrisminett Note Added: 0004916
2019-02-21 22:08 derick Assigned To => derick
2019-02-21 22:08 derick Status new => feedback
2019-02-21 22:08 derick Note Added: 0004920
2019-02-22 10:13 chrisminett Note Added: 0004922
2019-02-22 10:13 chrisminett Status feedback => assigned
2019-02-23 12:53 derick Status assigned => resolved
2019-02-23 12:53 derick Resolution open => no change required
2019-02-23 12:53 derick Note Added: 0004923