Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the devel-nytprof CPAN distribution.

Report information
The Basics
Id: 38284
Status: resolved
Priority: 0/
Queue: devel-nytprof

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

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



Subject: File format error / filename contains strange characters / report possible corruption
So I ran a test with Devel::NYTProf 2.02 enabled, and when I ran nytprofhtml I got this: ----- Generating report... File format error: token 38 ('&'), line 8682 at /home/.../deps/lib/perl5/i86pc-solaris-thread-multi//Devel/NYTProf/Data.pm line 72. ----- Googling for a bit resulted in this recent conversation: http://groups.google.com/group/develnytprof-dev/browse_thread/thread/660485f185a69d5/f0754ab87ee039fe?lnk=gst&q=File+format+error#f0754ab87ee039fe So, I tried installing the SVN trunk, and then when I run the profiling run, I get this: ----- $ PERL5OPT=-d:NYTProf prove aggtests/util/data-general.t aggtests/util/data-general......Fid 6 filename contains strange characters ' ' (please report this possible corruption) at /home/lindsj05/source/pips3/branches/gold_prof/deps/lib/perl5//Test/More.pm line 896. ----- And if I now run nytprofhtml (just for reference), this happens: ----- $ nytprofhtml Generating report... File format error: token 29 (''), chunk 8682, pos 65822 at /home/lindsj05/source/pips3/branches/gold_prof/deps/lib/perl5/i86pc-solaris-thread-multi//Devel/NYTProf/Data.pm line 74. ----- Not sure how to report it other than this bug. I attached the nytprof.out.* files that was generated if that helps. Perl 5.8.8 on Solaris: Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.8, archname=i86pc-solaris-thread-multi uname='sunos thor 5.8 generic_117351-46 i86pc i386 i86pc' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -xO3 -xarch=386 -xspace -xildoff -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-xO3 -xarch=386 -xspace -xildoff', cppflags='-D_REENTRANT -xO3 -xarch=386 -xspace -xildoff -I/opt/csw/bdb44/include -I/opt/csw/include' ccversion='Sun C 5.8 Patch 121016-05 2007/01/10', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags ='-xarch=386 -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib' libpth=/usr/lib /usr/ccs/lib /opt/SUNWspro/prod/lib /lib /opt/csw/lib libs=-lsocket -lnsl -lgdbm -ldb-4.4 -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldb-4.4 -ldl -lm -lpthread -lc libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /opt/csw/lib' cccdlflags='-KPIC', lddlflags='-G -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE Built under solaris Compiled at Mar 16 2007 11:31:22
Subject: nytprof.out.tgz
Download nytprof.out.tgz
application/octet-stream 33.1k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #38284] File format error / filename contains strange characters / report possible corruption
Date: Thu, 7 Aug 2008 12:38:05 +0100
To: Johan Lindstrom via RT <bug-devel-nytprof [...] rt.cpan.org>
From: Tim Bunce <Tim.Bunce [...] pobox.com>
Thanks for the report Johan. I'll take a look at the .out file. It would be a _big_ help to us if you could find a small reproducible test case. Firstly, is the existing example reproducible? If so can you try cutting out portions and to see find the smallest reproducible example you can? Tim.
On Thu Aug 07 07:38:33 2008, Tim.Bunce@pobox.com wrote: Show quoted text
> It would be a _big_ help to us if you could find a small reproducible > test case.
The following fails for me: $ PERL5OPT=-d:NYTProf perl util-data.t ------------------------------ use strict; use Test::More tests => 1; is_deeply([ ], [ ], "Will fail with the error in __END__"); __END__ $ PERL5OPT=-d:NYTProf perl util-data.t 1..1 Fid 7 filename contains strange characters ' ' (please report this possible corruption) at /home/lindsj05/source/pips3/branches/gold_prof/deps/lib/perl5//Test/More.pm line 896. ------------------------- It's not _exactly_ minimal in that it loads Test::More & friends and calls is_deeply() which probably isn't trivial, but I guess you'll have a decent shot of locating where in there it fails. /J
This is a bug in perl5.8.8. I've added a new option (xsfile=0) in the next release do disable the affected feature.