Skip to content
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

0.5.0-rc2+0 segfault #18085

Closed
denizyuret opened this issue Aug 17, 2016 · 2 comments
Closed

0.5.0-rc2+0 segfault #18085

denizyuret opened this issue Aug 17, 2016 · 2 comments
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior
Milestone

Comments

@denizyuret
Copy link
Contributor

Two issues with the following code:

  1. There is a warning I don't get in 0.4: WARNING: Method definition #1(Any) in module Main at foo.jl:5 overwritten at foo.jl:5.
  2. The code segfaults.
foo(a,x...)=(randn(),)

for (f,g) in ((:asin,:sin), (:acos,:cos))
    gx = eval(g)
    foo(::Type{Val{f}},x...)=map(x->2gx(x),foo(Val{b},x...))
end

foo(Val{:asin},3)
@ViralBShah ViralBShah added the bug Indicates an unexpected problem or unintended behavior label Aug 18, 2016
@ViralBShah
Copy link
Member

Verified - crashes on master.

@ViralBShah ViralBShah added this to the 0.5.0 milestone Aug 18, 2016
@JeffBezanson JeffBezanson removed this from the 0.5.0 milestone Aug 18, 2016
@JeffBezanson
Copy link
Member

Why is this release-blocking ahead of, say, #17003 #17288 #18069?

@StefanKarpinski StefanKarpinski added this to the 0.5.x milestone Aug 18, 2016
JeffBezanson added a commit that referenced this issue Aug 19, 2016
fix #18085, segfault on method add in loop
tkelman pushed a commit that referenced this issue Aug 20, 2016
Closures that are part of out-of-scope method adds were not lifted
out of top-level loops.

(cherry picked from commit c9c7bfa)
ref #18119
mfasi pushed a commit to mfasi/julia that referenced this issue Sep 5, 2016
Closures that are part of out-of-scope method adds were not lifted
out of top-level loops.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants