in reply to Problem with XSLoader in Dumper.pm while using coverage

You are mixing versions again. Your error is a failure to load an XS module due to an undefined symbol. Since the XS module that is failing to load is well-tested and widely used, we can assume that its code is probably correct and you are trying to load an XS module for one version of perl into a different version of perl, which generally does not work.

Data::Dumper is a core module. Why is it in your custom PERL5LIB tree? Are you perhaps trying to run one version of perl with the libraries for a different version of perl? That does not work.

Replies are listed 'Best First'.
Re^2: Problem with XSLoader in Dumper.pm while using coverage
by ovedpo15 (Pilgrim) on Dec 05, 2019 at 09:19 UTC
    Thank you for the help but I don't understand why it mixes the Perl versions. This only happens when I set the env DEVEL_COVER_DB_FORMAT to be JSON.

      It probably happens because that causes Data::Dumper to be loaded for some irrelevant reason. You will need to install parallel copies of Devel::Cover with each version of perl that your tests use. If you want to combine the databases, you will probably need to install the same version of Devel::Cover with each version of perl.

      For that matter, why do you want to combine coverage results from multiple versions of perl? I could see wanting to test code with multiple versions, but then you should strive for full coverage for each version, not full coverage across all versions.