8000 Malformed profiler data causing infinite loop in FileProfilerStorage · Issue #22963 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Malformed profiler data causing infinite loop in FileProfilerStorage #22963
Closed
@Kyoushu

Description

@Kyoushu
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.9

I had some code which was attempting to call a method on NULL inside a sub-request. The way the error was handled resulted in profiler data referencing its own token in the parent property

Excerpt from beginning of profiler data file

a:9:{s:5:"token";s:6:"e4d0be";s:6:"parent";s:6:"e4d0be";s:8:"children...

This resulted in \Symfony\Component\HttpKernel\Profiler\FileProfilerStorage::createProfileFromData() being sent into an infinite loop, as the $this->read() call on line 267 opens the same file, returning it back to createProfileFromData to be processed.

I believe this is similar to the issue reported in #3620

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0