Hey Rob,

Well... I'm not getting a segfault anymore! :)

Now it get "Out of memory"...

root@kitt:~/Ceph-RADOS-0.01# perl testrados2.pl connected Kbytes: 4880394048 Kbytes used: 1327705520 Kbytes avail: 3552688528 Objects: 164563 error(17) in create_pool:File exists create pool this_test_pool success Testing list_pools Out of memory!

I'm not sure how to enable build_noisy, but this is what my use Inline::C declaration looks like:

use Inline C => 'DATA', VERSION => '0.01', NAME => 'Ceph::RADOS', LIBS => '-L/usr/lib -lrados', INC => '-I/usr/include/rados', TYPEMAPS => 'lib/Ceph/types', BUILD_NOISY => 1;

I think that's what you were getting at.

Anyway, this is a giant stack trace, so I'm not sure if a) any of it's relevant and b) how to share it effectively. (I guess I can just paste it in a code block...)

also the gdb seession is relatively useless:

Starting program: /usr/bin/perl testrados2.pl [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so +.1". [New Thread 0x7ffff3901700 (LWP 9280)] [New Thread 0x7ffff298e700 (LWP 9281)] [New Thread 0x7ffff218d700 (LWP 9282)] [New Thread 0x7ffff198c700 (LWP 9283)] [New Thread 0x7ffff118b700 (LWP 9284)] [New Thread 0x7ffff098a700 (LWP 9285)] [New Thread 0x7ffff7fe7700 (LWP 9286)] [New Thread 0x7ffff0189700 (LWP 9289)] [New Thread 0x7fffe3fff700 (LWP 9290)] [New Thread 0x7fffe37fe700 (LWP 9291)] connected Kbytes: 4880394048 Kbytes used: 1327705520 Kbytes avail: 3552688528 Objects: 164563 error(17) in create_pool:File exists create pool this_test_pool success Testing list_pools Out of memory! [Thread 0x7ffff7fe7700 (LWP 9286) exited] [Thread 0x7fffe37fe700 (LWP 9291) exited] [Thread 0x7fffe3fff700 (LWP 9290) exited] [Thread 0x7ffff0189700 (LWP 9289) exited] [Thread 0x7ffff098a700 (LWP 9285) exited] [Thread 0x7ffff118b700 (LWP 9284) exited] [Thread 0x7ffff198c700 (LWP 9283) exited] [Thread 0x7ffff218d700 (LWP 9282) exited] [Thread 0x7ffff298e700 (LWP 9281) exited] [Thread 0x7ffff3901700 (LWP 9280) exited] [Inferior 1 (process 9276) exited with code 01]
<pThanks for your help! At least I'm getting a different error. We're making progress! :)


In reply to Re^2: [Ceph::RADOS] Help Debugging Inline C by three18ti
in thread [Ceph::RADOS] Help Debugging Inline C by three18ti

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.