develooper Front page | perl.perl5.porters | Postings from April 2008

[perl #53244] perl-5.10.0-33733 assertion with JSON::XS-2.2

Thread Next
david @ davidfavor . com
April 23, 2008 07:07
[perl #53244] perl-5.10.0-33733 assertion with JSON::XS-2.2
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #53244]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.36 running under perl 5.10.0.

[Please enter your report here]

JSON::XS and other XS modules fail with assertions of the form:

    t/02_error................perl: XS.xs:1418: decode_json:
       Assertion `!((((_svi)->sv_flags & (0x00004000|0x00008000)) == 0x00008000) &&
       (((svtype)((_svi)->sv_flags & 0xff)) == SVt_PVGV ||
       ((svtype)((_svi)->sv_flags & 0xff)) == SVt_PVLV))' failed.

JSON::XS-2.1 tests clean with perl-5.8.8 latest and perl-5.10.0-33733.

JSON::XS-2.2 tests clean with perl-5.8.8 latest and fails with all of
perl-5.10.0-33733 and other old patch levels I have laying around, back
through several 336xx series patches.

[Please do not change anything below this line]
Site configuration information for perl 5.10.0:

Configured by David Favor at Tue Apr 22 22:28:31 CDT 2008.

Summary of my perl5 (revision 5 version 10 subversion 0 patch 33733) configuration:
     osname=linux, osvers=, archname=i686-linux-thread-multi
     uname='linux #1 smp thu mar 20 14:47:10 edt 2008 i686 i686 
i386 gnulinux '
     config_args='-Dprefix=/common/pkgs/perl-5.10.0-33733 -ders -Dusedevel -Dcf_by=David Favor 
-Dcc=gcc -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
--param=ssp-buffer-size=4 -m32 -fstack-protector -mtune=generic  -Dloclibpth=/usr/local/lib 
-Dlocincpth=/usr/local/include -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid 
-Dd_semctl_semun -Dotherlibdirs=/tools/pmlib:/usr/local/pmlib -DDEBUGGING -Ui_db -Ui_ndbm -Di_gdbm 
-Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly 
-Dpager=/usr/bin/less -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto 
-Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=undef, use64bitall=undef, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
     cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 
-m32 -fstack-protector -mtune=generic ',
     cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe 
-I/usr/local/include -I/usr/include/gdbm'
     ccversion='', gccversion='4.1.2 20070925 (Red Hat 4.1.2-33)', 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='gcc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     libc=/lib/, so=so, useshrplib=true,
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
     cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
--param=ssp-buffer-size=4 -m32 -fstack-protector -mtune=generic  -L/usr/local/lib'

Locally applied patches:

@INC for perl 5.10.0:

Environment for perl 5.10.0:
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     PERL_BADLANG (unset)

Love feeling your best ever, all day, every day?
Click for the easy way.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About