You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by akular <ak...@wipro.com> on 2010/09/09 06:19:59 UTC

ServiceMix is crashing

Hi ServiceMix Gurus,
   We have a requirement to contact C based stack through JNI calls.
As part of this we have a JNI library, which will interact with the C
interface on top of that we have implemented a BC to use the JNI library and
call the C methods. As part of this requirement itself we need to open a
File and start dumping the data that is coming through C to the file. All
file operations are done in JNI, so as part of BC we are just adding a hook
to call the appropriate methods available in JNI.
However when we do such a call, the ServiceMix is totally crashing, at the
sametime when we try to call the same JNI functions through a Java class, it
works perfect and it writes the file without any problems.
Not able to find the root cause of the problem.
Any help on this regard is highly appreciated.

Thanks in advance,
regards,
Ramu
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-is-crashing-tp2826943p2826943.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix is crashing

Posted by akular <ak...@wipro.com>.
Hi JB,
   Thanks for the response, yes we have placed the JNI libraries in lib
directory of servicemix and also added the classpath as part of the shell
environment variables.

Please find the dump that it logs before it crashes

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002aab0dc50467, pid=8217, tid=1092634944
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode
linux-amd64 )
# Problematic frame:
# C  [libusn.so+0x9467]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00002aab11ba1000):  JavaThread "Thread-29" daemon
[_thread_in_native, id=10645, stack(0x00000000411e4000,0x0000000041205000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR),
si_addr=0xffffffffffffffff

Registers:
RAX=0x0000000000000038, RBX=0x00002aaaf11ca228, RCX=0x0000003163151780,
RDX=0x0000000041203100
RSP=0x0000000041203320, RBP=0x00002aab080a1d80, RSI=0x0000000000000000,
RDI=0x0000000000000063
R8 =0x746146203a202928, R9 =0x0000003162f19920, R10=0x0000000000000001,
R11=0x0000000000000000
R12=0x0000000000000000, R13=0x0000000000000000, R14=0x0000000000000000,
R15=0x00002aab11ba1000
RIP=0x00002aab0dc50467, EFL=0x0000000000010206, CSGSFS=0x0100000000000033,
ERR=0x0000000000000007
 

-- 
View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-is-crashing-tp2826943p2827066.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: ServiceMix is crashing

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Ramu,

could we have the exception displayed ?
Have you changed the classpath to load the native lib in ServiceMix ?

Regards
JB

On 09/09/2010 06:19 AM, akular wrote:
>
> Hi ServiceMix Gurus,
>     We have a requirement to contact C based stack through JNI calls.
> As part of this we have a JNI library, which will interact with the C
> interface on top of that we have implemented a BC to use the JNI library and
> call the C methods. As part of this requirement itself we need to open a
> File and start dumping the data that is coming through C to the file. All
> file operations are done in JNI, so as part of BC we are just adding a hook
> to call the appropriate methods available in JNI.
> However when we do such a call, the ServiceMix is totally crashing, at the
> sametime when we try to call the same JNI functions through a Java class, it
> works perfect and it writes the file without any problems.
> Not able to find the root cause of the problem.
> Any help on this regard is highly appreciated.
>
> Thanks in advance,
> regards,
> Ramu