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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4