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

Segmentation Fault #23

Open
x007007007 opened this issue Jan 26, 2021 · 1 comment
Open

Segmentation Fault #23

x007007007 opened this issue Jan 26, 2021 · 1 comment

Comments

@x007007007
Copy link

x007007007 commented Jan 26, 2021

Hi, I try to run example of json again , command give error message like that:

2021-01-26 16:14:59,602 [DEBUG] bison.bison_: call def possible_so
2021-01-26 16:14:59,603 [DEBUG] bison.bison_: call def openLib
2021-01-26 16:14:59,603 [DEBUG] bison.bison_: Opening library /tmp/pybison/pybison_JSONParser/JSONParser_engine.cpython-39-x86_64-linux-gnu.so
bisondynlib_open: /tmp/pybison/pybison_JSONParser/JSONParser_engine.cpython-39-x86_64-linux-gnu.so
2021-01-26 16:14:59,604 [INFO] bison.bison_: Successfully loaded library
2021-01-26 16:14:59,604 [DEBUG] bison.bison_: b'ec643594ef2341f805c284e7b941054a7004b924'
2021-01-26 16:14:59,604 [INFO] bison.bison_: Hashes match, no need to rebuild bison engine lib
instantiate parser 0.0026242733001708984
json 0.00013113021850585938
Parser.run: calling engine
2021-01-26 16:14:59,604 [DEBUG] bison.bison_: call def runEngine
Parser.read: want 8192 bytes
Parser.read: got 14 bytes
b'{"web-app": {\n'
段错误 (核心已转储)

I try to debug this problem. so I have add #22 and #21 PR for this problem

@sbrodehl
Copy link

sbrodehl commented Mar 2, 2021

Hey @x007007007,

I added a short introduction on debugging a parser with gdb, I hope this helps!

As a note: the examples are outdated (old grammar / lexer files) and need some love.

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