https://bugzilla.wikimedia.org/show_bug.cgi?id=47781
Web browser: ---
Bug ID: 47781
Summary: $wgMaxShellMemory won't set ulimit on non-Linux POSIX
Operating Systems
Product: MediaWiki
Version: 1.20.3
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: major
Priority: Unprioritized
Component: File management
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 12190
--> https://bugzilla.wikimedia.org/attachment.cgi?id=12190&action=edit
make ulimit4.sh /bin/sh aware
$wgMaxShellMemory isn't respected on POSIX aware Operating Systems other than
Linux.
In includes/GlobalFunctions.php around line 2785 we have <code>if ( php_uname(
's' ) == 'Linux' ) {</code> around the handling of using "ulimit4.sh"
Calling "convert" without any limits set will kill your server.
also see:
http://www.mediawiki.org/wiki/Manual_talk:$wgMaxShellMemory#Caution:_This_is_LINUX_only.21_Won.27t_work_with_POSIX_like_systems_e.g._FreeBSD
I patched this on my MW-1.20.3 and it seems fine:
* https://wiki.uugrn.org/patches/ulimit4.sh.patch
* https://wiki.uugrn.org/patches/GlobalFunctions.php.patch
Please review this patches.
I set severity to "major" as this will kill wikis running on FreeBSD by just
uploading one complex/broken SVG.
Regards
Raphael
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l