alex / alex/rply

Lexing error being thrown causes Segmentation Fault

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
391
Forks
62
PR merge metrics
No merged PRs in 30d

Description

I have a simple calculator written in RPython. If a lexing error is thrown, the program segfaults. It works fine under CPython and PyPy, however. Furthermore, if after a valid token, there is an invalid token, the invalid token and everything that follows it is completely ignored, rather than throwing a ParsingError.

The problem only occurs with RPython. I have the latest checkout(i.e. I just updated it right now).

Example:

![screenshot from 2013-11-22 15 14 10](https://f.cloud.github.com/assets/1690697/1604313/1d5ab476-53bb-11e3-9c90-3268b2bafb31.png)

I am on Ubuntu Precise.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.