develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #22194] perldoc -q permute example using faster Algorithm::Permute panic's

Thread Previous | Thread Next
From:
David Dyck
Date:
May 14, 2003 03:46
Subject:
Re: [perl #22194] perldoc -q permute example using faster Algorithm::Permute panic's
Message ID:
Pine.LNX.4.51.0305140331320.10356@dd.tc.fluke.com
On Wed, 14 May 2003 at 12:23 +0200, Andreas J. Koenig <andreas.koenig@anima...:

>
> >>>>> On 14 May 2003 00:57:23 -0000, David Dyck (via RT) <perlbug-followup@perl.org> said:
>
>   > Since Algorithm::Permute does build and test ok in perl 5.8,
>   > and it is in the perl FAQ, I thought that
>   > this bug should be logged here, since
>   > untill it is resolved if the problem is with
>   > the .xs file in Algorithm::Permute
>   > or something that has changed in perl 5.9.
>
> Problem confirmed. Adding some evidence from my archive, hoping this
> helps somebody else to diagnose the problem.

Thanks

> The first perl that made Algorithm::Permute fail was 18048. At that
> time it failed with
>
> PERL_DL_NONLAZY=1 /home/src/perl/repoperls/installed-perls/perl/p17o7bL/perl-5.8.0@18048/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> 1..23
    ...
> ok 16
> panic: invalid pad in pad_sv: 0x816ccb0[0x817a6e8] at test.pl line 51.

The above panic is why I turned to p5p, but I see that it could
be just because I have DEBUGGING on and the new macro
  ASSERT_CURPAD_ACTIVE
began checking the condition at that time.
I haven't tried building withoug DEBUGGING turned on yet.

> >From 18551 to bleadperl we have this output of make test:
>
> Running make test
> PERL_DL_NONLAZY=1 /home/src/perl/repoperls/installed-perls/perl/ps6PMsO/perl-5.8
> .0@19512/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> 1..23
> Can't load 'blib/arch/auto/Algorithm/Permute/Permute.so' for module Algorithm::P
> ermute: blib/arch/auto/Algorithm/Permute/Permute.so: undefined symbol: cxinc at
> /home/src/perl/repoperls/installed-perls/perl/ps6PMsO/perl-5.8.0@19512/lib/5.9.0
> /i686-linux-64int/DynaLoader.pm line 229.
>  at test.pl line 13

the above load error can be fixed by adding
      DEFINE          => "-DPERL_EXT",
to its Makefile.PL WriteMakefile section to allow embed.h to expose cxinc
    #if defined(PERL_CORE) || defined(PERL_EXT)
    #define cxinc                   Perl_cxinc
    #endif


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About