perl debugger+taint mode issue in 5.10.0, 5.10.1 5.12.1, no issue in 5.8.8

--001636832e82416c9f048ce9a23b
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I got the scenario where perl debugger with taint mode is failing.
I am using below .pm amd .xs file for testing

$ cat *Mytest.pm*
#!/usr/bin/perl -wT
package Mytest;
use XSLoader ();

BEGIN {
    XSLoader::load('Mytest');
}
BEGIN {
    XSLoader::load('Mytest');
    my $var = defined($0)? UNDEFINE : 1;
}

sub func_test {
  glob("check");
  return 1;
}

1;


$ cat *Mytest.xs*
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "ppport.h"
#define UNDEFINE  0

MODULE = Mytest         PACKAGE = Mytest

IV
UNDEFINE()
    ALIAS:
    UNDEFINE = 0
  CODE:
    switch(ix) {
      case 0:  RETVAL = UNDEFINE;  break;
    }
  OUTPUT:
    RETVAL

when i issue perl -dT Mytest.pm getting insecure dependency error.

$ *perl -dT Mytest.pm*

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

*Insecure dependency in eval while running with -T switch at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/File/Glob.pm line 92*.
Compilation failed in require at Mytest.pm line 34.
 at Mytest.pm line 34
    Mytest::BEGIN() called at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/File/Glob.pm line 34
    eval {...} called at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/File/Glob.pm line 34
BEGIN failed--compilation aborted at Mytest.pm line 34.
 at Mytest.pm line 34
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.
  DB<1>


I checked *perl-5.10.0, 5.10.1 and 5.12.1*, issue exists in these release
and seems to be common in all platfrom, as i tested it in aix and linux.
Not seeing any error message in perl-5.8.8. Not sure about 5.9  releases.

Is this a regression which caused this issue? i thought
http://rt.perl.org/rt3/Ticket/Display.html?id=39733 might have caused this
But testing after backing out the changes  also got same error.
Please let me know your suggestions.
-- 
Thanks & Regards,
Sangamesh

--001636832e82416c9f048ce9a23b--
0
swamy
8/3/2010 11:29:44 AM
perl.perl5.porters 48287 articles. 1 followers. Follow

1 Replies
1204 Views

Similar Articles

[PageSpeed] 7

--001485f276a0ec1326048d122e87
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

Looks like this is happening  if we have two BEGIN blocks and glob() is
called.
No issue is seen if we have only one BEGIN block.


---------- Forwarded message ----------
From: swamy sangamesh <swamy.sangamesh@gmail.com>
Date: Tue, Aug 3, 2010 at 4:59 PM
Subject: perl debugger+taint mode issue in 5.10.0, 5.10.1 5.12.1, no issue
in 5.8.8
To: perl5-porters@perl.org, debugger@perl.org



Hi All,

I got the scenario where perl debugger with taint mode is failing.
I am using below .pm amd .xs file for testing

$ cat *Mytest.pm*
#!/usr/bin/perl -wT
package Mytest;
use XSLoader ();

BEGIN {
    XSLoader::load('Mytest');
}
BEGIN {
    XSLoader::load('Mytest');
    my $var = defined($0)? UNDEFINE : 1;
}

sub func_test {
  glob("check");
  return 1;
}

1;


$ cat *Mytest.xs*
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "ppport.h"
#define UNDEFINE  0

MODULE = Mytest         PACKAGE = Mytest

IV
UNDEFINE()
    ALIAS:
    UNDEFINE = 0
  CODE:
    switch(ix) {
      case 0:  RETVAL = UNDEFINE;  break;
    }
  OUTPUT:
    RETVAL

when i issue perl -dT Mytest.pm getting insecure dependency error.

$ *perl -dT Mytest.pm*

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

*Insecure dependency in eval while running with -T switch at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/File/Glob.pm line 92*.
Compilation failed in require at Mytest.pm line 34.
 at Mytest.pm line 34
    Mytest::BEGIN() called at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/File/Glob.pm line 34
    eval {...} called at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/File/Glob.pm line 34
BEGIN failed--compilation aborted at Mytest.pm line 34.
 at Mytest.pm line 34
Debugged program terminated.  Use q to quit or R to restart,
  use o inhibit_exit to avoid stopping after program termination,
  h q, h R or h o to get additional info.
  DB<1>


I checked *perl-5.10.0, 5.10.1 and 5.12.1*, issue exists in these release
and seems to be common in all platfrom, as i tested it in aix and linux.
Not seeing any error message in perl-5.8.8. Not sure about 5.9  releases.

