JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.69k stars 5.48k forks source link

Unable to resolve DNS within Julia on Windows #5574

Closed mlubin closed 10 years ago

mlubin commented 10 years ago

I'm helping out a user who's experiencing a very strange issue (Windows 8, 64-bit):

julia> ;nslookup github.com
Server: UnKnown
Address: 18.71.[...].[...]

*** UnKnown can't find github.com: No response from server

But pinging github's IP address from within julia works.

The strange part is that if you run the same command in the Git bash that comes with Julia, it works fine:

$ nslookup github.com
Server: [...]
Address: 18.71.[...].[...]

Non-authoritative answer:
Name: github.com
Address: 192.30.252.131

This is an issue with all DNS lookups, not just github. There are no firewalls enabled (that I can find). The same occurs with julia 0.2 and 0.3. This happens on all networks, not just MIT wifi. The internet connection seems to work fine from all applications except julia. How can I debug this?

vtjnash commented 10 years ago

From reading the issue thread it sounds like the patch should work. The OP will need to confirm, but yes, I intentionally worded the commit message in such a way that GitHub would tentatively close the issue

ihnorton commented 10 years ago

There are new 0.3-pre binaries up with this patch included.

@drlivip @kbauer @wheineman @flashus: please test.

kbauer commented 10 years ago

@Isaiah: I reinstalled julia using the current binaries from the download page (and checked that the file differs from the previous one). The behaviour remains unchanged.

2014-05-10 14:13 GMT+02:00 Isaiah notifications@github.com:

There are new 0.3-pre binaries up with this patch included.

@drlivip https://github.com/drlivip @kbauer https://github.com/kbauer @wheineman https://github.com/wheineman @flashushttps://github.com/flashus: please test.

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-42740138 .

drlivip commented 10 years ago

@Isaiah and @kbauer: I did the same, including deleting the .julia folder before running the test, and also saw no change in behavior.

On Sat, May 10, 2014 at 8:43 AM, kbauer notifications@github.com wrote:

@Isaiah: I reinstalled julia using the current binaries from the download page (and checked that the file differs from the previous one). The behaviour remains unchanged.

2014-05-10 14:13 GMT+02:00 Isaiah notifications@github.com:

There are new 0.3-pre binaries up with this patch included.

@drlivip https://github.com/drlivip @kbauer https://github.com/kbauer

@wheineman https://github.com/wheineman @flashus< https://github.com/flashus>: please test.

— Reply to this email directly or view it on GitHub< https://github.com/JuliaLang/julia/issues/5574#issuecomment-42740138> .

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-42740786 .

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

ihnorton commented 10 years ago

If someone wants to do an IRC or TeamViewer session that might be helpful. I'm looking for a Windows 8.1 VPS but haven't had any luck so far.

ihnorton commented 10 years ago

I installed a newer version of Windows 8.1 enterprise trial, and still can't reproduce. Looking at the Windows 8.1 comparison page doesn't show any helpful differences. I believe everything works correctly for @karbarcca (?).

I would also be interested in seeing a comparison of:

julia> ENV
julia> run(`julia -e "print(ENV)"`)

from anyone who has this issue.

drlivip commented 10 years ago

@Isaiah: Both commands produce the same results with the exception of the statement "bias_num_threads=8" at the end of the dump due to the "run" command.

On Sun, May 11, 2014 at 2:23 PM, Isaiah notifications@github.com wrote:

I installed a newer version of Windows 8.1 enterprise trial, and still can't reproduce. Looking at the Windows 8.1 comparison pagehttp://www.microsoft.com/en-us/windows/enterprise/products-and-technologies/windows-8-1/compare/default.aspxdoesn't show any helpful differences. I believe everything works correctly for @karbarcca https://github.com/karbarcca (?).

I would also be interested in seeing a comparison of:

julia> ENV julia> run(julia -e "print(ENV)")

from anyone who has this issue.

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-42778595 .

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

quinnj commented 10 years ago

My output is below. I'm tied up for the next few days but I could probably to an IRC with you @ihnorton on Wednesday sometime if that would help; though it seems like I'd have to try and reproduce!

In  [54]: ENV

