Skip Menu |

This queue is for tickets about the Devel-MAT-Dumper CPAN distribution.

Report information
The Basics
Id: 130452
Status: open
Priority: 0/
Queue: Devel-MAT-Dumper

People
Owner: Nobody in particular
Requestors: john [...] mastersofgames.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Generated file unreadable by pmat
Date: Thu, 5 Sep 2019 14:20:25 +0100
To: bug-Devel-MAT-Dumper [...] rt.cpan.org
From: John Davies <john [...] mastersofgames.com>
Windows Server 2016 standard 4Gb RAM Strawberry Perl Devel::Mat suite downloaded today. C:\Data>perl -v This is perl 5, version 30, subversion 0 (v5.30.0) built for MSWin32-x64-multi-thread C:\Data>type DateTime.pl use strict; use warnings; use DateTime; use Devel::MAT::Dumper; my $dt = DateTime->now(); print join ' ', $dt->ymd, $dt->hms; my $id = $dt->ymd . $dt->hms; $id =~ s/\D//g; print "\n$id\n"; print time() . "\n"; Devel::MAT::Dumper::dump('c:\Data\DateTime.pmat'); C:\Data>perl DateTime.pl 2019-09-05 13:04:58 20190905130458 1567688698 C:\Data>pmat DateTime.pmat Loading file 2939559 of 8027391 bytes (36.62%)Out of memory!
On Thu Sep 05 12:16:35 2019, john@mastersofgames.com wrote: Show quoted text
> C:\Data>pmat DateTime.pmat > Loading file 2939559 of 8027391 bytes (36.62%)Out of memory!
Oh dear. That likely suggests some size value is out of range in the original file. :( Might help to debug this by my adding some sanity checking in some of the parts there. Awkwardly I don't seem to be able to reproduce it myself on Linux: $ perl -v This is perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi(with 61 registered patches, see perl -V for more detail) $ perl rt130452.pl 2019-09-06 09:30:19 20190906093019 1567762219 $ pmat DateTime.pmat Perl memory dumpfile from perl 5.28.1 threaded Heap contains 71876 objects Show quoted text
pmat> largest
HASH(7992) at 0x55c26d503080=strtab: 517.6 KiB Also on a perlbrew'ed 5.30.0: $ $HOME/perl5/perlbrew/perls/perl-5.30.0/bin/perl rt130452.pl 2019-09-06 09:47:00 20190906094700 1567763220 $ pmat DateTime.pmat Perl memory dumpfile from perl 5.30.0 non-threaded Heap contains 69769 objects Show quoted text
pmat>
I suspect therefore whatever has upset this file may be Windows or Strawberry-specific. Given the small test example program, there shouldn't be anything secret in there. Would you mind attaching the `.pmat` file, or perhaps if it's too big for RT can you mail it directly to me? -- Paul Evans
Show quoted text
> I suspect therefore whatever has upset this file may be Windows or > Strawberry-specific. > > Given the small test example program, there shouldn't be anything > secret in there. Would you mind attaching the `.pmat` file, or perhaps > if it's too big for RT can you mail it directly to me?
Having received this file by private email, I'm no closer to understanding it. The received file also loads fine for me: $ pmat DateTime-from-john.pmat Perl memory dumpfile from perl 5.30.0 threaded Heap contains 71962 objects Show quoted text
pmat> largest
HASH(7972) at 0x296e8=strtab: 517.1 KiB PAD(9373) at 0x31c0ad8: 77.3 KiB STASH(828) at 0x36cdde0: 35.6 KiB HASH(811) at 0x3870b48: 35.1 KiB HASH(758) at 0x31c9af0: 33.8 KiB others: 5.7 MiB -- Paul Evans