View Issue Details

IDProjectCategoryView StatusLast Update
0001715XdebugRemote Debuggingpublic2019-11-05 12:42
ReporterJohnyProkieAssigned Toderick 
PrioritynormalSeveritycrashReproducibilityrandom
Status assignedResolutionopen 
PlatformLinuxOSManjaroOS Version5.2.21-1
Product Version2.7.2 
Target VersionFixed in Version 
Summary0001715: "zend_mm_heap corrupted" with conditional breakpoints
DescriptionExperienced this in xdebug 2.7.0RC2 on Ubuntu 18.04, PHP 7.3.2 in Docker, PhpStorm. After upgrade of Xdebug to 2.7.2 it seemed it's solved but after some time it came back. Seems like it might be triggered by multiple conditional breakpoints in a row and only after some time, does not happen immediately.

Current setup (changed since then): Manjaro with kernel 5.2.21-1, Xdebug 2.7.2, PHP 7.3.2 in Docker.

php -v output:
PHP 7.3.2 (cli) (built: Mar 5 2019 01:35:23) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans

Did not test Xdebug 2.7.1 or 2.8.0 yet.
Steps To ReproduceSorry, cannot provide 100% reproducible steps...
Additional InformationPossibly related to https://bugs.xdebug.org/view.php?id=1647 and https://bugs.xdebug.org/view.php?id=1654
TagsNo tags attached.
Operating SystemLinux
PHP Version7.3.2-7.3.4

Activities

derick

2019-11-05 12:03

administrator   ~0005176

Can you please try 2.8.0 first? If that doesn't solve the problem, then I would need a reproducible case. See https://xdebug.org/reporting-bugs

JohnyProkie

2019-11-05 12:42

reporter   ~0005177

Confirmed with Xdebug 2.8.0, happened during the first page load.

This is docker container log:
zend_mm_heap corrupted
zend_mm_heap corrupted
[Tue Nov 05 12:11:50.105825 2019] [core:notice] [pid 1] AH00052: child pid 23 exit signal Segmentation fault (11)
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted

Trying to reproduce Segmantation fault again to get name of PID 23. No luck yet, but I guess it would be apache2.

Steps to reproduce (100% cases now):
Set up conditional breakpoints, let it run.
After running through few conditional breakpoints, "zend_mm_heap corrupted" error shows up, then PHP app runs from the start.
Disable conditional breakpoints to avoid "zend_mm_heap corrupted".

On Xdebug 2.7.2 I was happily debugging for at least two weeks.

Issue History

Date Modified Username Field Change
2019-11-05 11:53 JohnyProkie New Issue
2019-11-05 12:03 derick Assigned To => derick
2019-11-05 12:03 derick Status new => feedback
2019-11-05 12:03 derick Note Added: 0005176
2019-11-05 12:42 JohnyProkie Note Added: 0005177
2019-11-05 12:42 JohnyProkie Status feedback => assigned