View Issue Details

IDProjectCategoryView StatusLast Update
0001897XdebugStep Debuggingpublic2020-11-27 20:39
Reporterwebflo Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
OS*OS Version11.0.1 
Product Version3.0.0RC1 
Target Version3.0.1Fixed in Version3.0.1 
Summary0001897: Crash when removing a breakpoint
Description

Hello,

xdebug 3.0.0, PHP 7.4 on macOS. Step debugging works great, but if I remove a breakpoint during the debugging-session the php process dies. It does not depend on the script. It breaks on every script, even very simple ones. See the attachment. I use PhpStorm 2020.2.4 as IDE/Client.

Error message

php ./web/test.php
php(28254,0x112819e00) malloc: error for object 0x6000000000000000: pointer being freed was not allocated
php(28254,0x112819e00) malloc:
set a breakpoint in malloc_error_break to debug
[1] 28254 abort php ./web/test.php

Steps To Reproduce
  • Enable xdebug in PHPStorm
  • Set breakpoint on Line 2 ($a)
  • php test.php
  • Breakpoint is triggered
  • Step one line further
  • Remove breakpoint in PhpStorm
  • php dies
Additional Information

Xdebug Config

xdebug.mode=debug
xdebug.start_with_request=yes


PHP 7.4.13 (cli) (built: Nov 26 2020 05:06:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
with Xdebug v3.0.0, Copyright (c) 2002-2020, by Derick Rethans


TagsNo tags attached.
Operating System
PHP Version7.4.0-7.4.4

Relationships

has duplicate 0001899 resolvedderick Segmentation faul when disabling a breaking while session is active 

Activities

webflo

2020-11-26 19:29

reporter   ~0005545

I did a test with Xdebug for VSCode https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug. Same problem.

Thanks!

derick

2020-11-26 19:55

administrator   ~0005546

Would you mind adding a log file through the xdebug.log setting? See https://xdebug.org/docs/all_settings#log

webflo

2020-11-26 20:07

reporter   ~0005547

Sure. Here is the log.

derick

2020-11-27 13:01

administrator   ~0005550

https://github.com/xdebug/xdebug/pull/694

derick

2020-11-27 13:15

administrator   ~0005551

Fixed in GIT (xdebug_3_0 and master branches), for version 3.0.1.

webflo

2020-11-27 20:39

reporter   ~0005553

Works great. Thanks!