Is this a regression which caused this issue? i thought
http://rt.perl.org/rt3/Ticket/Display.html?id=39733 might have caused this
But testing after backing out the changes  also got same error.
Please let me know your suggestions.
-- 
Thanks & Regards,
Sangamesh




-- 
Thanks & Regards,
Sangamesh

--001485f276a0ec1326048d122e87--
0
swamy
8/5/2010 11:52:22 AM
Reply:

Similar Artilces:

List::MoreUtils-0.25_1 pass on 5.10.1RC0, 5.10.0, 5.8.9, 5.8.8
Following up on my report that List::MoreUtils-0.24 failed its tests on the "maint-5.10 snapshot (aka 'RC0')" that came out on July, and Tassilo later confirming the nature of the problem ... List::MoreUtils-0.25_1 was just released on CPAN, and I have tested it manually from a download of the tarball from search.cpan.org, and the problem appears to be fixed. A clean unpack/Makefile/make/make-test passes all tests on 4 versions of Perl on my same PPCG4/MacOSX10.5.7 machine: - 5.10.1RC0 built by me with defaults, custom install loc - 5.10.0 built by m...

Errors using hotmail after latest major update: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8
Name: William Green Email: wjgreen_at_hotmail.com Product: Firefox Summary: Errors using hotmail after latest major update: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8 Comments: After I installed the latest update and rebooted, every time I go to open an email in hotmail.com (this does NOT occur in other email sites I use), I get the following three Alert messages that I have to click through to get to my email: [object XPCNativeWrapper [object HTMLBodyElement]] [object XPCNativeWrapper [object HTMLScriptElement]] TypeError: d...

SM2.5 crash
I got those traps when trying to 'Edit as new'(?) a previous sent mail and wanted to change the language via right click in subject line. Was reproduce able a few times but now it works. Maybe I tried to fast switching spell checker? ------------------------------------------------------------ 12-06-2011 21:37:47 SYS3171 PID 006e TID 0001 Slot 0077 P:\SEAMONKEY2\SEA!LRQ.EXE c0000005 14dd6ac8 P1=00000002 P2=0002fffc P3=XXXXXXXX P4=XXXXXXXX EAX=00030064 EBX=00030180 ECX=00030180 EDX=27a22940 ESI=24c5ee88 EDI=24c5ee88 DS=0053 DSACC=f0f3 DSLIM=ffffffff ES=0053...

Smoke [5.8.4] 22871 FAIL(Fc) cygwin_nt-5.0 1.5.10(0.116/4/2) (x86/1 cpu)
Automated smoke report for 5.8.4 patch 22871 PC09: x86 Family 15 Model 1 Stepping 2, GenuineIntel (x86/1 cpu) on cygwin_nt-5.0 - 1.5.10(0.116/4/2) using gcc version 3.3.1 (cygming special) smoketime 9 hours 8 minutes (average 45 minutes 42 seconds) Summary: FAIL(Fc) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (after miniperl), t =3D make test-p= rep ...

Smoke [5.8.2] 21949 FAIL(Mc) cygwin_nt-5.0 1.5.5(0.94/3/2) (i686/1 cpu)
Automated smoke report for 5.8.2 patch 21949 on cygwin_nt-5.0 - 1.5.5(0.94/= 3/2) (i686/1 cpu) (PC09) using version=20 Report by Test::Smoke v1.18.11 (perl 5.8.2) [1 hour 13 minutes] O =3D OK F =3D Failure(s), extended report at the bottom X =3D test(s) failed under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (after miniperl), t =3D make test-p= rep 21949 Configuration (common) none ------------ ------------------------------------------------...

Smoke [5.10.1] maint-5.10-1725-g5b53e9f FAIL(XF) netbsd 5.0 (i386/1 cpu)
Automated smoke report for 5.10.1 patch 5b53e9f3c366c11df59536b294aba43e843db9b0 maint-5.10-1725-g5b53e9f p5netbsd: Intel 686-class (i386/1 cpu) on netbsd - 5.0 using cc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120) smoketime 8 hours 17 minutes (average 1 hour 2 minutes) Summary: FAIL(XF) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = mak...

ActiveState announces new ActivePerl builds of 5.8.9, 5.10.1, and 5.12.2
ActiveState is pleased to announce ActivePerl 5.8.9 build 828, ActivePerl 5.10.1 build 1008, and ActivePerl 5.12.2 build 1203, complete, ready-to-install binary distributions of Perl. Builds for Windows, Mac OS X and Linux are made freely available. Builds for Solaris, HP-UX and AIX are available with ActivePerl Business Edition. For detailed information or to download these releases, see: http://www.activestate.com/activeperl What's new in ActivePerl ======================== * All bundled modules have been updated to their latest stable releases. * DBD::Pg has been...

