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

Filter::decrypt failure with 5.0.14 RC1

Thread Next
From:
Paul Marquess
Date:
April 22, 2011 15:26
Subject:
Filter::decrypt failure with 5.0.14 RC1
Message ID:
4DB200D5.6060501@btinternet.com
I'm seeing this failure with Filter::decrypt

ok 1
ok 2
# test 3: Got 'Aborting, Compiler detected at 
/home/paul/install/5.14.0-RC1/lib/5.14.0/i686-linux/DynaLoader.pm line 213.
Compilation failed in require at decrypt.tst line 1.
  at decrypt.tst line 1
	main::BEGIN() called at decrypt.tst line 1
	eval {...} called at decrypt.tst line 1
BEGIN failed--compilation aborted at decrypt.tst line 1.
  at decrypt.tst line 1
'
not ok 3
ok 4
ok 5
ok 6


Test 3 is checking that Filter::decrypt can trap someone attempting to 
run the debugger. These are the relevant bits of code

BOOT:
     /* Check for the presence of the Perl Compiler */
     if (gv_stashpvn("B", 1, FALSE))
         croak("Aborting, Compiler detected") ;
     ...


void
import(module)
     SV *	module
     PPCODE:
     {

         SV * sv = newSV(BLOCKSIZE) ;

	/* make sure the Perl debugger isn't enabled */
	if( PL_perldb )
	    croak("debugger disabled") ;

         filter_add(filter_decrypt, sv) ;
         ...

Disabling the BOOT check for the perl compiler means the debugger test 
works, so it looks like the test for the presence of the perl compiler 
isn't good enough for 5.14

Any idea what has changed since 5.12 to make this happen?

Paul


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