[issue1174606] Reading /dev/zero causes SystemError
David Christian added the comment: Raise OverflowError if unbounded read() exceeds PY_SSIZE_T_MAX bytes. Added file: http://bugs.python.org/file9511/issue1174606.diff _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1174606> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1174606] Reading /dev/zero causes SystemError
Changes by David Christian: Added file: http://bugs.python.org/file9512/issue1174606.diff _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1174606> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5188] telnetlib process_rawq buffer handling is confused
New submission from David Christian : in telnetlib's process_rawq, rawq_getchar() returns a bytes object of length 1. However, that buffer is then compared directly against the variable IAC, which is the integer 255. This is always false, as bytes([255]) != 255. Checked svn and looks like this issue still exists as of 2/8/2009. -- messages: 81424 nosy: dugan severity: normal status: open title: telnetlib process_rawq buffer handling is confused versions: Python 3.0, Python 3.1 ___ Python tracker <http://bugs.python.org/issue5188> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5188] telnetlib process_rawq buffer handling is confused
David Christian added the comment: The result of this bug is that any callback set via set_option_negotiation_callback will not be called. ___ Python tracker <http://bugs.python.org/issue5188> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5238] ssl makefile never closes socket
New submission from David Christian : The ssl.py makefile function returns a socket._fileobject object with a reference to itself, and also increments the makefile_refs variable. However, the _fileobject is created with the parameter close=False, which means that when you call _fileobject.close, it does not call close on the ssl socket! >>> import socket, ssl >>> s = socket.create_connection(('www.rpath.com', 443)) >>> sslSocket = ssl.wrap_socket(s) >>> f1 = sslSocket.makefile() >>> f2 = sslSocket.makefile() >>> f3 = sslSocket.makefile() >>> sslSocket._makefile_refs 3 >>> sslSocket._sock >>> sslSocket.close() >>> f1.close() >>> f2.close() >>> f3.close() >>> sslSocket._makefile_refs 2 The quick fix is to add close=True on the _fileobject call in ssl.py. Note that this close=True is _not_ needed in the socket.py makefile call as that makefile does not do reference counting. -- messages: 81842 nosy: dugan severity: normal status: open title: ssl makefile never closes socket versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue5238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5238] ssl makefile never closes socket
Changes by David Christian : -- components: +Library (Lib) keywords: +patch type: -> resource usage Added file: http://bugs.python.org/file13061/ssl.py.patch ___ Python tracker <http://bugs.python.org/issue5238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5188] telnetlib process_rawq buffer handling is confused
Changes by David Christian : -- keywords: +patch Added file: http://bugs.python.org/file13062/telnetlib.patch ___ Python tracker <http://bugs.python.org/issue5188> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5188] telnetlib process_rawq buffer handling is confused
David Christian added the comment: True. It turns out that there are other uses of a bytes string when a byte is required in that same routine. I've patched up those as well. Looks what we really need is a test of this function. I'll work on that as well. ___ Python tracker <http://bugs.python.org/issue5188> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5188] telnetlib process_rawq buffer handling is confused
Changes by David Christian : Added file: http://bugs.python.org/file13099/telnetlib.patch ___ Python tracker <http://bugs.python.org/issue5188> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5238] ssl makefile never closes socket
David Christian added the comment: I actually discovered this issue when using httplib over ssl. Closing the httplib connection was not closing the socket - the socket would only be closed after garbage collection, due to this bug. That's what caused me to investigate and find this flaw. I ran the regression tests and didn't run into any issues. ___ Python tracker <http://bugs.python.org/issue5238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5617] Unicode pringint in post-mortem sessions
New submission from David Christian : http://blog.kowalczyk.info/article/Gdb-basics.html It is difficult to display the frame you're in while debugging a core dump in python 3.0 (when in a core dump, you can't run functions, and thus cannot use many of the normal methods of displaying unicode). Martin van Loewis discovered this gdb function (linked), "pu", which prints out unicode strings. The way it does so is a bit kludgy, but I think it is at least the start of a solution. Perhaps it can be included in .gdbinit? -- messages: 84738 nosy: dugan severity: normal status: open title: Unicode pringint in post-mortem sessions type: feature request versions: Python 3.0 ___ Python tracker <http://bugs.python.org/issue5617> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5617] Unicode printing in gdb post-mortem sessions
Changes by David Christian : -- title: Unicode pringint in post-mortem sessions -> Unicode printing in gdb post-mortem sessions ___ Python tracker <http://bugs.python.org/issue5617> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1674555] Python 2.5 testsuite sys.path contains system dirs
Changes by David Christian : -- nosy: +dugan ___ Python tracker <http://bugs.python.org/issue1674555> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1711605] CGIHttpServer leaves traces of previous requests in env
Changes by David Christian : -- nosy: +dugan ___ Python tracker <http://bugs.python.org/issue1711605> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1608921] PyThread_release_lock with pthreads munges errno
Changes by David Christian : -- nosy: +dugan ___ Python tracker <http://bugs.python.org/issue1608921> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5635] test_sys reference counting fails while tracing
New submission from David Christian : test_sys refcount test checks that assigning None to a local variable n increases the references to None by exactly 1. However sys.settrace is set, then the frame object must be instantiated to be passed to the trace object. This increments the reference count to None again. Since the locals are not then removed from the frame object after the sys.settrace call, the number of references remains increased after the settrace function is exited. This problem can be avoided by making n a global. -- files: refcount.patch keywords: patch messages: 84946 nosy: dugan severity: normal status: open title: test_sys reference counting fails while tracing Added file: http://bugs.python.org/file13530/refcount.patch ___ Python tracker <http://bugs.python.org/issue5635> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com