Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lex crashes python when given a bad regex #17

Closed
arielb1 opened this issue Jun 8, 2012 · 1 comment
Closed

lex crashes python when given a bad regex #17

arielb1 opened this issue Jun 8, 2012 · 1 comment

Comments

@arielb1
Copy link

arielb1 commented Jun 8, 2012

To Reproduce:
$ cat > crash.py << EOF
import lex

tokens = ('STAR',)
t_STAR = '*'

lex.lex(optimize=1)
EOF
$ python3 --version; uname -a
Python 3.2.3rc2
Linux ariel-linux2 3.2.0-2-686-pae #1 SMP Mon May 21 18:24:12 UTC 2012 i686 GNU/Linux
$ python3 crash.py
Fatal Python error: Cannot recover from stack overflow.
Aborted
Expected Result:
A clean exception.
Actual Result:
Python segfaults. Note that no exception is raised - Python segfaults, giving no stack trace.

@dabeaz
Copy link
Owner

dabeaz commented Jun 8, 2012

This looks like a Python bug, not a PLY bug. Suggest reporting to the python bug tracker.

@dabeaz dabeaz closed this as completed May 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants