[Python-Dev] compile.c: problem with duplicate argument bugfix
Peter Schneider-Kamp
peter@schneider-kamp.de
Mon, 10 Jul 2000 02:14:05 +0000
Thomas Wouters wrote:
>
> Hm, strange. It works fine here. Do you get the segfault every time ?
What system? Which version (I guess this day's CVS)? I get the segfault
every time the error should be thrown.
> Anyway, a possible problem is that PyString_InternFromString might return
> NULL, and you later PyDict_GetItem() with it (not sure if that's a problem),
> and you pass it to com_newlocal_o (not sure if that's a problem either), and
> then you Py_DECREF it. And if you pass NULL to that macro you do have a
> problem :) You should use Py_XDECREF() if you aren't sure wether the object
> is NULL or not.
No, that does not seem to be the problem. The segfault happens in
PyErr_NormalizeException where PyClass_Check(type) accesses
type->ob_type.
I'm giving up for today.
Peter
--
Peter Schneider-Kamp ++47-7388-7331
Herman Krags veg 51-11 mailto:peter@schneider-kamp.de
N-7050 Trondheim http://schneider-kamp.de