munmap fails: SvTYPE is not always SVt_PV
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:/
This bug creates problems when running zoneminder-
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/
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: libsys-mmap-perl 0.16-1build1
ProcVersionSign
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)