Hello All,

I would like to control my Ceph cluster via Perl scripts.  After a bit of
searching, I found a Perl module that was started back in 2011 [1].

It seems to work great except for the list_pools function which causes a
segfault.

We can observe this behavior when running a stacktrace on the
testrados2.plscript that comes with the attachment [2] (I added a
print "Testing
list_pools\n" before the actual call to $c->list_pools to make debugging
easier):

>> write(1, "Testing list_pools\n", 19Testing list_pools
>>  )    = 19
>>  --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR,
si_addr=0x7fffd5dd5000} ---
>>  +++ killed by SIGSEGV (core dumped) +++
>>  Segmentation fault (core dumped)

Running this code through gdb I get possibly a little more helpful error:
( gdb ; set args testrados2.pl ; run )

>>  Testing list_pools
>>
>>  Program received signal SIGSEGV, Segmentation fault.
>>  __memset_sse2 () at ../sysdeps/x86_64/multiarch/../memset.S:913
>>  913     ../sysdeps/x86_64/multiarch/../memset.S: No such file or
directory.

But googling that error has landed me at a dead end.

I think this error is coming from the c function "list_pools_c" because of
the nature of the error.

I was hoping someone could help me debug the error and possibly point me in
a direction for extending librbd to manage images.

Thanks,
Jon A


[1]  http://www.spinics.net/lists/ceph-devel/msg04147.html
[2]  http://www.spinics.net/lists/ceph-devel/attachments/gzP0nHuUkx0f.gz
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to