I started getting MemoryErrors while merging Sage releases and it was
also mentioned at #12313. Building the Sage documentation needs a lot
of memory. On 64-bit machines at least, you need *more than 2GB* of
virtual memory to build the documentation, this is probably more than
what you need to build all of Sage. I testing this by building the
documentation with ulimit -v 2097152.
I have not yet determined whether there is one ticket causing this, or
if it is just that Sphinx cannot handle the size of the Sage manual. My
first suspect was #9128, but removing that patch didn't help. I'll try
sage-4.8 and report back.
Jeroen.