A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Python-Markdown/markdown/issues/812 below:

Not thread safe · Issue #812 · Python-Markdown/markdown · GitHub

I'm getting occasional not reproducable errors (with the same markdown source) when running on Appengine:

Traceback (most recent call last):
[...]
  File "/base/data/home/apps/.../deps/markdown/__init__.py", line 375, in convert
    newRoot = treeprocessor.run(root)
  File "/base/data/home/apps/.../deps/markdown/treeprocessors.py", line 330, in run
    self.ancestors.pop()
IndexError: pop from empty list

I'm having threading enabled (GAE default), and TreeProcessor has a global ancestors stack. So presumably this crashes because simultaneous threads run the markdown processor. I can't find anything in the docs whether python-markdown is supposed to be thread safe, so thats either a documentation request or a bug ;-)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4