[Python-Dev] Py2.4 _sre uses uninitialised memory (Bug 1088891)

2004-12-21 Thread Andrew McNamara
_sre.c, data_stack_grow() in Py2.4 uses realloc()'ed memory without initialising the newly allocated memory. For complex regexps that require additional sre stack space, this ultimately results in a core dump or corrupted heap. Filling the newly allocated memory with 0x55 makes the problem more

[Python-Dev] Re: [Python-checkins]python/dist/src/Pythonmarshal.c, 1.79, 1.80

2004-12-21 Thread Fredrik Lundh
Armin Rigo wrote: Some code in the 'py' lib used to use marshal to send simple objects between the main process and a subprocess. We ran into trouble when we extended the idea to a subprocess that would actually run via ssh on a remote machine, and the remote machine's Python version didn't

Re: [Python-Dev] Re:[Python-checkins] python/dist/src/Pythonmarshal.c, 1.79, 1.80

2004-12-21 Thread Irmen de Jong
Tim Delaney wrote: Irmen de Jong wrote: Also, I'm not sure how a test-case should be constructed for this patch? Can the Python regression test download stuff as part of a test? Or is there some other way to make a testcase for this. Hmm - perhaps start a server on the local machine at the start

Re: [Python-Dev] Re:[Python-checkins] python/dist/src/Pythonmarshal.c, 1.79, 1.80

2004-12-21 Thread Johannes Gijsbers
On Tue, Dec 21, 2004 at 08:00:22PM +0100, Irmen de Jong wrote: Thanks for those suggestions. Let's see what I can concoct. Never made (or studied in detail) a python regression test case before so now is a good time :) You might be especially interested in 'class urlopen_HttpTests' in

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Pythonmarshal.c, 1.79, 1.80

2004-12-21 Thread Tim Peters
[Armin Rigo] Some code in the 'py' lib used to use marshal to send simple objects between the main process and a subprocess. We ran into trouble when we extended the idea to a subprocess that would actually run via ssh on a remote machine, and the remote machine's Python version didn't match

Re: [Python-Dev] Latex problem when trying to build documentation

2004-12-21 Thread George Yoshida
Irmen de Jong wrote: Looks like the end tag of {description} has disappeared with this check-in: [...] Out of curiousity, how did you find this? Well, I periodically download daily snapshots, so I compiled TeX files with them. The snapshot from Dec-11 was OK, but with the one from Dec-17 I

[Python-Dev] Patches: 1 for the price of 10.

2004-12-21 Thread Titus Brown
Hello all, per previous discussion, http://mail.python.org/pipermail/python-dev/2004-October/049495.html I'd like to push a trivial little patch to sgmllib (#1087808) on you gents, in exchange for my reviews effort etc. on 10 other patches. Without further ado: No-brainers: 1055159