Skip Menu |

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

Report information
The Basics
Id: 112960
Status: open
Priority: 0/
Queue: Data-Dump-Streamer

People
Owner: Nobody in particular
Requestors: pauloedgarcastro [...] gmail.com
Cc: ribasushi [...] leporine.io
AdminCc:

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



Subject: t/madness_json.t in 2.39 FAILS
Date: Sat, 12 Mar 2016 21:32:39 +0000
To: bug-Data-Dump-Streamer [...] rt.cpan.org
From: Paulo Edgar Castro <pauloedgarcastro [...] gmail.com>
Building Data-Dump-Streamer cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux/CORE -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') cc -shared -O2 -L/usr/local/lib -fstack-protector -o blib/arch/auto/Data/Dump/Streamer/Streamer.so lib/Data/Dump/Streamer.o YVES/Data-Dump-Streamer-2.39.tar.gz ./Build -- OK Running Build test 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 2.2 is installed t/lexicals.t ........ ok t/locked.t .......... ok t/madness.t ......... ok JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at t/madness_json.t line 233. # Looks like you planned 7 tests but ran 6. # Looks like your test exited with 255 just after 6. t/madness_json.t .... Dubious, test returned 255 (wstat 65280, 0xff00) 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 7 tests but ran 6. Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + 1.73 cusr 0.17 csys = 2.02 CPU) Result: FAIL Failed 1/24 test programs. 0/368 subtests failed. YVES/Data-Dump-Streamer-2.39.tar.gz ./Build test -- NOT OK perl -V Summary of my perl5 (revision 5 version 20 subversion 3) configuration: Platform: osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64-linux uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon feb 1 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64 libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.20' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Locally applied patches: Devel::PatchPerl 1.38 Built under linux Compiled at Feb 29 2016 21:48:22 %ENV: PERLBREW_BASHRC_VERSION="0.66" PERLBREW_HOME="/perl_brew_home" PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl-5.20.3/bin" PERLBREW_PERL="perl-5.20.3" PERLBREW_ROOT="/perl_brew_root" PERLBREW_VERSION="0.66" @INC: /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64-linux /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 .
On 2016-03-12 16:33:06, pauloedgarcastro@gmail.com wrote: Show quoted text
> Building Data-Dump-Streamer > cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux/CORE > -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv > -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o > lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c > ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') > cc -shared -O2 -L/usr/local/lib -fstack-protector -o > blib/arch/auto/Data/Dump/Streamer/Streamer.so lib/Data/Dump/Streamer.o > YVES/Data-Dump-Streamer-2.39.tar.gz > ./Build -- OK > Running Build test > 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 2.2 is installed > t/lexicals.t ........ ok > t/locked.t .......... ok > t/madness.t ......... ok > JSON text must be an object or array (but found number, string, true, > false or null, use allow_nonref to allow this) at t/madness_json.t > line 233. > # Looks like you planned 7 tests but ran 6. > # Looks like your test exited with 255 just after 6. > t/madness_json.t .... > Dubious, test returned 255 (wstat 65280, 0xff00) > 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 7 tests but ran 6. > Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + 1.73 > cusr 0.17 csys = 2.02 CPU) > Result: FAIL > Failed 1/24 test programs. 0/368 subtests failed. > YVES/Data-Dump-Streamer-2.39.tar.gz > ./Build test -- NOT OK > > > perl -V > Summary of my perl5 (revision 5 version 20 subversion 3) > configuration: > > Platform: > osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64-linux > uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon feb 1 > 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' > config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 > -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' > hint=recommended, useposix=true, d_sigaction=define > useithreads=undef, usemultiplicity=undef > use64bitint=define, use64bitall=define, uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe > -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-O2', > cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include' > ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', > gccosandvers='' > intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' > libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib > /lib64 /usr/lib64 /usr/local/lib64 > libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc > -lgdbm_compat > perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc > libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='2.20' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' > cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > -fstack-protector' > > > Characteristics of this binary (from libperl): > Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV > PERL_HASH_FUNC_ONE_AT_A_TIME_HARD > PERL_MALLOC_WRAP > PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV > USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES > USE_LOCALE USE_LOCALE_COLLATE > USE_LOCALE_CTYPE > USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF > Locally applied patches: > Devel::PatchPerl 1.38 > Built under linux > Compiled at Feb 29 2016 21:48:22 > %ENV: > PERLBREW_BASHRC_VERSION="0.66" > PERLBREW_HOME="/perl_brew_home" > PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" > PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl- > 5.20.3/bin" > PERLBREW_PERL="perl-5.20.3" > PERLBREW_ROOT="/perl_brew_root" > PERLBREW_VERSION="0.66" > @INC: > /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64-linux > /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 > /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux > /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 > .
It fails with JSON::XS 3.02 and passes with JSON::XS 3.01.
Subject: Re: [rt.cpan.org #112960] t/madness_json.t in 2.39 FAILS
Date: Sun, 13 Mar 2016 12:31:41 +0100
To: "bug-Data-Dump-Streamer [...] rt.cpan.org" <bug-Data-Dump-Streamer [...] rt.cpan.org>
From: demerphq <demerphq [...] gmail.com>
On 13 March 2016 at 11:58, Slaven_Rezic 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=112960 > > > On 2016-03-12 16:33:06, pauloedgarcastro@gmail.com wrote:
>> Building Data-Dump-Streamer >> cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux/CORE >> -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv >> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o >> lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c >> ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') >> cc -shared -O2 -L/usr/local/lib -fstack-protector -o >> blib/arch/auto/Data/Dump/Streamer/Streamer.so lib/Data/Dump/Streamer.o >> YVES/Data-Dump-Streamer-2.39.tar.gz >> ./Build -- OK >> Running Build test >> 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 2.2 is installed >> t/lexicals.t ........ ok >> t/locked.t .......... ok >> t/madness.t ......... ok >> JSON text must be an object or array (but found number, string, true, >> false or null, use allow_nonref to allow this) at t/madness_json.t >> line 233. >> # Looks like you planned 7 tests but ran 6. >> # Looks like your test exited with 255 just after 6. >> t/madness_json.t .... >> Dubious, test returned 255 (wstat 65280, 0xff00) >> 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) >> Non-zero exit status: 255 >> Parse errors: Bad plan. You planned 7 tests but ran 6. >> Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + 1.73 >> cusr 0.17 csys = 2.02 CPU) >> Result: FAIL >> Failed 1/24 test programs. 0/368 subtests failed. >> YVES/Data-Dump-Streamer-2.39.tar.gz >> ./Build test -- NOT OK >> >> >> perl -V >> Summary of my perl5 (revision 5 version 20 subversion 3) >> configuration: >> >> Platform: >> osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64-linux >> uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon feb 1 >> 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' >> config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 >> -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' >> hint=recommended, useposix=true, d_sigaction=define >> useithreads=undef, usemultiplicity=undef >> use64bitint=define, use64bitall=define, uselongdouble=undef >> usemymalloc=n, bincompat5005=undef >> Compiler: >> cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe >> -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64', >> optimize='-O2', >> cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector >> -I/usr/local/include' >> ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', >> gccosandvers='' >> intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 >> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 >> ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', >> lseeksize=8 >> alignbytes=8, prototype=define >> Linker and Libraries: >> ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' >> libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib >> /lib64 /usr/lib64 /usr/local/lib64 >> libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc >> -lgdbm_compat >> perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc >> libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a >> gnulibc_version='2.20' >> Dynamic Linking: >> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' >> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib >> -fstack-protector' >> >> >> Characteristics of this binary (from libperl): >> Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV >> PERL_HASH_FUNC_ONE_AT_A_TIME_HARD >> PERL_MALLOC_WRAP >> PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV >> USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES >> USE_LOCALE USE_LOCALE_COLLATE >> USE_LOCALE_CTYPE >> USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF >> Locally applied patches: >> Devel::PatchPerl 1.38 >> Built under linux >> Compiled at Feb 29 2016 21:48:22 >> %ENV: >> PERLBREW_BASHRC_VERSION="0.66" >> PERLBREW_HOME="/perl_brew_home" >> PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" >> PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl- >> 5.20.3/bin" >> PERLBREW_PERL="perl-5.20.3" >> PERLBREW_ROOT="/perl_brew_root" >> PERLBREW_VERSION="0.66" >> @INC: >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64-linux >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 >> .
> > It fails with JSON::XS 3.02 and passes with JSON::XS 3.01.
I can add the allow_nonref(), there is controversy over this issue however. See the JSON::XS docs. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"
RT-Send-CC: demerphq [...] gmail.com
I would suggest switching to using Cpanel::JSON::XS or JSON::MaybeXS in your tests.
RT-Send-CC: demerphq [...] gmail.com
On 2016-03-14 15:41:38, ETHER wrote: Show quoted text
> I would suggest switching to using Cpanel::JSON::XS or JSON::MaybeXS > in your tests.
I am not sure if using JSON::MaybeXS is a good idea. There's a number of differences between JSON::XS and Cpanel::JSON::XS, and I fear that in future this number will increase. Which means potentially different behavior and different results, depending on which module was picked.
On Sun Mar 13 07:31:55 2016, demerphq@gmail.com wrote: Show quoted text
> On 13 March 2016 at 11:58, Slaven_Rezic via RT > <bug-Data-Dump-Streamer@rt.cpan.org> wrote:
> > Queue: Data-Dump-Streamer > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=112960 > > > > > On 2016-03-12 16:33:06, pauloedgarcastro@gmail.com wrote:
> >> Building Data-Dump-Streamer > >> cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux/CORE > >> -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv > >> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o > >> lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c > >> ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') > >> cc -shared -O2 -L/usr/local/lib -fstack-protector -o > >> blib/arch/auto/Data/Dump/Streamer/Streamer.so > >> lib/Data/Dump/Streamer.o > >> YVES/Data-Dump-Streamer-2.39.tar.gz > >> ./Build -- OK > >> Running Build test > >> 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 2.2 is installed > >> t/lexicals.t ........ ok > >> t/locked.t .......... ok > >> t/madness.t ......... ok > >> JSON text must be an object or array (but found number, string, > >> true, > >> false or null, use allow_nonref to allow this) at t/madness_json.t > >> line 233. > >> # Looks like you planned 7 tests but ran 6. > >> # Looks like your test exited with 255 just after 6. > >> t/madness_json.t .... > >> Dubious, test returned 255 (wstat 65280, 0xff00) > >> 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) > >> Non-zero exit status: 255 > >> Parse errors: Bad plan. You planned 7 tests but ran 6. > >> Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + 1.73 > >> cusr 0.17 csys = 2.02 CPU) > >> Result: FAIL > >> Failed 1/24 test programs. 0/368 subtests failed. > >> YVES/Data-Dump-Streamer-2.39.tar.gz > >> ./Build test -- NOT OK > >> > >> > >> perl -V > >> Summary of my perl5 (revision 5 version 20 subversion 3) > >> configuration: > >> > >> Platform: > >> osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64-linux > >> uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon feb 1 > >> 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' > >> config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 > >> -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' > >> hint=recommended, useposix=true, d_sigaction=define > >> useithreads=undef, usemultiplicity=undef > >> use64bitint=define, use64bitall=define, uselongdouble=undef > >> usemymalloc=n, bincompat5005=undef > >> Compiler: > >> cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe > >> -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > >> -D_FILE_OFFSET_BITS=64', > >> optimize='-O2', > >> cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector > >> -I/usr/local/include' > >> ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', > >> gccosandvers='' > >> intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 > >> d_longlong=define, longlongsize=8, d_longdbl=define, > >> longdblsize=16 > >> ivtype='long', ivsize=8, nvtype='double', nvsize=8, > >> Off_t='off_t', > >> lseeksize=8 > >> alignbytes=8, prototype=define > >> Linker and Libraries: > >> ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' > >> libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 > >> /lib > >> /lib64 /usr/lib64 /usr/local/lib64 > >> libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc > >> -lgdbm_compat > >> perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc > >> libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a > >> gnulibc_version='2.20' > >> Dynamic Linking: > >> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' > >> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > >> -fstack-protector' > >> > >> > >> Characteristics of this binary (from libperl): > >> Compile-time options: HAS_TIMES PERLIO_LAYERS > >> PERL_DONT_CREATE_GVSV > >> PERL_HASH_FUNC_ONE_AT_A_TIME_HARD > >> PERL_MALLOC_WRAP > >> PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV > >> USE_64_BIT_ALL USE_64_BIT_INT > >> USE_LARGE_FILES > >> USE_LOCALE USE_LOCALE_COLLATE > >> USE_LOCALE_CTYPE > >> USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF > >> Locally applied patches: > >> Devel::PatchPerl 1.38 > >> Built under linux > >> Compiled at Feb 29 2016 21:48:22 > >> %ENV: > >> PERLBREW_BASHRC_VERSION="0.66" > >> PERLBREW_HOME="/perl_brew_home" > >> PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" > >> PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl- > >> 5.20.3/bin" > >> PERLBREW_PERL="perl-5.20.3" > >> PERLBREW_ROOT="/perl_brew_root" > >> PERLBREW_VERSION="0.66" > >> @INC: > >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64-linux > >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 > >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux > >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 > >> .
> > > > It fails with JSON::XS 3.02 and passes with JSON::XS 3.01.
> > I can add the allow_nonref(), there is controversy over this issue > however. See the JSON::XS docs. > > Yves
My opinion, for as much as it's worth - add the allow_nonref. The current RFC specifies that as valid JSON, and since you aren't the maintainer of JSON::XS or Cpanel::JSON::XS, you don't have to decide what the right thing to do is. I tested this, and it works with both 3.01 and 3.02. A change to Cpanel::JSON::XS or JSON::MaybeXS is outside the scope of this issue.
RT-Send-CC: demerphq [...] gmail.com
On 2016-04-12 18:48:08, popefelix wrote: Show quoted text
> On Sun Mar 13 07:31:55 2016, demerphq@gmail.com wrote:
> > On 13 March 2016 at 11:58, Slaven_Rezic via RT > > <bug-Data-Dump-Streamer@rt.cpan.org> wrote:
> > > Queue: Data-Dump-Streamer > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=112960 > > > > > > > On 2016-03-12 16:33:06, pauloedgarcastro@gmail.com wrote:
> > >> Building Data-Dump-Streamer > > >> cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64- > > >> linux/CORE > > >> -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv > > >> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include > > >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o > > >> lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c > > >> ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') > > >> cc -shared -O2 -L/usr/local/lib -fstack-protector -o > > >> blib/arch/auto/Data/Dump/Streamer/Streamer.so > > >> lib/Data/Dump/Streamer.o > > >> YVES/Data-Dump-Streamer-2.39.tar.gz > > >> ./Build -- OK > > >> Running Build test > > >> 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 2.2 is installed > > >> t/lexicals.t ........ ok > > >> t/locked.t .......... ok > > >> t/madness.t ......... ok > > >> JSON text must be an object or array (but found number, string, > > >> true, > > >> false or null, use allow_nonref to allow this) at t/madness_json.t > > >> line 233. > > >> # Looks like you planned 7 tests but ran 6. > > >> # Looks like your test exited with 255 just after 6. > > >> t/madness_json.t .... > > >> Dubious, test returned 255 (wstat 65280, 0xff00) > > >> 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) > > >> Non-zero exit status: 255 > > >> Parse errors: Bad plan. You planned 7 tests but ran 6. > > >> Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + > > >> 1.73 > > >> cusr 0.17 csys = 2.02 CPU) > > >> Result: FAIL > > >> Failed 1/24 test programs. 0/368 subtests failed. > > >> YVES/Data-Dump-Streamer-2.39.tar.gz > > >> ./Build test -- NOT OK > > >> > > >> > > >> perl -V > > >> Summary of my perl5 (revision 5 version 20 subversion 3) > > >> configuration: > > >> > > >> Platform: > > >> osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64- > > >> linux > > >> uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon feb > > >> 1 > > >> 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' > > >> config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 > > >> -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' > > >> hint=recommended, useposix=true, d_sigaction=define > > >> useithreads=undef, usemultiplicity=undef > > >> use64bitint=define, use64bitall=define, uselongdouble=undef > > >> usemymalloc=n, bincompat5005=undef > > >> Compiler: > > >> cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe > > >> -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > > >> -D_FILE_OFFSET_BITS=64', > > >> optimize='-O2', > > >> cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector > > >> -I/usr/local/include' > > >> ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', > > >> gccosandvers='' > > >> intsize=4, longsize=8, ptrsize=8, doublesize=8, > > >> byteorder=12345678 > > >> d_longlong=define, longlongsize=8, d_longdbl=define, > > >> longdblsize=16 > > >> ivtype='long', ivsize=8, nvtype='double', nvsize=8, > > >> Off_t='off_t', > > >> lseeksize=8 > > >> alignbytes=8, prototype=define > > >> Linker and Libraries: > > >> ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' > > >> libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 > > >> /lib > > >> /lib64 /usr/lib64 /usr/local/lib64 > > >> libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc > > >> -lgdbm_compat > > >> perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc > > >> libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a > > >> gnulibc_version='2.20' > > >> Dynamic Linking: > > >> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,- > > >> E' > > >> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > > >> -fstack-protector' > > >> > > >> > > >> Characteristics of this binary (from libperl): > > >> Compile-time options: HAS_TIMES PERLIO_LAYERS > > >> PERL_DONT_CREATE_GVSV > > >> PERL_HASH_FUNC_ONE_AT_A_TIME_HARD > > >> PERL_MALLOC_WRAP > > >> PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV > > >> USE_64_BIT_ALL USE_64_BIT_INT > > >> USE_LARGE_FILES > > >> USE_LOCALE USE_LOCALE_COLLATE > > >> USE_LOCALE_CTYPE > > >> USE_LOCALE_NUMERIC USE_PERLIO > > >> USE_PERL_ATOF > > >> Locally applied patches: > > >> Devel::PatchPerl 1.38 > > >> Built under linux > > >> Compiled at Feb 29 2016 21:48:22 > > >> %ENV: > > >> PERLBREW_BASHRC_VERSION="0.66" > > >> PERLBREW_HOME="/perl_brew_home" > > >> PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" > > >> PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl- > > >> 5.20.3/bin" > > >> PERLBREW_PERL="perl-5.20.3" > > >> PERLBREW_ROOT="/perl_brew_root" > > >> PERLBREW_VERSION="0.66" > > >> @INC: > > >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64- > > >> linux > > >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 > > >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux > > >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 > > >> .
> > > > > > It fails with JSON::XS 3.02 and passes with JSON::XS 3.01.
> > > > I can add the allow_nonref(), there is controversy over this issue > > however. See the JSON::XS docs. > > > > Yves
> > My opinion, for as much as it's worth - add the allow_nonref. The > current RFC specifies that as valid JSON, and since you aren't the > maintainer of JSON::XS or Cpanel::JSON::XS, you don't have to decide > what the right thing to do is. I tested this, and it works with both > 3.01 and 3.02. > > A change to Cpanel::JSON::XS or JSON::MaybeXS is outside the scope of > this issue.
The allow_nonref suggestion is implemented in: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Data-Dump-Streamer-2.39-RT112960.patch
On 2016-04-24 06:31:45, SREZIC wrote: Show quoted text
> On 2016-04-12 18:48:08, popefelix wrote:
> > On Sun Mar 13 07:31:55 2016, demerphq@gmail.com wrote:
> > > On 13 March 2016 at 11:58, Slaven_Rezic via RT > > > <bug-Data-Dump-Streamer@rt.cpan.org> wrote:
> > > > Queue: Data-Dump-Streamer > > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=112960 > > > > > > > > > On 2016-03-12 16:33:06, pauloedgarcastro@gmail.com wrote:
> > > >> Building Data-Dump-Streamer > > > >> cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64- > > > >> linux/CORE > > > >> -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv > > > >> -fno-strict-aliasing -pipe -fstack-protector > > > >> -I/usr/local/include > > > >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o > > > >> lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c > > > >> ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') > > > >> cc -shared -O2 -L/usr/local/lib -fstack-protector -o > > > >> blib/arch/auto/Data/Dump/Streamer/Streamer.so > > > >> lib/Data/Dump/Streamer.o > > > >> YVES/Data-Dump-Streamer-2.39.tar.gz > > > >> ./Build -- OK > > > >> Running Build test > > > >> 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 2.2 is installed > > > >> t/lexicals.t ........ ok > > > >> t/locked.t .......... ok > > > >> t/madness.t ......... ok > > > >> JSON text must be an object or array (but found number, string, > > > >> true, > > > >> false or null, use allow_nonref to allow this) at > > > >> t/madness_json.t > > > >> line 233. > > > >> # Looks like you planned 7 tests but ran 6. > > > >> # Looks like your test exited with 255 just after 6. > > > >> t/madness_json.t .... > > > >> Dubious, test returned 255 (wstat 65280, 0xff00) > > > >> 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) > > > >> Non-zero exit status: 255 > > > >> Parse errors: Bad plan. You planned 7 tests but ran 6. > > > >> Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + > > > >> 1.73 > > > >> cusr 0.17 csys = 2.02 CPU) > > > >> Result: FAIL > > > >> Failed 1/24 test programs. 0/368 subtests failed. > > > >> YVES/Data-Dump-Streamer-2.39.tar.gz > > > >> ./Build test -- NOT OK > > > >> > > > >> > > > >> perl -V > > > >> Summary of my perl5 (revision 5 version 20 subversion 3) > > > >> configuration: > > > >> > > > >> Platform: > > > >> osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64- > > > >> linux > > > >> uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon > > > >> feb > > > >> 1 > > > >> 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' > > > >> config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 > > > >> -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' > > > >> hint=recommended, useposix=true, d_sigaction=define > > > >> useithreads=undef, usemultiplicity=undef > > > >> use64bitint=define, use64bitall=define, uselongdouble=undef > > > >> usemymalloc=n, bincompat5005=undef > > > >> Compiler: > > > >> cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe > > > >> -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > > > >> -D_FILE_OFFSET_BITS=64', > > > >> optimize='-O2', > > > >> cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack- > > > >> protector > > > >> -I/usr/local/include' > > > >> ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', > > > >> gccosandvers='' > > > >> intsize=4, longsize=8, ptrsize=8, doublesize=8, > > > >> byteorder=12345678 > > > >> d_longlong=define, longlongsize=8, d_longdbl=define, > > > >> longdblsize=16 > > > >> ivtype='long', ivsize=8, nvtype='double', nvsize=8, > > > >> Off_t='off_t', > > > >> lseeksize=8 > > > >> alignbytes=8, prototype=define > > > >> Linker and Libraries: > > > >> ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' > > > >> libpth=/usr/local/lib /usr/lib /lib/../lib64 > > > >> /usr/lib/../lib64 > > > >> /lib > > > >> /lib64 /usr/lib64 /usr/local/lib64 > > > >> libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc > > > >> -lgdbm_compat > > > >> perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc > > > >> libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a > > > >> gnulibc_version='2.20' > > > >> Dynamic Linking: > > > >> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='- > > > >> Wl,- > > > >> E' > > > >> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > > > >> -fstack-protector' > > > >> > > > >> > > > >> Characteristics of this binary (from libperl): > > > >> Compile-time options: HAS_TIMES PERLIO_LAYERS > > > >> PERL_DONT_CREATE_GVSV > > > >> PERL_HASH_FUNC_ONE_AT_A_TIME_HARD > > > >> PERL_MALLOC_WRAP > > > >> PERL_NEW_COPY_ON_WRITE > > > >> PERL_PRESERVE_IVUV > > > >> USE_64_BIT_ALL USE_64_BIT_INT > > > >> USE_LARGE_FILES > > > >> USE_LOCALE USE_LOCALE_COLLATE > > > >> USE_LOCALE_CTYPE > > > >> USE_LOCALE_NUMERIC USE_PERLIO > > > >> USE_PERL_ATOF > > > >> Locally applied patches: > > > >> Devel::PatchPerl 1.38 > > > >> Built under linux > > > >> Compiled at Feb 29 2016 21:48:22 > > > >> %ENV: > > > >> PERLBREW_BASHRC_VERSION="0.66" > > > >> PERLBREW_HOME="/perl_brew_home" > > > >> PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" > > > >> PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl- > > > >> 5.20.3/bin" > > > >> PERLBREW_PERL="perl-5.20.3" > > > >> PERLBREW_ROOT="/perl_brew_root" > > > >> PERLBREW_VERSION="0.66" > > > >> @INC: > > > >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64- > > > >> linux > > > >> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 > > > >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux > > > >> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 > > > >> .
> > > > > > > > It fails with JSON::XS 3.02 and passes with JSON::XS 3.01.
> > > > > > I can add the allow_nonref(), there is controversy over this issue > > > however. See the JSON::XS docs. > > > > > > Yves
> > > > My opinion, for as much as it's worth - add the allow_nonref. The > > current RFC specifies that as valid JSON, and since you aren't the > > maintainer of JSON::XS or Cpanel::JSON::XS, you don't have to decide > > what the right thing to do is. I tested this, and it works with both > > 3.01 and 3.02. > > > > A change to Cpanel::JSON::XS or JSON::MaybeXS is outside the scope of > > this issue.
> > The allow_nonref suggestion is implemented in: > > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Data-Dump- > Streamer-2.39-RT112960.patch
t/madness_json.t does not fail anymore with 2.40. So probably this issue may be resolved (I cannot).
CC: ribasushi [...] leporine.io
Subject: Re: [rt.cpan.org #112960] t/madness_json.t in 2.39 FAILS
Date: Mon, 10 Jun 2019 20:50:54 +0100
To: bug-Data-Dump-Streamer [...] rt.cpan.org
From: Paulo Edgar Castro <pauloedgarcastro [...] gmail.com>
I don't seem to be able to closed either at least not via the RT UI. Regards,                 PECastro On 10/06/2019 10:33, Slaven_Rezic via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=112960 > > > On 2016-04-24 06:31:45, SREZIC wrote:
>> On 2016-04-12 18:48:08, popefelix wrote:
>>> On Sun Mar 13 07:31:55 2016, demerphq@gmail.com wrote:
>>>> On 13 March 2016 at 11:58, Slaven_Rezic via RT >>>> <bug-Data-Dump-Streamer@rt.cpan.org> wrote:
>>>>> Queue: Data-Dump-Streamer >>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=112960 > >>>>> >>>>> On 2016-03-12 16:33:06, pauloedgarcastro@gmail.com wrote:
>>>>>> Building Data-Dump-Streamer >>>>>> cc -I/perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64- >>>>>> linux/CORE >>>>>> -DVERSION="2.39" -DXS_VERSION="2.39" -fPIC -c -fwrapv >>>>>> -fno-strict-aliasing -pipe -fstack-protector >>>>>> -I/usr/local/include >>>>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o >>>>>> lib/Data/Dump/Streamer.o lib/Data/Dump/Streamer.c >>>>>> ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Data/Dump/Streamer/Streamer.bs') >>>>>> cc -shared -O2 -L/usr/local/lib -fstack-protector -o >>>>>> blib/arch/auto/Data/Dump/Streamer/Streamer.so >>>>>> lib/Data/Dump/Streamer.o >>>>>> YVES/Data-Dump-Streamer-2.39.tar.gz >>>>>> ./Build -- OK >>>>>> Running Build test >>>>>> 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 2.2 is installed >>>>>> t/lexicals.t ........ ok >>>>>> t/locked.t .......... ok >>>>>> t/madness.t ......... ok >>>>>> JSON text must be an object or array (but found number, string, >>>>>> true, >>>>>> false or null, use allow_nonref to allow this) at >>>>>> t/madness_json.t >>>>>> line 233. >>>>>> # Looks like you planned 7 tests but ran 6. >>>>>> # Looks like your test exited with 255 just after 6. >>>>>> t/madness_json.t .... >>>>>> Dubious, test returned 255 (wstat 65280, 0xff00) >>>>>> 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_json.t (Wstat: 65280 Tests: 6 Failed: 0) >>>>>> Non-zero exit status: 255 >>>>>> Parse errors: Bad plan. You planned 7 tests but ran 6. >>>>>> Files=24, Tests=368, 2 wallclock secs ( 0.09 usr 0.03 sys + >>>>>> 1.73 >>>>>> cusr 0.17 csys = 2.02 CPU) >>>>>> Result: FAIL >>>>>> Failed 1/24 test programs. 0/368 subtests failed. >>>>>> YVES/Data-Dump-Streamer-2.39.tar.gz >>>>>> ./Build test -- NOT OK >>>>>> >>>>>> >>>>>> perl -V >>>>>> Summary of my perl5 (revision 5 version 20 subversion 3) >>>>>> configuration: >>>>>> >>>>>> Platform: >>>>>> osname=linux, osvers=4.3.5-300.fc23.x86_64, archname=x86_64- >>>>>> linux >>>>>> uname='linux b0b55bbbe920 4.3.5-300.fc23.x86_64 #1 smp mon >>>>>> feb >>>>>> 1 >>>>>> 03:18:41 utc 2016 x86_64 x86_64 x86_64 gnulinux ' >>>>>> config_args='-de -Dprefix=/perl_brew_root/perls/perl-5.20.3 >>>>>> -Aeval:scriptdir=/perl_brew_root/perls/perl-5.20.3/bin' >>>>>> hint=recommended, useposix=true, d_sigaction=define >>>>>> useithreads=undef, usemultiplicity=undef >>>>>> use64bitint=define, use64bitall=define, uselongdouble=undef >>>>>> usemymalloc=n, bincompat5005=undef >>>>>> Compiler: >>>>>> cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe >>>>>> -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE >>>>>> -D_FILE_OFFSET_BITS=64', >>>>>> optimize='-O2', >>>>>> cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack- >>>>>> protector >>>>>> -I/usr/local/include' >>>>>> ccversion='', gccversion='4.9.2 20150212 (Red Hat 4.9.2-6)', >>>>>> gccosandvers='' >>>>>> intsize=4, longsize=8, ptrsize=8, doublesize=8, >>>>>> byteorder=12345678 >>>>>> d_longlong=define, longlongsize=8, d_longdbl=define, >>>>>> longdblsize=16 >>>>>> ivtype='long', ivsize=8, nvtype='double', nvsize=8, >>>>>> Off_t='off_t', >>>>>> lseeksize=8 >>>>>> alignbytes=8, prototype=define >>>>>> Linker and Libraries: >>>>>> ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' >>>>>> libpth=/usr/local/lib /usr/lib /lib/../lib64 >>>>>> /usr/lib/../lib64 >>>>>> /lib >>>>>> /lib64 /usr/lib64 /usr/local/lib64 >>>>>> libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc >>>>>> -lgdbm_compat >>>>>> perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc >>>>>> libc=libc-2.20.so, so=so, useshrplib=false, libperl=libperl.a >>>>>> gnulibc_version='2.20' >>>>>> Dynamic Linking: >>>>>> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='- >>>>>> Wl,- >>>>>> E' >>>>>> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib >>>>>> -fstack-protector' >>>>>> >>>>>> >>>>>> Characteristics of this binary (from libperl): >>>>>> Compile-time options: HAS_TIMES PERLIO_LAYERS >>>>>> PERL_DONT_CREATE_GVSV >>>>>> PERL_HASH_FUNC_ONE_AT_A_TIME_HARD >>>>>> PERL_MALLOC_WRAP >>>>>> PERL_NEW_COPY_ON_WRITE >>>>>> PERL_PRESERVE_IVUV >>>>>> USE_64_BIT_ALL USE_64_BIT_INT >>>>>> USE_LARGE_FILES >>>>>> USE_LOCALE USE_LOCALE_COLLATE >>>>>> USE_LOCALE_CTYPE >>>>>> USE_LOCALE_NUMERIC USE_PERLIO >>>>>> USE_PERL_ATOF >>>>>> Locally applied patches: >>>>>> Devel::PatchPerl 1.38 >>>>>> Built under linux >>>>>> Compiled at Feb 29 2016 21:48:22 >>>>>> %ENV: >>>>>> PERLBREW_BASHRC_VERSION="0.66" >>>>>> PERLBREW_HOME="/perl_brew_home" >>>>>> PERLBREW_MANPATH="/perl_brew_root/perls/perl-5.20.3/man" >>>>>> PERLBREW_PATH="/perl_brew_root/bin:/perl_brew_root/perls/perl- >>>>>> 5.20.3/bin" >>>>>> PERLBREW_PERL="perl-5.20.3" >>>>>> PERLBREW_ROOT="/perl_brew_root" >>>>>> PERLBREW_VERSION="0.66" >>>>>> @INC: >>>>>> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3/x86_64- >>>>>> linux >>>>>> /perl_brew_root/perls/perl-5.20.3/lib/site_perl/5.20.3 >>>>>> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3/x86_64-linux >>>>>> /perl_brew_root/perls/perl-5.20.3/lib/5.20.3 >>>>>> .
>>>>> It fails with JSON::XS 3.02 and passes with JSON::XS 3.01.
>>>> I can add the allow_nonref(), there is controversy over this issue >>>> however. See the JSON::XS docs. >>>> >>>> Yves
>>> My opinion, for as much as it's worth - add the allow_nonref. The >>> current RFC specifies that as valid JSON, and since you aren't the >>> maintainer of JSON::XS or Cpanel::JSON::XS, you don't have to decide >>> what the right thing to do is. I tested this, and it works with both >>> 3.01 and 3.02. >>> >>> A change to Cpanel::JSON::XS or JSON::MaybeXS is outside the scope of >>> this issue.
>> The allow_nonref suggestion is implemented in: >> >> http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Data-Dump- >> Streamer-2.39-RT112960.patch
> t/madness_json.t does not fail anymore with 2.40. So probably this issue may be resolved (I cannot). > > >