Last modified: 2012-05-14 10:16:56 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 T34263, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32263 - "Cannot seek on a pipe" warning in maintenance scripts
"Cannot seek on a pipe" warning in maintenance scripts
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: 1.18.0 release
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-08 16:20 UTC by Roan Kattouw
Modified: 2012-05-14 10:16 UTC (History)
3 users (show)

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


Attachments

Description Roan Kattouw 2011-11-08 16:20:00 UTC
For some reason this doesn't happen on my local machine but does happen on the prototype server.

When I run maintenance scripts, I get lots of warnings like these:

Warning: fopen(): cannot seek on a pipe in /srv/org/wikimedia/prototype/wikis/rl2/maintenance/Maintenance.php on line 313

Call Stack:
    0.0004     154088   1. {main}() /srv/org/wikimedia/prototype/wikis/rl2/maintenance/update.php:0
    0.0026     782096   2. require_once('/srv/org/wikimedia/prototype/wikis/rl2/maintenance/doMaintenance.php') /srv/org/wikimedia/prototype/wikis/rl2/maintenance/update.php:147
    0.0995   12657528   3. UpdateMediaWiki->execute() /srv/org/wikimedia/prototype/wikis/rl2/maintenance/doMaintenance.php:105
   10.8290   19037824   4. Maintenance->output() /srv/org/wikimedia/prototype/wikis/rl2/maintenance/update.php:128
   10.8290   19037824   5. fopen() /srv/org/wikimedia/prototype/wikis/rl2/maintenance/Maintenance.php:313


The offending line is $f = fopen( 'php://stdout', 'a' );
Comment 1 Brion Vibber 2011-11-08 18:57:29 UTC
https://bugs.php.net/bug.php?id=45303 ?

Claims "fixed in CVS" somewhere in what might be PHP 5.2 timeline.

What PHP ver is on these boxes?
Comment 2 Roan Kattouw 2011-11-08 19:30:54 UTC
PHP 5.2.4-2ubuntu5.12wm1 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 23 2010 20:36:55)
Comment 3 Roan Kattouw 2011-11-08 19:31:51 UTC
Seems to be a since-fixed upstream bug in PHP then, closing.
Comment 4 Antoine "hashar" Musso (WMF) 2011-11-10 15:07:41 UTC
PHP Bug 45303 was fixed with 5.2.7 (04-Dec-2008)
Ref: http://php.net/ChangeLog-5.php
Comment 5 Chad H. 2011-11-15 15:05:29 UTC
Should be fixed in r103179.

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


Navigation
Links