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

infinite uninterruptible hang on one illegal input to ftest #538

Closed
xgdgsc opened this issue Jun 9, 2023 · 2 comments
Closed

infinite uninterruptible hang on one illegal input to ftest #538

xgdgsc opened this issue Jun 9, 2023 · 2 comments

Comments

@xgdgsc
Copy link

xgdgsc commented Jun 9, 2023

ftesthang.csv

using CSV
using GLM
using DataFrames
regData = CSV.read("ftesthang.csv", DataFrame)
ols = lm(@formula(Y ~ X1 + X2 + X3 + X4 + X5 + X6 + 1), regData)
oCoefs = coef(ols)
ftestRes = ftest(ols.model)

With this illegal input. ftest hangs in an infinite uninterruptible way. Is it possible to throw an error instead?

@ararslan
Copy link
Member

Looks like the continued fraction implementation of the incomplete beta function in SpecialFunctions gets stuck in an infinite loop because there's no check that the input is finite.

@andreasnoack
Copy link
Member

Okay! That's a pretty degenerate case. This is now fixed upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants