View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001535XdebugUsage problems (Wrong Results)public2018-03-14 20:482018-03-15 16:47
Assigned Toderick 
PlatformLinuxOSUbuntuOS Version16.04.3
Product Version2.6.0 
Target Version2.6.1Fixed in Version 
Summary0001535: Laravel causes PHP warning (exception not caught) xdebug enabled, otherwise all is fine
DescriptionWith xdebug enabled I can reproduce an error:

PHP Warning: Uncaught League\Flysystem\Plugin\PluginNotFoundException: Plugin not found for method: read in /tmp/laravel/vendor/league/flysystem/src/Plugin/PluggableTrait.php:49

without xdebug on, everything runs fine.
Steps To Reproducecomposer create-project laravel/laravel
cd laravel
composer require proengsoft/laravel-jsvalidation
php artisan vendor:publish --provider="Proengsoft\JsValidation\JsValidationServiceProvider" --tag=public --force

(I will try to make a smaller example)
Additional InformationNot reproducible with
Reproducible after update to 7.1.18

See here [^]
TagsNo tags attached.
Operating System
PHP Version7.1.15-7.1.19
Attached Files

- Relationships

-  Notes
amenk (reporter)
2018-03-14 20:49

bye the way ... the stack trace from the warning is enormous (not ending)
amenk (reporter)
2018-03-14 20:50

With php7.2 it works fine, maybe we just ignore the bug and switch to 7.2.3 :-)
amenk (reporter)
2018-03-14 20:59

without my setting

* xdebug.collect_params=4

it works fine.

so I will be more careful with that in the future.

I think it is fine, that xdebug runs out of memory. A nicer error message would be cool,recommending to lower such settings.

The real bug is, that the exception is not caught properly while it is, when xdebug is on.
derick (administrator)
2018-03-15 11:07

The real bug is is that Xdebug is reading variables that are already freed while constructing the exception stack traces. These variables are only read with xdebug.collect_params > 0. Reading already freed memory means all kinds of weird things can happen, and your errors are one of the symptoms, but I expect there to be many more.

- Issue History
Date Modified Username Field Change
2018-03-14 20:48 amenk New Issue
2018-03-14 20:49 amenk Note Added: 0004613
2018-03-14 20:50 amenk Note Added: 0004614
2018-03-14 20:59 amenk Note Added: 0004615
2018-03-15 11:07 derick Note Added: 0004616
2018-03-15 11:07 derick Assigned To => derick
2018-03-15 11:07 derick Status new => confirmed
2018-03-15 11:07 derick Product Version => 2.6.0
2018-03-15 11:07 derick Target Version => 2.6.1

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker