develooper Front page | perl.perl5.porters | Postings from November 2015

[perl #126753] [PATCH] move Win32's $^X code to where all otherOSes' $^X code lives

Thread Previous
From:
bulk88
Date:
November 28, 2015 05:46
Subject:
[perl #126753] [PATCH] move Win32's $^X code to where all otherOSes' $^X code lives
Message ID:
rt-4.0.18-17201-1448689550-406.126753-75-0@perl.org
# New Ticket Created by  bulk88 
# Please include the string:  [perl #126753]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126753 >


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


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

2 patches attached.

This patch came from research on EUMM commit "MM_Unix::find_perl() dont 
repeatedly stat the same path in a loop" 
https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/pull/245 .

I attached syscall logs before and after of how EUMM searches for the 
absolute path to perl. Since EUMM commit "MM_Unix::find_perl() dont 
repeatedly stat the same path in a loop" isn't in blead, you can see the 
same file not found path "C:\p523\src\ext\miniperl.exe" stat-ed 16 times 
in a row. After the EUMM patch not in blead the bad file path would have 
been stat-ed just once. With this core patch making $^X absolute for 
Win32 miniperl, the first stat will always succeed.

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

Configured by Owner at Sun Oct 25 19:14:27 2015.

Summary of my perl5 (revision 5 version 23 subversion 5) configuration:
     Derived from: 644207b7a8ff7a2b1661c05a7f9ac2df9a5dad91
     Platform:
       osname=MSWin32, osvers=6.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 -O1 -MD -Zi -DNDEBUG -GL 
-DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE 
-D_CRT_NONSTDC_NO_DEPRECATE  -DPERL_TEXTMODE_SCRIPTS 
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS',
       optimize='-O1 -MD -Zi -DNDEBUG -GL',
       cppflags='-DWIN32'
       ccversion='18.00.31101', gccversion='', gccosandvers=''
       intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234, 
doublekind=3
       d_longlong=undef, longlongsize=8, d_longdbl=define, 
longdblsize=8, longdblkind=0
       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 -opt:ref,icf 
-ltcg         -libpath:"c:\p523\lib\CORE"         -machine:x86 
"/manifestdependency:type='Win32' 
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' 
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' 
language='*'" -subsystem:console,"5.01"'
       libpth=\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=perl523.lib
       gnulibc_version=''
     Dynamic Linking:
       dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
       cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug 
-opt:ref,icf -ltcg         -libpath:"c:\p523\lib\CORE"  -machine:x86 
"/manifestdependency:type='Win32' 
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' 
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' 
language='*'" -subsystem:console,"5.01"'

Locally applied patches:
       uncommitted-changes

---
@INC for perl 5.23.5:
       C:/p523/site/lib
       C:/p523/lib
       .

---
Environment for perl 5.23.5:
       HOME (unset)
       LANG (unset)
       LANGUAGE (unset)
       LD_LIBRARY_PATH (unset)
       LOGDIR (unset)
       PATH=C:\p523\site\bin;C:\p523\bin;C:\Program Files\ActiveState 
Komodo Edit 
9\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program 
Files\TortoiseGit\bin;C:\Program Files\Microsoft Windows Performance 
Toolkit\;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program 
Files\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program 
Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft 
SDKs\TypeScript\1.0\;C:\Program Files\TortoiseHg\;
       PERL_BADLANG (unset)
       SHELL (unset)




Thread Previous


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