@tsteur opened this Issue on December 22nd 2019 Member

Been debugging the visitor log for few hours which fails with no seg fault, no error, no shutdown function call, no warning, ...

Matomo shows this:

Request looks like this:

After a while noticed it seems to crash at https://github.com/matomo-org/matomo/blob/3.13.1-b1/core/View.php#L278 particularly when sending a header in https://github.com/matomo-org/matomo/blob/3.13.1-b1/core/ProxyHttp.php#L235-L238

In my visit log I'm showing 10 visits, some of them have a few actions but nothing crazy. As soon as I disable the header function in Common::sendHeader the page renders nicely.

Thought it sends maybe too many headers but this is not the case. Headers weren't sent yet when crashing.

This is PHP Version 7.3.12 and using Apache 2.4. Must be some kind of PHP bug I would say. Just thought I create the issue in case someone experiences similar.

@tsteur commented on December 22nd 2019 Member

The page also renders nicely if commenting out all of these sendHeaders: https://github.com/matomo-org/matomo/blob/3.13.1-b1/core/View.php#L278-L290

It renders the view easily > 100 times in my visit log since there are various actions and each action is a view render and we try again and again to send some headers (replace previous).

Even just having still one line that sends header in the View class crashes the visit log. Meaning it seems really to be an issue that a header may be replaced too often and then PHP crashes

Powered by GitHub Issue Mirror