develooper Front page | perl.perl5.porters | Postings from February 2014

[perl #121337] utf8cache.t tried to lauches nonexistant process on Win32 but still passes

From:
bulk88
Date:
February 27, 2014 09:33
Subject:
[perl #121337] utf8cache.t tried to lauches nonexistant process on Win32 but still passes
Message ID:
rt-4.0.18-11763-1393493617-1274.121337-75-0@perl.org
# New Ticket Created by  bulk88 
# Please include the string:  [perl #121337]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=121337 >


This is a bug report for perl from bulk88@hotmail.com,
generated with the help of perlbug 1.40 running under perl 5.19.9.


-----------------------------------------------------------------
[Please describe your issue here]

I noticed this strange message during a harness run from utf8cache.t, so 
I investigated. It was mentioned once in 
http://www.nntp.perl.org/group/perl.perl5.porters/2011/08/msg176054.html 
and it got 1 response in 
http://www.nntp.perl.org/group/perl.perl5.porters/2011/08/msg176059.html  .

--------------------------------------------------------------
C:\perl519\src\t>perl -I..\lib op/utf8cache.t
1..15
'-' is not recognized as an internal or external command,
operable program or batch file.
ok 1
ok 2 - quadratic pos
ok 3 - get-magic resets utf8cache on match vars
ok 4 - get-magic resets utf8cache on LVALUEs
ok 5 - get-magic resets uf8cache on defelems
ok 6 - pos on overloaded utf8 toggler
ok 7 - pos on overloaded utf8 toggler (again)
ok 8 - utf8 cache + overloading does not confuse substr lvalues
ok 9 - utf8 cache + overloading does not confuse substr lvalues (again)
ok 10 - utf8 cache + overloading does not confuse substr lvalue assignment
ok 11 - utf8 cache + overload does not confuse substr lv assignment (again)
ok 12 - no utf8 pos cache on globs
ok 13 - no utf8 pos cache on references
ok 14 - no utf8 length cache on globs
ok 15 - no utf8 length cache on references

C:\perl519\src\t>
-------------------------------------------------------------------

 From utf8cache.t

-------------------------------------------------------------------
my $pid = open CHILD, '-|';
die "kablam: $!\n" unless defined $pid;
unless ($pid) {
     open STDERR, ">&STDOUT";
     $a = "hello \x{1234}";
-------------------------------------------------------------------

$pid is true, and is a PID to the following process,
-------------------------------------------------------------------
Path: "C:\WINDOWS\system32\cmd.exe"
Command Line: "cmd.exe /x/d/c -"
-------------------------------------------------------------------

I am not sure if the CHILD FH actually works (IDK what works means). Its 
only use in utf8cache.t is
-------------------------------------------------------------------
{ local $/; $_ = <CHILD> }
-------------------------------------------------------------------

The '-|' is from day 1 of this test, from 
http://perl5.git.perl.org/perl.git/commitdiff/fa421ef92a7e8058000e870bee22bbe09d7055c9 
added in 5.11.2. I am not sure what this test does, but it does pass in 
the end. It probably doesn't do what is intended on *nix on Windows 
though and something needs to change.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.19.9:

Configured by Owner at Wed Feb 12 06:47:30 2014.

Summary of my perl5 (revision 5 version 19 subversion 9) configuration:
Derived from: 633f0fd2ca244ca83cc99b3af3a7d3ac2931850b
Platform:
osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -Od -MD -Zi -DDEBUGGING -DWIN32
-D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS
-DPERL_HASH_FUNC_ONE_AT_A_TIME -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T',
optimize='-Od -MD -Zi -DDEBUGGING',
cppflags='-DWIN32'
ccversion='13.10.6030', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug
-libpath:"c:\perl519\lib\CORE" -machine:x86'
libpth="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib"
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl519.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-libpath:"c:\perl519\lib\CORE" -machine:x86'

Locally applied patches:
uncommitted-changes

---
@INC for perl 5.19.9:
C:/perl519/site/lib
C:/perl519/lib
.

---
Environment for perl 5.19.9:
HOME (unset)
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=C:\perl519\bin;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\bin\prerelease;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;
PERL_BADLANG (unset)
SHELL (unset)





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