Out [54]: =C:=C:\Users\karbarcca\.julia\v0.3\Dates
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\karbarcca\AppData\Roaming
APPENGINE_DEV_APPSERVER=C:\Users\karbarcca\go\go_appengine\dev_appserver.py
COLUMNS=80
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=QUINNJ
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
FREEHDL=C:\Program Files (x86)\FreeHDL
GAE_SDK_ROOT=C:\Users\karbarcca\go\go_appengine
GOPATH=C:\Users\karbarcca\go
GOROOT=C:\Users\karbarcca\go\go_appengine\goroot\
GUROBI_HOME=C:\gurobi560\win64
HOME=C:\Users\karbarcca
HOMEDRIVE=C:
HOMEPATH=\Users\karbarcca
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21\bin
JULIA_EDITOR=start
LINES=30
LOCALAPPDATA=C:\Users\karbarcca\AppData\Local
LOGONSERVER=\\MicrosoftAccount
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Users\karbarcca\julia\usr\bin;C:\Users\karbarcca\julia\usr\bin\..\Git\bin;C:\Users\karbarcca\AppData\Roaming\Sublime Text 3\Packages\IJulia/windeps/;C:\Users\karbarcca\msys64\bin;C:\Users\karbarcca\msys64\mingw64\bin;C:\Program Files\Teradata\Client\14.00\ODBC Driver for Teradata nt-x8664\Lib\;C:\Program Files\Teradata\Client\14.00\Shared ICU Libraries for Teradata\lib\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\R2013a\runtime\win64;C:\Program Files\MATLAB\R2013a\bin;C:\gurobi560\win64\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\go\bin;C:\Program Files\Java\jdk1.7.0_21\bin;C:\Program Files\7-Zip;C:\Program Files\R\R-3.0.1\bin\x64;C:\Users\karbarcca\julia\usr\bin;C:\Users\karbarcca\go\go_appengine;C:\Python27;C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX;C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Broker;C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Client
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\Intel\
PUBLIC=C:\Users\Public
QUCSDIR=C:\Program Files (x86)\Qucs
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\KARBAR~1\AppData\Local\Temp
TMP=C:\Users\KARBAR~1\AppData\Local\Temp
USERDOMAIN=QUINNJ
USERDOMAIN_ROAMINGPROFILE=QUINNJ
USERNAME=karbarcca
USERPROFILE=C:\Users\karbarcca
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\WINDOWS

In  [55]: run(`julia -e "print(ENV)"`) 
=C:=C:\Users\karbarcca\.julia\v0.3\Dates
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\karbarcca\AppData\Roaming
APPENGINE_DEV_APPSERVER=C:\Users\karbarcca\go\go_appengine\dev_appserver.py
COLUMNS=80
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=QUINNJ
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
FREEHDL=C:\Program Files (x86)\FreeHDL
GAE_SDK_ROOT=C:\Users\karbarcca\go\go_appengine
GOPATH=C:\Users\karbarcca\go
GOROOT=C:\Users\karbarcca\go\go_appengine\goroot\
GUROBI_HOME=C:\gurobi560\win64
HOME=C:\Users\karbarcca
HOMEDRIVE=C:
HOMEPATH=\Users\karbarcca
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21\bin
JULIA_EDITOR=start
LINES=30
LOCALAPPDATA=C:\Users\karbarcca\AppData\Local
LOGONSERVER=\\MicrosoftAccount
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Users\karbarcca\julia\usr\bin;C:\Users\karbarcca\julia\usr\bin\..\Git\bin;C:\Users\karbarcca\AppData\Roaming\Sublime Text 3\Packages\IJulia/windeps/;C:\Users\karbarcca\msys64\bin;C:\Users\karbarcca\msys64\mingw64\bin;C:\Program Files\Teradata\Client\14.00\ODBC Driver for Teradata nt-x8664\Lib\;C:\Program Files\Teradata\Client\14.00\Shared ICU Libraries for Teradata\lib\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\R2013a\runtime\win64;C:\Program Files\MATLAB\R2013a\bin;C:\gurobi560\win64\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\go\bin;C:\Program Files\Java\jdk1.7.0_21\bin;C:\Program Files\7-Zip;C:\Program Files\R\R-3.0.1\bin\x64;C:\Users\karbarcca\julia\usr\bin;C:\Users\karbarcca\go\go_appengine;C:\Python27;C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX;C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Broker;C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Client
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\Intel\
PUBLIC=C:\Users\Public
QUCSDIR=C:\Program Files (x86)\Qucs
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\KARBAR~1\AppData\Local\Temp
TMP=C:\Users\KARBAR~1\AppData\Local\Temp
USERDOMAIN=QUINNJ
USERDOMAIN_ROAMINGPROFILE=QUINNJ
USERNAME=karbarcca
USERPROFILE=C:\Users\karbarcca
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\WINDOWS

