nguyenpham1910 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I tried cpan install Devel::MAT on CentOS7.6 but it failed while running tests:
t/00use.t ................ ok t/01self.t ............... Cannot read - at /root/.cpan/build/Devel-M +AT-0.41-eysiRr/blib/lib/Devel/MAT.pm line 82. t/01self.t ............... Dubious, test returned 255 (wstat 65280, 0x +ff00) No subtests run t/02contexts.t ........... Cannot read - at /root/.cpan/build/Devel-M +AT-0.41-eysiRr/blib/lib/Devel/MAT.pm line 82. t/02contexts.t ........... Dubious, test returned 255 (wstat 65280, 0x +ff00) t/10tool-identify.t ...... Cannot read - at /root/.cpan/build/Devel-M +AT-0.41-eysiRr/blib/lib/Devel/MAT.pm line 82. t/10tool-identify.t ...... Dubious, test returned 255 (wstat 65280, 0x +ff00)
If using force install the module installed but I got the same error while trying to load the heap dump file:
pmat bom-feed-distributor-1.pmat Loading file 34309628 of 35598736 bytes (96.38%)Cannot read - at /roo +t/perl5/lib/perl5/x86_64-linux-thread-multi/Devel/MAT.pm line 82.
Perl version is:
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-li +nux-thread-multi
Does any one know how to fix this error? Thank you very much for any help/suggestion!

Replies are listed 'Best First'.
Re: Devel::MAT can load dump file
by Corion (Patriarch) on Mar 03, 2019 at 07:19 UTC

    This seems to be a problem with all Perl versions below 5.18.

    I don't know what causes this problem, but maybe if you can run your analysis with a higher version of Perl that would work.

      FWIW, I can build and test successfully on Centos 6.3 using perl 5.28.0 via perlbrew.

Re: Devel::MAT can load dump file
by Athanasius (Archbishop) on Mar 03, 2019 at 07:22 UTC
Re: Devel::MAT can load dump file
by nguyenpham1910 (Initiate) on Mar 03, 2019 at 15:11 UTC
    Thanks all for your helps. I tried to install version Devel-MAT 0.40, it's installed successfully. However, I still get the error while loading (nearly finish 96.81%) the dump file :(
    Loading file 34282618 of 35412650 bytes (96.81%)Cannot read - at /hom +e/xxx/perl5/lib/perl5/x86_64-linux-thread-multi/Devel/MAT.pm line 82.
    To generate heap dump file, I add this line into my perl script:
    use Devel::MAT::Dumper qw( -dump_at_SIGQUIT -file /tmp/bom-feed-distri +butor-NNN.pmat );
    then use kill -QUIT <pid> Current version of Devel::MAT::Dumper
    Installed: 0.37 CPAN: 0.40 Not up to date Paul Evans (PEVANS) leonerd@leonerd.org.uk
    I tried with higher Dumper versions : 0.38, 0.39 & 0.40 , however Devel::MAT 0.40 can not installed with these version. Error:
    Running Build test t/00use.t ................ ok t/01self.t ............... Cannot read - at /home/xxxx/.cpan/build/De +vel-MAT-0.40-AaNiHf/blib/lib/Devel/MAT.pm line 82.
    Any idea?