[Python-Dev] Twisted and Python 2.5a0r43587 (original) (raw)
Neal Norwitz nnorwitz at gmail.com
Tue Apr 4 19:51:55 CEST 2006
- Previous message: [Python-Dev] Twisted and Python 2.5a0r43587
- Next message: [Python-Dev] Twisted and Python 2.5a0r43587
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4/4/06, Thomas Wouters <thomas at python.org> wrote:
On 4/4/06, Thomas Wouters <thomas at python.org> wrote: > > > Oh, goodie, a segmentation fault. Let's see if I can reproduce it ;P And so I could. testbanana.CananaTestCase.testCrashNegativeLong crashes, because it calls PyStringAsStringAndSize() with an int-ptr as second argument (an adjacent ptr variable becomes garbage.) That's certainly a problem with the Pyssizet change. Martin, aren't all output variables (or ptr-variables, rather) supposed to be controlled by the 'PYSSIZETCLEAN' #define? People aren't going to notice their compiler warnings; I know I didn't :)
I don't think so. I think that macro controls Py_BuildValue etc (the APIs in modsupport.h) I don't think it controls anything else. So what that means is that Py_BuildValue("l") means something different depending on ssize_t or not.
n
- Previous message: [Python-Dev] Twisted and Python 2.5a0r43587
- Next message: [Python-Dev] Twisted and Python 2.5a0r43587
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]