STINNER Victor added the comment: "Then it is no bug that it crashes python?"
The bug is your program creating inconsistent data. Without ctypes, you cannot create such inconsistent data. "Is a crash not a bug?" There are various ways to "crash" Python, but most of them are deliberate bugs. For example: haypo@selma$ python3 Python 3.4.3 (default, Jun 29 2015, 12:16:01) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ctypes >>> ctypes.string_at(0) Erreur de segmentation (core dumped) The ctypes doesn't prevent you from making mistakes. If you use ctypes, you must be very careful and understand what you are doing. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26508> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com