Skip Menu |

This queue is for tickets about the Tree-Suffix CPAN distribution.

Report information
The Basics
Id: 52641
Status: rejected
Priority: 0/
Queue: Tree-Suffix

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

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



Subject: several failing tests
Hi there! I've been trying to use your module but, after installing libstree 0.4.2 and getting a successful make from your module, make test fails in several different places. Below is the output, hope it helps! CPAN.pm: Going to build G/GR/GRAY/Tree-Suffix-0.21.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Tree::Suffix cp lib/Tree/Suffix.pm blib/lib/Tree/Suffix.pm /usr/bin/perl /usr/local/share/perl/5.10.0/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap Suffix.xs > Suffix.xsc && mv Suffix.xsc Suffix.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fPIC "-I/usr/lib/perl/5.10/CORE" Suffix.c Running Mkbootstrap for Tree::Suffix () chmod 644 Suffix.bs rm -f blib/arch/auto/Tree/Suffix/Suffix.so LD_RUN_PATH="/usr/local/lib" cc -shared -O2 -g -L/usr/local/lib Suffix.o -o blib/arch/auto/Tree/Suffix/Suffix.so \ -lstree \ chmod 755 blib/arch/auto/Tree/Suffix/Suffix.so cp Suffix.bs blib/arch/auto/Tree/Suffix/Suffix.bs chmod 644 blib/arch/auto/Tree/Suffix/Suffix.bs Manifying blib/man3/Tree::Suffix.3pm GRAY/Tree-Suffix-0.21.tar.gz make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_load.t ......... ok t/01_new.t .......... ok t/02_insert.t ....... ok t/03_lcs.t .......... 1/2 # Failed test 'lcs' # at t/03_lcs.t line 8. # Structures begin differing at: # $got->[0] = 'stringy' # $expected->[0] = 'string' # Failed test 'lcs(min, max)' # at t/03_lcs.t line 11. # Structures begin differing at: # $got->[0] = 'astr' # $expected->[0] = 'ing' # Looks like you failed 2 tests of 2. t/03_lcs.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests t/04_lrs.t .......... ok t/05_clear.t ........ ok t/06_remove.t ....... 1/5 # Failed test 'remaining nodes' # at t/06_remove.t line 8. # got: '4' # expected: '2' # Failed test 'strings() in list context' # at t/06_remove.t line 9. # Structures begin differing at: # $got->[1] = '1' # $expected->[1] = '2' # Failed test 'undef' # at t/06_remove.t line 11. # got: '4' # expected: '2' # Failed test 'empty string' # at t/06_remove.t line 13. # got: '4' # expected: '2' # Looks like you failed 4 tests of 5. t/06_remove.t ....... Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/5 subtests t/07_memleak.t ...... ok t/08_find.t ......... 1/14 # Failed test 'list context' # at t/08_find.t line 17. # Structures begin differing at: # $got->[0][0] = '-1' # $expected->[0][0] = '0' # Failed test 'list context' # at t/08_find.t line 18. # Structures begin differing at: # $got->[0][0] = '-1' # $expected->[0][0] = '0' # Failed test 'list context' # at t/08_find.t line 22. # Structures begin differing at: # $got->[0][0] = '-1' # $expected->[0][0] = '0' # Looks like you failed 3 tests of 14. t/08_find.t ......... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/14 subtests t/09_duplicates.t ... 1/13 # Failed test 'remaining strings' # at t/09_duplicates.t line 9. # got: '3' # expected: '1' # Failed test 'find removed string' # at t/09_duplicates.t line 10. # got: '2' # expected: '0' # Failed test 'string count' # at t/09_duplicates.t line 16. # got: '3' # expected: '1' # Looks like you failed 3 tests of 13. t/09_duplicates.t ... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/13 subtests t/10_string.t ....... ok t/11_memleak.t ...... ok t/12_index_vs_id.t .. 1/1 # Failed test 'index vs id' # at t/12_index_vs_id.t line 10. # Structures begin differing at: # $got->[0][0] = '-1' # $expected->[0][0] = '1' # Looks like you failed 1 test of 1. t/12_index_vs_id.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- t/03_lcs.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/06_remove.t (Wstat: 1024 Tests: 5 Failed: 4) Failed tests: 2-5 Non-zero exit status: 4 t/08_find.t (Wstat: 768 Tests: 14 Failed: 3) Failed tests: 9-11 Non-zero exit status: 3 t/09_duplicates.t (Wstat: 768 Tests: 13 Failed: 3) Failed tests: 3-4, 8 Non-zero exit status: 3 t/12_index_vs_id.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=13, Tests=61, 4 wallclock secs ( 0.12 usr 0.02 sys + 2.02 cusr 0.28 csys = 2.44 CPU) Result: FAIL Failed 5/13 test programs. 13/61 subtests failed. make: *** [test_dynamic] Error 1 GRAY/Tree-Suffix-0.21.tar.gz make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports GRAY/Tree-Suffix-0.21.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: GRAY/Tree-Suffix-0.21.tar.gz : make_test NO
On Thu Dec 10 02:02:30 2009, GARU wrote: Show quoted text
> Hi there! > > I've been trying to use your module but, after installing libstree 0.4.2 > and getting a successful make from your module, make test fails in > several different places. Below is the output, hope it helps! > > > CPAN.pm: Going to build G/GR/GRAY/Tree-Suffix-0.21.tar.gz > > Checking if your kit is complete... > Looks good > Writing Makefile for Tree::Suffix > cp lib/Tree/Suffix.pm blib/lib/Tree/Suffix.pm > /usr/bin/perl /usr/local/share/perl/5.10.0/ExtUtils/xsubpp -typemap > /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap Suffix.xs > > Suffix.xsc && mv Suffix.xsc Suffix.c > cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g > -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fPIC > "-I/usr/lib/perl/5.10/CORE" Suffix.c > Running Mkbootstrap for Tree::Suffix () > chmod 644 Suffix.bs > rm -f blib/arch/auto/Tree/Suffix/Suffix.so > LD_RUN_PATH="/usr/local/lib" cc -shared -O2 -g -L/usr/local/lib > Suffix.o -o blib/arch/auto/Tree/Suffix/Suffix.so \ > -lstree \ > > chmod 755 blib/arch/auto/Tree/Suffix/Suffix.so > cp Suffix.bs blib/arch/auto/Tree/Suffix/Suffix.bs > chmod 644 blib/arch/auto/Tree/Suffix/Suffix.bs > Manifying blib/man3/Tree::Suffix.3pm > GRAY/Tree-Suffix-0.21.tar.gz > make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00_load.t ......... ok > t/01_new.t .......... ok > t/02_insert.t ....... ok > t/03_lcs.t .......... 1/2 > # Failed test 'lcs' > # at t/03_lcs.t line 8. > # Structures begin differing at: > # $got->[0] = 'stringy' > # $expected->[0] = 'string' > > # Failed test 'lcs(min, max)' > # at t/03_lcs.t line 11. > # Structures begin differing at: > # $got->[0] = 'astr' > # $expected->[0] = 'ing' > # Looks like you failed 2 tests of 2. > t/03_lcs.t .......... Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/2 subtests > t/04_lrs.t .......... ok > t/05_clear.t ........ ok > t/06_remove.t ....... 1/5 > # Failed test 'remaining nodes' > # at t/06_remove.t line 8. > # got: '4' > # expected: '2' > > # Failed test 'strings() in list context' > # at t/06_remove.t line 9. > # Structures begin differing at: > # $got->[1] = '1' > # $expected->[1] = '2' > > # Failed test 'undef' > # at t/06_remove.t line 11. > # got: '4' > # expected: '2' > > # Failed test 'empty string' > # at t/06_remove.t line 13. > # got: '4' > # expected: '2' > # Looks like you failed 4 tests of 5. > t/06_remove.t ....... Dubious, test returned 4 (wstat 1024, 0x400) > Failed 4/5 subtests > t/07_memleak.t ...... ok > t/08_find.t ......... 1/14 > # Failed test 'list context' > # at t/08_find.t line 17. > # Structures begin differing at: > # $got->[0][0] = '-1' > # $expected->[0][0] = '0' > > # Failed test 'list context' > # at t/08_find.t line 18. > # Structures begin differing at: > # $got->[0][0] = '-1' > # $expected->[0][0] = '0' > > # Failed test 'list context' > # at t/08_find.t line 22. > # Structures begin differing at: > # $got->[0][0] = '-1' > # $expected->[0][0] = '0' > # Looks like you failed 3 tests of 14. > t/08_find.t ......... Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/14 subtests > t/09_duplicates.t ... 1/13 > # Failed test 'remaining strings' > # at t/09_duplicates.t line 9. > # got: '3' > # expected: '1' > > # Failed test 'find removed string' > # at t/09_duplicates.t line 10. > # got: '2' > # expected: '0' > > # Failed test 'string count' > # at t/09_duplicates.t line 16. > # got: '3' > # expected: '1' > # Looks like you failed 3 tests of 13. > t/09_duplicates.t ... Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/13 subtests > t/10_string.t ....... ok > t/11_memleak.t ...... ok > t/12_index_vs_id.t .. 1/1 > # Failed test 'index vs id' > # at t/12_index_vs_id.t line 10. > # Structures begin differing at: > # $got->[0][0] = '-1' > # $expected->[0][0] = '1' > # Looks like you failed 1 test of 1. > t/12_index_vs_id.t .. Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/1 subtests > > Test Summary Report > ------------------- > t/03_lcs.t (Wstat: 512 Tests: 2 Failed: 2) > Failed tests: 1-2 > Non-zero exit status: 2 > t/06_remove.t (Wstat: 1024 Tests: 5 Failed: 4) > Failed tests: 2-5 > Non-zero exit status: 4 > t/08_find.t (Wstat: 768 Tests: 14 Failed: 3) > Failed tests: 9-11 > Non-zero exit status: 3 > t/09_duplicates.t (Wstat: 768 Tests: 13 Failed: 3) > Failed tests: 3-4, 8 > Non-zero exit status: 3 > t/12_index_vs_id.t (Wstat: 256 Tests: 1 Failed: 1) > Failed test: 1 > Non-zero exit status: 1 > Files=13, Tests=61, 4 wallclock secs ( 0.12 usr 0.02 sys + 2.02 cusr > 0.28 csys = 2.44 CPU) > Result: FAIL > Failed 5/13 test programs. 13/61 subtests failed. > make: *** [test_dynamic] Error 1 > GRAY/Tree-Suffix-0.21.tar.gz > make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, try: > reports GRAY/Tree-Suffix-0.21.tar.gz > Running make install > make test had returned bad status, won't install without force > Failed during this command: > GRAY/Tree-Suffix-0.21.tar.gz : make_test NO
You need to provide some details about the system on which you're attempting to install (OS, perl version, libstree version).
On Fri Feb 12 07:12:06 2010, GRAY wrote: Show quoted text
> > You need to provide some details about the system on which you're > attempting to install (OS, perl version, libstree version). >
In my original message I mention it's libstree 0.4.3, and that the Tree::Suffix failing is 0.21 (sorry, haven't tested other versions of either). If you look at the output I've given, you'd see it's perl 5.10.0. But you're right, I should have given you more info, so here goes: $ perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.24-23-server, archname=i486-linux-gnu-thread-multi uname='linux rothera 2.6.24-23-server #1 smp wed apr 1 22:22:14 utc 2009 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.10.0 -Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des' 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 Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.3.2', 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 =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/lib64 libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.8.90.so, so=so, useshrplib=true, libperl=libperl.so.5.10.0 gnulibc_version='2.8.90' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jun 26 2009 19:08:22 @INC: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . Hope it helps. Please let me know if there's anything more I can do.
On Fri Feb 12 09:34:31 2010, GARU wrote: Show quoted text
> > In my original message I mention it's libstree 0.4.3, and that the > Tree::Suffix failing is 0.21 (sorry, haven't tested other versions of > either).
Sorry, that's not true. The original message mentions libstree 0.4.2, but I actually tried it with libstree-0.4.3-pre2. When I tried it with 0.4.2 most tests pass, but I still get this segfault: Tree-Suffix-0.21$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_load.t ......... ok t/01_new.t .......... ok t/02_insert.t ....... ok t/03_lcs.t .......... ok t/04_lrs.t .......... ok t/05_clear.t ........ ok t/06_remove.t ....... ok t/07_memleak.t ...... ok t/08_find.t ......... ok t/09_duplicates.t ... Failed 12/13 subtests t/10_string.t ....... ok t/11_memleak.t ...... ok t/12_index_vs_id.t .. ok Test Summary Report ------------------- t/09_duplicates.t (Wstat: 11 Tests: 1 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 13 tests but ran 1. Files=13, Tests=49, 3 wallclock secs ( 0.12 usr 0.01 sys + 1.95 cusr 0.29 csys = 2.37 CPU) Result: FAIL Failed 1/13 test programs. 0/49 subtests failed. make: *** [test_dynamic] Error 255 Tree-Suffix-0.21$ perl -Ilib -Iblib/lib -Iblib/arch t/09_duplicates.t 1..13 ok 1 - string count Segmentation fault If I try it with libstree 0.4.3-pre2 I get all those test errors in the previous post. With 0.4.2 I get just this one. Hope it helps narrow it down :)
On Fri Feb 12 09:48:30 2010, GARU wrote: Show quoted text
> On Fri Feb 12 09:34:31 2010, GARU wrote:
> > > > In my original message I mention it's libstree 0.4.3, and that the > > Tree::Suffix failing is 0.21 (sorry, haven't tested other versions of > > either).
> > Sorry, that's not true. The original message mentions libstree 0.4.2, > but I actually tried it with libstree-0.4.3-pre2. When I tried it with > 0.4.2 most tests pass, but I still get this segfault: > > Tree-Suffix-0.21$ make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00_load.t ......... ok > t/01_new.t .......... ok > t/02_insert.t ....... ok > t/03_lcs.t .......... ok > t/04_lrs.t .......... ok > t/05_clear.t ........ ok > t/06_remove.t ....... ok > t/07_memleak.t ...... ok > t/08_find.t ......... ok > t/09_duplicates.t ... Failed 12/13 subtests > t/10_string.t ....... ok > t/11_memleak.t ...... ok > t/12_index_vs_id.t .. ok > > Test Summary Report > ------------------- > t/09_duplicates.t (Wstat: 11 Tests: 1 Failed: 0) > Non-zero wait status: 11 > Parse errors: Bad plan. You planned 13 tests but ran 1. > Files=13, Tests=49, 3 wallclock secs ( 0.12 usr 0.01 sys + 1.95 cusr > 0.29 csys = 2.37 CPU) > Result: FAIL > Failed 1/13 test programs. 0/49 subtests failed. > make: *** [test_dynamic] Error 255 > > Tree-Suffix-0.21$ perl -Ilib -Iblib/lib -Iblib/arch t/09_duplicates.t > 1..13 > ok 1 - string count > Segmentation fault > > > If I try it with libstree 0.4.3-pre2 I get all those test errors in the > previous post. With 0.4.2 I get just this one. > > Hope it helps narrow it down :)
libstree 0.4.3-pre2 is buggy, as it says on the libstree homepage. The segfault you mention was already reported in an old ticket- #18249, so I'm closing this as a duplicate. And since the libstree author abandoned the library long ago, I'm not inclined to track this down.