in reply to Segmentation coredump issue

Two quick things you could try: move the declaration/instanciation of $twig inside the while loop so it doesn't persist and also check that you are running the latest versions of both the modules used.

Does the segfault happen at precisely the same point on every run?

Replies are listed 'Best First'.
Re^2: Segmentation coredump issue
by Anonymous Monk on May 04, 2018 at 13:02 UTC
    Indeed it is quite possible that the problem originates within Twig but you may or may not find it. If you re-create the object each time within the loop and the program now runs to completion, it would perhaps be worthwhile to at-least note it as a bug. It would also be interesting to see (if you find that re-creating the object each time does circumvent the problem) if repeatedly parsing the same file repeatedly using a single instance leads to the same core-dump behavior, because that would probably be repeatable by the package maintainer.