[vdsm] Help needed to debug segfault when using ctypes

Deepak C Shetty deepakcs at linux.vnet.ibm.com
Fri Aug 23 05:48:18 UTC 2013


I haven't worked much on using ctypes in python.. but did you try to 
look into the core to see where exactly the segfault is happening.. that 
might give some clues for further debug.

On 08/22/2013 05:53 PM, Aravinda wrote:
> Hi,
>
> In following patch I am using ctypes to load libgfapi(GlusterFS API) 
> to get the Gluster volume statvfs information.
> http://gerrit.ovirt.org/#/c/17822
>
> I am getting *segfault* when I run
> vdsClient 0 glusterVolumeSizeInfoGet volumeName=gv1
>
> But I checked as below and it is working.
>
>     cd /usr/share/vdsm
>     python
>     >> from gluster import gfapi
>     >> print gfapi.volumeStatvfs("gv1")
>     posix.statvfs_result(f_bsize=4096L, f_frsize=4096L, 
> f_blocks=25803070L, f_bfree=19130426L, f_bavail=17819706L, 
> f_files=6553600L,     f_ffree=5855876L, f_favail=5855876L, 
> f_flag=4096L, f_namemax=255L)
>
> Please suggest how I can debug this issue.
>
> --
> Regards
> Aravinda
>
>
>
>
> _______________________________________________
> vdsm-devel mailing list
> vdsm-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/vdsm-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/vdsm-devel/attachments/20130823/42f1a2a7/attachment.html>


More information about the vdsm-devel mailing list