[PEAK] access violation with py24/msvc compiler

Phillip J. Eby pje at telecommunity.com
Thu Jan 27 16:02:51 EST 2005


At 10:50 PM 1/27/05 +0200, alexander smishlajev wrote:
>Phillip J. Eby wrote, at 27.01.2005 21:53:
>>
>>>thanks, i did it now.  it is kjGraph.  the following command also raises
>>>access violation:
>>>
>>>    python -c "import kjbuckets; g=kjbuckets.kjGraph(); print g"
>>>
>>>when importing peak.model.features, failing is line 470 in
>>>method_exporter.py: 'vt += d' in MethodExporter.__init__()
>>>
>>>i can get .keys() and .values() from a kjGraph object, but i do not know
>>>what else i could try with it and what c function to look at.
>>It would be the addition methods, which is the 'Wunion' C function at 
>>line 3004 of kjbucketsmodule.c.
>
>as i said earlier, kjGraph object raises access violation when i attempt 
>to print it.  so in this case AV was caused by pdb trying to print result 
>of the statement evaluation, and not by addition.  (i did understand that 
>just five minutes ago.)

Ah.  Okay.  Try removing the printfunc from the type structure then, and 
see how it works.  (Presumably it will fall back to printing the str or 
repr).  If it doesn't crash, then, we'll know that it's a file pointer issue.




More information about the PEAK mailing list