-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pkg [or help()!] crashes Julia in Windows binary #4362
Comments
The METADATA repo seems to be cloned correctly, so the crash must be in a subsequent step. I'm still guessing it's some problem interacting with Windows git (possibly related to #4349). .... would be nice if there were a simple way to get more verbose output from Pkg. @StefanKarpinski? |
cc: @staticfloat |
Looks like it's not a Pkg or git bug specifically: turns out that the Even stranger, the same student reports that help crashes on the latest build, but works on Julia Version 0.2.0-prerelease+3441, on which Pkg.add("Color") works, but Pkg.add("RPMmd") crashes. |
Executing the following
but the following does not crash:
Furthermore, uncommentng just the Something is seriously weird here. |
@vtjnash, could there possibly be something left over in the Registry (or something?) from previous install attempts that is causing problems? @loladiro? |
Not to my knowledge. |
I don't put anything in the registry. It's a long shot, but perhaps the debug version of julia would give more info as it crashed? Unfortunately, the example didn't crash on any of the test machines I tried. |
Unfortunately, the debug version doesn't give any more info as it crashes. |
@keesvp and I are seeing the same issue, |
A backtrace, or access to a machine would be awesome. PM me if you are willing to allow me to control you machine for a little while. Also, if you could check whether it happens with the 32-bit build on your machine or not, that may also be useful information. |
I'm one of the original problematic students. |
Tried 32bit language distribution. Package update from Julia Studio results in: julia> Updating packages and crash (of Julia language) |
can you see if any of the following crash: |
update: on 32-bit I can install I Julia, but on an IJulia notebook, I get a kernel is dead error |
none of these crashes, on both 32 and 64 |
There was an error messege I missed when installing IJulia (via Pkg.add("IJulia")
|
I just tried in a relatively clean 32bit vm of Windows 7, ran all the commands above, everything worked fine |
In the 32-bit version I get the following error on crash of help()
|
"access to a machine" can just means that you ping me on the IRC channel (freenode.net#julia) and i ask you to run various commands for me |
@gevahn, the problem with ZMQ in 32-bit Windows is due to JuliaInterop/ZMQ.jl#30, which is unrelated to the present issue. |
Ok, I've played around with Pkg.add in the 32-bit version, and they all seem to work (other then the unrelated non-working packages). The help crash might be a separte, unrelated bug |
I'm in the IRC channel. PM me there when you have time and we'll work this out |
@vtjnash kind of a shot in the dark (I am aware that we don't use gnulib): isatty may have changed on win 8 (see also here) |
@ihnorton, I've actually tried Windows 8 and it works...on some machines... the problem here seems unreliable to reproduce, so I don't think it would be problem with Windows 8 in general. Also, a student saw a similar problem on Windows 7. |
i don't have time to look at this today or tomorrow. but i don't think libuv uses that function -- it appears to implement the "correct" check (i'm not entirely sure why gnu libc wasn't using their method). also, it seems their repl is fine, just certain commands are problematic. they don't both have AMD processors by any chance? or strange intel variants? can one of you with a machine where this crashes post the output of |
The computer @keesvp was having trouble with was an Intel core i7, but
|
the command doesn't return anything |
Strange. I see I forgot a closing parentheses: does it print anything if you complete the command statement? |
Immediately crashes with no error messages |
I tried running win8 under virtualbox and could not reproduce either. @gevahn (or anyone else who can reproduce the crash): please see these instructions to download and run gdb. |
with @gevahn's help, i've decided this is a bug in llvm's support for the new shlx instruction on Haswell processors.
|
That's pretty amazing collective detective work, guys. So what's the next step? File an LLVM bug. How do we avoid hitting this in the mean time? |
@ihnorton has a patch for disabling avx2 in our JIT.
|
pr here -- it only disables BMI2, which is the binary ops part of the new haswell instructions that introduces SHLX... AVX2 is separate, though maybe we want to disable that too to be safe. |
Do we have any idea as to the LLVM IR causing this so we can submit an upstream bug report? |
no, i haven't been able to reproduce this using llc. |
http://llvm.org/bugs/show_bug.cgi?id=17422 LLVM's JIT doesn't support Haswell (confirmed that this fails on linux too) |
See JuliaLang#4362 for discussion, and this LLVM bug report: http://llvm.org/bugs/show_bug.cgi?id=17422
I have merged the fix after discussion with @vtjnash. We confirmed the bug (and the fix) on linux using the Intel SDE tool. Unfortunately msys is still trying to melt my windows box so I don't have a windows package to try yet. @WestleyArgentum @keesvp I assume you have a working windows build system - would be great if you can update and test on windows. |
here is a binary to test (note: it is missing git and probably some other extras; I'll try to fix my x-compile setup tonight, or hopefully Jameson can generate a new official one soon) |
help() still crash with this one |
one more time, sorry. grabbed the old package earlier. link is updated now. |
I have a build now on a Haswell. Will test further today and report. |
help() is fine. Pkg.update() doesn't crash, but still gives: run( ERROR: failed process: Process( |
that should be: |
help() is fine on my machine as well. Pkg.update() doesn't work, but as ihnorton mentioned, there is no git in this version. |
I'm not running that version. I have build a complete one. |
@keesvp what version of git are you using? Can you try using the Git folder from the current download package on the homepage? |
I created a new issue #4409. |
Thanks @ihnorton; can we get this on the official download page? |
LLVM folks have been kind enough to provided a patch: http://llvm.org/bugs/attachment.cgi?id=11428 I've tested this and it seems to work. |
Two of my students, one with Windows 7 and one with Windows 8, are experiencing a strange issue where
Pkg.add("RPMmd")
(or any other package, apparently) immediately crashes Julia. They are using the latest 64-bit Julia 0.2 binary snapshot for Windows, and deleted theirAppData\Roaming\julia\packages
(i.e..julia
) directories from earlier install attempts.The problem does not seem entirely reproducible; on another Windows 7 or 8 machine we tried it works.
The
versioninfo()
output from the student with 64-bit Windows 8 is:A screenshot of his Julia session is attached below:

If you delete the
AppData\Roaming\julia\packages
directory, Julia prints a little more, outputting:and then exiting. (With no output on subsequent tries.)
Running
git-cmd
in theGit
subdirectory and runninggit clone git://github.com/JuliaLang/METADATA.jl
manually seemed to work.Any ideas?
cc: @StefanKarpinski, @vtjnash
The text was updated successfully, but these errors were encountered: