-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] Fix segfault in AgglomerativeClustering with read-only mmaps #12485
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
[MRG] Fix segfault in AgglomerativeClustering with read-only mmaps #12485
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Non-regression test? Common test? |
The failing test in #12483 is already a common test, and passes for other estimators but segfaults for this one with a given version of gcc in a particular environment. As I mentioned in #12483 (comment) the segfault is deterministic, but I was not able to reproduce it on passing that specific array to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Does it deserve a what's new in 0.20.1?
I'm not convinced it does. The segfault only happens in very peculiar environement (gcc version, but it doesn't segfault on other systems with the same gcc versions) that we are not able to exactly determine, and only happens for read-only arrays and I have a hard time believing that it would affect users in practice. There is no reason to use |
think we don't need a whatsnew. |
* upstream/master: joblib 0.13.0 (scikit-learn#12531) DOC tweak KMeans regarding cluster_centers_ convergence (scikit-learn#12537) DOC (0.21) Make sure plot_tree docs are generated and fix link in whatsnew (scikit-learn#12533) ALL Add HashingVectorizer to __all__ (scikit-learn#12534) BLD we should ensure continued support for joblib 0.11 (scikit-learn#12350) fix typo in whatsnew Fix dead link to numpydoc (scikit-learn#12532) [MRG] Fix segfault in AgglomerativeClustering with read-only mmaps (scikit-learn#12485) MNT (0.21) OPTiCS change the default `algorithm` to `auto` (scikit-learn#12529) FIX SkLearn `.score()` method generating error with Dask DataFrames (scikit-learn#12462) MNT KBinsDiscretizer.transform should not mutate _encoder (scikit-learn#12514)
…ybutton * upstream/master: FIX YeoJohnson transform lambda bounds (scikit-learn#12522) [MRG] Additional Warnings in case OpenML auto-detected a problem with dataset (scikit-learn#12541) ENH Prefer threads for IsolationForest (scikit-learn#12543) joblib 0.13.0 (scikit-learn#12531) DOC tweak KMeans regarding cluster_centers_ convergence (scikit-learn#12537) DOC (0.21) Make sure plot_tree docs are generated and fix link in whatsnew (scikit-learn#12533) ALL Add HashingVectorizer to __all__ (scikit-learn#12534) BLD we should ensure continued support for joblib 0.11 (scikit-learn#12350) fix typo in whatsnew Fix dead link to numpydoc (scikit-learn#12532) [MRG] Fix segfault in AgglomerativeClustering with read-only mmaps (scikit-learn#12485) MNT (0.21) OPTiCS change the default `algorithm` to `auto` (scikit-learn#12529) FIX SkLearn `.score()` method generating error with Dask DataFrames (scikit-learn#12462) MNT KBinsDiscretizer.transform should not mutate _encoder (scikit-learn#12514)
…cikit-learn#12485) This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside `ward_tree` when calling `scipy.cluster.hierarchy.ward`. Closes scikit-learn#12483 (see the above issue for more details)
…cikit-learn#12485) This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside `ward_tree` when calling `scipy.cluster.hierarchy.ward`. Closes scikit-learn#12483 (see the above issue for more details)
…cikit-learn#12485) This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside `ward_tree` when calling `scipy.cluster.hierarchy.ward`. Closes scikit-learn#12483 (see the above issue for more details)
…cikit-learn#12485) This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside `ward_tree` when calling `scipy.cluster.hierarchy.ward`. Closes scikit-learn#12483 (see the above issue for more details)
…cikit-learn#12485) This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside `ward_tree` when calling `scipy.cluster.hierarchy.ward`. Closes scikit-learn#12483 (see the above issue for more details)
…mmaps (scikit-learn#12485)" This reverts commit 940eb67.
…mmaps (scikit-learn#12485)" This reverts commit 940eb67.
…cikit-learn#12485) This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside `ward_tree` when calling `scipy.cluster.hierarchy.ward`. Closes scikit-learn#12483 (see the above issue for more details)
This fixes a segfault in AgglomerativeClustering with read-only mmaps that happens inside
ward_tree
when callingscipy.cluster.hierarchy.ward
.Closes #12483
(see the above issue for more details)