This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ivank
Recipients ivank
Date 2014-03-28.22:29:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I intentionally corrupted a zpool to induce an I/O error in a file, in this case, /usr/lib/x86_64-linux-gnu/gconv/

# ls -l /usr/lib/x86_64-linux-gnu/gconv/
-rw-r--r-- 1 root root 231,496 2014-03-24 06:26 /usr/lib/x86_64-linux-gnu/gconv/

# cat /usr/lib/x86_64-linux-gnu/gconv/ > /dev/null
cat: /usr/lib/x86_64-linux-gnu/gconv/ Input/output error

When I read the file, Python 3.3.5 and 3.4.0 check for EIO and raise an exception:

>>> open("/usr/lib/x86_64-linux-gnu/gconv/", "rb").read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 5] Input/output error

but Python 2.7.6 does not:

# python2
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = open("/usr/lib/x86_64-linux-gnu/gconv/", "rb").read()
>>> len(x)
Date User Action Args
2014-03-28 22:29:46ivanksetrecipients: + ivank
2014-03-28 22:29:46ivanksetmessageid: <>
2014-03-28 22:29:46ivanklinkissue21090 messages
2014-03-28 22:29:45ivankcreate