ActivePerl discussion

Perl and ActivePerl usage questions; Perl practices and programming questions; Perl questions that don't fit other categories

Perl CVE-2013-1667 Input Rehashing Denial of Service Vulnerability

Does this apply to active perl 5.14.2.1402-MSWin32-x64-295342? I know that it applies to the more generic version of Perl 5.14.x. Will ActiveState release a product specific patch to address this issue?

Perl Disable PMC

Hello,

I am concerned about performance in our Perl applications. I see perl is probing a lot of pmc files that don't exist, which is causing for performance degradations (about 1.5 million probes on a small run). Is there any way we can disable the probes for the PMC files, or get a version of Activestate perl which has the option to disable them?

Thanks,
Eric

Windows Server 2012/Business Edition and need X12-Parser module

We are moving from a Windows server 2008 with perl v5.16.3 to Windows server 2012R2 with Business Edition perl v5.24.1. On the old machine we had a perl module called X12-Parser. I am now trying to install that module on the new machine. It fails and says it can't find any package that provides X12-Parser. It does exist but evidently only compatible with perl v5.10. Does anyone know if there is a replacement module, or how I can install this module so we can have our scripts run on the new server?

Any help is appreciated.

load_file:%1 is not a valid Win32 application

I get the following error,

Can't load 'C:\Program Files (x86)\Rational\TestRealTime/lib/perl/auto/TestRTUtil/TestRTUtil.dll' for module TestRTUtil: load_file:%1 is not a valid Win32 application at C:/Perl64/lib/DynaLoader.pm line 227.
at C:\Program Files (x86)\Rational\TestRealTime/lib/scripts//Translate.pl line
25
Compilation failed in require at C:\Program Files (x86)\Rational\TestRealTime/li
b/scripts//Translate.pl line 25.
BEGIN failed--compilation aborted at C:\Program Files (x86)\Rational\TestRealTim
e/lib/scripts//Translate.pl line 25.

Perl 5.24.2402 Event.dll requires missing DLL Perl522.dll

Hi all-

When I installed the latest 64-bit distribution of ActivePerl 5.24.2402, I got the following errors when trying to run a simple Tk gui.

You can replicate this via a simple Perl script that calls 'use Tk;'.

The error message is in two parts:

(1) GUI dialog from Windows indicating missing Perl522.dll
(2) Console message: Can't load 'C:/Program Files/Perl64/site/lib/auto/Tk/Event/Event.dll' for module Tk::Event:: load_file: The specified module could not be found ...

win32::odbc hasn't closed db connection since build 1604

I've been having an issue for several years now with win32:odbc.

After opening a connection to an Access database, issuing the $db->Close(); command leaves the .ldb file behind.

Code Sample:

///////////////////////////////////////////////////

my $db;
my $count = 0;

while (!defined($keypress=ReadKey(-1)))
{
$db=new Win32::ODBC($DSN) or die "couldn't ODBC $DSN because ", Win32::ODBC::Error(), "\n";
$db->Close();
$count++;
print "Open - Close Count = $count\n";
}

///////////////////////////////////////////////////

Using Perl 5.16, Win32::DirSize does not work.

What do I use to get the number of files and directories in an upper directory. Win32::DirSize no longer works with 5.16 Perl.

can no longer store a database handle in an environment variable

After installing ActivePerl 5.24.0, we can no longer store a database handle in an environment variable.

We get the following error when trying to prepare a sql statement:

Can't locate object method "prepare" via package

The scripts works when I change the database handle from an environment variable to a local variable.

Is there an easy fix for this or do I have to change all of our code to use local variables to store a database handle?

Permission denied

Hello

I've installed ActivePerl 32 bits version.
perl -v
gives the right answer.

When I want to run a script, I get a "permission denied" message each time I want to open a file.

I tried the following code :

open (OUT1,">out1.txt") or die "Cannot: $!";
print OUT1 "testing\n";
close (OUT1);
exit;

and then ran it in cmd window (Administrator or not, it does not change anything) :
D:\username\Documents>perl test.pl
Cannot: Permission denied at test.pl line 1.

Issues setting up GCC and GDB with Activestate

Hi,

I am having issues configuring GCC/GDB with Activestate perl (v5.22.3 built for MSWin32-x64-multi-thread). Installing the toolchain works well (ppm install mingw) and I can build the module (perl, XS, C) in question, but it crashes at runtime. The same module compiles and runs under strawberry perl and doesn't crash. I am trying to track down the cause of the crash, but I can't get GDB to produce any decent output:

(gdb) bt
#0  0x000000006865b3a8 in ?? ()
#1  0x0000000000725db9 in ?? ()
#2  0x0000000000725d08 in ?? ()
#3  0xffffffffffffffff in ?? ()