Skip Menu |

This queue is for tickets about the File-LibMagic CPAN distribution.

Report information
The Basics
Id: 86799
Status: resolved
Priority: 0/
Queue: File-LibMagic

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

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



Subject: t/oo-api.t fails
Test dies silently before hitting done_testing() $ prove -bv t/oo-api.t t/oo-api.t .. ok 1 - The object isa File::LibMagic ok 2 - MIME t/samples/foo.c - standard magic file ok 3 - Describe t/samples/foo.c - standard magic file ok 4 - MIME data t/samples/foo.c - standard magic file ok 5 - Describe data t/samples/foo.c - standard magic file ok 6 - MIME t/samples/foo.foo - standard magic file ok 7 - Describe t/samples/foo.foo - standard magic file ok 8 - MIME data t/samples/foo.foo - standard magic file ok 9 - Describe data t/samples/foo.foo - standard magic file ok 10 - The object isa File::LibMagic ok 11 - MIME t/samples/foo.c - custom magic file All 11 subtests passed Test Summary Report ------------------- t/oo-api.t (Wstat: 11 Tests: 11 Failed: 0) Non-zero wait status: 11 Parse errors: No plan found in TAP output Files=1, Tests=11, 0 wallclock secs ( 0.13 usr 0.01 sys + 0.17 cusr 0.02 csys = 0.33 CPU) Result: FAIL It dies at line 100, during the $flm->describe_filename($file) call.
Subject: Re: [rt.cpan.org #86799] t/oo-api.t fails
Date: Tue, 9 Jul 2013 10:17:40 -0500 (CDT)
To: Jerome Quelin via RT <bug-File-LibMagic [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Tue, 9 Jul 2013, Jerome Quelin via RT wrote: Show quoted text
> Test dies silently before hitting done_testing() > > $ prove -bv t/oo-api.t > t/oo-api.t .. > ok 1 - The object isa File::LibMagic > ok 2 - MIME t/samples/foo.c - standard magic file > ok 3 - Describe t/samples/foo.c - standard magic file > ok 4 - MIME data t/samples/foo.c - standard magic file > ok 5 - Describe data t/samples/foo.c - standard magic file > ok 6 - MIME t/samples/foo.foo - standard magic file > ok 7 - Describe t/samples/foo.foo - standard magic file > ok 8 - MIME data t/samples/foo.foo - standard magic file > ok 9 - Describe data t/samples/foo.foo - standard magic file > ok 10 - The object isa File::LibMagic > ok 11 - MIME t/samples/foo.c - custom magic file > All 11 subtests passed
Can you run this directly with Perl: perl -Mblib t/oo-api.t I think it's segfaulting, but this should confirm it. Also, running the above with strace and giving me the output might be helpful. Thanks, -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
On Tue Jul 09 11:17:59 2013, autarch@urth.org wrote: Show quoted text
> Can you run this directly with Perl: > perl -Mblib t/oo-api.t
$ perl -Mblib t/oo-api.t ok 1 - The object isa File::LibMagic ok 2 - MIME t/samples/foo.c - standard magic file ok 3 - Describe t/samples/foo.c - standard magic file ok 4 - MIME data t/samples/foo.c - standard magic file ok 5 - Describe data t/samples/foo.c - standard magic file ok 6 - MIME t/samples/foo.foo - standard magic file ok 7 - Describe t/samples/foo.foo - standard magic file ok 8 - MIME data t/samples/foo.foo - standard magic file ok 9 - Describe data t/samples/foo.foo - standard magic file ok 10 - The object isa File::LibMagic ok 11 - MIME t/samples/foo.c - custom magic file Segmentation fault See attached file for strace output (strace perl -Mblib t/oo-api.t >ooapi-segfault.trace 2>&1).
Subject: ooapi-segfault.trace
Download ooapi-segfault.trace
application/octet-stream 80.1k

Message body not shown because it is not plain text.

From: jokajak [...] gmail.com
On Thu Jul 11 04:16:49 2013, JQUELIN wrote: Show quoted text
> On Tue Jul 09 11:17:59 2013, autarch@urth.org wrote:
> > Can you run this directly with Perl: > > perl -Mblib t/oo-api.t
> > $ perl -Mblib t/oo-api.t > ok 1 - The object isa File::LibMagic > ok 2 - MIME t/samples/foo.c - standard magic file > ok 3 - Describe t/samples/foo.c - standard magic file > ok 4 - MIME data t/samples/foo.c - standard magic file > ok 5 - Describe data t/samples/foo.c - standard magic file > ok 6 - MIME t/samples/foo.foo - standard magic file > ok 7 - Describe t/samples/foo.foo - standard magic file > ok 8 - MIME data t/samples/foo.foo - standard magic file > ok 9 - Describe data t/samples/foo.foo - standard magic file > ok 10 - The object isa File::LibMagic > ok 11 - MIME t/samples/foo.c - custom magic file > Segmentation fault > > See attached file for strace output (strace perl -Mblib t/oo-api.t
> >ooapi-segfault.trace 2>&1).
This is happens while trying to build 0.99 in Fedora 20 (rawhide).
On Wed Sep 04 16:50:51 2013, jokajak@gmail.com wrote: Show quoted text
> On Thu Jul 11 04:16:49 2013, JQUELIN wrote:
> > On Tue Jul 09 11:17:59 2013, autarch@urth.org wrote:
> > > Can you run this directly with Perl: > > > perl -Mblib t/oo-api.t
> > > > $ perl -Mblib t/oo-api.t > > ok 1 - The object isa File::LibMagic > > ok 2 - MIME t/samples/foo.c - standard magic file > > ok 3 - Describe t/samples/foo.c - standard magic file > > ok 4 - MIME data t/samples/foo.c - standard magic file > > ok 5 - Describe data t/samples/foo.c - standard magic file > > ok 6 - MIME t/samples/foo.foo - standard magic file > > ok 7 - Describe t/samples/foo.foo - standard magic file > > ok 8 - MIME data t/samples/foo.foo - standard magic file > > ok 9 - Describe data t/samples/foo.foo - standard magic file > > ok 10 - The object isa File::LibMagic > > ok 11 - MIME t/samples/foo.c - custom magic file > > Segmentation fault > > > > See attached file for strace output (strace perl -Mblib t/oo-api.t
> > >ooapi-segfault.trace 2>&1).
> > > This is happens while trying to build 0.99 in Fedora 20 (rawhide).
Someday when I have enough tuits I'll have to set up Fedora 20 VM to investigate this. Unfortunately the strace doesn't tell me much. I'd really need to step through this with gdb or something to see what's going on.
From: jokajak [...] gmail.com
On Sat Sep 07 17:43:05 2013, DROLSKY wrote: Show quoted text
> On Wed Sep 04 16:50:51 2013, jokajak@gmail.com wrote:
> > On Thu Jul 11 04:16:49 2013, JQUELIN wrote:
> > > On Tue Jul 09 11:17:59 2013, autarch@urth.org wrote:
> > > > Can you run this directly with Perl: > > > > perl -Mblib t/oo-api.t
> > > > > > $ perl -Mblib t/oo-api.t > > > ok 1 - The object isa File::LibMagic > > > ok 2 - MIME t/samples/foo.c - standard magic file > > > ok 3 - Describe t/samples/foo.c - standard magic file > > > ok 4 - MIME data t/samples/foo.c - standard magic file > > > ok 5 - Describe data t/samples/foo.c - standard magic file > > > ok 6 - MIME t/samples/foo.foo - standard magic file > > > ok 7 - Describe t/samples/foo.foo - standard magic file > > > ok 8 - MIME data t/samples/foo.foo - standard magic file > > > ok 9 - Describe data t/samples/foo.foo - standard magic file > > > ok 10 - The object isa File::LibMagic > > > ok 11 - MIME t/samples/foo.c - custom magic file > > > Segmentation fault > > > > > > See attached file for strace output (strace perl -Mblib t/oo-api.t
> > > > ooapi-segfault.trace 2>&1).
> > > > > > This is happens while trying to build 0.99 in Fedora 20 (rawhide).
> > Someday when I have enough tuits I'll have to set up Fedora 20 VM to > investigate this. Unfortunately the strace doesn't tell me much. I'd > really need to step through this with gdb or something to see what's > going on.
Magically it's fixed with the 1.00 release :) Thanks!
On Mon Sep 09 12:27:09 2013, jokajak@gmail.com wrote: Show quoted text
> On Sat Sep 07 17:43:05 2013, DROLSKY wrote:
> > On Wed Sep 04 16:50:51 2013, jokajak@gmail.com wrote:
> > > On Thu Jul 11 04:16:49 2013, JQUELIN wrote:
> > > > On Tue Jul 09 11:17:59 2013, autarch@urth.org wrote:
> > > > > Can you run this directly with Perl: > > > > > perl -Mblib t/oo-api.t
> > > > > > > > $ perl -Mblib t/oo-api.t > > > > ok 1 - The object isa File::LibMagic > > > > ok 2 - MIME t/samples/foo.c - standard magic file > > > > ok 3 - Describe t/samples/foo.c - standard magic file > > > > ok 4 - MIME data t/samples/foo.c - standard magic file > > > > ok 5 - Describe data t/samples/foo.c - standard magic file > > > > ok 6 - MIME t/samples/foo.foo - standard magic file > > > > ok 7 - Describe t/samples/foo.foo - standard magic file > > > > ok 8 - MIME data t/samples/foo.foo - standard magic file > > > > ok 9 - Describe data t/samples/foo.foo - standard magic file > > > > ok 10 - The object isa File::LibMagic > > > > ok 11 - MIME t/samples/foo.c - custom magic file > > > > Segmentation fault > > > > > > > > See attached file for strace output (strace perl -Mblib t/oo-api.t
> > > > > ooapi-segfault.trace 2>&1).
> > > > > > > > > This is happens while trying to build 0.99 in Fedora 20 (rawhide).
> > > > Someday when I have enough tuits I'll have to set up Fedora 20 VM to > > investigate this. Unfortunately the strace doesn't tell me much. I'd > > really need to step through this with gdb or something to see what's > > going on.
> > > Magically it's fixed with the 1.00 release :) Thanks!
Weird, I didn't make any changes to the XS code. I'll close this ticket though.