This queue is for tickets about the Win32-MMF CPAN distribution.

Report information
The Basics
Id:
118683
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Chris_Webster [...] bmc.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-4.2 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked
Content-Language: en-US
X-MS-Exchange-Transport-Fromentityheader: Hosted
Content-Type: multipart/alternative; boundary="_000_ea6ce763c6894baf8826a343bc6cbdd3houexmbprd01adprodbmcco_"
Message-ID: <ea6ce763c6894baf8826a343bc6cbdd3@hou-exmbprd-01.adprod.bmc.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-MS-Tnef-Correlator:
X-Spam-Score: -4.2
X-Proofpoint-Spam-Reason: safe
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7E9DF240365 for <cpan-bug+Win32-MMF@hipster.bestpractical.com>; Tue, 8 Nov 2016 19:46:23 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K7Q1nDoFKSdR for <cpan-bug+Win32-MMF@hipster.bestpractical.com>; Tue, 8 Nov 2016 19:46:21 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id CCF71240046 for <bug-Win32-MMF@rt.cpan.org>; Tue, 8 Nov 2016 19:46:20 -0500 (EST)
Received: (qmail 25270 invoked by alias); 9 Nov 2016 00:46:19 -0000
Received: from mx-us-aus-02.bmc.com (HELO mx-us-aus-02-int.bmc.com) (198.175.230.159) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 08 Nov 2016 16:46:14 -0800
Received: from pps.filterd (mx-us-aus-02-int.bmc.com [127.0.0.1]) by mx-us-aus-02-int.bmc.com (8.15.0.59/8.15.0.59) with SMTP id uA90jTRS028026 for <bug-Win32-MMF@rt.cpan.org>; Wed, 9 Nov 2016 00:46:09 GMT
Received: from hou-exmbprd-02.adprod.bmc.com ([172.17.1.86]) by mx-us-aus-02-int.bmc.com with ESMTP id 26kmr3ttxm-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for <bug-Win32-MMF@rt.cpan.org>; Wed, 09 Nov 2016 00:46:09 +0000
Received: from HOU-EXMBPRD-01.adprod.bmc.com (172.17.1.84) by hou-exmbprd-02.adprod.bmc.com (172.17.1.86) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 8 Nov 2016 18:46:08 -0600
Received: from HOU-EXMBPRD-01.adprod.bmc.com ([172.18.85.225]) by hou-exmbprd-01.adprod.bmc.com ([172.18.85.225]) with mapi id 15.00.1210.000; Tue, 8 Nov 2016 18:46:07 -0600
Delivered-To: cpan-bug+Win32-MMF@hipster.bestpractical.com
Subject: MMF::CreateFileMapping Fails with Perl 64 bit
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-08_08:,, signatures=0
Return-Path: <Chris_Webster@bmc.com>
X-RT-Mail-Extension: win32-mmf
X-Original-To: cpan-bug+Win32-MMF@hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AdI6HClOHn3yq41qShuvwYYfJzt9ZA==
Date: Wed, 9 Nov 2016 00:46:07 +0000
X-Spam-Level:
X-MS-Has-Attach:
Thread-Topic: MMF::CreateFileMapping Fails with Perl 64 bit
X-Originating-Ip: [172.28.178.141]
Accept-Language: en-CA, en-US
To: "bug-Win32-MMF@rt.cpan.org" <bug-Win32-MMF@rt.cpan.org>
From: "Webster, Chris" <Chris_Webster@bmc.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 1393
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 4804

While running Strawberry Perl 64-bit the CreateFileMapping fails with Invalid File Handle.

 

The initial error is:

Use of uninitialized value in subroutine entry at C:/home/dev/perl/5240/perl/perl/site/lib/Win32/MMF.pm line 149.

 

Setting debug on got this message:

CreateFileMapping: Error creating file mapping

 

Changing MMF.pm gave the invalid file handle message:

        $ns = CreateFileMapping($swap, $size, $namespace)

           or croak Win32::FormatMessage( Win32::GetLastError());

 

Initially changed MMF.pm to pass a handle of -1 instead of 0 and it worked. 

 

Changing line 548 of MMF.xs from:

               HANDLE hFile = (HANDLE)0xFFFFFFFF;

To:

               HANDLE hFile = INVALID_HANDLE_VALUE;

Resolved the problem.  I did not run a 32-bit build (this was my first build of any part of perl).

 

Running on Win7 64-bit.

 

c:\home\dev\scc\1211\scc\build\make>perl -V

Summary of my perl5 (revision 5 version 24 subversion 0) configuration:

 

  Platform:

    osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread

    uname='Win32 strawberry-perl 5.24.0.1 #1 Tue May 10 21:30:49 2016 x64'

    config_args='undef'

    hint=recommended, useposix=true, d_sigaction=undef

    useithreads=define, usemultiplicity=define

    use64bitint=define, use64bitall=undef, uselongdouble=undef

    usemymalloc=n, bincompat5005=undef

 

Let me know if you need more information.

 

Thanks,

…chris.



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.