Skip Menu |

This queue is for tickets about the Data-Dump-Streamer CPAN distribution.

Report information
The Basics
Id: 58528
Status: resolved
Priority: 0/
Queue: Data-Dump-Streamer

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

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



Subject: t/madness.t fails on Strawberry Perl Portable 5.10.1
Attempting a clean build of Data::Dump::Streamer on Strawberry Perl Portable 5.10.1 fails in the t/madness.t and will not install via cpan. Creating new 'MYMETA.yml' with configuration results Creating new 'Build' script for 'Data-Dump-Streamer' version '2.18' Building Data-Dump-Streamer gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT _READFIX -s -O2 "-DXS_VERSION=\"2.18\"" "-DVERSION=\"2.18\"" -I"C:\chm\strawberry\perl\lib\CORE" -I"C:\chm\strawberry\c\include" -o "lib\Da ta\Dump\Streamer.o" "lib\Data\Dump\Streamer.c" ExtUtils::Mkbootstrap::Mkbootstrap('blib\arch\auto\Data\Dump\Streamer\Streamer.bs') Generating script 'lib\Data\Dump\Streamer.lds' dlltool --def "lib\Data\Dump\Streamer.def" --output-exp "lib\Data\Dump\Streamer.exp" g++.exe -o "blib\arch\auto\Data\Dump\Streamer\Streamer.dll" -Wl,--base-file,"lib\Data\Dump\Streamer.base" -Wl,--image-base,0x32190000 -mdll -s -L"C:\chm\strawberry\perl\lib\CORE" -L"C:\chm\strawberry\c\lib" "lib\Data\Dump\Streamer.lds" "lib\Data\Dump\Streamer.exp" dlltool --def "lib\Data\Dump\Streamer.def" --output-exp "lib\Data\Dump\Streamer.exp" --base-file "lib\Data\Dump\Streamer.base" g++.exe -o "blib\arch\auto\Data\Dump\Streamer\Streamer.dll" -Wl,--image-base,0x32190000 -mdll -s -L"C:\chm\strawberry\perl\lib\CORE" -L"C:\ chm\strawberry\c\lib" "lib\Data\Dump\Streamer.lds" "lib\Data\Dump\Streamer.exp" t\as.t .............. ok t\blessed.t ......... ok t\dogpound.t ........ ok t\dump.t ............ ok t\filter.t .......... ok t\globtest.t ........ ok t\hardrefs.t ........ ok t\impure_madness.t .. ok # # PadWalker 1.9 is installed t\lexicals.t ........ ok t\locked.t .......... ok # Failed test '' # at t\test_helper.pl line 114. # Looks like you failed 1 test of 7. t\madness.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/7 subtests t\madness_w.t ....... ok t\names.t ........... ok t\overload.t ........ ok t\readonly.t ........ ok t\refaddr.t ......... ok t\refcount.t ........ ok t\refelem.t ......... ok t\reftype.t ......... ok t\sortkeys.t ........ ok t\tree.t ............ ok t\usage.t ........... ok t\xs_subs.t ......... ok Test Summary Report ------------------- t\madness.t (Wstat: 256 Tests: 7 Failed: 1) Failed test: 7 Non-zero exit status: 1 Files=23, Tests=362, 10 wallclock secs ( 0.31 usr + 0.05 sys = 0.36 CPU) Result: FAIL Failed 1/23 test programs. 1/362 subtests failed. 1..7 ok 1 - use Data::Dump::Streamer; ok 2 - The object isa Data::Dump::Streamer ok 3 - Madness cap( $qr,$qr ) ok 4 - Total Madness ok 5 - More Madness ok 6 - Tye Alias Array not ok 7 - # Failed test '' # at t\test_helper.pl line 114. -Expected +Result @27,27 (302) = PVM => '', - RV => \do { my $v = undef }, + RV => \do { my $v = 0 }, = UND => undef Got: $HASH1 = { AR => [ 1, 2 ], CR => sub { use warnings; use strict 'refs'; 'code'; }, FMT => \do{ local *F; my $F=<<'_EOF_FORMAT_'; $F=~s/^\s+# //mg; eval $F; die $F.$@ if $@; *F{FORMAT}; # format F = # @<<<<<< @<E2><94><82><E2><94><82><E2><94><82><E2><94><82><E2><94><82><E2><94><82> @>>>>>> # 'left', 'middle', 'right' # . _EOF_FORMAT_ }, GLB => *::STDERR, HR => { key => 'value' }, IO => bless( *{Symbol::gensym()}{IO}, 'IO::Handle' ), IV => 1, NV => 3.14159265358979, OBJ => bless( qr/("[^"]+")/, 'Zorp' ), PV => 'string', PV8 => "ab\ncd\x{20ac}\t", PVM => '', RV => \do { my $v = 0 }, UND => undef }; +---+ S 1 : 0x11bafbc(c 2| 1) Dp: 1 RW Du:1 => $HASH1 S 2 : 0x11baf9c(c 3| 1) Dp: 5 RW Du:1 => ${$HASH1->{FMT}} < $HASH1->{FMT} > S 3 : 0x11b47ac(c 2| 1) Dp: 5 RW Du:- => ${$HASH1->{OBJ}} < $HASH1->{OBJ} > S 4 : 0xf7944c(c 4| 1) Dp: 5 RW Du:1 => ${$HASH1->{RV}} < $HASH1->{RV} > ----- R 1 : 0x111fd84(c 2|-1) Dp: 2 Du:1 => $HASH1 R 2 : 0x11cb874(c 1|-1) Dp: 4 Du:1 => $HASH1->{AR} R 3 : 0x111ff44(c 1|-1) Dp: 4 Du:1 => $HASH1->{CR} R 4 : 0x11baf9c(c 1|-1) Dp: 4 Du:1 => $HASH1->{FMT} < ${$HASH1->{FMT}} > R 5 : 0x11b474c(c 1|-1) Dp: 4 Du:1 => $HASH1->{HR} R 6 : 0x9c9c04(c 1|-1) Dp: 4 Du:1 => $HASH1->{IO} R 7 : 0x11b47ac(c 1|-1) Dp: 4 Du:1 => $HASH1->{OBJ} < ${$HASH1->{OBJ}} > R 8 : 0xf7944c(c 1|-1) Dp: 4 Du:1 => $HASH1->{RV} < ${$HASH1->{RV}} > R 9 : 0x111fd34(c 3|-1) Dp: 6 Du:1 => ${$HASH1->{FMT}} +---+ # Looks like you failed 1 test of 7.
On Sat Jun 19 12:43:49 2010, CHM wrote: Show quoted text
> Attempting a clean build of Data::Dump::Streamer on Strawberry Perl > Portable 5.10.1 fails in the t/madness.t and will not install via > cpan. > > Creating new 'MYMETA.yml' with configuration results > Creating new 'Build' script for 'Data-Dump-Streamer' version '2.18' > Building Data-Dump-Streamer > gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing > -DPERL_MSVCRT > _READFIX -s -O2 "-DXS_VERSION=\"2.18\"" "-DVERSION=\"2.18\"" > -I"C:\chm\strawberry\perl\lib\CORE" -I"C:\chm\strawberry\c\include" -o > "lib\Da > ta\Dump\Streamer.o" "lib\Data\Dump\Streamer.c" >
ExtUtils::Mkbootstrap::Mkbootstrap('blib\arch\auto\Data\Dump\Streamer\Streamer.bs') Show quoted text
> Generating script 'lib\Data\Dump\Streamer.lds' > dlltool --def "lib\Data\Dump\Streamer.def" --output-exp > "lib\Data\Dump\Streamer.exp" > g++.exe -o "blib\arch\auto\Data\Dump\Streamer\Streamer.dll" > -Wl,--base-file,"lib\Data\Dump\Streamer.base" > -Wl,--image-base,0x32190000 -mdll > -s -L"C:\chm\strawberry\perl\lib\CORE" -L"C:\chm\strawberry\c\lib" > "lib\Data\Dump\Streamer.lds" "lib\Data\Dump\Streamer.exp" > dlltool --def "lib\Data\Dump\Streamer.def" --output-exp > "lib\Data\Dump\Streamer.exp" --base-file "lib\Data\Dump\Streamer.base" > g++.exe -o "blib\arch\auto\Data\Dump\Streamer\Streamer.dll" > -Wl,--image-base,0x32190000 -mdll -s > -L"C:\chm\strawberry\perl\lib\CORE" > -L"C:\ > chm\strawberry\c\lib" "lib\Data\Dump\Streamer.lds" > "lib\Data\Dump\Streamer.exp" > t\as.t .............. ok > t\blessed.t ......... ok > t\dogpound.t ........ ok > t\dump.t ............ ok > t\filter.t .......... ok > t\globtest.t ........ ok > t\hardrefs.t ........ ok > t\impure_madness.t .. ok > # > # PadWalker 1.9 is installed > t\lexicals.t ........ ok > t\locked.t .......... ok > > # Failed test '' > # at t\test_helper.pl line 114. > # Looks like you failed 1 test of 7. > t\madness.t ......... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/7 subtests > t\madness_w.t ....... ok > t\names.t ........... ok > t\overload.t ........ ok > t\readonly.t ........ ok > t\refaddr.t ......... ok > t\refcount.t ........ ok > t\refelem.t ......... ok > t\reftype.t ......... ok > t\sortkeys.t ........ ok > t\tree.t ............ ok > t\usage.t ........... ok > t\xs_subs.t ......... ok > > Test Summary Report > ------------------- > t\madness.t (Wstat: 256 Tests: 7 Failed: 1) > Failed test: 7 > Non-zero exit status: 1 > Files=23, Tests=362, 10 wallclock secs ( 0.31 usr + 0.05 sys = 0.36 > CPU) > Result: FAIL > Failed 1/23 test programs. 1/362 subtests failed. > 1..7 > ok 1 - use Data::Dump::Streamer; > ok 2 - The object isa Data::Dump::Streamer > ok 3 - Madness cap( $qr,$qr ) > ok 4 - Total Madness > ok 5 - More Madness > ok 6 - Tye Alias Array > not ok 7 - > # Failed test '' > # at t\test_helper.pl line 114. > -Expected > +Result > @27,27 (302) > = PVM => '', > - RV => \do { my $v = undef }, > + RV => \do { my $v = 0 }, > = UND => undef > Got: > $HASH1 = { > AR => [ > 1, > 2 > ], > CR => sub { > use warnings; > use strict 'refs'; > 'code'; > }, > FMT => \do{ local *F; my $F=<<'_EOF_FORMAT_'; $F=~s/^\s+# > //mg; eval $F; die $F.$@ if $@; *F{FORMAT}; > # format F = > # @<<<<<< > @<E2><94><82><E2><94><82><E2><94><82><E2><94><82><E2><94><82><E2><94><82> > @>>>>>> > # 'left', 'middle', 'right' > # . > _EOF_FORMAT_ > }, > GLB => *::STDERR, > HR => { key => 'value' }, > IO => bless( *{Symbol::gensym()}{IO}, 'IO::Handle' ), > IV => 1, > NV => 3.14159265358979, > OBJ => bless( qr/("[^"]+")/, 'Zorp' ), > PV => 'string', > PV8 => "ab\ncd\x{20ac}\t", > PVM => '', > RV => \do { my $v = 0 }, > UND => undef > }; > +---+ > S 1 : 0x11bafbc(c 2| 1) Dp: 1 RW Du:1 => $HASH1 > S 2 : 0x11baf9c(c 3| 1) Dp: 5 RW Du:1 => ${$HASH1->{FMT}} < > $HASH1->{FMT} > > S 3 : 0x11b47ac(c 2| 1) Dp: 5 RW Du:- => ${$HASH1->{OBJ}} < > $HASH1->{OBJ} > > S 4 : 0xf7944c(c 4| 1) Dp: 5 RW Du:1 => ${$HASH1->{RV}} < $HASH1-
> >{RV} >
> ----- > R 1 : 0x111fd84(c 2|-1) Dp: 2 Du:1 => $HASH1 > R 2 : 0x11cb874(c 1|-1) Dp: 4 Du:1 => $HASH1->{AR} > R 3 : 0x111ff44(c 1|-1) Dp: 4 Du:1 => $HASH1->{CR} > R 4 : 0x11baf9c(c 1|-1) Dp: 4 Du:1 => $HASH1->{FMT} < > ${$HASH1->{FMT}} > > R 5 : 0x11b474c(c 1|-1) Dp: 4 Du:1 => $HASH1->{HR} > R 6 : 0x9c9c04(c 1|-1) Dp: 4 Du:1 => $HASH1->{IO} > R 7 : 0x11b47ac(c 1|-1) Dp: 4 Du:1 => $HASH1->{OBJ} < > ${$HASH1->{OBJ}} > > R 8 : 0xf7944c(c 1|-1) Dp: 4 Du:1 => $HASH1->{RV} < ${$HASH1-
> >{RV}} >
> R 9 : 0x111fd34(c 3|-1) Dp: 6 Du:1 => ${$HASH1->{FMT}} > +---+ > # Looks like you failed 1 test of 7.
I don't recall having noticed this particular failing anywhere else. Is this particular to your build?
On Sat Jun 19 13:54:39 2010, JJORE wrote: Show quoted text
> > I don't recall having noticed this particular failing anywhere else. > Is > this particular to your build?
This is not my build. It is the Apr 2010 Strawberry Perl Portable downloaded from this page: http://strawberryperl.com/releases.html from the first link: http://www.ohloh.net/p/strawberry-perl/download?filename=strawberry-perl-5.10.1.2-portable.zip To reproduce, just unzip the archive file into a folder on a windows system. Then make sure the .exe and .dll file all are executable. Then run the portableshell.bat to start the session. After than, a cpan Data::Dump::Streamer at the cmd prompt should reproduce the problem. It did for me on an XP and a Vista system. --Chris
Subject: Re: [rt.cpan.org #58528] t/madness.t fails on Strawberry Perl Portable 5.10.1
Date: Sat, 19 Jun 2010 22:46:56 -0700
To: bug-Data-Dump-Streamer [...] rt.cpan.org
From: Joshua ben Jore <twists [...] gmail.com>
On Sat, Jun 19, 2010 at 1:07 PM, Chris Marshall via RT <bug-Data-Dump-Streamer@rt.cpan.org> wrote: Show quoted text
>       Queue: Data-Dump-Streamer >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58528 > > > On Sat Jun 19 13:54:39 2010, JJORE wrote:
>> >> I don't recall having noticed this particular failing anywhere else. >> Is >> this particular to your build?
> > This is not my build.  It is the Apr 2010 Strawberry Perl Portable > downloaded from this page: http://strawberryperl.com/releases.html > from the first link:
Sorry, I meant "your build, the Strawberry Perl which I assumed you'd created for distribution" because I assumed you might be one of the people participating in making Strawberry Perl. How about you send me your "perl -V" and see if that helps at all. I could at least ensure my build on my linux is using equivalent flags for controlling perl's own behavior and maybe there's something odd. Josh
On Sat Jun 19 12:43:49 2010, CHM wrote: Show quoted text
> Attempting a clean build of Data::Dump::Streamer on Strawberry Perl > Portable 5.10.1 fails in the t/madness.t and will not install via > cpan.
Apparently $. is 0 on your perl but it is undef on just about everyone else's. Curtis Jewell at YAPC::NA tells me over coffee that "Strawberry Perl Portable" has to do a number of hacks to function. Since that's perhaps part of the operating-system facing set of perl's functionality, er, maybe both it's interesting to know that $. is weird and Data::Dump::Streamer might want to either comment why it's checking $. (perhaps for the "GET magic"?). Anyhow, thanks for the heads up.
Subject: Re: [rt.cpan.org #58528] t/madness.t fails on Strawberry Perl Portable 5.10.1
Date: Mon, 21 Jun 2010 16:11:19 +0200
To: bug-Data-Dump-Streamer [...] rt.cpan.org
From: demerphq <demerphq [...] gmail.com>
On 21 June 2010 15:24, Joshua ben Jore via RT <bug-Data-Dump-Streamer@rt.cpan.org> wrote: Show quoted text
>       Queue: Data-Dump-Streamer >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58528 > > > On Sat Jun 19 12:43:49 2010, CHM wrote:
>> Attempting a clean build of Data::Dump::Streamer on Strawberry Perl >> Portable 5.10.1 fails in the t/madness.t and will not install via >> cpan.
> > Apparently $. is 0 on your perl but it is undef on just about everyone > else's. Curtis Jewell at YAPC::NA tells me over coffee that "Strawberry > Perl Portable" has to do a number of hacks to function. Since that's > perhaps part of the operating-system facing set of perl's > functionality, er, maybe both it's interesting to know that $. is weird > and Data::Dump::Streamer might want to either comment why it's checking > $. (perhaps for the "GET magic"?).
Yes, i think the idea was to test various magic vars. yves -- perl -Mre=debug -e "/just|another|perl|hacker/"
Any chance for a fix to this issue? I've been searching around and came up with nothing that said the $. was supposed to be $. at any specific moment---only that $. is the line number of the current file handle. Given that fact, maybe the test could be modified to check the dumped value for $. against the value you read before dumping it: my $expected_dollar_dot = $.; # do dump stuff # test checks that RV = \do { my $v = $expected_dollar_dot } Or even skipping that test would be better for the upcoming PDL release since we depend on Devel::REPL which has Data::Dump::Streamer as a dependency which fails for Strawberry Perl Portable. Thanks, Chris On Mon Jun 21 10:11:28 2010, demerphq@gmail.com wrote: Show quoted text
> On 21 June 2010 15:24, Joshua ben Jore via RT > <bug-Data-Dump-Streamer@rt.cpan.org> wrote:
> >       Queue: Data-Dump-Streamer > >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=58528 > > > > > On Sat Jun 19 12:43:49 2010, CHM wrote:
> >> Attempting a clean build of Data::Dump::Streamer on Strawberry Perl > >> Portable 5.10.1 fails in the t/madness.t and will not install via > >> cpan.
> > > > Apparently $. is 0 on your perl but it is undef on just > > about everyone else's. Curtis Jewell at YAPC::NA tells me > > over coffee that "Strawberry Perl Portable" has to do a > > number of hacks to function. Since that's perhaps part > > of the operating-system facing set of perl's functionality, > > er, maybe both it's interesting to know that $. is weird > > and Data::Dump::Streamer might want to either comment > > why it's checking $. (perhaps for the "GET magic"?).
On Thu Aug 05 16:34:40 2010, CHM wrote: Show quoted text
> Any chance for a fix to this issue?
Committed https://github.com/jbenjore/Data-Dump-Streamer/commit/785d29dd3fe468086c81782ed8e8378d38a8431b
Resolved w/ DDS-2.31