Re: [XenAccess-devel] Segmentation fault when calling the same function twice
Status: Beta
Brought to you by:
bdpayne
From: Bryan D. P. <br...@th...> - 2006-08-25 12:03:04
|
> One final point: I'm trying to use Xenaccess under > Python using ctypes library (it allows to load a C > library and call it from Python). A little disclaimer, I'm not very familiar with the ctypes library :-) So my thoughts below could be very wrong... > I've traced back the problem to the function > "linux_get_kernel_name": in fact, simply commenting > the last line before the return statement ("if > (xml_data) free(xml_data);"), fixed the problem, but > it's a brutal fix: in fact, if between the two calls a This sounds a lot like a memory corruption issue. The thing is, I'm not seeing where the corruption would be occurring by looking at the XenAccess code. One guess would be if python had a bad implementation of one of these libc functions. But that would be surprising to me. Have you been able to reproduce this problem without the python ctypes library? -bryan - Bryan D. Payne Graduate Student, Computer Science Georgia Tech Information Security Center http://www.bryanpayne.org |