i have just found this bug report so i guess it's the cause:
https://bugs.gentoo.org/show_bug.cgi?id=284219
miroslav
Miroslav Šulc napsal(a):
> i tried to debug the code through logging statements (while reloading
> page /browser) and found out, that the problem is in web/chrome.py in method
>
> def render_template(self, req, filename, data, content_type=None,
> fragment=False):
>
> on these lines (logging statements were added by me):
>
> try:
> buffer = cStringIO()
> self.log.debug('stream.render')
> stream.render(method, doctype=doctype, out=buffer)
> self.log.debug('stream.render.done')
> return buffer.getvalue().translate(_translate_nop,
> _invalid_control_chars)
> except Exception, e:
> self.log.debug('here')
> # restore what may be needed by the error template
> req.chrome['links'] = links
> req.chrome['scripts'] = scripts
>
> log output is this (i added some other log statements to trac the path):
>
> Trac[main] DEBUG: genshi
> Trac[main] DEBUG: other
> Trac[chrome] DEBUG: filename: browser.html method: xhtml
> Trac[chrome] DEBUG: <MarkupTemplate "browser.html"> (this is output of
> self.log.debug(template))
> Trac[chrome] DEBUG: stream.render
>
> string 'stream.render' is logged but 'stream.render.done' is not logged
> nor string 'here' so i guess it crashes on stream.render() call. also,
> from other logging attempts, it seems to me that even just access to
> stream variable causes the seg fault (attempt to perform
> self.log.debug(stream) ended log output). stream seems to be instance of
> MarkupTemplate which seems to be part of genshi package, so i guess this
> call:
>
> stream = template.generate(**data)
>
> creates stream that crashes the app. any ideas what could be the cause
> that access to stream causes app crash? just to summarize:
> www-apps/trac-0.11.5
> dev-python/genshi-0.5.1
> dev-lang/python-2.6.2-r1
>
> thx
>
> miroslav
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---