Skip Menu |

This queue is for tickets about the Linux-Smaps CPAN distribution.

Report information
The Basics
Id: 102687
Status: open
Priority: 0/
Queue: Linux-Smaps

People
Owner: Nobody in particular
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

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



Subject: Linux::Smaps fails on CentOS 7 (RHEL 7) with error "not parsed: VmFlags: rd ex mr mw me dw"
perl -MLinux::Smaps -e 'warn Linux::Smaps->new($$)' Linux::Smaps: /proc/27763/smaps(16): not parsed: VmFlags: rd ex mr mw me dw
Linux::Smaps::Tiny seems to work on CentOS 7 (but Process::SizeLimit::Core won't use that without patches).
This is a workaround, not a fix. It skips the "unknown" VmFlags line from smaps file without throwing an error. Required for latest RHEL6 as well.
Subject: Linux-Smaps-compat.patch
--- Linux-Smaps-0.09/lib/Linux/Smaps.pm.old 2015-11-24 19:18:22.496002869 +0100 +++ Linux-Smaps-0.09/lib/Linux/Smaps.pm 2015-11-24 19:17:09.883999797 +0100 @@ -215,6 +215,7 @@ # VMAs may be reported twice. push @{$I->[M__elem]}, $current unless $cache{$1}++; $current_off=$min_vma_off; + } elsif( $l=~/^VmFlags:/i ) { } else { $I->[M_lasterror]="$name($.): not parsed: $l"; return;