In  [56]: ;nslookup github.com
Non-authoritative answer:

Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Name:    github.com
Address:  192.30.252.129

In  [57]: 
ihnorton commented 10 years ago

@karbarcca, thanks - one more thing: if you have a chance, please check with the latest nightly too (if you are self-compiling).

ihnorton commented 10 years ago

@vtjnash could this somehow be related to unicode? I noticed that libuv's process.c always uses CREATE_UNICODE_ENVIRONMENT. Should we be defining UNICODE and _UNICODE?

kbauer commented 10 years ago
julia> ENV
=C:=C:\Program Files\ConEmu
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\klaus\AppData\Roaming
asl.log=Destination=file
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=S15
ComSpec=C:\WINDOWS\system32\cmd.exe
ConEmuANSI=ON
ConEmuArgs=
ConEmuBaseDir=C:\Program Files\ConEmu\ConEmu
ConEmuBuild=120727c
ConEmuConfig=
ConEmuDir=C:\Program Files\ConEmu
ConEmuHWND=0x001106F4
configsetroot=C:\WINDOWS\ConfigSetRoot
DATAPATH=E:\
FP_NO_HOST_CHECK=NO
GNUPLOT_LIB=C:\Program Files (x86)\gnuplot\demo
HOMEDRIVE=C:
HOMEPATH=\Users\klaus
JULIA_EDITOR=start
LIBPATH=E:\lib\
LOCALAPPDATA=C:\Users\klaus\AppData\Local
LOGONSERVER=\\S15
MOZ_PLUGIN_PATH=C:\Program Files\Tracker Software\PDF Viewer\Win32\
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Program Files\julia\bin;C:\Program Files\julia\bin\..\Git\bin;C:\Program Files\julia\bin;C:\Program Files\julia\bin\..\Git\bin;C:\Program Files\ConEmu\ConEmu;E:\lib\bat;E:\lib\scripts-crossplatform;C:\Program Files (x86)\ImageMagick-6.7.8-Q16\;C:\gnuwin32\bin;C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\AuthenTec TrueSuite\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Sony\VAIO Improvement\;C:\Program Files (x86)\Sony\VAIO Startup Setting Tool;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\emacs-24.3\bin;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files (x86)\Bazaar;C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts;C:\Python27\Lib\site-packages\vtk;C:\Python27\gnuplot\binary;C:\Program Files (x86)\pythonxy\SciTE-3.2.2-1;C:\Program Files (x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Program Files (x86)\gnuplot\bin;C:\Novell\GroupWise;D:\Steam\;C:\Program Files\julia;C:\Program Files\julia\bin;.;;.;;.;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\klaus\AppData\Local\Temp
TMP=C:\Users\klaus\AppData\Local\Temp
USERDOMAIN=S15
USERDOMAIN_ROAMINGPROFILE=S15
USERNAME=klaus
USERPROFILE=C:\Users\klaus
VTK_DATA_ROOT=C:\Python27\VTKData
windir=C:\WINDOWS
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

julia> run(`julia -e "print(ENV)"`)
socket: (10022) Ein ungültiges Argument wurde angegeben.
A s s e r t i o n   f a i l e d !

 P r o g r a m :   C : \ P r o g r a m   F i l e s \ j u l i a \ b i n \ j u l i a . e x e

 F i l e :   s r c / u v - c o m m o n . c ,   L i n e   8 3

 E x p r e s s i o n :   0

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
blas_num_threads=8

C:\Users\klaus>

Note the spacing in the assertion message (usually indicates that there is something unicode-encoded printed to the terminal but unsupported there). Also note that it even crashes the Julia REPL!

The same error is emitted when running any command of the form julia> run(julia -e "...")

julia> run(`julia -e print("hello world")`)
socket: (10022) Ein ungültiges Argument wurde angegeben.
A s s e r t i o n   f a i l e d !

 P r o g r a m :   C : \ P r o g r a m   F i l e s \ j u l i a \ b i n \ j u l i
 a . e x e
 F i l e :   s r c / u v - c o m m o n . c ,   L i n e   8 3

 E x p r e s s i o n :   0

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
blas_num_threads=8

C:\Users\klaus>

Maybe related: https://github.com/joyent/node/issues/7168

C:\Users\klaus> julia -e "print(ENV)" however works well (unsurprising, but maybe still important).

wheineman commented 10 years ago

Installed latest nightly build on a home laptop running Windows 8.1 and with direct access to git ports and it worked fine. Installed the same nightly build on my work laptop redirecting git to use http and it I get the same familiar failure:

julia> Pkg.init() INFO: Initializing package repository C:\Users\heinemanwp.julia\v0.3 INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl fatal: unable to access 'http://github.com/JuliaLang/METADATA.jl/': Could not re solve host: github.com ERROR: failed process: Process(git clone -q -b metadata-v2 git://github.com/Jul iaLang/METADATA.jl METADATA, ProcessExited(128)) [128] in pipeline_error at process.jl:489 in success at process.jl:481 in run at process.jl:466

Here's the versioninfo and ENV:

julia> versioninfo() Julia Version 0.3.0-prerelease+2983 Commit 2894c29* (2014-05-10 11:04 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4600M CPU @ 2.90GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY) LAPACK: libopenblas LIBM: libopenlibm

julia> ENV =::=::\ =C:=C:\Users\heinemanwp\AppData\Local\Julia 0.3.0-prerelease ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\heinemanwp\AppData\Roaming CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=AMRLR9004L63 ComSpec=C:\WINDOWS\system32\cmd.exe DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\heinemanwp JULIA_EDITOR=start LOCALAPPDATA=C:\Users\heinemanwp\AppData\Local LOGONSERVER=\NDHAMRDOM06 NUMBER_OF_PROCESSORS=4 OS=Windows_NT Path=C:\Users\heinemanwp\AppData\Local\Julia 0.3.0-prerelease\bin;C:\Users\heine manwp\AppData\Local\Julia 0.3.0-prerelease\bin..\Git\bin;C:\Users\heinemanwp\Ap pData\Local\Julia 0.3.0-prerelease\bin;C:\Users\heinemanwp\AppData\Local\Julia 0 .3.0-prerelease\bin..\Git\bin;C:\Oracle\OraAdmin32_11204\bin;C:\Program Files ( x86)\RSA SecurID Token Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Progr am Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W bem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime \QTSystem\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Program Files\In tel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Ma nagement Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Co mponents\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Inte l\WirelessCommon\;C:\Users\HeinemanWP\MyApps\SBCL\1.1.17\;C:\Program Files (x86) \MySQL\MySQL Utilities 1.3.6\;C:\Program Files\TortoiseSVN\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=3c03 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program File s\Microsoft Application Virtualization\Client\ PUBLIC=C:\Users\Public QTJAVA=C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip SBCL_HOME=C:\Users\HeinemanWP\MyApps\SBCL\1.1.17\ SESSIONNAME=Console SYBASE=C:\Program Files (x86)\Quest Software\Toad for Data Analysts 3.1\ SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\HEINEM~1\AppData\Local\Temp\1 TMP=C:\Users\HEINEM~1\AppData\Local\Temp\1 TNS_ADMIN=C:\Oracle\Network\Admin\ UATDATA=C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77 UOIPME_REG_PATH=C:\Program Files\Intel Corporation\USB over IP USERDNSDOMAIN=AMER.FITZER.COM USERDOMAIN=AMER USERDOMAIN_ROAMINGPROFILE=AMER USERNAME=HeinemanWP USERPROFILE=C:\Users\heinemanwp VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection windir=C:\WINDOWS __COMPAT_LAYER=DetectorsWin8

ihnorton commented 10 years ago

@kbauer thanks, that is a good lead.

@wheineman can you check these too:

run(`julia -e "print(ENV)"`)
run(`julia -e print("hello world")`)
wheineman commented 10 years ago
julia> run(`julia -e "print(ENV)"`)
=::=::\
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\heinemanwp\AppData\Roaming
CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=AMRLR9004L63
ComSpec=C:\WINDOWS\system32\cmd.exe
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\heinemanwp
JULIA_EDITOR=start
LOCALAPPDATA=C:\Users\heinemanwp\AppData\Local
LOGONSERVER=\\NDHAMRDOM06
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Users\heinemanwp\AppData\Local\Julia 0.3.0-prerelease\bin;C:\Users\heine
manwp\AppData\Local\Julia 0.3.0-prerelease\bin\..\Git\bin;C:\Users\heinemanwp\Ap
pData\Local\Julia 0.3.0-prerelease\bin;C:\Users\heinemanwp\AppData\Local\Julia 0
.3.0-prerelease\bin\..\Git\bin;C:\Oracle\OraAdmin32_11204\bin;C:\Program Files (
x86)\RSA SecurID Token Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Progr
am Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W
bem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime
\QTSystem\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Program Files\In
tel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Ma
nagement Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management
Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Co
mponents\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Inte
l\WirelessCommon\;C:\Users\HeinemanWP\MyApps\SBCL\1.1.17\;C:\Program Files (x86)
\MySQL\MySQL Utilities 1.3.6\;C:\Program Files\TortoiseSVN\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3c03
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program File
s\Microsoft Application Virtualization\Client\
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
SBCL_HOME=C:\Users\HeinemanWP\MyApps\SBCL\1.1.17\
SESSIONNAME=Console
SYBASE=C:\Program Files (x86)\Quest Software\Toad for Data Analysts 3.1\
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\HEINEM~1\AppData\Local\Temp\1
TMP=C:\Users\HEINEM~1\AppData\Local\Temp\1
TNS_ADMIN=C:\Oracle\Network\Admin\
UATDATA=C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
UOIPME_REG_PATH=C:\Program Files\Intel Corporation\USB over IP
USERDNSDOMAIN=AMER.FITZER.COM
USERDOMAIN=AMER
USERDOMAIN_ROAMINGPROFILE=AMER
USERNAME=HeinemanWP
USERPROFILE=C:\Users\heinemanwp
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
windir=C:\WINDOWS
blas_num_threads=4

julia> run(`julia -e print("hello world")`)
ERROR: syntax: missing comma or ) in argument list
 in process_options at client.jl:213

blas_num_threads=4
ERROR: failed process: Process(`julia -e 'print(hello world)'`, ProcessExited(1)
) [1]
 in pipeline_error at process.jl:489
 in run at process.jl:466

Presuming you meant this instead:

julia> run(`julia -e "print(\"hello world\")"`)
hello world
kbauer commented 10 years ago

Just in case it's helpful: run(julia --help) works, but run(julia --version) causes the uv-common.c/83 error.

wheineman commented 10 years ago

Neither run(julia --help) or run(julia --version) leads to failure on my machine.

drlivip commented 10 years ago

So bizarre! run(julia --help) and run(jula --version) both work for me. However, the original problem with Pkg.status(), etc. is still present.

On Mon, May 12, 2014 at 3:42 PM, kbauer notifications@github.com wrote:

Just in case it's helpful: run(julia --help) works, but run(julia --version) causes the uv-common.c/83 error.

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-42878392 .

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

ihnorton commented 10 years ago

Would someone mind to double-check with the most recent binary?

drlivip commented 10 years ago

Assuming prerelease v0.3.0 is the latest binary, I downloaded and tried. Same "unable to access" result.

On Thu, May 22, 2014 at 2:10 PM, Isaiah notifications@github.com wrote:

Would someone mind to double-check with the most recent binary?

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-43923690 .

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

kbauer commented 10 years ago

For me too the problems persist unchanged.

2014-05-22 23:00 GMT+02:00 drlivip notifications@github.com:

Assuming prerelease v0.3.0 is the latest binary, I downloaded and tried. Same "unable to access" result.

On Thu, May 22, 2014 at 2:10 PM, Isaiah notifications@github.com wrote:

Would someone mind to double-check with the most recent binary?

— Reply to this email directly or view it on GitHub< https://github.com/JuliaLang/julia/issues/5574#issuecomment-43923690> .

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-43943422 .

ihnorton commented 10 years ago

Thanks. There were some issues with uploading the 0.3-pre binary around the time of vtjnash's change, so I wanted to make sure.

vtjnash commented 10 years ago

I keep having this feeling that there are a disproportionate number of non-US users experiencing this bug. That seems to suggest we are having a unicode-conversion issue somewhere in base. Unfortunately, attempting to switch my windows 8 install to German didn't reproduce the bug, so I'm not convinced I managed to reproduce the same environment as having installed with the German locale originally.

wheineman commented 10 years ago

Using this install, julia-0.3.0-prerelease-570b2bd-win64.exe, I still see the same error. And despite having a German last name, I'm in the US and using US locale.

ihnorton commented 10 years ago

@vtjnash same feeling. libuv always creates a Unicode environment, and perhaps some versions of these tools are not expecting this. So far I haven't found a way to check the Unicode flag from within a process.

drlivip commented 10 years ago

I'm not sure if this helps at all, but my install history: I'm in the US and originally upgraded from Windows 7 to Windows 8.0 from Microsoft Developer Network Academic Alliance (I'm an ECE Prof) to experiment with the ability to develop Windows 8 apps. I upgraded to 8.1 when it stabilized and the black screen video bug was fixed. All this was done prior to my first encounter with Julia.

On Fri, May 23, 2014 at 11:48 AM, Isaiah notifications@github.com wrote:

@vtjnash https://github.com/vtjnash same feelinghttps://github.com/JuliaLang/julia/issues/5574#issuecomment-42797528. libuv always creates a Unicode environment, and perhaps some versions of these tools are not expecting this. So far I haven't found a way to check the Unicode flag from within a process.

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-44027944 .

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

ihnorton commented 10 years ago

@drlivip interesting. @kbauer @wheineman: did you upgrade to Win 8?

kbauer commented 10 years ago

Yes. Sadly I was forced to do an Upgrade-Installation, as my device die not allow a clean installation (lack of manufacturer support). The root cause being related to this would not surprise me too much - there are some other issues too that I blame on Windows 8. Am 23.05.2014 21:57 schrieb "Isaiah" notifications@github.com:

@drlivip https://github.com/drlivip interesting. @kbauerhttps://github.com/kbauer @wheineman https://github.com/wheineman: did you upgrade to Win 8?

— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/5574#issuecomment-44053775 .

wheineman commented 10 years ago

No. The laptop where I experience the issue is a company provided laptop. They wipe the factory install that comes with the laptop and install a company standard installation. For what it's, worth, I don't see the issue on a standard Windows 8 install with an upgrade to Windows 8.1 on a laptop at home.

kakobrekla commented 10 years ago

I am seeing this as well, first time install w8, eu, haswell, present on irc.

vtjnash commented 10 years ago

(from 0.2.1 debugging session with kakobrekla)

julia> run(`cmd /c "ping github.com"`)
Ping request could not find host github.com. Please check the name and try again.
ErrorException("failed process: Process(`cmd /c 'ping github.com'`, ProcessExited(1)) [1]")

julia> ccall(:system, Cint, (Ptr{Uint8},), "ping github.com")
Ping request could not find host github.com. Please check the name and try again.
1

julia> 

perhaps it's not libuv?

(also tried bytestring(ccall(:setlocale, Ptr{Uint8}, (Cint, Ptr{Uint8}), 0, "English_United States.1252"), so perhaps it's not encoding)

(also tried C:\julia>julia -P "ccall(:system, Cint, (Ptr{Uint8},), \"ping github.com\")" still got Ping request could not find host github.com. Please check the name and try again)

ihnorton commented 10 years ago

FYI, in case it helps for testing w/o libuv: https://gist.github.com/ihnorton/36d4da32b91bcb557ba8

(3/4 of the time this waits and ping works as expected; the other 1/4 it throws an access violation in the Rtl unicode initializer)

kakobrekla commented 10 years ago

Tried your test code with 0.3.0. As you say, it will randomly throw access violation or, in my case, fail to ping in the same fashion 0.2.1. does.

ihnorton commented 10 years ago

Seems like calling CreateProcessW directly shows the same behavior, so we can (more or less) rule out libuv. We should try fiddling with the environment string.

drlivip commented 10 years ago

Some exploring:

run(cmd /c "ping 127.0.0.1") works run(cmd /c "ping ::1") also works run(cmd /c "ping localhost") fails with "... could not find host localhost..."

and, of course, all three work in a command window.

I believe a DNS discussion was had back in February. Maybe a revisit?

On Tue, Jun 3, 2014 at 4:27 PM, Isaiah notifications@github.com wrote:

Seems like calling CreateProcessW directly shows the same behavior, so we can (more or less) rule out libuv. We should try fiddling with the environment string.

— Reply to this email directly or view it on GitHub https://github.com/JuliaLang/julia/issues/5574#issuecomment-45015822.

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

vtjnash commented 10 years ago

At this point, I think we fairly well understand the impact. I'm looking for someone with a source build of julia on windows who can ping me on IM some night to help narrow down the cause of the problem more. I have some more ideas to research.

tkelman commented 10 years ago

Presumably you mean someone with a source build on Windows who sees this problem?

vtjnash commented 10 years ago

correct

kakobrekla commented 10 years ago

I have some good news and some bad news. Or perhaps they are both bad or both good, not sure.

I have followed the procedure to build 0.2.1. from sources on the problematic machine. The result is the following:

julia> Pkg.update() INFO: Updating METADATA... ERROR: could not spawn git rev-parse --symbolic-full-name --abbrev-ref HEAD: n o such file or directory (ENOENT) in _jl_spawn at process.jl:217 in spawn at process.jl:348

wheineman commented 10 years ago

I'll download the latest source and see if I can still build. If I can I would be glad to work with anyone, provided you can define night to be night EST.

kakobrekla commented 10 years ago

The bug reappeared now. A reboot made it work again.

ihnorton commented 10 years ago

Not sure if it is related in this case, but I came across some vaguely similar issues related to the Name Resolution Policy Table: http://directaccess.richardhicks.com/2014/01/13/troubleshooting-name-resolution-issues-on-directaccess-clients/ http://social.technet.microsoft.com/Forums/windowsserver/en-US/64ed2412-8b3c-455d-9d7e-d0192d38500c/dns-from-new-subnet-fails?forum=winserverNIS

vtjnash commented 10 years ago

On IRC, we were able to show it is not limited to DNS, since IP addresses were also failing to connect.

mlubin commented 10 years ago

In the original case, we were able to ping external IPs, but we didn't try connecting to any servers.

vtjnash commented 10 years ago

through more IRC sleuthing, we learned that something in julia_init() causes the failure

kakobrekla commented 10 years ago

Current progress: the loading of module "LinAlg" corrupts it.

vtjnash commented 10 years ago

from IRC, the loading of libopenblas corrupts it. does anyone with a PRE-haswell cpu see this bug?

vtjnash commented 10 years ago

although, running this in intel sde with haswell emulation doesn't seem to have the issue

drlivip commented 10 years ago

The machine I'm having issues with is a laptop with an i7-3612QM, which I believe is an Ivy Bridge.

On Sun, Jun 8, 2014 at 10:01 PM, Jameson Nash notifications@github.com wrote:

although, running this in intel sde with haswell emulation doesn't seem to have the issue

— Reply to this email directly or view it on GitHub https://github.com/JuliaLang/julia/issues/5574#issuecomment-45455688.

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect

vtjnash commented 10 years ago

you can find out what openblas thinks your processor is by running the getarch binary included in openblas: ./getarch 0 | grep CORE=

drlivip commented 10 years ago

I have to plead ignorance (I'm just an old-fart hardware designer). Not sure about ./getarch 0 | grep CORE=. I understand the intent, but am not sure what environment I should be in.

On Sun, Jun 8, 2014 at 10:26 PM, Jameson Nash notifications@github.com wrote:

you can find out what openblas thinks your processor is by running the getarch binary included in openblas: ./getarch 0 | grep CORE=

— Reply to this email directly or view it on GitHub https://github.com/JuliaLang/julia/issues/5574#issuecomment-45456504.

David L. Livingston, Ph.D., P.E.

Design Engineer/Consultant Livingston Embedded Computing, LLC d.livingston@ieee.org, 540-520-1848

Professor of Electrical and Computer Engineering Virginia Military Institute livingstondl@vmi.edu, 540-464-7545

"100% of the shots not taken don't go in." The Great Gretzsky, ice hockey player "Without deviation from the norm, progress is not possible." Frank Zappa, musician, composer and social satirist "Complexity breeds fragility. Fragility breeds surprises. Surprises are bad." Bob Colwell, computer engineer and Pentium architect