[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Problem in adding a function to tools/python/xen/lowlevel/xc/xc.c
On Monday, 28 April 2008 at 11:33, sanjay kushwaha wrote: ... > +static PyObject *pyxc_register_domm_xen(XcObject *self, PyObject *args) > +{ > + uint32_t dom; > + > + if (!PyArg_ParseTuple(args, "i", &dom)) > + return NULL; > + > + if (xc_register_domm_xen(self->xc_handle, dom) != 0) > + return NULL; > + > + Py_INCREF(zero); > + return zero; > +} > + ... > The /var/log/xen/xend.log shows the following error > > [2008-04-28 11:27:17 4132] ERROR (XendDomainInfo:443) VM start failed > Traceback (most recent call last): > File "/root/ksanjay/hp/xen-unstable.hg/dist/install/usr/lib/python/xen/xend/ > XendDomainInfo.py", line 423, in start > XendTask.log_progress(31, 60, self._initDomain) > File "/root/ksanjay/hp/xen-unstable.hg/dist/install/usr/lib/python/xen/xend/ > XendTask.py", line 209, in log_progress > retval = func(*args, **kwds) > File "/root/ksanjay/hp/xen-unstable.hg/dist/install/usr/lib/python/xen/xend/ > XendDomainInfo.py", line 2175, in _initDomain > xc.register_domm_xen(self.domid) > SystemError: error return without exception set I believe this exception means you're returning NULL. When you do this, you need to set an exception message (e.g. using PyErr_Set*) first. Looking at your code, the culprit is probably the 'return NULL' after your call to xc_register_domm_xen. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |