munmap fails: SvTYPE is not always SVt_PV

Bug #1261933 reported by Kevin Dalley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsys-mmap-perl (Ubuntu)
New
Undecided
Unassigned

Bug Description

I reported this bug upstream, including a suggested patch.

https://rt.cpan.org/Public/Bug/Display.html?id=91483

This bug creates problems when running zoneminder-1.25.0-4ubuntu2

Especially when running zmtrigger.pl.

Here is the information from the upstream bug report:

 When munmap is called, this section of code is hit: if(SvTYPE(var) != SVt_PV) { croak("variable is not a string"); return; } by adding additional information to the croak statement, I determined that var is type 7, SVt_PVMG. This causes munmap failure. I modified the code, see attached patch file svtype-fix, which seems to fix the problem. I think that we want to allow everything between SVt_PVMG and SVt_PV to be accepted as unmap. Here is output from the modified croak call, variable is not a string: 7 at /usr/share/perl5/ZoneMinder/Memory/Mapped.pm line 115. croak("variable is not a string, type is: %d", SvTYPE(var));

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: libsys-mmap-perl 0.16-1build1
ProcVersionSignature: Ubuntu 3.11.0-14.21-generic 3.11.7
Uname: Linux 3.11.0-14-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Tue Dec 17 13:34:05 2013
InstallationDate: Installed on 2013-06-02 (197 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: libsys-mmap-perl
UpgradeStatus: Upgraded to saucy on 2013-10-18 (60 days ago)

Revision history for this message
Kevin Dalley (nereocystis) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.