skvadrik / re2c

Lexer generator for C, C++, Go and Rust.

Home Page:https://re2c.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SEGV

dtp555-1212 opened this issue · comments

re2c 3.0 crashes when trying to process the attached file
crash.zip

It looks like a stackoverflow to me. A number of those have been fixed recently, and I can reproduce segfault on re2c-3.0 but not on the one built from git. Can you check with the most recent re2c built from git?

Yes... Building from the repo has the same failure (actually I used the zip file from git) so I don't know if that is the 'latest' or just a bundled 3.0

This is how I tried to reproduce:

$ git clone https://github.com/skvadrik/re2c
$ cd re2c
$ autoreconf -W all -i
$ build/__build.sh
$ cd __build
$ wget https://github.com/skvadrik/re2c/files/10467779/crash.zip
$ unzip crash.zip
$ ./re2c c.re

There is no segfault, output is generated as expected.