Public bug reported:

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)

** Affects: libsys-mmap-perl (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug saucy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1261933

Title:
  munmap fails: SvTYPE is not always SVt_PV

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsys-mmap-perl/+bug/1261933/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to