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

Exception: PROGRAM_ERROR : encountered illegal situation while searching for space in chunk! Pos = xxx #10

Open
stcarrez opened this issue May 12, 2018 · 3 comments

Comments

@stcarrez
Copy link

When parsing valid YAML file, the parser often raises program_error exception.

This occurs in the Text string allocator. At some point the chunk gets corrupted.

Reproduced with the util tool:

bin/yaml-to_dom swagger.txt

swagger.txt

@flyx
Copy link
Collaborator

flyx commented May 13, 2018

Confirmed; does not happen with bin/yaml-to_events. Likely a bug in ParserTools as suggested.

@stcarrez
Copy link
Author

Thanks! Good to know that the event does not have the problem. I'll go for it.

@flyx
Copy link
Collaborator

flyx commented May 13, 2018

Beware, I cannot confirm that the bug does not affect the event API. It might just be that the error does not show up there by chance for this particular file. From the amount of tests I run against the event API (compared to the DOM API) I can only deduce that the likelyhood of the event API to be affected is low.

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