I was finally able to reproduce the docbuild hang with the "gap: cannot extend the workspace any more!" error. It seems to be triggered by the optional gap_packages which increases the required memory. A quick strace shows that the error is fatal in libgap, and therefore breaks docbuild.
I've fixed it as part of the gap-4.7.5 update: http://trac.sagemath.org/16440 (needs review) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.