Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MCE CPAN distribution.

Report information
The Basics
Id: 105559
Status: resolved
Priority: 0/
Queue: MCE

People
Owner: Nobody in particular
Requestors: mckeowbc [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.700



Subject: Calling MCE::Stream inside an eval statement fails
Date: Mon, 29 Jun 2015 18:11:58 +0000
To: "bug-MCE [...] rt.cpan.org" <bug-MCE [...] rt.cpan.org>
From: "Benjamin C. McKeown" <mckeowbc [...] gmail.com>
This bug is similar to #105557 <https://rt.cpan.org/Public/Bug/Display.html?id=105557> except in the MCE::Stream module instead of MCE::Map. This bug is in version 1.608 of MCE. When calling mce_stream with in eval statement a warning about an uninitialized variable is printed and a zero element array is returned. The following code on Pastebin demonstrates the error: http://pastebin.com/5zreduhc When run this code prints the following message: Use of uninitialized value $_order_id in subtraction (-) at lib/MCE/Stream.pm line 514 Cheers, Ben McKeown
Subject: Re: [rt.cpan.org #105559] Calling MCE::Stream inside an eval statement fails
Date: Mon, 29 Jun 2015 15:55:47 -0400
To: bug-MCE [...] rt.cpan.org
From: Mario Roy <marioeroy [...] gmail.com>
Hi Ben, Thank you for submitting this bug report. The next MCE release will contain the following fix. if ($^S) { ## shutdown if inside an eval statement MCE::_save_state; $_MCE->shutdown(); MCE::_restore_state; $_->DESTROY() for (@_queue); @_queue = (); } Btw, I will check all MCE models. This was overlooked. Kind regards, Mario
This has been resolved in the interim MCE 1.7 release. https://metacpan.org/release/MARIOROY/MCE-1.698_001 Thank you, Mario