AdaYaml
AdaYaml copied to clipboard
Exception: PROGRAM_ERROR : encountered illegal situation while searching for space in chunk! Pos = xxx
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
Confirmed; does not happen with bin/yaml-to_events
. Likely a bug in ParserTools as suggested.
Thanks! Good to know that the event does not have the problem. I'll go for it.
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.