-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
julia: wrong compiler? #34135
Comments
Hmm, having troubles reproducing, in the future please provide a bit more information (see the issue template for easy way to generate this with How did you get julia 0.6.0?
Building In the meantime, how about switching to a stable julia release, presumably with improvements and fixes? Using julia 0.6.2 (available from the binary cache, hooray!) I don't see the error you're experiencing. Depending on how you installed
or
or, I guess:
Hope this helps, good luck! |
Nope, julia-git fails to build -- looks like last successful build was 2017-04-08 (!), probably should go back to being marked broken. (you probably have it julia 0.6.0 from the period where that was the supported nixpkgs version, not from julia-git, I'd guess) |
First broken: https://hydra.nixos.org/build/51447624 Last successful: https://hydra.nixos.org/build/51385779 cc NixOS#34135
* julia-git: mark broken, hasn't built since 2017-04-08. First broken: https://hydra.nixos.org/build/51447624 Last successful: https://hydra.nixos.org/build/51385779 cc #34135
Well, 0.6.2 has the same problem… |
Err, it does! (?!) I really thought I confirmed it didn't, not sure what that's about. Sorry O:). |
Maybe I use a version from a slightly obsolete master and it got fixed? In other news, compiler version conflict seems unlikely… |
Hm, current master. Basically, once you have REPL, everything is fine, if you get an error before/without REPL, there are problems. Edit: loading a file inside REPL works fine, yes. |
Hi, sorry for the bad report. I was on julia 0.6.0 indeed, on nixos-unstable. Upgraded the system today:
julia -v
And the segfault on scripts still exists. OT: why do we still have julia 0.4.7 in the repo? Also 0.5.0. They are outdated, and nothing depends on them in the store. As you said, julia-git is older than julia... it seems that we need a cleanup, also given that the new Pkg3 is coming and we might want to add julia pkgs too in the future |
I have also noticed this problem. Additional info: it persists even in FHS-compatible environments, if that matters. Also, this is interesting:
errors work fine if typed in at the REPL. If I then define a file named However, including the file from the REPL does not cause problems.
Finally, I tried defining a function that just immediately calls Segfault output:
nix-info:
|
Yes the difference between the REPL and scripts is the behaviour I noticed. In the fhs you are running upstream julia? |
Previously, no, I was just using julia from nixpkgs. However, if I build an FHS-compatible env with only
to make the nix shell:
|
Also, I would add that I have observed these segfaults from the REPL, but only while trying to install packages where the builds failed. |
Yeah if I remember well package install spawns a new julia process |
So upstream binary carries its own copy of LLVM and other things? I wonder if replacing them with symlinks to Nixpkgs-built ones in a FHS is a viable problem-localisation idea. |
There's lots of |
Fixed by f8fe297 |
Issue description
The issue is described here: https://discourse.julialang.org/t/julia-script-segfault-on-errors/8484
Short: an error in a running a script causes a segfault instead of reporting the error. The hypothesis is a compiler mismatch
Steps to reproduce
just run a script containing any kind of error in julia 0.6
@raskin
The text was updated successfully, but these errors were encountered: