-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
REGR: pd.read_csv segfaults with 1.2 (has worked since before pandas 1.0) #38753
Comments
Hi @snowman2, thanks for the report! Unfortunately, without more information it will be difficult to figure out this issue. Is there any way you can mimic the characteristics of the failing example to come up with a reproducible example you can share? Or if you have any experience with it, showing output from running through with a C debugger could also help isolate the issue (https://pandas.pydata.org/docs/development/debugging_extensions.html). |
Maybe #14782 is related? |
Definitely understand. I will try to get some time to get better information to you later. |
Can you please test it one time with |
I don't think it is related.
I think I am going to see if I can reproduce it with master and get better debug output.
I tested this in a local environment with wheels:
|
From master branch:
Can reproduce with this as the contents of the CSV file:
|
on WSL the behavior that csv file returns (on 1.2.0.dev0+1692.g87d9c8f31) data
0 NaN with both c and python engines |
On OS X data = io.StringIO("data\n0106000020E61000000100000001030000000")
df = pd.read_csv(data) segfaults about 1/2 the time,
With python engine still segfaults (but less often?) |
On linux I can also confirm that it segfaults with that example. As a temporary workaround, you can use The fact that it fails in So it seems that if we want to keep |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
Wish I could give more information, but this is all I have (not sure I can share the input data):
Once I added the pin
pandas<1.2
everything works again.Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 3e89b4c
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-1020-aws
Version : #29-Ubuntu SMP Wed Jun 14 15:54:52 UTC 2017
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.19.1
pytz : 2020.5
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0
Cython : None
pytest : 6.2.1
hypothesis : None
sphinx : 3.4.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.4
sqlalchemy : 1.3.22
tables : None
tabulate : 0.8.7
xarray : 0.16.2
xlrd : None
xlwt : None
numba : None
None
The text was updated successfully, but these errors were encountered: