in reply to Re^2: Generating and storing regexp
in thread Generating and storing regexp

Segfaults are the result of programming bugs, or sometimes caused by not correctly handling unexpected input (which is essentially also a bug).

Unfortunately, it's next to impossible to debug such problems without being able to reproduce them.

In other words, it would help if you could reduce the input to a minimal case the allows to reproduce the issue, and then submit a bug report to YAML::XS, as the author of the module can probably help better here.

Until then, you might want to try the non-XS version of YAML instead.

Replies are listed 'Best First'.
Re^4: Generating and storing regexp
by noodleish (Novice) on Feb 20, 2011 at 19:55 UTC

    Reverted to YAML::Syck and it worked. Tried to boil the problem with YAML::XS down. Worked through all the indata and when attaching a particular part of the data to a working YAML file it stopped working. Thing is if I try to just use that part or any other it works, so the data can't be wrong. I can't see anything special with that part (its about 2MB, each block is working seperatly , could be it since the other part I use were smaller). With the same data but generated with Syck it works as a charm. Syck seems to ignore CompressSeries flag so I bet that could be the problem. Or at least my data were generated without it. Thanks again for pointing me to this. Ill never use Dumper again ;)