-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Segfaults on Python 3.8 (CPython master) #22714
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
Comments
If you leave out column D, do you still get the segfault? Do you get it with just column D? |
If I have only D or no D then there is no segfault. It occurs when I have either A, D or B, D, or C, D. Leaving out column D from pandas import DataFrame
import pandas as pd
df = DataFrame({'A': [1, 2, 3],
'B': [1., 2., 3.],
'C': ['foo', 'bar', 'baz'],
#'D': pd.date_range('20130101', periods=3)
})
print(df.agg('sum')) output
Only with Column D from pandas import DataFrame
import pandas as pd
df = DataFrame({'D': pd.date_range('20130101', periods=3)})
print(df.agg('sum')) output
|
@tirkarthi can you try with 3.8 and pandas master? We should be testing this in #28730, and it's not segfaulting. |
Sorry, I don't have enough time to test this. Given that the CI passes in linked PR and 3.8.0 is also released as a stable release I think we can close this. Thanks for the fix. |
K. We'll reopen if things are still a problem. |
Segfaults:
ujson.encode(np.array(1))
(see Collection of segfaults in CPython master #22718)Code Sample, a copy-pastable example if possible
Problem description
The above code works fine on Python 3.7 producing the below output
The same code when it runs on CPython master causes segfault. I have opened an upstream issue that contains the stack trace when running under GDB. I am not sure if it's due to Pandas or Numpy since it's present in traceback. Since the above works fine on Python 3.7 but segfaults on Python 3.8 I want to report it here along with opening an upstream bug. I found this while running
pytest -x pandas/frame/test_apply.py::TestDataFrameAggregate::test_nuiscance_columns
Expected Output
Output of
pd.show_versions()
Thanks
The text was updated successfully, but these errors were encountered: