Skip Menu |

This queue is for tickets about the Log-Tiny CPAN distribution.

Report information
The Basics
Id: 107086
Status: open
Priority: 0/
Queue: Log-Tiny

People
Owner: JMADLER [...] cpan.org
Requestors: brys.dev [...] outlook.com
Cc:
AdminCc:

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



Subject: Error with more than one instance of Log-Tiny
Date: Mon, 14 Sep 2015 17:40:57 +0000
To: "bug-log-tiny [...] rt.cpan.org" <bug-log-tiny [...] rt.cpan.org>
From: Bryan Rivera <brys.dev [...] outlook.com>
When using more than one instance of Log::Tiny in a script, the module dies with an error in DESTROY with Bad File Descriptor error. I think this is due to using the bareword LOG for the filehandle. I tested a patch using a lexically scoped variable for the filehandle and it seemed to work. I’m using: Log::Tiny v0.9 This is perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux-gnu-thread-multi-64int Linux Bastille 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:14:51 UTC 2015 i686 i686 i686 GNU/Linux Thanks Bry R.
Good catch! Thanks for sharing. I'll develop a patch and corresponding test in the coming weeks. Let me know if you'd prefer a more immediate response. Thanks, Jordan On Mon Sep 14 13:41:14 2015, brys.dev@outlook.com wrote: Show quoted text
> When using more than one instance of Log::Tiny in a script, the module > dies with an error in DESTROY with Bad File Descriptor error. I think > this is due to using the bareword LOG for the filehandle. I tested a > patch using a lexically scoped variable for the filehandle and it > seemed to work. > > I’m using: > Log::Tiny v0.9 > This is perl 5, version 18, subversion 2 (v5.18.2) built for i686- > linux-gnu-thread-multi-64int > Linux Bastille 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:14:51 > UTC 2015 i686 i686 i686 GNU/Linux > > Thanks > Bry R.
No immediate need. I'll look forward to the patch. Thanks. On Mon Sep 14 20:21:18 2015, JMADLER wrote: Show quoted text
> Good catch! Thanks for sharing. > > I'll develop a patch and corresponding test in the coming weeks. > > Let me know if you'd prefer a more immediate response. > > Thanks, > Jordan > > On Mon Sep 14 13:41:14 2015, brys.dev@outlook.com wrote:
> > When using more than one instance of Log::Tiny in a script, the module > > dies with an error in DESTROY with Bad File Descriptor error. I think > > this is due to using the bareword LOG for the filehandle. I tested a > > patch using a lexically scoped variable for the filehandle and it > > seemed to work. > > > > I’m using: > > Log::Tiny v0.9 > > This is perl 5, version 18, subversion 2 (v5.18.2) built for i686- > > linux-gnu-thread-multi-64int > > Linux Bastille 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:14:51 > > UTC 2015 i686 i686 i686 GNU/Linux > > > > Thanks > > Bry R.
> >
I've just published Log::Tiny 1.0, which I believe resolves your issue. Please take a look and let me know. On Mon Sep 14 20:43:13 2015, brys.dev@outlook.com wrote: Show quoted text
> No immediate need. I'll look forward to the patch. > Thanks. > > On Mon Sep 14 20:21:18 2015, JMADLER wrote:
> > Good catch! Thanks for sharing. > > > > I'll develop a patch and corresponding test in the coming weeks. > > > > Let me know if you'd prefer a more immediate response. > > > > Thanks, > > Jordan > > > > On Mon Sep 14 13:41:14 2015, brys.dev@outlook.com wrote:
> > > When using more than one instance of Log::Tiny in a script, the module > > > dies with an error in DESTROY with Bad File Descriptor error. I think > > > this is due to using the bareword LOG for the filehandle. I tested a > > > patch using a lexically scoped variable for the filehandle and it > > > seemed to work. > > > > > > I’m using: > > > Log::Tiny v0.9 > > > This is perl 5, version 18, subversion 2 (v5.18.2) built for i686- > > > linux-gnu-thread-multi-64int > > > Linux Bastille 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:14:51 > > > UTC 2015 i686 i686 i686 GNU/Linux > > > > > > Thanks > > > Bry R.
> > > >
> >