Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Seg fault in bindJavaMethodsToCFunctions ? #573

@matt-ny

Description

@matt-ny

I developed an app using Bridj with WebSphere Liberty, and it seemed to work fine on my dev machine, but when I tried to deploy it on another Ubuntu machine, I get this error during initialization time:

Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Sig
nal_Code=00000001
Handler1=00007EFC73D79A90 Handler2=00007EFC736BA870 InaccessibleAddress=00000000
00000010
RDI=0000000001E9E100 RSI=00007EFBE4316028 RAX=00007EFC73FFB280 RBX=0000000001E9E
198
RCX=00007EFC6CA127E0 RDX=0000000000000000 R8=00007EFBE4315F50 R9=00007EFC73FFF66
0
R10=00007EFC6E11FA80 R11=0000000000000001 R12=0000000001E9E100 R13=0000000000000
000
R14=00007EFBE4317480 R15=0000000000000000
RIP=00007EFC73D8591C GS=0000 FS=0000 RSP=00007EFC6E11FC40
EFlags=0000000000210202 CS=E033 RBP=0000000001E9E100 ERR=0000000000000004
TRAPNO=000000000000000E OLDMASK=0000000000000000 CR2=0000000000000010
xmm0 0000000000000167 (f: 359.000000, d: 1.773696e-321)
xmm1 0000000000000021 (f: 33.000000, d: 1.630417e-322)
xmm2 0000000000000001 (f: 1.000000, d: 4.940656e-324)
xmm3 00000000000000e0 (f: 224.000000, d: 1.106707e-321)
xmm4 0000000000000004 (f: 4.000000, d: 1.976263e-323)
xmm5 0000000000000001 (f: 1.000000, d: 4.940656e-324)
xmm6 0000000000000001 (f: 1.000000, d: 4.940656e-324)
xmm7 3bbcc86800000000 (f: 0.000000, d: 6.095003e-21)
xmm8 0000000000000000 (f: 0.000000, d: 0.000000e+00)
xmm9 0000000000000000 (f: 0.000000, d: 0.000000e+00)
xmm10 0000000000000000 (f: 0.000000, d: 0.000000e+00)
xmm11 0000000000000000 (f: 0.000000, d: 0.000000e+00)
xmm12 000000000000ff00 (f: 65280.000000, d: 3.225261e-319)
xmm13 3c38000000000000 (f: 0.000000, d: 1.301043e-18)
xmm14 3c6d87e6a354d056 (f: 2740244480.000000, d: 1.280697e-17)
xmm15 4030a2b23f3baa00 (f: 1060874752.000000, d: 1.663553e+01)
Module=/opt/ibm/ibm-java-x86_64-80/jre/lib/amd64/compressedrefs/libj9vm28.so
Module_base_address=00007EFC73D05000
Target=2_80_20160106_284759 (Linux 3.13.0-85-generic)
CPU=amd64 (16 logical CPUs) (0x7d6ee0000 RAM)
----------- Stack Backtrace -----------
(0x00007EFC73D8591C [libj9vm28.so+0x8091c])
Java_org_bridj_JNI_bindJavaMethodsToCFunctions+0x301 (0x00007EFC6C8054F1 [libbridj.so+0xe4f1])
(0x00007EFC73D9157D [libj9vm28.so+0x8c57d])
---------------------------------------

The JVM on the deploy machine is newer than on my dev machine, but I didn't think that would matter. Any insight as to what would cause a segmentation error in bindJavaMethodsToCFunctions?

This is from the deploy machine: (where it fails)
Launching defaultServer (WebSphere Application Server 8.5.5.3/wlp-1.0.6.cl50320140731-0257) on IBM J9 VM,

And on my dev machine, where it works:
Launching defaultServer (WebSphere Application Server 8.5.5.2/wlp-1.0.5.cl50220140403-1858) on OpenJDK 64-Bit Server VM, version 1.7.0_85-b01 (en_US)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions