Skip Menu |

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

Report information
The Basics
Id: 18249
Status: stalled
Priority: 0/
Queue: Tree-Suffix

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

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



Subject: Failed tests in 09_duplicates
Most of the issues I reported in ticket 18137 are fixed in 0.12, but I'm still failing a few tests. Here's the output from make test: PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_load............ok t/01_new.............ok t/02_insert..........ok t/03_lcs.............ok t/04_lrs.............ok t/05_clear...........ok t/06_remove..........ok t/07_memleak.........ok t/08_find............ok t/09_duplicates......dubious Test returned status 0 (wstat 11, 0xb) DIED. FAILED tests 2-13 Failed 12/13 tests, 7.69% okay t/10_pod.............ok t/11_pod_coverage....ok t/12_string..........ok Failed Test Stat Wstat Total Fail Failed List of Failed --------------------------------------------------------------------- Failed 1/13 test scripts, 92.31% okay. 12/59 subtests failed, 79.66% okay. make: *** [test_dynamic] Error 255 Distribution: Tree-Suffix-0.12 libstree version: 0.4.2 Perl version: v5.8.8 built for i686-linux Operating system: Linux caspar 2.6.15-1-686-smp #2 SMP Mon Mar 6 15:34:50 UTC 2006 i686 GNU/Linux
From: gray [...] cpan.org
On Sun Mar 19 15:07:50 2006, WALTMAN wrote: Show quoted text
> t/09_duplicates......dubious > > Test returned status 0 (wstat 11, 0xb) > DIED. FAILED tests 2-13 > Failed 12/13 tests, 7.69% okay
... Show quoted text
> Failed Test Stat Wstat Total Fail Failed List of Failed > --------------------------------------------------------------------- > Failed 1/13 test scripts, 92.31% okay. 12/59 subtests failed, 79.66% okay. > make: *** [test_dynamic] Error 255
hmm, errors are supposed to look like: t/09_duplicates......NOK 2 # Failed test 'return count of remove' # in t/09_duplicates.t at line 7. # got: '2' # expected: '1' # Looks like you failed 1 test of 13. make sure you have the latest Test::More installed. and try `make test TEST_VERBOSE=1`.
Subject: Re: [rt.cpan.org #18249] Failed tests in 09_duplicates
Date: Sun, 19 Mar 2006 20:33:25 -0500
To: gray via RT <bug-Tree-Suffix [...] rt.cpan.org>
From: Walt Mankowski <waltman [...] pobox.com>
On Sun, Mar 19, 2006 at 06:42:58PM -0500, gray via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18249 > > > On Sun Mar 19 15:07:50 2006, WALTMAN wrote: >
> > t/09_duplicates......dubious > > > > Test returned status 0 (wstat 11, 0xb) > > DIED. FAILED tests 2-13 > > Failed 12/13 tests, 7.69% okay
> ...
> > Failed Test Stat Wstat Total Fail Failed List of Failed > > --------------------------------------------------------------------- > > Failed 1/13 test scripts, 92.31% okay. 12/59 subtests failed, 79.66% okay. > > make: *** [test_dynamic] Error 255
> > hmm, errors are supposed to look like: > > t/09_duplicates......NOK 2 > > # Failed test 'return count of remove' > # in t/09_duplicates.t at line 7. > # got: '2' > # expected: '1' > # Looks like you failed 1 test of 13. > > make sure you have the latest Test::More installed. and try `make test > TEST_VERBOSE=1`.
Here's the output when I run "make test TEST_VERBOSE=1": PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00_load............1..1 ok 1 - use Tree::Suffix; ok t/01_new.............1..3 ok 1 - new() isa Tree::Suffix ok 2 - new(@list) isa Tree::Suffix ok 3 - Tree::Suffix->can(...) ok t/02_insert..........1..8 ok 1 - strings ok 2 - nodes ok 3 - insert($) ok 4 - undef ok 5 - empty string ok 6 - insert(@) ok 7 - strings() in list context ok 8 - ints ok t/03_lcs.............1..2 ok 1 - lcs ok 2 - lcs(min, max) ok t/04_lrs.............1..2 ok 1 - lrs ok 2 - lrs(min, max) ok t/05_clear...........1..1 ok 1 - clear ok t/06_remove..........1..5 ok 1 - return count ok 2 - remaining nodes ok 3 - strings() in list context ok 4 - undef ok 5 - empty string ok t/07_memleak.........1..2 ok 1 - insert() ok 2 - new()/insert() ok t/08_find............1..12 ok 1 - non-existent substring ok 2 - existing string ok 3 - existing prefix ok 4 - existing suffix ok 5 - undef ok 6 - empty string ok 7 - undef in list context ok 8 - empty string in list context ok 9 - list context ok 10 - list context ok 11 - list context ok 12 - no match in list context ok t/09_duplicates......1..13 ok 1 - string count dubious Test returned status 0 (wstat 11, 0xb) DIED. FAILED tests 2-13 Failed 12/13 tests, 7.69% okay t/10_pod.............1..1 ok 1 - blib/lib/Tree/Suffix.pm ok t/11_pod_coverage....1..1 ok 1 - Pod coverage on Tree::Suffix ok t/12_string..........1..8 ok 1 - entire string ok 2 - substring w/ start pos ok 3 - substring w/ start and end pos ok 4 - bad index ok 5 - bad start/end positions ok 6 - bad start position ok 7 - bad end position ok 8 - override <eos> ok Failed Test Stat Wstat Total Fail Failed List of Failed --------------------------------------------------------------- t/09_duplicates.t 0 11 13 24 184.62% 2-13 make: *** [test_dynamic] Error 255
From: gray [...] cpan.org
sorry, but that's not enough information to figure out what's going on. can you narrow it down further? a better test case may help. Show quoted text
> t/09_duplicates......1..13 > ok 1 - string count > dubious > Test returned status 0 (wstat 11, 0xb) > DIED. FAILED tests 2-13 > Failed 12/13 tests, 7.69% okay
Subject: Re: [rt.cpan.org #18249] Failed tests in 09_duplicates
Date: Sun, 19 Mar 2006 21:18:22 -0500
To: Guest via RT <bug-Tree-Suffix [...] rt.cpan.org>
From: Walt Mankowski <waltman [...] pobox.com>
I'll try, but I might not have time to try to debug this for a few days... Walt On Sun, Mar 19, 2006 at 08:54:50PM -0500, Guest via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18249 > > > sorry, but that's not enough information to figure out what's going on. > can you narrow it down further? a better test case may help. >
> > t/09_duplicates......1..13 > > ok 1 - string count > > dubious > > Test returned status 0 (wstat 11, 0xb) > > DIED. FAILED tests 2-13 > > Failed 12/13 tests, 7.69% okay
>
Subject: Re: [rt.cpan.org #18249] Failed tests in 09_duplicates
Date: Thu, 23 Mar 2006 18:01:11 -0500
To: "waltman [...] pobox.com via RT" <bug-Tree-Suffix [...] rt.cpan.org>
From: Walt Mankowski <waltman [...] pobox.com>
OK, I've done some experimenting on my box with test 09_duplicates.t, and here's what I've found. If I trim it down to this: use strict; use Test::More tests => 3; use Tree::Suffix; my $tree = Tree::Suffix->new(qw(string bling string)); is($tree->strings, 3, 'string count'); # is($tree->remove(qw(string)), 2, 'return count of remove'); it runs fine: % perl -Iblib/arch -Iblib/lib t/walt.t 1..3 ok 1 - string count ok 2 - return count of remove # Looks like you planned 3 tests but only ran 2. But when I uncomment that third test, it segfaults on the *second* test! % perl -Iblib/arch -Iblib/lib t/walt.t 1..3 ok 1 - string count zsh: segmentation fault perl -Iblib/arch -Iblib/lib t/walt.t Bizarre, ain't it? Walt On Sun, Mar 19, 2006 at 09:18:47PM -0500, waltman@pobox.com via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18249 > > > I'll try, but I might not have time to try to debug this for a few > days... > > Walt > > On Sun, Mar 19, 2006 at 08:54:50PM -0500, Guest via RT wrote:
> > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18249 > > > > > sorry, but that's not enough information to figure out what's going on. > > can you narrow it down further? a better test case may help. > >
> > > t/09_duplicates......1..13 > > > ok 1 - string count > > > dubious > > > Test returned status 0 (wstat 11, 0xb) > > > DIED. FAILED tests 2-13 > > > Failed 12/13 tests, 7.69% okay
> >
>
From: gray [...] cpan.org
On Thu Mar 23 18:01:43 2006, waltman@pobox.com wrote: Show quoted text
> OK, I've done some experimenting on my box with test 09_duplicates.t, > and here's what I've found. If I trim it down to this: > > use strict; > use Test::More tests => 3; > use Tree::Suffix; > > my $tree = Tree::Suffix->new(qw(string bling string)); > is($tree->strings, 3, 'string count'); > # is($tree->remove(qw(string)), 2, 'return count of remove'); > > it runs fine: > > % perl -Iblib/arch -Iblib/lib t/walt.t > 1..3 > ok 1 - string count > ok 2 - return count of remove > # Looks like you planned 3 tests but only ran 2. > > But when I uncomment that third test, it segfaults on the *second* > test! > > % perl -Iblib/arch -Iblib/lib t/walt.t > 1..3 > ok 1 - string count > zsh: segmentation fault perl -Iblib/arch -Iblib/lib t/walt.t > > Bizarre, ain't it?
you actually have only two tests there. the first line is just the tree constructor and isn't a test. so the problem is straightforward- remove() is segfaulting for you. unfortunately i don't have access to a similar system so can't debug why it's only affecting you. can you run the few test programs that come with libstree and see if they work as expected to make sure the problem doesn't lie there. if that's not the source, i'll add some debug capability to the next release.