-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visits log fails without any error #15307
Comments
The page also renders nicely if commenting out all of these 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 |
FYI this is a segmentation fault
Upgraded to PHP 7.4 and error still happens. Also happens when disabling xdebug etc. Here's some info
|
Works for me on php 7.3.11 without segfault (both CLI and web) |
BTW I just checked MacOS is actually using Apache Handler by the looks by default so the issue could be there. |
In case someone experiences this issue, I could reproduce the seg fault using this code: for ($i = 0; $i < 400; $i++) {
header('Content-Type: ' . 'text/html');
header('Referrer-Policy: same-origin');
}
echo 'foo'; |
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 inCommon::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.
The text was updated successfully, but these errors were encountered: