Skip to content

BUG: update cython to fix segfault accessing __kwdefaults__ #26140

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

Closed
wants to merge 3 commits into from
Closed

BUG: update cython to fix segfault accessing __kwdefaults__ #26140

wants to merge 3 commits into from

Conversation

jakebailey
Copy link

This ups the cython minimum version to fix bugs as seen in #26127. I've added a test which goes through the members of _libs to check that they don't segfault when accessed. If you manually install 0.28.2 and run the test, you'll see it segfault.

I'm not sure how to place this change in the "whatsnow", so I'd be happy if I could get some advice there (and anywhere else I've gone wrong, of course).

@jakebailey
Copy link
Author

Actually, I'm seeing mentions of cython version requirements in v0.23.0.rst and v0.24.0.rst, so maybe that's the place to put it.

@codecov
Copy link

codecov bot commented Apr 18, 2019

Codecov Report

Merging #26140 into master will decrease coverage by 51.25%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #26140       +/-   ##
===========================================
- Coverage   91.99%   40.73%   -51.26%     
===========================================
  Files         175      175               
  Lines       52382    52382               
===========================================
- Hits        48188    21338    -26850     
- Misses       4194    31044    +26850
Flag Coverage Δ
#multiple ?
#single 40.73% <ø> (-0.14%) ⬇️
Impacted Files Coverage Δ
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-99.37%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.16%) ⬇️
pandas/io/sas/sas_xport.py 0% <0%> (-90.1%) ⬇️
pandas/core/tools/numeric.py 10.44% <0%> (-89.56%) ⬇️
pandas/io/s3.py 0% <0%> (-89.48%) ⬇️
... and 130 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c18c8be...db6ac55. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 18, 2019

Codecov Report

Merging #26140 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26140      +/-   ##
==========================================
- Coverage   91.99%   91.98%   -0.01%     
==========================================
  Files         175      175              
  Lines       52382    52382              
==========================================
- Hits        48188    48184       -4     
- Misses       4194     4198       +4
Flag Coverage Δ
#multiple 90.54% <ø> (ø) ⬆️
#single 40.73% <ø> (-0.14%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 75% <0%> (-12.5%) ⬇️
pandas/core/frame.py 96.9% <0%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c18c8be...db6ac55. Read the comment docs.

@jakebailey
Copy link
Author

Interesting, the 3.5 machines can't install cython 0.29.7 even though it should be available.

@WillAyd
Copy link
Member

WillAyd commented Apr 19, 2019

Might be an issue of availability of 3.5 builds for conda. @TomAugspurger if you have any insights

@WillAyd WillAyd added the Dependencies Required and optional dependencies label Apr 19, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am -1 on this bump
this has only been out for a month

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Apr 19, 2019 via email

@gfyoung gfyoung added Internals Related to non-user accessible pandas implementation Segfault Non-Recoverable Error labels Apr 20, 2019
@WillAyd
Copy link
Member

WillAyd commented May 3, 2019

Closing as I don't think we have interest in this PR as is given how recent the Cython release is. Can reevaluate at a later date!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Required and optional dependencies Internals Related to non-user accessible pandas implementation Segfault Non-Recoverable Error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inspection of some cython produced functions causes segfault
5 participants