Message10487

Author zyasoft
Recipients darjus, zyasoft
Date 2015-11-20.21:43:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448055835.81.0.636059489.issue2431@psf.upfronthosting.co.za>
In-reply-to
Content
Possibly related is the regex used by Bottle simple templates (https://github.com/bottlepy/bottle/blob/master/bottle.py#L3631):

Easy to reproduce:

$ jython -m pip install bottle
Collecting bottle
  Downloading bottle-0.12.9.tar.gz (69kB)
    100% |████████████████████████████████| 69kB 356kB/s 
Installing collected packages: bottle
  Running setup.py install for bottle
Successfully installed bottle-0.12.9
$ jython
Jython 2.7.1b2 (default:37578797caba, Nov 20 2015, 14:09:15) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_80
Type "help", "copyright", "credits" or "license" for more information.
>>> from bottle import template
>>> template('<b>Hello {{name}}</b>!', name='Jython')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3609, in template
    return TEMPLATES[tplid].render(kwargs)
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3399, in render
    self.execute(stdout, env)
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3386, in execute
    eval(self.co, env)
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 189, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3344, in co
    return compile(self.code, self.filename or '<string>', 'exec')
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 189, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3358, in code
    code = parser.translate()
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3487, in translate
    self.flush_text()
  File "/home/jbaker/jythondev/jython27/dist/Lib/site-packages/bottle.py", line 3542, in flush_text
    for m in self.re_inl.finditer(text):
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
>>> 
KeyboardInterrupt
History
Date User Action Args
2015-11-20 21:43:55zyasoftsetmessageid: <1448055835.81.0.636059489.issue2431@psf.upfronthosting.co.za>
2015-11-20 21:43:55zyasoftsetrecipients: + zyasoft, darjus
2015-11-20 21:43:55zyasoftlinkissue2431 messages
2015-11-20 21:43:55zyasoftcreate