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

Fatal error in type inference in StatsModels #31803

Closed
ararslan opened this issue Apr 23, 2019 · 0 comments · Fixed by #31848
Closed

Fatal error in type inference in StatsModels #31803

ararslan opened this issue Apr 23, 2019 · 0 comments · Fixed by #31848
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior compiler:inference Type inference

Comments

@ararslan
Copy link
Member

Running the tests for Survival on Julia nightly, we get the following error:

Cox: Error During Test at /home/travis/build/JuliaStats/Survival.jl/test/runtests.jl:188
  Got exception outside of a @test
  fatal error in type inference (type bound)
  Stacktrace:
   [1] StatsModels.Terms(::Formula) at /home/travis/.julia/packages/StatsModels/pBxdt/src/formula.jl:341
   [2] #fit#36(::Dict{Any,Any}, ::Base.Iterators.Pairs{Symbol,Float64,Tuple{Symbol},NamedTuple{(:tol,),Tuple{Float64}}}, ::typeof(fit), ::Type{CoxModel}, ::Formula, ::DataFrame) at /home/travis/.julia/packages/StatsModels/pBxdt/src/statsmodel.jl:66
   [3] (::getfield(StatsBase, Symbol("#kw##fit")))(::NamedTuple{(:tol,),Tuple{Float64}}, ::typeof(fit), ::Type{CoxModel}, ::Formula, ::DataFrame) at ./none:0
   [4] #coxph#20(::Base.Iterators.Pairs{Symbol,Float64,Tuple{Symbol},NamedTuple{(:tol,),Tuple{Float64}}}, ::typeof(coxph), ::Formula, ::DataFrame) at /home/travis/build/JuliaStats/Survival.jl/src/cox.jl:203
   [5] (::getfield(Survival, Symbol("#kw##coxph")))(::NamedTuple{(:tol,),Tuple{Float64}}, ::typeof(coxph), ::Formula, ::DataFrame) at ./none:0
   [6] top-level scope at /home/travis/build/JuliaStats/Survival.jl/test/runtests.jl:192
   [7] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1113
   [8] top-level scope at /home/travis/build/JuliaStats/Survival.jl/test/runtests.jl:189
   [9] include at ./boot.jl:328 [inlined]
   [10] include_relative(::Module, ::String) at ./loading.jl:1094
   [11] include(::Module, ::String) at ./Base.jl:31
   [12] include(::String) at ./client.jl:431
   [13] top-level scope at none:5
   [14] eval(::Module, ::Any) at ./boot.jl:330
   [15] exec_options(::Base.JLOptions) at ./client.jl:271
   [16] _start() at ./client.jl:464

The line in StatsModels identified by the stack trace is https://github.com/JuliaStats/StatsModels.jl/blob/v0.5.0/src/formula.jl#L341.

This does not occur on 0.7, 1.0, or 1.1, so it seems like a regression.

@JeffBezanson JeffBezanson added bug Indicates an unexpected problem or unintended behavior compiler:inference Type inference compiler:optimizer Optimization passes (mostly in base/compiler/ssair/) labels Apr 23, 2019
@JeffBezanson JeffBezanson added this to the 1.2 milestone Apr 23, 2019
@JeffBezanson JeffBezanson self-assigned this Apr 26, 2019
@JeffBezanson JeffBezanson removed the compiler:optimizer Optimization passes (mostly in base/compiler/ssair/) label Apr 26, 2019
KristofferC pushed a commit that referenced this issue May 9, 2019
@KristofferC KristofferC mentioned this issue May 9, 2019
58 tasks
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 compiler:inference Type inference
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants