Segfault in pandas.read_csv on bad input
#### Code Sample

```python
from io import RawIOBase
import pandas as pd
from urllib3.response import HTTPResponse


class BadIO(RawIOBase):
    def read(self, size: int = ...):
        io = HTTPResponse()
        return io.stream()


if __name__ == "__main__":
    f = BadIO()
    pd.read_csv(f)
```
#### Problem description

Running the sample code will trigger a segfault on Linux. While I'm fairly sure that `BadIO` is not returning what it should, I'd expect an error message from pandas instead of a crash.

#### Expected Output

Error about what's wrong with the input.

#### Output of ``pd.show_versions()``

<details>

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-39-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.23.4
pytest: None
pip: 10.0.1
setuptools: 39.1.0
Cython: None
numpy: 1.15.4
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

</details>
