Stack overflow in largefiles extension when enabled on wsgi http server

Bruce Cran bruce at cran.org.uk
Sat Dec 21 17:03:38 UTC 2013


Following the suggestion in http://bz.selenic.com/show_bug.cgi?id=4118 
to enable largefiles on my hgweb server (running 2.7.2), I'm now seeing 
stack overflows. Any ideas?

mod_wsgi (pid=2841): Exception occurred processing WSGI script 'hgweb.wsgi'.
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgwebdir_mod.py", line 
153, in __call__
     return self.run_wsgi(req)
   File 
"/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgwebdir_mod.py", line 
218, in run_wsgi
     return hgweb(repo).run_wsgi(req)
   File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py", 
line 170, in run_wsgi
     return protocol.call(self.repo, req, cmd)
   File "/usr/lib/python2.7/dist-packages/mercurial/hgweb/protocol.py", 
line 76, in call
     rsp = wireproto.dispatch(repo, p, cmd)
   File "/usr/lib/python2.7/dist-packages/mercurial/wireproto.py", line 
353, in dispatch
     return func(repo, proto, *args)
   File "/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.py", 
line 155, in capabilities
     return capabilitiesorig(repo, proto) + ' largefiles=serve'
File "/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.py", line 
155, in capabilities
   return capabilitiesorig(repo, proto) + ' largefiles=serve'
File "/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.py", line 
155, in capabilities
   return capabilitiesorig(repo, proto) + ' largefiles=serve'

I think I reverted the patch from bug 4188 correctly: as the stack trace 
shows, the capabilities function now just returns 
capabilitiesorig(repo,proto) + ' largefiles=serve'.

-- 
Bruce



More information about the Mercurial mailing list