1.8.1.2/1.8.0.10 Nominations Deadline
Any nominations for 1.8.1.2 (Firefox 2.0.0.1) or 1.8.0.10 (FF/TB 1.5.0.10) need to be made by Friday 1/5. We are on a tight schedule to get those releases out by early February, so we need to warp up the nominations process and get patches together and landed. Please visit http://wiki.mozilla.org/Firefox:1.5.0.10-2.0.0.2 for more info and key dates. Thanks! - Jay ...

Smoke [5.8.9] maint-5.8-4-g7d6ecb1 FAIL(Xm) netbsd 5.0.1 (i386/1 cpu)
Automated smoke report for 5.8.9 patch 7d6ecb1f6c7eabec011b66526161fcf678919c99 maint-5.8-4-g7d6ecb1 p5netbsd: Intel 686-class (i386/1 cpu) on netbsd - 5.0.1 using cc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120) smoketime 3 hours 37 minutes (average 21 minutes 42 seconds) Summary: FAIL(Xm) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = m...

stalled transfer Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.3) Gecko/20060425 SUSE/1.5.0.3-7 Firefox/1.5.0.3
I experience stalled or no download of all (not only specific web-sites) using firefox while another browser "Konquereor" is working normally. Firefox is looking up.. connecting... transferring and then stalled sometimes I get the message "I cant find the server", surprisingly because the status shows transferring, or a login window for the router shows up what has not been seen with the other web browser. A second Linux PC in the network is working as supposed, the router is wide open... connection settings are already checked. May be anybody has a hint? ...

stalled or no download: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.3) Gecko/20060425 SUSE/1.5.0.3-7 Firefox/1.5.0.3
I experience stalled or no download of all (not only specific web-sites) using firefox while another browser "Konquereor" is working normally. Firefox is looking up.. connecting... transfering and then stalled sometimes I get the message "I cant find the server", suprisingly because the status shows transfering, or a login window for the router shows up what has not been seen with the other web browser. A second Linux PC in the network is working as supposed, the router is wide open... connection settings are alredy checked. May be anybody has a hint? Ber...

Smoke [5.8.9] maint-5.8-10-g5d97567 FAIL(XFmc) netbsd 6.1.5 (i386/2 cpu)
Automated smoke report for 5.8.9 patch 5d97567dd5d99fd909fe6858c74f7b2ca0ad9772 maint-5.8-10-g5d97567 philips.bandsman.co.uk: Intel 686-class (i386/2 cpu) on netbsd - 6.1.5 using cc version 4.5.3 smoketime 1 hour 36 minutes (average 5 minutes 20 seconds) Summary: FAIL(XFmc) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep maint-5.8-...

5.10.0 -> 5.10.1 Regression in fafafbaf70 (Big slowdown in 5.10 @_ parameter passing)
On Mon, Jan 7, 2008 at 2:55 PM, Rafael Garcia-Suarez <rgarciasuarez@gmail.com> wrote: > On 06/01/2008, Rick Delaney <rick@bort.ca> wrote: >> The attached patch fixes the issue Dave Mitchell points out but I don't >> think it has much effect on performance. =C2=A0I assume the benchmarks i= n the >> above linked thread are to point out different cycles/sec for the >> different perl versions? =C2=A0If not, I don't understand what they are >> supposed to show. =C2=A0For difference between the two perls as large as= the >> benchm...

ActiveState 5.6.1 versus 5.8.0. 5.8.0 inserts an unwanted char 26
Hi, I was wondering if this is a Unicode thing/issue--if there might be a better solution. If, instead of the code enclosed below, there might be a command line switch or an option I can use or set. Win32 ActiveState I've a text editor with capable to launch command line as well as capture the STDOUT So I frequently use the editor to launch Perl script and capture the output. This works fine with ActiveState Perl 5.61 build 633 But, once ActiveState 5.8.0 build 805 is installed, then now the captured output in the editor it has a little square block character at ...

Smoke [5.13.10] v5.13.10-8-g2dc3444 FAIL(F) netbsd 5.1 (i386/1 cpu)
Automated smoke report for 5.13.10 patch 2dc3444a05163473ef4b0b61e29591d1e8fdfdfe v5.13.10-8-g2dc3444 p5netbsd: Intel 686-class (i386/1 cpu) on netbsd - 5.1 using cc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120) smoketime 12 hours 18 minutes (average 1 hour 32 minutes) Summary: FAIL(F) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make t...

Web resources about - perl debugger+taint mode issue in 5.10.0, 5.10.1 5.12.1, no issue in 5.8.8 - perl.perl5.porters

Resources last updated: 11/23/2015 11:45:17 AM