Last modified: 2013-09-04 10:36:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32094, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30094 - Bug in PHP 5.4alphas causes segfault on every page load
Bug in PHP 5.4alphas causes segfault on every page load
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.17.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://bugs.php.net/bug.php?id=55305
: newphp, upstream
: 30093 (view as bug list)
Depends on:
Blocks: 30092
  Show dependency treegraph
 
Reported: 2011-07-27 23:45 UTC by Ryan Biesemeyer
Modified: 2013-09-04 10:36 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Biesemeyer 2011-07-27 23:45:37 UTC
Bug documented here: 
https://bugs.php.net/bug.php?id=55305

When a variable that was instantiated in the class definition gets a second reference as an instance variable, it must be pre-instantiated. Results in segfault and sudden memory allocations of 1.5+GB in size.

includes/parser/Preprocessor_DOM.php:684 class PDDStack is guilty of this.

Workarounds:
  - Instantiate the second named variable before you make it a reference. `$this->accum = nil;` is enough
  - Instantiate the second named variable in the class definition
  - Instantiate neither in the class definion

I'm not sure where else this is likely to crop up.
Comment 1 Sam Reed (reedy) 2011-07-27 23:51:11 UTC
*** Bug 30093 has been marked as a duplicate of this bug. ***
Comment 2 Ryan Biesemeyer 2011-08-04 17:18:46 UTC
Update: The PHP guys have patched 5.4 and closed the associated bug in r314054, so the current snapshots/builds should not be exhibiting these symptoms.

https://bugs.php.net/bug.php?id=55305

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links