mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #376] Monolog segfault with BIG message. #131
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lyrixx on GitHub (Jun 12, 2014).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/376
Of course, It's a bad idea to log BIG message, I will remove this log call from my code.
But this call
github.com/Seldaek/monolog@25b16e8019/src/Monolog/Formatter/LineFormatter.php (L111)can segfault.The same issue appear in Symfony few month ago, see https://github.com/symfony/symfony/pull/10231
@Seldaek commented on GitHub (Jun 15, 2014):
Did you actually experience it segfaulting? Because unless you have really a laaarge set of blank lines in the message I think that regex should do ok, it's very simple.
@Seldaek commented on GitHub (Jun 15, 2014):
Besides I am not so sure what else we could do, except maybe a dumber str_replace in case the strlen() is bigger than X
@lyrixx commented on GitHub (Jun 15, 2014):
yes, yes. I did experience this segault (on prod). I use this hack to find the segfault, then I commented the line, and then everything went fine.
But as PHP died, I not sure about the line. But in the output, The lastes calls were inside monolog