Skip Menu |

This queue is for tickets about the Inline-Python CPAN distribution.

Report information
The Basics
Id: 87962
Status: resolved
Priority: 0/
Queue: Inline-Python

People
Owner: Nobody in particular
Requestors: lance.luvaul [...] anu.edu.au
Cc:
AdminCc:

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



Subject: Bug found in Inline/Python.pm line 225
Date: Tue, 20 Aug 2013 10:36:14 +1000
To: <bug-Inline-Python [...] rt.cpan.org>
From: Lance Luvaul <lance.luvaul [...] anu.edu.au>
for (@{ $o->{ILSM}{namespace}{functions} || {} }); The above line gives the error "Not an ARRAY reference" when it is hit. I think it should read: for (@{ $o->{ILSM}{namespace}{functions} || [] });
Indeed! Can you give me some short example code that triggers this bug? I tried to reproduce it, but can't figure out a test case.
Subject: Re: [rt.cpan.org #87962] Bug found in Inline/Python.pm line 225
Date: Tue, 20 Aug 2013 16:57:37 +1000
To: <bug-inline-python [...] rt.cpan.org>
From: Lance Luvaul <lance.luvaul [...] anu.edu.au>
No problem, see below. It's a race condition caused by running multiple parallel instances. To reproduce, first create 'test.pl' containing the following: ================= #!/usr/bin/perl use Inline Python => <<'END_PY'; def test(): a = 0 END_PY ================= Then run the following: bash-3.2$ rm -rf _Inline bash-3.2$ mkdir _Inline bash-3.2$ for i in {1..50}; do ./test.pl & done Repeat this a few times if you don't get at least one "Not an ARRAY reference" error the first time. [Note you'll get other errors mixed in, like "You are using a config file that was created by an older version of Inline".] On Tuesday, 20 August 2013 4:12:19 PM, Stefan Seifert via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=87962 > > > Indeed! Can you give me some short example code that triggers this bug? I tried to reproduce it, but can't figure out a test case. >
The "Not an ARRAY reference" bug is fixed in version 0.43. Running tests in parallel is still not supported. I suspect that the remaining errors are in Inline itself.