Testing on Ubuntu 10.10 64-bit with a fairly stock trunk install as of r80753.
I plopped CodeReview in, added the MediaWiki repository, and went to initialize it with svnImport.php, and got this exciting failure:
$ php extensions/CodeReview/svnImport.php MediaWiki
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
svn: OPTIONS of 'http://svn.wikimedia.org/svnroot/mediawiki': Could not resolve hostname `svn.wikimedia.org': Host not found (http://svn.wikimedia.org)
I tracked it down to the memory limit being applied on the shell-out: poking $wgMaxShellMemory from the default 102400 up to 1024000 gets it working just fine.
Can repro the error here like so:
bash # start a new shell so you don't break your old one! ulimit -v 102400 svn info --non-interactive --trust-server-cert 'http://svn.wikimedia.org/svnroot/mediawiki' exit
I guess a hundred megabytes doesn't go as far as it used to. :( strace shows a lot of mmap() failures; for instance we get a hostname resolution failure because the NSS plugin for DNS lookups can't be loaded:
open("/lib/libnss_dns.so.2", O_RDONLY) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\17\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=22928, ...}) = 0
mmap(NULL, 2117888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = -1 ENOMEM (Cannot allocate memory)
close(4) = 0
The failure mode is weird, and it's *totally* unobvious how to fix it from the error messages. If adjusting defaults isn't feasible, we at least need some documentation warning of the issue.
Version: unspecified
Severity: normal