Sorry forgot to attach the tarball.<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 9:25 AM, Zafar Gilani <span dir="ltr"><<a href="mailto:zafargilani@gmail.com">zafargilani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am an undergrad student doing my FYP. I am using IB Verbs and RDMA CM
to implement a communication device over InfiniBand fabric. I have executed client/server code (most part from Roland Dreier, CISCO) and it works absolutely fine. However when I
try to call the same thing via JNI, the code gets stuck at
"ibv_alloc_pd". I have checked the "cm_id", the ibv_context
"cm_id->verbs" and the protection domain "ibv_pd" but I am unable to
resolve the error.<br>
<br>JVM actually crashes stating that error exists at frame:
"ibv_alloc_pd" and that crashed happened in native code. Though this is
understandable, but the error is not, since the same code works when
executed directly with c compiler but gives trouble with JNI.<br>
<br>Compilers:<br> java version "1.6.0_07"<br> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)<br> Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)<br><br> gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)<br clear="all">
<br>Environment:<br> Red Hat 4.12<br> 2 Intel(R) Xeon(TM) 5060 CPU dual-core hyperthreading 3.20GHz<br><br>I
have attached the compressed file that contains all the files (.java,
.h, .c and .log). I was hoping that someone could may be point me in the right direction.<br>
<br>Any help will be greatly appreciated.<br><br>Regards,<br><font color="#888888">-- <br>Syed Zafar ul Hussan Gilani | BIT-7<br>Research Student | CHPSC<br>MSP 2008-09<br>NUST SEECS | <a href="http://hpc.niit.edu.pk/%7Ezafar" target="_blank">http://hpc.niit.edu.pk/~zafar</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Syed Zafar ul Hussan Gilani | BIT-7<br>Research Student | CHPSC<br>MSP 2008-09<br>NUST SEECS | <a href="http://hpc.niit.edu.pk/~zafar">http://hpc.niit.edu.pk/~zafar</a><br>