[GHC] #10950: Sphinx "RecursionError: maximum recursion depth exceeded while pickling an object"

GHC ghc-devs at haskell.org
Thu Jan 21 21:42:40 UTC 2016


#10950: Sphinx "RecursionError: maximum recursion depth exceeded while pickling an
object"
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Documentation     |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1809
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Sergei Trofimovich <siarheit@…>):

 In [changeset:"4c11db6377aa4fba0c4d70a1e9508247fd053bce/ghc" 4c11db6/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="4c11db6377aa4fba0c4d70a1e9508247fd053bce"
 sphinx-build: fix python stack overflow (Trac #10950)

 Summary:
 commit a034031a102bc08c76a6cdb104b72922ae22c96b did not
 fix problem completely. Stack overflows still occasionally
 happen.

 Easy to test by the following Torture Test:

   while sphinx-build -T -N -E -a -b html \
         -d docs/users_guide/.doctrees-html \
         -D latex_paper_size=letter \
         docs/users_guide docs/users_guide/build-html/users_guide
   do
     echo again
   done

 sphinx build large nested data structures when parses GHC manual
 (docs/users_guide/glasgow_exts.rst is 455KB in size) which
 can't be serialized useing default python call stack depth of 1000
 calls.

 The patch increases stack depth 10 times. Survived 2 hours of
 Torture Test.

 Signed-off-by: Sergei Trofimovich <siarheit at google.com>

 Test Plan: ran Torture Test to make sure it is stable

 Reviewers: austin, bgamari

 Reviewed By: bgamari

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1809

 GHC Trac Issues: #10950
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10950#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list