AdaYaml icon indicating copy to clipboard operation
AdaYaml copied to clipboard

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

Open stcarrez opened this issue 6 years ago • 3 comments

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

stcarrez avatar May 12 '18 20:05 stcarrez

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

flyx avatar May 13 '18 07:05 flyx

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

stcarrez avatar May 13 '18 07:05 stcarrez

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.

flyx avatar May 13 '18 08:05 flyx