6 Replies Latest reply on Sep 24, 2013 9:30 PM by lsgroup

    Dbxml Core Dump Seg Fault

    lsgroup

      Hi - We are currently using dbxml for many years successfully on CentOS and FreeBSD.  Recently,we have been trying to get our dbxml application to run on Joyent's SmartOS platform. 

       

      Through the help of Joyent, we are able to build sbxml 2.5.16 binaries on smartos.  Build ntes here:

      https://github.com/joyent/smartos-live/issues/236

       

      However, when we run the application, the java core dumps - both on jdk 7 and jdk 6.  Same code runs find on other platforms.  Core dump is included in the above post.  Not sure if anyone here might have an idea on what is causing this. 

        • 1. Re: Dbxml Core Dump Seg Fault
          Laurenfoutz-Oracle

          Could you include the core dump in this post?  I cannot find what core dump in another post you are talking about.

           

          Lauren Foutz

          • 2. Re: Dbxml Core Dump Seg Fault
            lsgroup

            Hi Lauren,

            Thanks for the response.  Here is what I posted about this on the smartos forums.  They helped me in getting dbxml to compile on smartos.  Including using an xquilla patch:

            --------

            OK, so the build problem you're having there appears to be an error in the C++ source for xqilla. This diff appears to fix that:

            --- pristine/dbxml-2.5.16/xqilla/src/items/DatatypeFactoryTemplate.hpp 2009-01-07 11:46:13.000000000 +0000 +++ dbxml-2.5.16/xqilla/src/items/DatatypeFactoryTemplate.hpp 2013-07-11 08:17:00.638395661 +0000 @@ -79,7 +79,7 @@ AnyAtomicType::Ptr createInstance(const XMLCh* value, const DynamicContext* context) const { - return createInstanceNoCheck(DatatypeFactoryTemplate<TYPE>::getPrimitiveTypeURI(), + return this->createInstanceNoCheck(DatatypeFactoryTemplate<TYPE>::getPrimitiveTypeURI(), DatatypeFactoryTemplate<TYPE>::getPrimitiveTypeName(), value, context); } 

            --------

            Here is the post about the core dump:

            Hi - OK, so apparently, the newly compiled code core dumps the JVM every time I try to call the openContainer method.

            At first, I thought this was a code issue or a jdk 7 issue. However, I've compiled dbxml on smartos via the instructions in above thread using both jdk 6 and jdk 7 and I get the same core dump on the same call.

            Also, tested the code on jdk 7 and jdk 6 on FreeBSD, Linux and Solaris and everything works OK.

            I also thought it was a problem with my data, but I tried this create a fresh container using dbxml shell.

            Same thing. So it seems to be a problem with the dbxml build specific to smartos.

            Anyone have any ideas on where I can start looking for a solution?

            $ /opt/local/java/bin/java -d64 -cp ...

            srv context: java.io.BufferedInputStream@1f2f0ce

            A fatal error has been detected by the Java Runtime Environment:

            SIGSEGV (0xb) at pc=0x000000000028a89d, pid=4151, tid=2

            JRE version: 7.0_25-b15
            Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode solaris-amd64 compressed oops)
            Problematic frame:
            C 0x000000000028a89d
            Core dump written. Default location: /home/nxd/srv/adm/core or core.4151

            An error report file with more information is saved as:
            /home/nxd/srv/adm/hs_err_pid4151.log

            If you would like to submit a bug report, please visit:
            http://bugreport.sun.com/bugreport/crash.jsp

            Abort (core dumped)

            ========CORE DUMP

            A fatal error has been detected by the Java Runtime Environment:

            SIGSEGV (0xb) at pc=0x000000000028a89d, pid=4116, tid=2

            JRE version: 7.0_25-b15
            Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode solaris-amd64 compressed oops)
            Problematic frame:
            C 0x000000000028a89d

            Core dump written. Default location: /home/test/srv/adm/core or core.4116

            If you would like to submit a bug report, please visit:
            http://bugreport.sun.com/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 (0x000000000041e000): JavaThread "main" [_thread_in_native, id=2, stack(0xfffffd7ffe800000,0xfffffd7ffea00000)]

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

            Registers:
            RAX=0x000000000028a89d, RBX=0x0000000000000001, RCX=0x0000000002b27ea0, RDX=0x474e5543432b2b00
            RSP=0xfffffd7ffe9fec88, RBP=0xfffffd7ffe9fee30, RSI=0x0000000000000001, RDI=0x0000000000000001
            R8 =0xfffffd7ffe9fecb0, R9 =0xfffffd7fbfeb8e60, R10=0x0000000000000434, R11=0xfffffd7fff202df0
            R12=0x0000000002b27ec0, R13=0x0000000000000002, R14=0x0000000000000001, R15=0x0000000002b28630
            RIP=0x000000000028a89d, RFLAGS=0x0000000000010286

            Top of Stack: (sp=0xfffffd7ffe9fec88)
            0xfffffd7ffe9fec88: fffffd7fff2a2e50 fffffd7ffe9fecc0
            0xfffffd7ffe9fec98: 00000001ff3fc800 fffffd7ffe9fee50
            0xfffffd7ffe9feca8: 0000000002b27ea0 fffffd7ffe9fefa0
            0xfffffd7ffe9fecb8: fffffd7fff3b1422 0000000002b27ea0
            0xfffffd7ffe9fecc8: 0000000002b9b530 fffffd7fbfeefd90
            0xfffffd7ffe9fecd8: fffffd7ff53b7fb3 fffffd7ffe9ff190
            0xfffffd7ffe9fece8: fffffd7ffe9ff090 0000000000000000
            0xfffffd7ffe9fecf8: 0000000000000001 0000000000000000
            0xfffffd7ffe9fed08: ffffff00000000ff 0000000002b8cf00
            0xfffffd7ffe9fed18: fffffd7ffe9ff110 0000000002b1ea40
            0xfffffd7ffe9fed28: 0000000002582310 0000000000000000
            0xfffffd7ffe9fed38: 0000000000000001 6d2e42494c534f5f
            0xfffffd7ffe9fed48: 0000000002b1ea40 0000000000000000
            0xfffffd7ffe9fed58: 0000000000000000 fffffd7ffe9ff080
            0xfffffd7ffe9fed68: fffffd7ffe9ff000 0000000000000000
            0xfffffd7ffe9fed78: 0000000000000000 697600656e6f6e2d
            0xfffffd7ffe9fed88: 2d65646f6e007765 0000000002b27ec0
            0xfffffd7ffe9fed98: 0000000000000002 0000000000000001
            0xfffffd7ffe9feda8: 0000000002b28630 fffffd7ffe9ff090
            0xfffffd7ffe9fedb8: fffffd7fbfe81442 fffffd7fbfe3be1d
            0xfffffd7ffe9fedc8: fffffd7fbfc51f28 000000000028a89d
            0xfffffd7ffe9fedd8: fffffd7fbfe81108 fffffd7fbfeb8e60
            0xfffffd7ffe9fede8: 0000000000000434 fffffd7ffe9fecb0
            0xfffffd7ffe9fedf8: 0000000100000000 fffffd7fbfc9f120
            0xfffffd7ffe9fee08: 0000000002b1ea40 0000000002b27ec0
            0xfffffd7ffe9fee18: 0000000000000001 fffffd7ffe9fee50
            0xfffffd7ffe9fee28: 0000000002b27ea0 fffffd7ffe9fefb0
            0xfffffd7ffe9fee38: fffffd7fff2a302f 00000000000006c9
            0xfffffd7ffe9fee48: 0000000002b27ea0 fffffd7ffe9fefa0
            0xfffffd7ffe9fee58: fffffd7fff3b1422 0000000002b27ea0
            0xfffffd7ffe9fee68: 0000000002b9b530 fffffd7fbfeefd90
            0xfffffd7ffe9fee78: fffffd7ff53b7fb3 fffffd7ffe9ff190

            Instructions: (pc=0x000000000028a89d)
            0x000000000028a87d:

             

            [error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]

            Register to memory mapping:

            RAX=0x000000000028a89d is an unknown value
            RBX=0x0000000000000001 is an unknown value
            RCX=0x0000000002b27ea0 is an unknown value
            RDX=0x474e5543432b2b00 is an unknown value
            RSP=0xfffffd7ffe9fec88 is pointing into the stack for thread: 0x000000000041e000
            RBP=0xfffffd7ffe9fee30 is pointing into the stack for thread: 0x000000000041e000
            RSI=0x0000000000000001 is an unknown value
            RDI=0x0000000000000001 is an unknown value
            R8 =0xfffffd7ffe9fecb0 is pointing into the stack for thread: 0x000000000041e000
            R9 =0xfffffd7fbfeb8e60: _ZTSN5DbXml23DbXmlDebugHookDecoratorE+0x13040 in /home/test/srv/bdbxml.smartos_jdk7/lib/libdbxml-2.5.so at 0xfffffd7fbfc00000
            R10=0x0000000000000434 is an unknown value
            R11=0xfffffd7fff202df0: memcpy+0x60 in /lib/amd64/libc.so.1 at 0xfffffd7fff190000
            R12=0x0000000002b27ec0 is an unknown value
            R13=0x0000000000000002 is an unknown value
            R14=0x0000000000000001 is an unknown value
            R15=0x0000000002b28630 is an unknown value

            Stack: [0xfffffd7ffe800000,0xfffffd7ffea00000], sp=0xfffffd7ffe9fec88, free space=2043k
            Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
            C 0x000000000028a89d
            C [libc.so.1+0x11302f] SUNW_Unwind_RaiseException+0x50
            C [libstdc++.so.6.0.13+0x1380db] __cxa_throw+0x9b
            C [libdbxml-2.5.so+0x281442] DbXml::SyntaxDatabase::SyntaxDatabase(const DbXml::Syntax(
            _db_env*, DbXml::Transaction(std::basic_string < char, std::char_traits, std::allocator >, bool, const DbXml::ContainerConfig(bool)&)*)*)+0x33a
            C [libdbxml-2.5.so+0x23be1d] DbXml::Container::openIndexDbs(DbXml::Transaction(const DbXml::ContainerConfig&)*)+0x203
            C [libdbxml-2.5.so+0x23c5a5] DbXml::Container::openInternal(DbXml::Transaction(const DbXml::ContainerConfig(bool)&)*)+0x649
            C [libdbxml-2.5.so+0x23ce52] DbXml::Container::Container(DbXml::Manager(std::basic_string < char, std::char_traits, std::allocator >, DbXml::Transaction(const DbXml::ContainerConfig(bool)&)*)&)+0x212
            C [libdbxml-2.5.so+0x26e2f1] DbXml::Manager::ContainerStore::findContainer(void&, std::basic_string < char, std::char_traits, std::allocator >, DbXml::Transaction(const DbXml::ContainerConfig(bool)&)*)+0xb7
            C [libdbxml-2.5.so+0x26e4b9] DbXml::Manager::openContainer(std::basic_string < char, std::char_traits, std::allocator >, DbXml::Transaction(const DbXml::ContainerConfig(bool)&)*)+0x11b
            C [libdbxml-2.5.so+0x28fa45] DbXml::XmlManager::openContainer(std::basic_string < char, std::char_traits, std::allocator >, const DbXml::XmlContainerConfig&)+0x73
            C [libdbxml_java-2.5.so+0x61b68] Java_com_sleepycat_dbxml_dbxml_1javaJNI_XmlManager_1openContainerInternal_1_1SWIG_10+0x106
            j com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_openContainerInternal__SWIG_0(JLcom/sleepycat/dbxml/XmlManager;Ljava/lang/String;[ILjava/lang/String;)J+0
            j com.sleepycat.dbxml.XmlManager.openContainerInternal(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlContainerConfig;)Lcom/sleepycat/dbxml/XmlContainer;+18
            j com.sleepycat.dbxml.XmlManager.openContainer(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlContainerConfig;)Lcom/sleepycat/dbxml/XmlContainer;+3
            j com.lightspoke.dbx.dao.DbxContainerManager.()V+411
            j com.lightspoke.dbx.service.DbxRMIEngine.()V+45
            j com.lightspoke.dbx.service.DbxRMIEngine.main([Ljava/lang/String;)V+29
            v ~StubRoutines::call_stub
            V [libjvm.so+0x54e5d1] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x5d1
            V [libjvm.so+0x54e81b] void JavaCalls::call(JavaValue*,methodHandle,JavaCallArguments*,Thread*)+0x2b
            V [libjvm.so+0x638695] jni_CallStaticVoidMethod+0x5c1
            C [libjli.so+0x4d83] JavaMain+0x5e7
            C [libc.so.1+0x10cfaa] _thrp_setup+0x8a
            C [libc.so.1+0x10d2c0] _lwp_start+0x0

            Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
            j com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_openContainerInternal__SWIG_0(JLcom/sleepycat/dbxml/XmlManager;Ljava/lang/String;[ILjava/lang/String;)J+0
            j com.sleepycat.dbxml.XmlManager.openContainerInternal(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlContainerConfig;)Lcom/sleepycat/dbxml/XmlContainer;+18
            j com.sleepycat.dbxml.XmlManager.openContainer(Ljava/lang/String;Lcom/sleepycat/dbxml/XmlContainerConfig;)Lcom/sleepycat/dbxml/XmlContainer;+3
            j com.lightspoke.dbx.dao.DbxContainerManager.()V+411
            j com.lightspoke.dbx.service.DbxRMIEngine.()V+45
            j com.lightspoke.dbx.service.DbxRMIEngine.main([Ljava/lang/String;)V+29
            v ~StubRoutines::call_stub

            P R O C E S S

            Java Threads: ( => current thread )
            0x0000000002410000 JavaThread "Socket Server Thread-2" [_thread_in_native, id=20, stack(0xfffffd7ff4000000,0xfffffd7ff4200000)]
            0x0000000002405000 JavaThread "KaRMI Object Queue" daemon [_thread_blocked, id=19, stack(0xfffffd7ff4400000,0xfffffd7ff4600000)]
            0x00000000021eb800 JavaThread "Service Thread" daemon [_thread_blocked, id=17, stack(0xfffffd7ff4800000,0xfffffd7ff4a00000)]
            0x00000000021e9800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=16, stack(0xfffffd7ffe6ef000,0xfffffd7ffe7ef000)]
            0x00000000021e6800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=15, stack(0xfffffd7ffec0f000,0xfffffd7ffed0f000)]
            0x00000000021e4800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14, stack(0xfffffd7ff4c00000,0xfffffd7ff4e00000)]
            0x000000000217b800 JavaThread "Finalizer" daemon [_thread_blocked, id=13, stack(0xfffffd7ff5000000,0xfffffd7ff5200000)]
            0x0000000002174800 JavaThread "Reference Handler" daemon [_thread_blocked, id=12, stack(0xfffffd7ffe000000,0xfffffd7ffe200000)]
            =>0x000000000041e000 JavaThread "main" [_thread_in_native, id=2, stack(0xfffffd7ffe800000,0xfffffd7ffea00000)]

            Other Threads:
            0x000000000216c000 VMThread [stack: 0xfffffd7ffe2af000,0xfffffd7ffe3af000] [id=11]
            0x0000000002205800 WatcherThread [stack: 0xfffffd7ffdeff000,0xfffffd7ffdfff000] [id=18]

            VM state:not at safepoint (normal execution)

            VM Mutex/Monitor currently owned by a thread: None

            Heap
            PSYoungGen total 19712K, used 16342K [0x00000000eaa00000, 0x00000000ec000000, 0x0000000100000000)
            eden space 16896K, 96% used [0x00000000eaa00000,0x00000000eb9f5a00,0x00000000eba80000)
            from space 2816K, 0% used [0x00000000ebd40000,0x00000000ebd40000,0x00000000ec000000)
            to space 2816K, 0% used [0x00000000eba80000,0x00000000eba80000,0x00000000ebd40000)
            ParOldGen total 43008K, used 0K [0x00000000c0000000, 0x00000000c2a00000, 0x00000000eaa00000)
            object space 43008K, 0% used [0x00000000c0000000,0x00000000c0000000,0x00000000c2a00000)
            PSPermGen total 22528K, used 7661K [0x00000000bae00000, 0x00000000bc400000, 0x00000000c0000000)
            object space 22528K, 34% used [0x00000000bae00000,0x00000000bb57b450,0x00000000bc400000)

            Card table byte_map: [0xfffffd7ff8c00000,0xfffffd7ff8e2a000] byte_map_base: 0xfffffd7ff8629000

            Polling page: 0xfffffd7fff000000

            Code Cache [0xfffffd7ff9000000, 0xfffffd7ff9400000, 0xfffffd7ffc000000)
            total_blobs=371 nmethods=41 adapters=283 free_code_cache=48554Kb largest_free_block=49715392

            Compilation events (10 events):
            Event: 0.848 Thread 0x00000000021e9800 nmethod 34 0xfffffd7ff9072a90 code [0xfffffd7ff9072be0, 0xfffffd7ff9072c78]
            Event: 0.848 Thread 0x00000000021e9800 35 java.util.ArrayList::get (11 bytes)
            Event: 0.848 Thread 0x00000000021e9800 nmethod 35 0xfffffd7ff90788d0 code [0xfffffd7ff9078a20, 0xfffffd7ff9078ad8]
            Event: 0.854 Thread 0x00000000021e9800 36 ! sun.misc.URLClassPath$JarLoader::getResource (91 bytes)
            Event: 0.894 Thread 0x00000000021e9800 nmethod 36 0xfffffd7ff9080490 code [0xfffffd7ff9080840, 0xfffffd7ff9082128]
            Event: 0.907 Thread 0x00000000021e9800 37 java.io.UnixFileSystem::parentOrNull (118 bytes)
            Event: 0.917 Thread 0x00000000021e9800 nmethod 37 0xfffffd7ff907ddd0 code [0xfffffd7ff907df40, 0xfffffd7ff907e598]
            Event: 0.968 Thread 0x00000000021e6800 nmethod 32 0xfffffd7ff908bf50 code [0xfffffd7ff908c660, 0xfffffd7ff90909c8]
            Event: 1.019 Thread 0x00000000021e9800 38 java.util.Arrays::copyOf (19 bytes)
            Event: 1.021 Thread 0x00000000021e9800 nmethod 38 0xfffffd7ff908a250 code [0xfffffd7ff908a3a0, 0xfffffd7ff908a578]

            GC Heap History (0 events):
            No events

            Deoptimization events (6 events):
            Event: 0.351 Thread 0x000000000041e000 Uncommon trap -34 fr.pc 0xfffffd7ff9062f04
            Event: 0.352 Thread 0x000000000041e000 Uncommon trap -34 fr.pc 0xfffffd7ff9062f04
            Event: 0.438 Thread 0x000000000041e000 Uncommon trap -83 fr.pc 0xfffffd7ff9067068
            Event: 0.638 Thread 0x000000000041e000 Uncommon trap -83 fr.pc 0xfffffd7ff9067908
            Event: 0.668 Thread 0x000000000041e000 Uncommon trap -83 fr.pc 0xfffffd7ff9076094
            Event: 0.669 Thread 0x000000000041e000 Uncommon trap -12 fr.pc 0xfffffd7ff9065848

            Internal exceptions (10 events):
            Event: 1.079 Thread 0x000000000041e000 Threw 0x00000000eb94b5b8 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.563 Thread 0x000000000041e000 Threw 0x00000000eb972960 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.564 Thread 0x000000000041e000 Threw 0x00000000eb9756c0 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.564 Thread 0x000000000041e000 Threw 0x00000000eb97fc60 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.565 Thread 0x000000000041e000 Threw 0x00000000eb983ed0 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.565 Thread 0x000000000041e000 Threw 0x00000000eb98d390 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.566 Thread 0x000000000041e000 Threw 0x00000000eb992830 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.566 Thread 0x000000000041e000 Threw 0x00000000eb996070 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.567 Thread 0x000000000041e000 Threw 0x00000000eb9a1d10 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c
            Event: 1.738 Thread 0x000000000041e000 Threw 0x00000000eb9a6840 at /export/HUDSON/workspace/jdk7u25-2-build-solaris-amd64-product/jdk7u25/hotspot/src/share/vm/prims/jvm.c

            Events (10 events):
            Event: 1.565 loading class 0x0000000002a678c0
            Event: 1.565 loading class 0x0000000002a678c0 done
            Event: 1.566 loading class 0x0000000002a67960
            Event: 1.566 loading class 0x0000000002a67960 done
            Event: 1.566 loading class 0x00000000022d9f00
            Event: 1.566 loading class 0x00000000022d9f00 done
            Event: 1.567 loading class 0x0000000002a67eb0
            Event: 1.567 loading class 0x0000000002a67eb0 done
            Event: 1.738 loading class 0x00000000022d9d40
            Event: 1.738 loading class 0x00000000022d9d40 done

            Dynamic libraries:
            0x0000000000400000 /opt/local/jdk1.7.0_25/bin/amd64/dbxrmijvm
            0xfffffd7ffd85c000 /usr/lib/amd64/libthread.so.1
            0xfffffd7ffd700000 /opt/local/jdk1.7.0_25/bin/amd64/../../jre/lib/amd64/jli/libjli.so
            0xfffffd7ffe56f000 /usr/lib/amd64/libdl.so.1
            0xfffffd7fff190000 /usr/lib/amd64/libc.so.1
            0xfffffd7ffc1a0000 /opt/local/jdk1.7.0_25/jre/lib/amd64/server/libjvm.so
            0xfffffd7ffea40000 /usr/lib/amd64/libsocket.so.1
            0xfffffd7ffd85b000 /usr/lib/amd64/libsched.so.1
            0xfffffd7ffc180000 /usr/lib/amd64/libm.so.1
            0xfffffd7ffc150000 /usr/lib/amd64/libCrun.so.1
            0xfffffd7ffdaef000 /usr/lib/amd64/libdoor.so.1
            0xfffffd7ffc110000 /usr/lib/amd64/libdemangle.so.1
            0xfffffd7ffeee0000 /usr/lib/amd64/libm.so.2
            0xfffffd7ffed10000 /usr/lib/amd64/libnsl.so.1
            0xfffffd7ffeab0000 /usr/lib/amd64/libmd.so.1
            0xfffffd7ffea90000 /usr/lib/amd64/libmp.so.2
            0xfffffd7ffc0f0000 /opt/local/jdk1.7.0_25/jre/lib/amd64/libverify.so
            0xfffffd7ffc0a0000 /opt/local/jdk1.7.0_25/jre/lib/amd64/libjava.so
            0xfffffd7ffe670000 /usr/lib/amd64/libscf.so.1
            0xfffffd7ffeba0000 /usr/lib/amd64/libuutil.so.1
            0xfffffd7ffead0000 /usr/lib/amd64/libgen.so.1
            0xfffffd7ffedb0000 /usr/lib/amd64/libnvpair.so.1
            0xfffffd7ffe650000 /usr/lib/amd64/libsmbios.so.1
            0xfffffd7ffc070000 /opt/local/jdk1.7.0_25/jre/lib/amd64/libzip.so
            0xfffffd7ffc040000 /opt/local/jdk1.7.0_25/jre/lib/amd64/libnet.so
            0xfffffd7ffc020000 /opt/local/jdk1.7.0_25/jre/lib/amd64/libnio.so
            0xfffffd7ffeb20000 /usr/lib/amd64/librt.so.1
            0xfffffd7ffc000000 /usr/lib/amd64/libsendfile.so.1
            0xfffffd7ffdd30000 /home/test/srv/bdbxml.smartos_jdk7/lib/libdb_java-4.8.so
            0xfffffd7ffdb60000 /usr/lib/amd64/libresolv.so.2
            0xfffffd7ffeacd000 /usr/lib/amd64/libpthread.so.1
            0xfffffd7ffe630000 /usr/lib/amd64/libgcc_s.so.1
            0xfffffd7ffe220000 /home/test/srv/bdbxml.smartos_jdk7/lib/libdbxml_java-2.5.so
            0xfffffd7ffd950000 /home/test/srv/bdbxml/lib/libdb-4.8.so
            0xfffffd7fc0400000 /home/test/srv/bdbxml/lib/libxqilla.so.5
            0xfffffd7fc0000000 /home/test/srv/bdbxml/lib/libxerces-c-3.0.so
            0xfffffd7fbfc00000 /home/test/srv/bdbxml/lib/libdbxml-2.5.so
            0xfffffd7ff5280000 /usr/lib/amd64/libstdc++.so.6

            VM Arguments:
            jvm_args: -Xss2048k -Djava.library.path=/home/test/srv/bdbxml/lib:/home/test/bdb/lib:/usr/lib:/usr/local/lib:/lib:/usr/lib/amd64: -Djava.rmi.server.codebase=/home/test/srv/lib/dbxrmi.jar -Duka.karmi.config=/home/test/srv/adm/.karmi.property -Djava.rmi.server.hostname=test.gaoxiong -Djava.security.policy=/home/test/adm/DbxRMI.policy -Dlog4j.configuration=file:/home/test/adm/log4j.xml
            java_command: com.lightspoke.dbx.service.DbxRMIEngine
            Launcher Type: SUN_STANDARD

            Environment Variables:
            JAVA_HOME=/opt/local/java
            PATH=/opt/local/java/bin:/home/test/srv/bdbxml/bin:/opt/local/java/bin:/home/test/srv/bdbxml/bin:/opt/local/java/bin:/home/test/srv/bdbxml/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/home/test/srv/bdbxml/bin:
            LD_LIBRARY_PATH=/home/test/srv/bdbxml/lib:/home/test/bdb/lib:/usr/lib:/usr/local/lib:/lib:/usr/lib/amd64:
            SHELL=/bin/bash

            Signal Handlers:
            SIGSEGV: [libjvm.so+0x11b37b4], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
            SIGBUS: [libjvm.so+0x11b37b4], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
            SIGFPE: [libjvm.so+0x53fc78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
            SIGPIPE: [libjvm.so+0x53fc78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
            SIGXFSZ: [libjvm.so+0x53fc78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
            SIGILL: [libjvm.so+0x53fc78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
            SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
            SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
            SIGQUIT: [libjvm.so+0xff8ea8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
            SIGHUP: [libjvm.so+0xff8ea8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
            SIGINT: [libjvm.so+0xff8ea8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
            SIGTERM: [libjvm.so+0xff8ea8], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
            SIG39: [libjvm.so+0xffd27c], sa_mask[0]=0x00000000, sa_flags=0x00000008
            SIG40: [libjvm.so+0x53fc78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c

            S Y S T E M

            OS: SmartOS x86_64
            Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
            Copyright 2010-2012 Joyent, Inc. All Rights Reserved.
            Use is subject to license terms.
            See uname -v for assembly date and time.

            uname:SunOS 5.11 joyent_20130530T224720Z i86pc
            (T2 libthread)
            rlimit: STACK 10240k, CORE infinity, NOFILE 65536, AS infinity
            load average:0.01 0.00 0.00

            CPU:total 8 (4 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, tsc

            Memory: 4k page, physical 4194304k(4142372k free)

            vm_info: Java HotSpot(TM) 64-Bit Server VM (23.25-b01) for solaris-amd64 JRE (1.7.0_25-b15), built on Jun 5 2013 21:57:39 by "" with Sun Studio 12u1

            time: Tue Aug 6 01:12:44 2013
            elapsed time: 2 seconds

            • 3. Re: Dbxml Core Dump Seg Fault
              Laurenfoutz-Oracle

              Nothing stands out as the obvious issue.  However, issues like what you describe often happen when the libraries mix debug or 32/64 bit builds.  I see that the Java and other libraries are 64 bit.  Did you make sure to build the BDB libraries as 64 bit libraries?

               

              Lauren Foutz

              • 4. Re: Dbxml Core Dump Seg Fault
                danieldk

                I would be very surprised if that is the problem, given how far/deep the call already is.

                 

                Wouldn't it be more likely that an exception is thrown in DbXml::SyntaxDatabase::SyntaxDatabase that is not caught? (And since the JNI doesn't handle C++ exceptions, it will crash and burn.)

                • 5. Re: Dbxml Core Dump Seg Fault
                  Gmfeinberg-Oracle

                  Has this problem been solved?  It's been here a while.

                   

                  While it's true that the exception is coming from the SyntaxDatabase constructor which is well into the C++ library, it is pretty close to the initial boundary between the BDB XML library and the Berkeley DB library.  Is it possible that BDB XML was compiled against one version of the BDB library but is running against another?  That is a common issue with Linux distributions where BDB can be installed in various versions and even more than once.

                   

                  Regards,

                  George

                  • 6. Re: Dbxml Core Dump Seg Fault
                    lsgroup

                    Hi There,

                     

                    Thanks for the input.  I haven't had time to try subsequent compiles, but will get to it soon.  I really want to get this to work on other solaris platforms.  Haven't tried on OmniOS yet.  But the Joyent one seems to close but no cookie...  I will post results / questions when I get back to it.