JVM Seg Fault With Multithreaded JNI Code

Hello all:
I'm having a problem with a multi threaded application. The application is used to bridge an exsisting C++ application with an exsisting Java application so I went with a JNI implementation. After I completed my implementation, I found that the bridge would crash after a few hours (or a few million JNI calls). At first I thought there was a memory leak but my memory usage was not going up (according to the task manager) and the heap was staying around 3 MB (according to a third party tool). I finally figured out that the problem was my JNI code. The JNI code is all in a wrapper DLL (built with MinGW) that four other DLL's call dynamically. So I made a test app to test the wrapper dll. The test app is a simple two threaded application that creates a java object and deletes the java object. CODE:
#include <process.h>
#include "JNIUtilityInterface.h"  // Link to the JNI dll (GetProcAdress, etc.)
void test(void * arg) {   
   for (int i = 0; i < 4000000; i++) {
      jobject jTest = createObjectByClass(NULL, "JNITest", "()V");
      deleteObject(jTest);
   int num = (int)arg;
   printf("done - %d\n", num);              
int main(int argc, char *argv[])
   clearJNIUtilityDll();
   initJNIUtilityDll();
   invokeJVM();         
   for (int i = 0; i < 3; i++) {
      if (i == 0) {
         _beginthread(test, 0, (void*)i);
      } else {           
         _beginthread(test, 0, (void*)i);
   Sleep(240000);
   exitJNIUtilityDll();
   return 0;
}createObjectByClass code:
jobject JNIUtility_API createObjectByClass(jboolean * hasException, 
                                           const char * className, 
                                           const char * descriptor, va_list args) {                                                                                                                    
   jclass clazz;
   jmethodID mid;
   jobject obj;
   JNIEnv * env;
   env = getEnv();
   if (env != NULL) {  
      if (env->EnsureLocalCapacity(2) == JNI_OK) {
         jclass clazz = env->FindClass(className);                                                
         jmethodID mid = env->GetMethodID(clazz, "<init>", descriptor);       
         if (mid) {
            obj = env->NewObjectV(clazz, mid, args);                                             
         env->DeleteLocalRef(clazz);          
      if (hasException) {
         *hasException = env->ExceptionCheck();
   env = NULL;
   return obj;
} getEnv code:
JNIEnv * getEnv() {          
   JNIEnv * env;
   jint result;
   result = jvm->GetEnv((void **)&env, JNI_VERSION_1_4);
   if (result == JNI_EDETACHED) {
      if (jvm->AttachCurrentThreadAsDaemon((void **)&env, NULL) == JNI_OK) {
         //printf("Attached current thread!\n");
   return env;
}deleteObject code:
void JNIUtility_API deleteObject(jobject obj) {
   JNIEnv * env;
   env = getEnv();
   if (env != NULL) {                                                                                                                                               
      env->DeleteLocalRef(obj);
   env = NULL;                             
}The other code is not important since I know this is where the seg fault is happening. Again this is just test code but when I run this code with only one thread, it works fine (with the 4000000 for loop). The JavaVM is globally cached as well.
If anybody nows how to properly run two or more native threads that use JNI methods, please let me know or if you have any tips, that will be good too! If you want any more code to try for yourself, I'm willing to send it to you.
Thanks!!

Nevermind, I found out that if you build you code using jni.h from 1.5.0_06 and run you code using 1.5.0_04 JRE, you run into problems with multi threading! Don't do this because it leads to headaches and high blood pressure :)

Similar Messages

  • JVM 1.4 seg faults with pure java code?

    Has anybody else seen JVM 1.4 seg fault when running pure java code? This seems like it shouldn't be possible, but I get the following at indeterminate times. Unfortunately, it is difficult to isolate since decreasing the size of the program avoids the problem. When the seg fault happens, the size in memory is ~1GB and there is plenty of real and virtual memory to spare.
    Unexpected Signal : 11 occurred at PC=0xDE88BC8E
    Function=[Unknown. Nearest: +0x100E]
    Library=/usr/j2se/jre/lib/i386/server/libjvm.so
    Dynamic libraries:
    0x8050000 java
    0xdfb60000 /usr/lib/libthread.so.1
    0xdfba0000 /usr/lib/libdl.so.1
    0xdfab0000 /usr/lib/libc.so.1
    0xde800000 /usr/j2se/jre/lib/i386/server/libjvm.so
    0xdfa40000 /usr/lib/libCrun.so.1
    0xdfa20000 /usr/lib/libsocket.so.1
    0xdf980000 /usr/lib/libnsl.so.1
    0xdf960000 /usr/lib/libm.so.1
    0xdfa70000 /usr/lib/libw.so.1
    0xdf920000 /usr/lib/libmp.so.2
    0xdf8f0000 /usr/j2se/jre/lib/i386/native_threads/libhpi
    .so
    0xdf8c0000 /usr/j2se/jre/lib/i386/libverify.so
    0xdf880000 /usr/j2se/jre/lib/i386/libjava.so
    0xdf860000 /usr/j2se/jre/lib/i386/libzip.so
    0xda890000 /usr/lib/nss_files.so.1
    Local Time = Tue May 14 16:03:38 2002
    Elapsed Time = 72
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D3
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b91 mixed
    mode)
    # An error report file has been saved as hs_err_pid945.log.
    # Please refer to the file for further information.

    Hi sevenM,
    Did you figure out a workaround for this problem?. Did you get it solved with the SUN people?. Is it a known bug?.
    I've got exactly the same problem on the same function and VM library.
    Any info on this is very much welcome.
    Thx
    Krithiga
    I get the same error sometimes with tomcat-4.0.4 on a
    Slackware 8.0.0 and JDK 1.4.0. I don't user any JSPs,
    only servlets and the business calls a remote SLSB on
    a remote JBOSS server and afterwards select some data
    form a remote DB2 7.1 over JDBC.
    Here is the log:
    Unexpected Signal : 11 occurred at PC=0x40267D98
    Function=copy_to_survivor_space__16DefNewGenerationP7oo
    DescPP7oopDesc+0x28
    Library=/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjv
    .so
    Current Java thread:
    at
    at java.net.PlainSocketImpl.socketAccept(Native
    tive Method)
    at
    at
    at
    t
    java.net.PlainSocketImpl.accept(PlainSocketImpl.java:34
    - locked <0x44ed3400> (a
    400> (a java.net.PlainSocketImpl)
    at
    at
    at
    t
    java.net.ServerSocket.implAccept(ServerSocket.java:438)
    at
    at
    at
    t java.net.ServerSocket.accept(ServerSocket.java:409)
    at
    at
    at
    t
    org.apache.catalina.core.StandardServer.await(StandardS
    rver.java:293)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.start(Catalina.jav
    :794)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.execute(Catalina.j
    va:681)
    at
    at
    at
    t
    org.apache.catalina.startup.Catalina.process(Catalina.j
    va:179)
    at
    at
    at
    t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    at
    at
    t
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
    AccessorImpl.java:39)
    at
    at
    at
    t
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
    ngMethodAccessorImpl.java:25)
    at
    at
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    at
    at
    t
    org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
    a:243)
    Dynamic libraries:
    08048000-0804d000 r-xp 00000000 03:03 757599
    /usr/local/j2sdk1.4.0/bin/java
    0804d000-0804e000 rw-p 00004000 03:03 757599
    /usr/local/j2sdk1.4.0/bin/java
    40000000-40015000 r-xp 00000000 03:03 885142
    /lib/ld-2.2.3.so
    40015000-40016000 rw-p 00014000 03:03 885142
    /lib/ld-2.2.3.so
    40017000-40020000 r-xp 00000000 03:03 69536
    /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
    i.so
    40020000-40021000 rw-p 00008000 03:03 69536
    /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
    i.so
    40021000-40022000 r--p 00000000 03:03 33106
    /usr/lib/locale/en_US/LC_IDENTIFICATION
    40022000-40030000 r-xp 00000000 03:03 885133
    /lib/libpthread-0.9.so
    40030000-40038000 rw-p 0000d000 03:03 885133
    /lib/libpthread-0.9.so
    40038000-4003b000 r-xp 00000000 03:03 885149
    /lib/libdl-2.2.3.so
    4003b000-4003c000 rw-p 00002000 03:03 885149
    /lib/libdl-2.2.3.so
    4003c000-40143000 r-xp 00000000 03:03 885147
    /lib/libc-2.2.3.so
    40143000-40149000 rw-p 00106000 03:03 885147
    /lib/libc-2.2.3.so
    4014d000-40410000 r-xp 00000000 03:03 1150891
    /usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
    40410000-40558000 rw-p 002c2000 03:03 1150891
    /usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
    4056c000-4057d000 r-xp 00000000 03:03 885152
    /lib/libnsl-2.2.3.so
    4057d000-4057f000 rw-p 00010000 03:03 885152
    /lib/libnsl-2.2.3.so
    40581000-405b5000 r-xp 00000000 03:03 950285
    /usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
    .0.so
    405b5000-405c1000 rw-p 00033000 03:03 950285
    /usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
    .0.so
    405c3000-405e4000 r-xp 00000000 03:03 885138
    /lib/libm-2.2.3.so
    405e4000-405e5000 rw-p 00020000 03:03 885138
    /lib/libm-2.2.3.so
    405e5000-405f6000 r-xp 00000000 03:03 69542
    /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    405f6000-405f8000 rw-p 00010000 03:03 69542
    /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    405f8000-40619000 r-xp 00000000 03:03 69543
    /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    40619000-4061b000 rw-p 00020000 03:03 69543
    /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    4061c000-40630000 r-xp 00000000 03:03 69545
    /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40630000-40633000 rw-p 00013000 03:03 69545
    /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40633000-4063a000 r--s 00000000 03:03 890455
    /usr/local/jakarta-tomcat-4.0.4/bin/bootstrap.jar
    4063a000-40641000 r--s 00000000 03:03 890436
    /usr/local/jakarta-tomcat-4.0.4/common/lib/naming-comm
    n.jar
    40641000-40655000 r--s 00000000 03:03 890437
    /usr/local/jakarta-tomcat-4.0.4/common/lib/servlet.jar
    40655000-4065e000 r--s 00000000 03:03 890438
    /usr/local/jakarta-tomcat-4.0.4/common/lib/naming-reso
    rces.jar
    4065e000-40660000 r--s 00000000 03:03 890439
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jdbc2_0-std
    xt.jar
    40660000-4066c000 r--s 00000000 03:03 890440
    /usr/local/jakarta-tomcat-4.0.4/common/lib/activation.
    ar
    4066c000-4066f000 r--s 00000000 03:03 890441
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jta-spec1_0
    1.jar
    4066f000-4082a000 r--s 00000000 03:03 890443
    /usr/local/jakarta-tomcat-4.0.4/common/lib/xerces.jar
    4082a000-40874000 r--s 00000000 03:03 890444
    /usr/local/jakarta-tomcat-4.0.4/common/lib/tyrex-0.9.7
    0.jar
    40874000-408b9000 r--s 00000000 03:03 890445
    /usr/local/jakarta-tomcat-4.0.4/common/lib/mail.jar
    408b9000-408d2000 r--s 00000000 03:03 890446
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jndi.jar
    408d2000-40958000 r--s 00000000 03:03 890482
    /usr/local/jakarta-tomcat-4.0.4/common/lib/db2java.jar
    40958000-4096e000 r--s 00000000 03:03 890483
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-clien
    .jar
    4096e000-4097c000 r--s 00000000 03:03 890484
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-j2ee.
    ar
    4097c000-40996000 r--s 00000000 03:03 890485
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jaas.jar
    40996000-409a0000 r--s 00000000 03:03 890486
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jbosssx-cli
    nt.jar
    409a0000-409a6000 r--s 00000000 03:03 890487
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jnp-client.
    ar
    409a6000-40d10000 r--s 00000000 03:03 890488
    /usr/local/jakarta-tomcat-4.0.4/common/lib/jt400_3.0.j
    r
    40d10000-40d37000 r--s 00000000 03:03 890489
    /usr/local/jakarta-tomcat-4.0.4/common/lib/log4j.jar
    40d37000-423af000 r--s 00000000 03:03 69634
    /usr/local/j2sdk1.4.0/jre/lib/rt.jar
    423f1000-42408000 r--s 00000000 03:03 69566
    /usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
    42408000-42476000 r--s 00000000 03:03 69568
    /usr/local/j2sdk1.4.0/jre/lib/jsse.jar
    42476000-42489000 r--s 00000000 03:03 69567
    /usr/local/j2sdk1.4.0/jre/lib/jce.jar
    42489000-4270a000 r--s 00000000 03:03 69632
    /usr/local/j2sdk1.4.0/jre/lib/charsets.jar
    447b2000-447b3000 r--p 00000000 03:03 33104
    /usr/lib/locale/en_US/LC_MEASUREMENT
    447b3000-447b4000 r--p 00000000 03:03 33102
    /usr/lib/locale/en_US/LC_TELEPHONE
    447b4000-447b5000 r--p 00000000 03:03 33103
    /usr/lib/locale/en_US/LC_ADDRESS
    447b5000-447b6000 r--p 00000000 03:03 33100
    /usr/lib/locale/en_US/LC_NAME
    447b6000-447b7000 r--p 00000000 03:03 33109
    /usr/lib/locale/en_US/LC_PAPER
    447b7000-447b8000 r--p 00000000 03:03 459106
    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    447b8000-447b9000 r--p 00000000 03:03 33110
    /usr/lib/locale/en_US/LC_MONETARY
    447b9000-447bf000 r--p 00000000 03:03 33107
    /usr/lib/locale/en_US/LC_COLLATE
    447bf000-447c0000 r--p 00000000 03:03 33101
    /usr/lib/locale/en_US/LC_TIME
    4c840000-4c841000 r--p 00000000 03:03 33105
    /usr/lib/locale/en_US/LC_NUMERIC
    4c841000-4c85c000 r--p 00000000 03:03 33108
    /usr/lib/locale/en_US/LC_CTYPE
    4c85c000-4c85e000 r--s 00000000 03:03 36766
    /usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
    4c85e000-4c866000 r--s 00000000 03:03 890421
    /usr/local/jakarta-tomcat-4.0.4/server/lib/jakarta-reg
    xp-1.2.jar
    4c866000-4c867000 r--s 00000000 03:03 890422
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-co
    mon.jar
    4c867000-4c871000 r-xp 00000000 03:03 885148
    /lib/libnss_compat-2.2.3.so
    4c871000-4c873000 rw-p 00009000 03:03 885148
    /lib/libnss_compat-2.2.3.so
    4c89e000-4c8bb000 r--s 00000000 03:03 36765
    /usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
    4c8bb000-4c95e000 r--s 00000000 03:03 36767
    /usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
    4c95e000-4c96c000 r--s 00000000 03:03 36768
    /usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
    4c96c000-4ce06000 r--s 00000000 03:03 298906
    /usr/local/j2sdk1.4.0/lib/tools.jar
    4ce06000-4ce0c000 r--s 00000000 03:03 890423
    /usr/local/jakarta-tomcat-4.0.4/server/lib/commons-log
    ing.jar
    4ce0c000-4ce0e000 r--s 00000000 03:03 890424
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-in
    oker.jar
    4ce0e000-4ce11000 r--s 00000000 03:03 890425
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-ma
    ager.jar
    4ce11000-4ce19000 r--s 00000000 03:03 890426
    /usr/local/jakarta-tomcat-4.0.4/server/lib/warp.jar
    4ce19000-4ceab000 r--s 00000000 03:03 890427
    /usr/local/jakarta-tomcat-4.0.4/server/lib/catalina.ja
    4ceab000-4ceb4000 r--s 00000000 03:03 890428
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-http
    1.jar
    4ceb4000-4ceb9000 r--s 00000000 03:03 890429
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-de
    ault.jar
    4ceb9000-4cec9000 r--s 00000000 03:03 890430
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-ajp.
    ar
    4cec9000-4ceed000 r--s 00000000 03:03 890431
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-util
    jar
    4ceed000-4cefb000 r--s 00000000 03:03 890432
    /usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-coyo
    e.jar
    4cefb000-4cf01000 r--s 00000000 03:03 890434
    /usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-we
    dav.jar
    4cf01000-4cf13000 r-xp 00000000 03:03 69548
    /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    4cf13000-4cf14000 rw-p 00011000 03:03 69548
    /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    4cf14000-4cf25000 r--s 00000000 03:03 890458
    /usr/local/jakarta-tomcat-4.0.4/lib/jasper-runtime.jar
    4cf25000-4cf59000 r--s 00000000 03:03 890459
    /usr/local/jakarta-tomcat-4.0.4/lib/jasper-compiler.ja
    4cf59000-4cf5e000 r--s 00000000 03:03 890460
    /usr/local/jakarta-tomcat-4.0.4/lib/naming-factory.jar
    4cf5e000-4cf5f000 r--s 00000000 03:03 789670
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46958.tm
    (deleted)
    4cf5f000-4cf60000 r--s 00000000 03:03 789673
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46959.tm
    (deleted)
    4cf60000-4cf63000 r--s 00000000 03:03 430785
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/arenajobs.jar
    4cf63000-4d067000 r--s 00000000 03:03 430786
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/arenatrading.jar
    4d067000-4d08c000 r--s 00000000 03:03 430787
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/quartz.jar
    4d08c000-4d08e000 r--s 00000000 03:03 430788
    /usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
    F/lib/scheduler.jar
    4d08e000-4d091000 r--s 00000000 03:03 790391
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46960.tm
    (deleted)
    4d091000-4d195000 r--s 00000000 03:03 790392
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46961.tm
    (deleted)
    4d195000-4d1ba000 r--s 00000000 03:03 790394
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46962.tm
    (deleted)
    4d1ba000-4d1bc000 r--s 00000000 03:03 790395
    /usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46963.tm
    (deleted)
    4d1bc000-4d1bd000 r-xp 00000000 03:03 69559
    /usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
    4d1bd000-4d1be000 rw-p 00000000 03:03 69559
    /usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
    4d1be000-4d1c2000 r-xp 00000000 03:03 69558
    /usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
    4d1c2000-4d1c3000 rw-p 00003000 03:03 69558
    /usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
    4d1c9000-4d1d2000 r-xp 00000000 03:03 885155
    /lib/libnss_files-2.2.3.so
    4d1d2000-4d1d3000 rw-p 00008000 03:03 885155
    /lib/libnss_files-2.2.3.so
    Local Time = Tue Oct 8 18:57:29 2002
    Elapsed Time = 32640
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D3
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
    mode)
    # An error report file has been saved as
    hs_err_pid26505.log.
    # Please refer to the file for further information.

  • EXC_BAD_ACCESS and seg faults with BSD Sockets code

    Hi,
    I've been having some problems with sockets programming on a new MacBook that I've decided to do some programming on.
    So, I wrote a pretty simple program to test if the sockets are working properly, and it's only partially working.
    I've been compiling via gcc on the command line, but then I tried Xcode to see if that made any difference, and it didn't.
    Also, this program works flawlessly on FreeBSD 6.2. The Apple Developer website says that BSD sockets should work perfectly.
    Here's the code: http://www.wraithnj.com/matt/Programming/C/scrabble/server/server.c
    I've been testing this code with netcat, telnet, and this too: http://www.wraithnj.com/matt/Programming/C/scrabble/client/client.c
    Xcode and GDB reveals that it fails line 57. Or at least that's where the break point is set. Appearantly it doesn't like the FD_SET() macro... Perhaps I'm just being an idiot and don't know how to use Xcode.
    So, this is what it looks like when it fails (after connecting with a client):
    matt@mdwosx1:~/Programming/C/scrabble/server# ./server2
    Connection from: 127.0.0.1 Socket: 4
    Then the program doesn't crash. It sends the "playerid." The client receives the 1 sent.
    Then if I try to send the server any information (typing in stuff from the client) the server doesn't show that it has received the information. Then if I send 'q' from the client. It has a segmentation fault. If I just do Ctrl+C with the client, it receives another segmentation fault. I don't understand what memory it's trying to write to that it can't. I'm assuming that it's having trouble writing to the fd_set master because that's where gdb leads me, but that's confusing because that works fine on FreeBSD.
    If I connect two clients, the second the second client connects it runs into an infinite loop.
    It repeats this:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    DATA From: 2.0.0.0 Socket: 3 Data:
    Until you quit from both clients, where it drops a segmentation fault.
    The GDB in Xcode says EXCBADACCESS.
    I honestly have no clue what I'm doing wrong. I added a whole bunch of header files (in case Mac OS X depends upon something else). I recompiled it every which way. I reconfigured Xcode every which way.
    Could anybody help me or shed some light on what I'm doing wrong?
    -WraithM

    I did have an extra byte on each of my character arrays. The fix was adding two extra bytes. For example, with my playerid in the client, originally (in the program before the fix that worked perfectly on FreeBSD) I had playerid[1] in the declaration. Aka, two bytes. I store the first byte in the first element, then I stored the null in the second element. Under OS X, when I declared 2 elements, the recv function was overflowing into the next variable (so, it was taking up three elements, somehow). So, then I redeclared my playerid array with three elements, and it worked out. So, there's a specific difference between OS X and FreeBSD. I also did specifically take in one less byte than size of my array and null terminated by myself. For example,
    numbytes = recv(sock, playerid, 1, 0);
    playerid[numbytes] = '\0';
    Note that I originally had it declared as 2 bytes long. So, I read 1 byte in, then I null terminate the second byte. numbytes should be 1 if I'm reading 1 byte. That's what recv sends as the return value. Therefore playerid[1] = '\0';
    I did EXACTLY what you suggested even before I fixed it. Okay, so your suggestion of what the problem is isn't a fair assessment of the situation. There's a specific difference between OS X and FreeBSD. Remember, this code worked perfectly on FreeBSD before and after the changes. So, when I null terminate, it's taking up two bytes somehow. Also, it's not like the null termination is being put in the third element of the array because I tried doing:
    playerid[numbytes - 1] = '\0'; It over wrote the first element.
    I don't need to review C strings. I'm getting lucky because I guessed how to fix the situation based upon the perceived differences between OS X and FreeBSD, not because I'm making random changes. I need somebody to explain what OS X is doing that FreeBSD isn't doing (or visa versa).
    Also, you're wrong:
    Your code only works because you make sure that atoi() is less than 2 and you've make that playerfd array have [two elements].
    I originally declared it with TWO elements, and it didn't work because I didn't offset the index of playerfd. Then I declared it with three elements, and it worked. That's because I changed the size of playerfd, but now I fixed the problem (and now I am back to having two elements with a new solution), but that doesn't explain why this worked on FreeBSD and not OS X.
    Addmittedly, I didn't think about this before, but here's the real way I should have done this.
    if(atoi(&playerid) < 2)
          playerfd[atoi(&playerid) - 1] = newsock;
    Because the playerid is either 1 or 2, it'd put it in either the second or third element, not the first or second element. So, I just offset the atoi, and now I can do that with a two element declaration. It was a silly mistake on my part.
    However, that doesn't explain what's going on in the client where the null-termination is going over into the next array (unless I have 3 elements instead of something that should have 2 elements (the number then the null termination)). Nor does that explain why this code worked on FreeBSD. I can understand why the server worked in FreeBSD. There could have been nothing important after the playerfd array in the server (which doesn't really make sense, because the compilers should have the same variables next to eachother, but conceivably that's how it'd work). However, on the client, if I tried to do printf of playerid with a strange offset like in the server, then I'd get this:
    0x[0031]00 (the brackets defining where the playerid array with 2 elements is)
    It wouldn't print anything because it'd hit the null right off the bat.
    So, what must be happening is this:
    0x[3100]00
    The 00 after the playerid bracket is where the overflow is occurring. Normally, the socket file descriptor is there, and that gets overwritten with 0. In FreeBSD, it worked fine.
    So, when I define the array to be 3 elements long, it must be working like this:
    0x[310000]04 (04 being the socket file descriptor that occurs after the playerid array)
    There are two nulls... Something is strange about this. This is what I don't understand as not working in OS X and working in FreeBSD.
    Could anybody explain this?
    P.S. I don't like initializing all of my data, nor error checking during designing of a basic program. I put them in afterwards because I find them to be aesthetically displeasing, and it makes it more difficult to find stuff. I know it's stupid, but that's how I work. I put in error checking when I'm debugging specific sections, and then put it in everywhere after is all worked out. My coding style is not the problem. Admittedly, I was stupid with the server, but I honestly don't understand the client. The nature of the server and client are different. In the server, I'm using an integer array, and in the client I'm using a character array.
    Message was edited by: WraithM

  • JVM seg fault from jco libs?

    We have a 100% pure Java application except for the SAP xbp interface.  We use it start jobs, and monitor job status.  We have the most recent releases of sapjco.jar, sapjcorfc.dll and librfc32.dll.  After varying amounts of time, sometimes up to three hours of running "n" number of jobs concurrently (up to 40), we get a segmentaion fault in the JVM.  The only non-java code are the SAP dlls, so they are the likely problem.  Has anyone experienced a similar issue?

    One of the challenges in supporting Linux is the frequent changing of what ought to be stable public interfaces. We have found a number of changes in Red Hat 6 that affect the behavior of the compiler and applications built with the compiler.
    We plan to support RH 6 (and Oracle Linux 6) in a future release of Studio.

  • Cant build source. Seg fault with echo 'm4_define([m4_require SOLVED

    building always gives me an error like
    echo 'm4_define([m4_require_silent_probe], [-])'
         15470 Segmentation fault      | autom4te --language Autoconf-without-aclocal-m4 -......
    aura >>= Building `emprint-git`...
    aura >>= Well, building `emprint-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: emprint-git 0.1.0.67.a0886e1-1 (Tue Aug 5 01:22:52 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Cloning emprint git repo...
    Cloning into bare repository '/var/cache/pacman/pkg/emprint-git9157/emprint-git/emprint'...
    ==> Validating source files with sha256sums...
    emprint ... Skipped
    ==> Extracting sources...
    -> Creating working copy of emprint git repo...
    Cloning into 'emprint'...
    done.
    ==> Starting pkgver()...
    ==> Starting build()...
    sh: line 1: 15469 Done echo 'm4_define([m4_require_silent_probe], [-])'
    15470 Segmentation fault | autom4te --language Autoconf-without-aclocal-m4 - /usr/share/aclocal-1.14/internal/ac-config-macro-dirs.m4 '/usr/share/aclocal/argz.m4' '/usr/share/aclocal/libtool.m4' '/usr/share/aclocal/ltdl.m4' '/usr/share/aclocal/ltoptions.m4' '/usr/share/aclocal/ltsugar.m4' '/usr/share/aclocal/ltversion.m4' '/usr/share/aclocal/lt~obsolete.m4' '/usr/share/aclocal/pkg.m4' '/usr/share/aclocal-1.14/amversion.m4' '/usr/share/aclocal-1.14/auxdir.m4' '/usr/share/aclocal-1.14/cond.m4' '/usr/share/aclocal-1.14/depend.m4' '/usr/share/aclocal-1.14/depout.m4' '/usr/share/aclocal-1.14/init.m4' '/usr/share/aclocal-1.14/install-sh.m4' '/usr/share/aclocal-1.14/lead-dot.m4' '/usr/share/aclocal-1.14/make.m4' '/usr/share/aclocal-1.14/missing.m4' '/usr/share/aclocal-1.14/options.m4' '/usr/share/aclocal-1.14/prog-cc-c-o.m4' '/usr/share/aclocal-1.14/runlog.m4' '/usr/share/aclocal-1.14/sanity.m4' '/usr/share/aclocal-1.14/silent.m4' '/usr/share/aclocal-1.14/strip.m4' '/usr/share/aclocal-1.14/substnot.m4' '/usr/share/aclocal-1.14/tar.m4' 'm4/ac_attribute.m4' 'm4/efl_path_max.m4' --trace='AC_DEFUN:$f::$n::${::}%' --trace='AC_DEFUN_ONCE:$f::$n::${::}%' --trace='AU_DEFUN:$f::$n::${::}%' --trace='_AM_AUTOCONF_VERSION:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR_TRACE:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR:$f::$n::${::}%' --trace='_AM_CONFIG_MACRO_DIRS:$f::$n::${::}%' --trace='LTSUGAR_VERSION:$f::$n' --trace='AM_PROG_NM:$f::$n' --trace='_LT_AC_SYS_LIBPATH_AIX:$f::$n' --trace='AC_LIBTOOL_SYS_OLD_ARCHIVE:$f::$n' --trace='_LT_AC_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBTOOL_DLOPEN_SELF:$f::$n' --trace='AC_LIBTOOL_OBJDIR:$f::$n' --trace='AC_LIBTOOL_CXX:$f::$n' --trace='gl_FUNC_ARGZ:$f::$n' --trace='_AM_MANGLE_OPTION:$f::$n' --trace='AC_CHECK_LIBM:$f::$n' --trace='_LT_AC_FILE_LTDLL_C:$f::$n' --trace='AC_LTDL_OBJDIR:$f::$n' --trace='_AC_AM_CONFIG_HEADER_HOOK:$f::$n' --trace='LT_WITH_LTDL:$f::$n' --trace='_LT_PROG_F77:$f::$n' --trace='_LT_AC_LANG_GCJ:$f::$n' --trace='AC_DISABLE_FAST_INSTALL:$f::$n' --trace='LT_LIB_M:$f::$n' --trace='_LT_LINKER_OPTION:$f::$n' --trace='AM_ENABLE_STATIC:$f::$n' --trace='LT_SYS_DLSEARCH_PATH:$f::$n' --trace='AC_LTDL_DLLIB:$f::$n' --trace='AM_DISABLE_STATIC:$f::$n' --trace='AM_SUBST_NOTMAKE:$f::$n' --trace='LT_SYS_DLOPEN_SELF:$f::$n' --trace='AC_LTDL_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LTDL_DLSYM_USCORE:$f::$n' --trace='LTOBSOLETE_VERSION:$f::$n' --trace='gl_PREREQ_ARGZ:$f::$n' --trace='LT_PROG_RC:$f::$n' --trace='PKG_PROG_PKG_CONFIG:$f::$n' --trace='AC_LIBTOOL_COMPILER_OPTION:$f::$n' --trace='LT_SYS_SYMBOL_USCORE:$f::$n' --trace='AM_CONDITIONAL:$f::$n' --trace='AC_LIBTOOL_LINKER_OPTION:$f::$n' --trace='AC_LIBTOOL_SYS_HARD_LINK_LOCKS:$f::$n' --trace='AC_LIBTOOL_DLOPEN:$f::$n' --trace='AC_LIBTOOL_SYS_LIB_STRIP:$f::$n' --trace='LT_PATH_LD:$f::$n' --trace='_LT_LINKER_BOILERPLATE:$f::$n' --trace='LT_FUNC_DLSYM_USCORE:$f::$n' --trace='_LT_AC_LANG_F77:$f::$n' --trace='AM_MISSING_PROG:$f::$n' --trace='_AM_SET_OPTIONS:$f::$n' --trace='AC_C___ATTRIBUTE__:$f::$n' --trace='_AM_SET_OPTION:$f::$n' --trace='_LT_AC_TRY_DLOPEN_SELF:$f::$n' --trace='_LT_PROG_FC:$f::$n' --trace='AM_SET_DEPDIR:$f::$n' --trace='_AC_PROG_LIBTOOL:$f::$n' --trace='LT_OUTPUT:$f::$n' --trace='AC_ENABLE_SHARED:$f::$n' --trace='_AM_PROG_CC_C_O:$f::$n' --trace='AM_PROG_LIBTOOL:$f::$n' --trace='AC_LIBLTDL_CONVENIENCE:$f::$n' --trace='PKG_CHECK_VAR:$f::$n' --trace='AC_PROG_NM:$f::$n' --trace='AC_LIBTOOL_RC:$f::$n' --trace='AM_DISABLE_SHARED:$f::$n' --trace='_LT_AC_PROG_CXXCPP:$f::$n' --trace='AM_AUTOMAKE_VERSION:$f::$n' --trace='AC_LIBTOOL_F77:$f::$n' --trace='_LT_AC_LANG_GCJ_CONFIG:$f::$n' --trace='LT_AC_PROG_GCJ:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_PIC:$f::$n' --trace='AM_MAKE_INCLUDE:$f::$n' --trace='AM_SANITY_CHECK:$f::$n' --trace='AC_LTDL_SHLIBPATH:$f::$n' --trace='_LT_AC_CHECK_DLFCN:$f::$n' --trace='_AM_SUBST_NOTMAKE:$f::$n' --trace='AM_RUN_LOG:$f::$n' --trace='AC_PROG_EGREP:$f::$n' --trace='_LT_AC_PROG_ECHO_BACKSLASH:$f::$n' --trace='PKG_CHECK_EXISTS:$f::$n' --trace='_PKG_SHORT_ERRORS_SUPPORTED:$f::$n' --trace='LT_PROG_GCJ:$f::$n' --trace='AC_LIBTOOL_GCJ:$f::$n' --trace='AC_LTDL_SHLIBEXT:$f::$n' --trace='AC_LTDL_ENABLE_INSTALL:$f::$n' --trace='AC_LIBTOOL_FC:$f::$n' --trace='AM_PROG_INSTALL_STRIP:$f::$n' --trace='AC_WITH_LTDL:$f::$n' --trace='AC_LIBTOOL_SETUP:$f::$n' --trace='_LT_AC_TAGVAR:$f::$n' --trace='AC_LIBTOOL_PROG_LD_SHLIBS:$f::$n' --trace='_LT_AC_LANG_RC_CONFIG:$f::$n' --trace='AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH:$f::$n' --trace='_LT_COMPILER_BOILERPLATE:$f::$n' --trace='AC_DISABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_PICMODE:$f::$n' --trace='LTOPTIONS_VERSION:$f::$n' --trace='EFL_CHECK_PATH_MAX:$f::$n' --trace='AC_LTDL_PREOPEN:$f::$n' --trace='AC_LIBTOOL_LANG_CXX_CONFIG:$f::$n' --trace='AM_SET_LEADING_DOT:$f::$n' --trace='LT_SYS_MODULE_PATH:$f::$n' --trace='LTDL_CONVENIENCE:$f::$n' --trace='AM_DEP_TRACK:$f::$n' --trace='AC_PATH_TOOL_PREFIX:$f::$n' --trace='_LT_LIBOBJ:$f::$n' --trace='_LT_PREPARE_SED_QUOTE_VARS:$f::$n' --trace='AC_LIB_LTDL:$f::$n' --trace='AC_DEPLIBS_CHECK_METHOD:$f::$n' --trace='_LT_AC_LOCK:$f::$n' --trace='_LT_PROG_LTMAIN:$f::$n' --trace='LT_LANG:$f::$n' --trace='AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='PKG_NOARCH_INSTALLDIR:$f::$n' --trace='AC_LIBTOOL_LANG_F77_CONFIG:$f::$n' --trace='PKG_INSTALLDIR:$f::$n' --trace='LT_AC_PROG_SED:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_NO_RTTI:$f::$n' --trace='_AM_DEPENDENCIES:$f::$n' --trace='AC_LIBTOOL_SYS_MAX_CMD_LEN:$f::$n' --trace='AC_LIBTOOL_LANG_GCJ_CONFIG:$f::$n' --trace='_LT_AC_LANG_F77_CONFIG:$f::$n' --trace='_LT_AC_LANG_CXX:$f::$n' --trace='_LTDL_SETUP:$f::$n' --trace='LT_INIT:$f::$n' --trace='AM_AUX_DIR_EXPAND:$f::$n' --trace='_LT_PROG_ECHO_BACKSLASH:$f::$n' --trace='_LT_REQUIRED_DARWIN_CHECKS:$f::$n' --trace='LT_SYS_MODULE_EXT:$f::$n' --trace='AC_PROG_LD_RELOAD_FLAG:$f::$n' --trace='_AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='LT_LIB_DLLOAD:$f::$n' --trace='_LT_AC_TAGCONFIG:$f::$n' --trace='AC_LIBTOOL_SYS_DYNAMIC_LINKER:$f::$n' --trace='LTVERSION_VERSION:$f::$n' --trace='AM_SET_CURRENT_AUTOMAKE_VERSION:$f::$n' --trace='LT_CONFIG_LTDL_DIR:$f::$n' --trace='AM_ENABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_POSTDEP_PREDEP:$f::$n' --trace='AC_ENABLE_STATIC:$f::$n' --trace='AC_LIBTOOL_CONFIG:$f::$n' --trace='AC_LIBLTDL_INSTALLABLE:$f::$n' --trace='AM_SILENT_RULES:$f::$n' --trace='AC_PROG_LD_GNU:$f::$n' --trace='PKG_CHECK_MODULES:$f::$n' --trace='LT_PATH_NM:$f::$n' --trace='_LT_COMPILER_OPTION:$f::$n' --trace='AM_INIT_AUTOMAKE:$f::$n' --trace='_LT_AC_SYS_COMPILER:$f::$n' --trace='AC_LTDL_SYSSEARCHPATH:$f::$n' --trace='AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE:$f::$n' --trace='_LT_WITH_SYSROOT:$f::$n' --trace='LT_SUPPORTED_TAG:$f::$n' --trace='_LT_PROG_CXX:$f::$n' --trace='AC_LTDL_SYMBOL_USCORE:$f::$n' --trace='AC_LIBTOOL_WIN32_DLL:$f::$n' --trace='_LT_AC_SHELL_INIT:$f::$n' --trace='AC_LIBTOOL_LANG_RC_CONFIG:$f::$n' --trace='LT_PROG_GO:$f::$n' --trace='_LT_PATH_TOOL_PREFIX:$f::$n' --trace='AC_LIBTOOL_LANG_C_CONFIG:$f::$n' --trace='LT_AC_PROG_RC:$f::$n' --trace='AC_PROG_LD:$f::$n' --trace='_LT_CC_BASENAME:$f::$n' --trace='_LT_AC_LANG_C_CONFIG:$f::$n' --trace='AM_PROG_INSTALL_SH:$f::$n' --trace='LTDL_INIT:$f::$n' --trace='LT_CMD_MAX_LEN:$f::$n' --trace='AM_PROG_LD:$f::$n' --trace='AM_MISSING_HAS_RUN:$f::$n' --trace='AM_PROG_CC_C_O:$f::$n' --trace='_AM_IF_OPTION:$f::$n' --trace='AC_DISABLE_STATIC:$f::$n' --trace='AC_LIBTOOL_PROG_CC_C_O:$f::$n' --trace='LT_AC_PROG_EGREP:$f::$n' --trace='LT_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_PROG_LIBTOOL:$f::$n' --trace='LTDL_INSTALLABLE:$f::$n' --trace='AC_PATH_MAGIC:$f::$n' --trace='_AM_PROG_TAR:$f::$n' --trace='AC_ENABLE_FAST_INSTALL:$f::$n' configure.ac
    aclocal: error: echo failed with exit status: 139
    ==> ERROR: A failure occurred in build().
    Aborting...
    Running aclocal...
    aura >>= Building `lightmediascanner`...
    aura >>= Well, building `lightmediascanner` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: lightmediascanner 0.4.5.0-1 (Tue Aug 5 01:22:58 CDT 2014)
    ==> WARNING: Using a PKGBUILD without a package() function is deprecated.
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Downloading lightmediascanner-0.4.5.0.tar.bz2...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: packages.profusion.mobi
    ==> ERROR: Failure while downloading lightmediascanner-0.4.5.0.tar.bz2
    Aborting...
    aura >>= Building `enjoy-git`...
    aura >>= Well, building `enjoy-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: enjoy-git 0.1.0.205.aa8fec6-1 (Tue Aug 5 01:23:13 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Missing dependencies:
    -> lightmediascanner
    ==> Checking buildtime dependencies...
    ==> ERROR: Could not resolve all dependencies.
    aura >>= Building `enlightenment-git`...
    aura >>= Well, building `enlightenment-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: enlightenment-git 0.19.0.18507.1a321b8-1 (Tue Aug 5 01:23:17 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Missing dependencies:
    -> elementary-git
    ==> Checking buildtime dependencies...
    ==> ERROR: Could not resolve all dependencies.
    aura >>= Building `eperiodique`...
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): eperiodique-0.5-1
    Total Installed Size: 10.80 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [#######################################################################################] 100%
    (1/1) checking package integrity [#######################################################################################] 100%
    (1/1) loading package files [#######################################################################################] 100%
    (1/1) checking for file conflicts [#######################################################################################] 100%
    (1/1) checking available disk space [#######################################################################################] 100%
    (1/1) installing eperiodique [#######################################################################################] 100%
    aura >>= Building `ephoto-git`...
    aura >>= Well, building `ephoto-git` failed.
    aura >>= Dumping makepkg output in 3.. 2.. 1..
    ==> Making package: ephoto-git 0.1.1.475.f1df50a-1 (Tue Aug 5 01:23:42 CDT 2014)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Cloning ephoto git repo...
    Cloning into bare repository '/var/cache/pacman/pkg/ephoto-git9157/ephoto-git/ephoto'...
    ==> Validating source files with sha256sums...
    ephoto ... Skipped
    ==> Extracting sources...
    -> Creating working copy of ephoto git repo...
    Cloning into 'ephoto'...
    done.
    ==> Starting pkgver()...
    ==> Updated version: ephoto-git 0.1.1.482.9cae696-1
    ==> Starting build()...
    /usr/bin/autopoint: line 314: 18844 Done echo "AC_PREREQ([2.69])"
    18845 Segmentation fault | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1
    sh: line 1: 19725 Done echo 'm4_define([m4_require_silent_probe], [-])'
    19726 Segmentation fault | autom4te --language Autoconf-without-aclocal-m4 - /usr/share/aclocal-1.14/internal/ac-config-macro-dirs.m4 '/usr/share/aclocal/argz.m4' '/usr/share/aclocal/libtool.m4' '/usr/share/aclocal/ltdl.m4' '/usr/share/aclocal/ltoptions.m4' '/usr/share/aclocal/ltsugar.m4' '/usr/share/aclocal/ltversion.m4' '/usr/share/aclocal/lt~obsolete.m4' '/usr/share/aclocal/pkg.m4' '/usr/share/aclocal-1.14/amversion.m4' '/usr/share/aclocal-1.14/auxdir.m4' '/usr/share/aclocal-1.14/cond.m4' '/usr/share/aclocal-1.14/depend.m4' '/usr/share/aclocal-1.14/depout.m4' '/usr/share/aclocal-1.14/init.m4' '/usr/share/aclocal-1.14/install-sh.m4' '/usr/share/aclocal-1.14/lead-dot.m4' '/usr/share/aclocal-1.14/make.m4' '/usr/share/aclocal-1.14/missing.m4' '/usr/share/aclocal-1.14/mkdirp.m4' '/usr/share/aclocal-1.14/options.m4' '/usr/share/aclocal-1.14/prog-cc-c-o.m4' '/usr/share/aclocal-1.14/runlog.m4' '/usr/share/aclocal-1.14/sanity.m4' '/usr/share/aclocal-1.14/silent.m4' '/usr/share/aclocal-1.14/strip.m4' '/usr/share/aclocal-1.14/substnot.m4' '/usr/share/aclocal-1.14/tar.m4' 'm4/ac_attribute.m4' 'm4/codeset.m4' 'm4/efl_compiler_flag.m4' 'm4/gettext.m4' 'm4/glibc2.m4' 'm4/glibc21.m4' 'm4/iconv.m4' 'm4/intdiv0.m4' 'm4/intl.m4' 'm4/intlmacosx.m4' 'm4/intmax.m4' 'm4/inttypes-pri.m4' 'm4/inttypes_h.m4' 'm4/lcmessage.m4' 'm4/lib-ld.m4' 'm4/lib-link.m4' 'm4/lib-prefix.m4' 'm4/lock.m4' 'm4/longlong.m4' 'm4/nls.m4' 'm4/po.m4' 'm4/printf-posix.m4' 'm4/progtest.m4' 'm4/size_max.m4' 'm4/stdint_h.m4' 'm4/uintmax_t.m4' 'm4/visibility.m4' 'm4/wchar_t.m4' 'm4/wint_t.m4' 'm4/xsize.m4' --trace='AC_DEFUN:$f::$n::${::}%' --trace='AC_DEFUN_ONCE:$f::$n::${::}%' --trace='AU_DEFUN:$f::$n::${::}%' --trace='_AM_AUTOCONF_VERSION:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR_TRACE:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR:$f::$n::${::}%' --trace='_AM_CONFIG_MACRO_DIRS:$f::$n::${::}%' --trace='AC_LIBTOOL_PICMODE:$f::$n' --trace='AM_ICONV_LINK:$f::$n' --trace='AC_LIBTOOL_SYS_LIB_STRIP:$f::$n' --trace='LT_FUNC_DLSYM_USCORE:$f::$n' --trace='AC_LIBTOOL_CONFIG:$f::$n' --trace='_LT_AC_LANG_F77_CONFIG:$f::$n' --trace='AC_LIB_RPATH:$f::$n' --trace='LTSUGAR_VERSION:$f::$n' --trace='_LT_AC_SYS_COMPILER:$f::$n' --trace='LT_CONFIG_LTDL_DIR:$f::$n' --trace='AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH:$f::$n' --trace='AC_LIB_PREPARE_MULTILIB:$f::$n' --trace='AC_LIB_PROG_LD_GNU:$f::$n' --trace='AC_TYPE_LONG_LONG_INT:$f::$n' --trace='gt_INTL_SUBDIR_CORE:$f::$n' --trace='gl_LOCK_BODY:$f::$n' --trace='gt_PRINTF_POSIX:$f::$n' --trace='AC_LTDL_SHLIBPATH:$f::$n' --trace='LT_WITH_LTDL:$f::$n' --trace='AC_LIBTOOL_LANG_RC_CONFIG:$f::$n' --trace='_LT_PROG_FC:$f::$n' --trace='AC_PROG_NM:$f::$n' --trace='AC_LTDL_PREOPEN:$f::$n' --trace='_AC_AM_CONFIG_HEADER_HOOK:$f::$n' --trace='_LT_AC_LANG_CXX:$f::$n' --trace='LT_PROG_GCJ:$f::$n' --trace='_LT_REQUIRED_DARWIN_CHECKS:$f::$n' --trace='_AM_MANGLE_OPTION:$f::$n' --trace='AM_XGETTEXT_OPTION:$f::$n' --trace='_LT_AC_PROG_CXXCPP:$f::$n' --trace='AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE:$f::$n' --trace='AC_LIBTOOL_DLOPEN_SELF:$f::$n' --trace='AC_LIB_PROG_LD:$f::$n' --trace='AM_GNU_GETTEXT_VERSION:$f::$n' --trace='AC_LTDL_OBJDIR:$f::$n' --trace='AC_LIBTOOL_WIN32_DLL:$f::$n' --trace='AC_LIBTOOL_COMPILER_OPTION:$f::$n' --trace='AC_LIBTOOL_SETUP:$f::$n' --trace='_LT_AC_LANG_GCJ_CONFIG:$f::$n' --trace='LTDL_CONVENIENCE:$f::$n' --trace='LT_SYS_MODULE_PATH:$f::$n' --trace='LTVERSION_VERSION:$f::$n' --trace='AM_CONDITIONAL:$f::$n' --trace='AC_TYPE_UNSIGNED_LONG_LONG_INT:$f::$n' --trace='AM_DEP_TRACK:$f::$n' --trace='AM_PO_SUBDIRS:$f::$n' --trace='AM_ICONV_LINKFLAGS_BODY:$f::$n' --trace='AM_XGETTEXT_OPTION_INIT:$f::$n' --trace='AM_SUBST_NOTMAKE:$f::$n' --trace='LT_AC_PROG_EGREP:$f::$n' --trace='AC_PROG_LD_GNU:$f::$n' --trace='gl_XSIZE:$f::$n' --trace='gt_INTTYPES_PRI:$f::$n' --trace='gt_LC_MESSAGES:$f::$n' --trace='AC_LIBTOOL_PROG_LD_SHLIBS:$f::$n' --trace='_LT_PROG_CXX:$f::$n' --trace='AC_LIBLTDL_CONVENIENCE:$f::$n' --trace='AM_PROG_INSTALL_STRIP:$f::$n' --trace='LTOBSOLETE_VERSION:$f::$n' --trace='AC_LIBTOOL_CXX:$f::$n' --trace='AM_PATH_PROG_WITH_TEST:$f::$n' --trace='AC_PATH_MAGIC:$f::$n' --trace='_LT_LIBOBJ:$f::$n' --trace='AC_PROG_LD:$f::$n' --trace='AM_SET_CURRENT_AUTOMAKE_VERSION:$f::$n' --trace='AM_SET_DEPDIR:$f::$n' --trace='EFL_COMPILER_FLAG:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_PIC:$f::$n' --trace='AC_LIB_LINKFLAGS:$f::$n' --trace='_LT_AC_LANG_F77:$f::$n' --trace='AC_DISABLE_STATIC:$f::$n' --trace='LT_AC_PROG_SED:$f::$n' --trace='AM_AUX_DIR_EXPAND:$f::$n' --trace='_LT_LINKER_BOILERPLATE:$f::$n' --trace='gt_CHECK_DECL:$f::$n' --trace='AM_GNU_GETTEXT_NEED:$f::$n' --trace='AC_LIBTOOL_PROG_CC_C_O:$f::$n' --trace='AC_DISABLE_SHARED:$f::$n' --trace='_LT_AC_LOCK:$f::$n' --trace='AC_LIBTOOL_SYS_HARD_LINK_LOCKS:$f::$n' --trace='AC_LIBTOOL_LANG_F77_CONFIG:$f::$n' --trace='AC_LIBTOOL_SYS_MAX_CMD_LEN:$f::$n' --trace='AC_DISABLE_FAST_INSTALL:$f::$n' --trace='_AM_SET_OPTION:$f::$n' --trace='gl_FUNC_ARGZ:$f::$n' --trace='AC_LTDL_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LIB_LINKFLAGS_BODY:$f::$n' --trace='AC_LIB_LTDL:$f::$n' --trace='_AM_DEPENDENCIES:$f::$n' --trace='AM_PROG_NM:$f::$n' --trace='AC_LTDL_SYSSEARCHPATH:$f::$n' --trace='gl_AC_HEADER_STDINT_H:$f::$n' --trace='_LT_CC_BASENAME:$f::$n' --trace='AC_LIB_PREFIX:$f::$n' --trace='_LT_PROG_F77:$f::$n' --trace='_LT_AC_TRY_DLOPEN_SELF:$f::$n' --trace='AM_INIT_AUTOMAKE:$f::$n' --trace='AC_DEPLIBS_CHECK_METHOD:$f::$n' --trace='AC_ENABLE_SHARED:$f::$n' --trace='_AC_TYPE_LONG_LONG_SNIPPET:$f::$n' --trace='AC_LIBTOOL_SYS_OLD_ARCHIVE:$f::$n' --trace='_LT_AC_LANG_RC_CONFIG:$f::$n' --trace='AM_SILENT_RULES:$f::$n' --trace='gl_PREREQ_ARGZ:$f::$n' --trace='LT_OUTPUT:$f::$n' --trace='AC_LIBTOOL_OBJDIR:$f::$n' --trace='LT_PATH_LD:$f::$n' --trace='LT_INIT:$f::$n' --trace='gl_AC_HEADER_INTTYPES_H:$f::$n' --trace='LT_SYS_SYMBOL_USCORE:$f::$n' --trace='_LT_AC_TAGCONFIG:$f::$n' --trace='PKG_CHECK_VAR:$f::$n' --trace='AC_PROG_LD_RELOAD_FLAG:$f::$n' --trace='AC_LIBTOOL_LINKER_OPTION:$f::$n' --trace='_LT_WITH_SYSROOT:$f::$n' --trace='_AM_SET_OPTIONS:$f::$n' --trace='AM_PROG_MKDIR_P:$f::$n' --trace='AC_LTDL_ENABLE_INSTALL:$f::$n' --trace='AC_LIB_LINKFLAGS_FROM_LIBS:$f::$n' --trace='AM_ENABLE_STATIC:$f::$n' --trace='AM_PROG_INSTALL_SH:$f::$n' --trace='gt_TYPE_WINT_T:$f::$n' --trace='_AM_PROG_CC_C_O:$f::$n' --trace='gt_INTDIV0:$f::$n' --trace='AC_LTDL_DLSYM_USCORE:$f::$n' --trace='AC_LTDL_SHLIBEXT:$f::$n' --trace='AC_PROG_EGREP:$f::$n' --trace='_LT_AC_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_NO_RTTI:$f::$n' --trace='AM_INTL_SUBDIR:$f::$n' --trace='AC_LIBTOOL_LANG_GCJ_CONFIG:$f::$n' --trace='AC_LIB_WITH_FINAL_PREFIX:$f::$n' --trace='gl_LOCK_EARLY:$f::$n' --trace='AC_LIBTOOL_POSTDEP_PREDEP:$f::$n' --trace='LT_SYS_MODULE_EXT:$f::$n' --trace='gt_TYPE_WCHAR_T:$f::$n' --trace='AC_LIBTOOL_FC:$f::$n' --trace='LT_PROG_RC:$f::$n' --trace='LTDL_INSTALLABLE:$f::$n' --trace='AC_WITH_LTDL:$f::$n' --trace='PKG_INSTALLDIR:$f::$n' --trace='_LTDL_SETUP:$f::$n' --trace='AM_LANGINFO_CODESET:$f::$n' --trace='_AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='AM_PROG_LD:$f::$n' --trace='AC_LIBTOOL_LANG_C_CONFIG:$f::$n' --trace='AC_COMPUTE_INT:$f::$n' --trace='AC_ENABLE_FAST_INSTALL:$f::$n' --trace='LT_SUPPORTED_TAG:$f::$n' --trace='AC_LIB_PREPARE_PREFIX:$f::$n' --trace='AC_:$f::$n' --trace='LT_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LTDL_SYMBOL_USCORE:$f::$n' --trace='gt_GLIBC2:$f::$n' --trace='LT_SYS_DLOPEN_SELF:$f::$n' --trace='PKG_PROG_PKG_CONFIG:$f::$n' --trace='LTOPTIONS_VERSION:$f::$n' --trace='LT_LIB_DLLOAD:$f::$n' --trace='AM_PROG_CC_C_O:$f::$n' --trace='_LT_AC_PROG_ECHO_BACKSLASH:$f::$n' --trace='LT_AC_PROG_GCJ:$f::$n' --trace='_LT_COMPILER_BOILERPLATE:$f::$n' --trace='_LT_PATH_TOOL_PREFIX:$f::$n' --trace='AM_ENABLE_SHARED:$f::$n' --trace='AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='LTDL_INIT:$f::$n' --trace='AC_C___ATTRIBUTE__:$f::$n' --trace='PKG_CHECK_MODULES:$f::$n' --trace='_LT_AC_TAGVAR:$f::$n' --trace='_LT_LINKER_OPTION:$f::$n' --trace='EFL_LINKER_FLAG:$f::$n' --trace='AM_AUTOMAKE_VERSION:$f::$n' --trace='AC_LIBTOOL_SYS_DYNAMIC_LINKER:$f::$n' --trace='gl_LOCK_EARLY_BODY:$f::$n' --trace='LT_PATH_NM:$f::$n' --trace='AM_SANITY_CHECK:$f::$n' --trace='AM_MISSING_HAS_RUN:$f::$n' --trace='AC_LIB_APPENDTOVAR:$f::$n' --trace='_AM_IF_OPTION:$f::$n' --trace='gl_AC_TYPE_UINTMAX_T:$f::$n' --trace='_LT_AC_SYS_LIBPATH_AIX:$f::$n' --trace='_LT_PROG_ECHO_BACKSLASH:$f::$n' --trace='AC_LIB_HAVE_LINKFLAGS:$f::$n' --trace='AC_LIBTOOL_RC:$f::$n' --trace='AC_ENABLE_STATIC:$f::$n' --trace='_LT_AC_CHECK_DLFCN:$f::$n' --trace='AM_RUN_LOG:$f::$n' --trace='_LT_AC_LANG_GCJ:$f::$n' --trace='gt_INTL_MACOSX:$f::$n' --trace='PKG_CHECK_EXISTS:$f::$n' --trace='LT_LANG:$f::$n' --trace='_LT_AC_FILE_LTDLL_C:$f::$n' --trace='gt_TYPE_INTMAX_T:$f::$n' --trace='AC_LIBTOOL_DLOPEN:$f::$n' --trace='_AC_PROG_LIBTOOL:$f::$n' --trace='gl_SIZE_MAX:$f::$n' --trace='AM_MAKE_INCLUDE:$f::$n' --trace='_PKG_SHORT_ERRORS_SUPPORTED:$f::$n' --trace='_LT_PROG_LTMAIN:$f::$n' --trace='AM_ICONV:$f::$n' --trace='AM_GNU_GETTEXT:$f::$n' --trace='gl_VISIBILITY:$f::$n' --trace='AM_NLS:$f::$n' --trace='_LT_COMPILER_OPTION:$f::$n' --trace='LT_AC_PROG_RC:$f::$n' --trace='gl_LOCK:$f::$n' --trace='AC_LTDL_DLLIB:$f::$n' --trace='LT_CMD_MAX_LEN:$f::$n' --trace='AM_DISABLE_STATIC:$f::$n' --trace='AC_LIBTOOL_GCJ:$f::$n' --trace='AC_LIB_ARG_WITH:$f::$n' --trace='LT_PROG_GO:$f::$n' --trace='AM_SET_LEADING_DOT:$f::$n' --trace='_LT_AC_SHELL_INIT:$f::$n' --trace='_AM_PROG_TAR:$f::$n' --trace='_AM_SUBST_NOTMAKE:$f::$n' --trace='LT_LIB_M:$f::$n' --trace='gl_PREREQ_LOCK:$f::$n' --trace='AM_MISSING_PROG:$f::$n' --trace='AC_PROG_LIBTOOL:$f::$n' --trace='AM_DISABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_F77:$f::$n' --trace='AC_LIBTOOL_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBLTDL_INSTALLABLE:$f::$n' --trace='LT_SYS_DLSEARCH_PATH:$f::$n' --trace='_LT_PREPARE_SED_QUOTE_VARS:$f::$n' --trace='gl_GLIBC21:$f::$n' --trace='AM_PROG_LIBTOOL:$f::$n' --trace='PKG_NOARCH_INSTALLDIR:$f::$n' --trace='_LT_AC_LANG_C_CONFIG:$f::$n' --trace='AC_CHECK_LIBM:$f::$n' --trace='AM_POSTPROCESS_PO_MAKEFILE:$f::$n' --trace='AC_PATH_TOOL_PREFIX:$f::$n' configure.ac
    aclocal: error: echo failed with exit status: 139
    ==> ERROR: A failure occurred in build().
    Aborting...
    Last edited by sirus20x6 (2014-08-06 11:19:27)

    sirus@stareater ~/mesa :( $ /usr/bin/autom4te
    Segmentation fault
    sirus@stareater ~/mesa :( $ strace -e trace=file /usr/bin/autom4te
    execve("/usr/bin/autom4te", ["/usr/bin/autom4te"], [/* 23 vars */]) = 0
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/tls/x86_64/libperl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/CORE/tls/x86_64", 0x7fff168d8110) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/tls/libperl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/CORE/tls", 0x7fff168d8110) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/x86_64/libperl.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/CORE/x86_64", 0x7fff168d8110) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/core_perl/CORE/libperl.so", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/perl5/core_perl/CORE/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
    open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
    open("/dev/urandom", O_RDONLY) = 3
    readlink("/proc/self/exe", "/usr/bin/perl", 4095) = 13
    open("/usr/bin/autom4te", O_RDONLY) = 3
    stat("/usr/share/autoconf/Autom4te/C4che.pmc", 0x7fff168d7fe0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Autom4te/C4che.pm", {st_mode=S_IFREG|0644, st_size=4913, ...}) = 0
    open("/usr/share/autoconf/Autom4te/C4che.pm", O_RDONLY) = 4
    stat("/usr/share/autoconf/Data/Dumper.pmc", 0x7fff168d7970) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Data/Dumper.pm", 0x7fff168d78a0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Data/Dumper.pmc", 0x7fff168d7970) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Data/Dumper.pm", {st_mode=S_IFREG|0444, st_size=43263, ...}) = 0
    open("/usr/lib/perl5/site_perl/Data/Dumper.pm", O_RDONLY) = 5
    stat("/usr/share/autoconf/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Carp.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Carp.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Carp.pm", {st_mode=S_IFREG|0444, st_size=28465, ...}) = 0
    open("/usr/share/perl5/core_perl/Carp.pm", O_RDONLY) = 6
    stat("/usr/share/autoconf/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/strict.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/strict.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/strict.pm", {st_mode=S_IFREG|0444, st_size=3925, ...}) = 0
    open("/usr/share/perl5/core_perl/strict.pm", O_RDONLY) = 7
    stat("/usr/share/autoconf/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/warnings.pm", 0x7fff168d6bc0) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/warnings.pmc", 0x7fff168d6c90) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/warnings.pm", {st_mode=S_IFREG|0444, st_size=39427, ...}) = 0
    open("/usr/share/perl5/core_perl/warnings.pm", O_RDONLY) = 7
    stat("/usr/share/autoconf/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/Exporter.pm", 0x7fff168d7230) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Exporter.pmc", 0x7fff168d7300) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/Exporter.pm", {st_mode=S_IFREG|0444, st_size=18744, ...}) = 0
    open("/usr/share/perl5/core_perl/Exporter.pm", O_RDONLY) = 6
    stat("/usr/share/autoconf/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/autoconf/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/site_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/vendor_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/vendor_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/core_perl/XSLoader.pm", 0x7fff168d7280) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/XSLoader.pmc", 0x7fff168d7350) = -1 ENOENT (No such file or directory)
    stat("/usr/share/perl5/core_perl/XSLoader.pm", {st_mode=S_IFREG|0444, st_size=10234, ...}) = 0
    open("/usr/share/perl5/core_perl/XSLoader.pm", O_RDONLY) = 6
    stat("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.bs", 0x1d13238) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.so", {st_mode=S_IFREG|0555, st_size=40348, ...}) = 0
    stat("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.bs", 0x1d13238) = -1 ENOENT (No such file or directory)
    open("/usr/lib/perl5/site_perl/auto/Data/Dumper/Dumper.so", O_RDONLY|O_CLOEXEC) = 6
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x5} ---
    +++ killed by SIGSEGV +++
    Segmentation fault
    sirus@stareater ~/mesa :( $
    Last edited by sirus20x6 (2014-08-06 08:59:40)

  • OCCI: ORA-21500 [17099] seg faults on 10.2.0.4.1 client

    Hi,
    I've been getting this seg fault using OCCI, my environment:
    Oracle client 10.2.0.4.1 x86_64 (jul 2009) on rhel5.4
    Oracle database 9.2.0.8 x86_64 on rhel4.8
    I've written a g++ multi thread app that is making use of Connection Pooling, within 5 minutes of my app starting it seg faults with:
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    Errors in file :
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    ----- Call Stack Trace -----
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    Errors in file :
    ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], []
    ORA-21500: internal error code, arguments: [17099], [], [], [], [], [], [], []
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    calling call entry argument values in hex
    location type point (? means dubious value)
    Cannot seek to string table section header in /proc/8712/exe.
    Cannot seek to string table section header in /proc/8712/exe.
    Segmentation fault
    its compiled against gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
    I've tried the following:
    Installing the occi download from http://www.oracle.com/technology/tech/oci/occi/occidownloads.html and compiling with gcc-3.4.6
    I'm using the following commands to compile & link:
    g++ -DMOXA_DEBUG -I/database/u00/app/oracle/product/10.2.0/db_1/rdbms/demo -I/database/u00/app/oracle/product/10.2.0/db_1/rdbms/public -I/database/u00/app/oracle/product/10.2.0/db_1/plsql/public -I/database/u00/app/oracle/product/10.2.0/db_1/network/public -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"src/DB_Table.d" -MT"src/DB_Table.d" -o"src/DB_Table.o" "../src/DB_Table.cpp"
    g++ -L/database/u00/app/oracle/product/10.2.0/db_1/rdbms/lib -L/database/u00/app/oracle/product/10.2.0/db_1/lib -shared -o"libmoxa.so" ./src/DB_Table.o ./src/Dialup.o ./src/Modem.o ./src/Rtu.o ./src/Rtu_Type.o ./src/Session.o ./src/Session_Log.o ./src/Soe_Point.o ./src/Soe_Point_Event.o ./src/Thread.o ./src/Utils_Time.o ./src/db.o -locci10_343 -lclntsh -ldl -lm
    I've tried to do a -locci10 instead of the -locci10_343, still nothing..
    Intesting to note, the older version of the application on the same environment doesn't have this problem..
    I do know OCCI is a bit tempremental, especially when creating threads, as i've had to put a 100ms delay otherwise i get other errors
    the back trace looks like, it allways core dumps when releasing the connection..
    #0 0x00002b01b9fd8cae in slrac () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    (gdb) bt
    #0 0x00002b01b9fd8cae in slrac () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #1 0x00002b01b9fd8b3d in kgdsaaddr () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #2 0x00002b01b9fd83b8 in kgdsdst () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #3 0x00002b01b9c7f0b0 in skgudmp () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #4 0x00002b01b9fb27ac in kgeriv () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #5 0x00002b01b9fb2fab in kgesiv () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #6 0x00002b01b9fb2ace in kgesic0 () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #7 0x00002b01b9ace52d in kpuhhfre () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #8 0x00002b01b9ad9a3a in kpuhmcfre () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #9 0x00002b01b9a6ca5a in kputac () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #10 0x00002b01b9b8265a in kpuspsessionrelease () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #11 0x00002b01b9be1d6f in OCISessionRelease () from /database/u00/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
    #12 0x00002b01b95452f1 in oracle::occi::ConnectionImpl::do_destroy () from /home/fep/moxa_1.3/libmoxa/Debug/libmoxa.so
    #13 0x00002b01b954d78c in oracle::occi::ConnectionPoolImpl::terminateConnection () from /home/fep/moxa_1.3/libmoxa/Debug/libmoxa.so
    #14 0x00002b01b953c47c in DB::release_connection (conn=0xed36498) at ../src/db.cpp:126
    I'm downloading the 11.2g client in the hope it works there without a hitch..
    Any help/suggestions whould be much appreciated..
    Cheers
    James

    Shiyer,
    libmoxa.so is the library I have created which is performing the oracle queries..
    The pool is created from the main thread by:
    Environment _env = Environment::createEnvironment (Environment::DEFAULT);
    ConnectionPool connectionpool = _env->createConnectionPool(
    username, passwd, tnsname, 1, 10, 1);
    And then each query is used run inside a connect initiated with:
    Connection *conn = connectionpool->createConnection(_username.c_str(), passwd.cstr());
    Statement *stmt = conn->createStatement("select 1 from dual;");
    ResultSet *rset = stmt->executeQuery();
    while( rset->next() == rset->DATA_AVAILABLE ) {
    std::cout << rset->getInt(1) << std::endl;
    stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
    and connection released with:
    connectionpool->terminateConnection(conn);
    Hope this helps!
    cheers
    James

  • How can a JVM terminate with an exit code of 141 and no other diagnostics?

    Hello,
    We are encountering a JVM process that dies with little explanation other than an exit code of 141. No hotspot error file (hs_err_*) or crash dump.  To date, the process runs anywhere from 30 minutes to 8 days before the problem occurs. The last application log entry is always the report of a lost SSL connection, the result of an thrown SSLException.  (The exception itself is unavailable at this time – the JVM dies before it is logged -- working on that.)
    How can a JVM produce an exit code of 141, and nothing else?  Can anyone suggest ideas for capturing additional diagnostic information?  Any help would be greatly appreciated!  Environment and efforts to date are described below.
    Thanks,
    -KK
    Host machine: 8x Xeon server with 256GB memory, RHEL 6 (or RHEL 5.5) 64-bit
    Java: Oracle Java SE 7u21 (or 6u26)
    java version "1.7.0_21"
    Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
    JVM arguments:
    -XX:+UseConcMarkSweepGC
    -XX:+CMSIncrementalMode
    -XX:+CMSClassUnloadingEnabled
    -XX:MaxPermSize=256m
    -XX:NewSize=64m
    -Xms128m
    -Xmx1037959168
    -Djava.awt.headless=true
    -Djava.security.egd=file:///dev/./urandom
    Diagnostics attempted to date:
    LD_PRELOAD=libjsig.so.   A modified version of libjsig.so was created to report all signal handler registrations and to report SIGPIPE signals received.  (Exit code 141 could be interpreted as 128+SIGPIPE(13).)  No JNI libraries are registering any signal handlers, and no SIGPIPE signal is reported by the library for the duration of the JVM run.  Calls to ::exit() are also intercepted and reported.  No call to exit() is reported.
    Inspect /var/log/messages for any indication that the OS killed the process, e.g. via the Out Of Memory (OOM) Killer.  Nothing found.
    Set ‘ulimit –c unlimited’, in case the default limit of 0 (zero) was preventing a core file from being written.  Still no core dump.
    ‘top’ reports the VIRT size of the process can grow to 20GB or more in a matter of hours, which is unusual compared to other JVM processes.  The RES (resident set size) does not grow beyond about 375MB, however, which is an considered normal.
    This JVM process creates many short-lived Thread objects by way of a thread pool, averaging 1 thread every 2 seconds, and these objects end up referenced only by a Weak reference.   The CMS collector seems lazy about collecting these, and upwards of 2000 Thread objects have been seen (in heap dumps) held only by Weak references.  (The Java heap averages about 100MB, so the collector is not under any pressure.) However, a forced collection (via jconsole) cleans out the Thread objects as expected.  Any relationship of this to the VIRT size or the JVM disappearance, however, cannot be established.
    The process also uses NIO and direct buffers, and maintains a DirectByteBuffer cache. There is some DirectByteBuffer churn. MBeans report stats like:
    Direct buffer pool: allocated=669 (20,824,064 bytes), released=665 (20,725,760), active=4 (98,304)  [note: equals 2x 32K buffers and 2x 16K buffers]
    java.nio.BufferPool > direct: Count=18, MemoryUsed=1343568, TotalCapacity=1343568
    These numbers appear normal and also do not seem to correlate with the VIRT size or the JVM disappearance.

    True, but the JNI call would still be reported by the LD_PRELOAD intercept, unless the native code could somehow circumvent that.  Using a test similar to GoodbyeWorld (shown below), I verified that the JNI call to exit() is reported.  In the failure case, no call to exit() is reported.
    Can an OS (or a manual) 'kill' specify an exit code?  Where could "141" be coming from?
    Thanks,
    -K2
    === GoodbyeWorldFromJNI.java ===
    package com.attachmate.test;
    public class GoodbyeWorldFromJNI
        public static final String LIBRARY_NAME = "goodbye";
        static {
            try {
                System.loadLibrary(LIBRARY_NAME);
            } catch (UnsatisfiedLinkError error) {
                System.err.println("Failed to load " + System.mapLibraryName(LIBRARY_NAME));
        private static native void callExit(int exitCode);
        public static void main(String[] args) {
            callExit(141);
    === goodbye.c ===
    #include <stdlib.h>
    #include "goodbye.h"  // javah generated header file
    JNIEXPORT void JNICALL Java_com_attachmate_test_GoodbyeWorldFromJNI_callExit
      (JNIEnv *env, jclass theClass, jint exitCode)
        exit(exitCode);
    === script.sh ===
    #!/bin/bash -v
    uname -a
    export PATH=/opt/jre1.7.0_25/bin:$PATH
    java -version
    pwd
    LD_PRELOAD=./lib/linux-amd64/libjsigdebug.so java -classpath classes -Djava.library.path=lib/linux-amd64 com.attachmate.test.GoodbyeWorldFromJNI > stdout.txt
    echo $?
    tail stdout.txt
    === script output ===
    [keithk@keithk-RHEL5-dev goodbyeJNI]$ ./script.sh
    #!/bin/bash -v
    uname -a
    Linux keithk-RHEL5-dev 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    export PATH=/opt/jre1.7.0_25/bin:$PATH
    java -version
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
    pwd
    /tmp/goodbyeJNI
    LD_PRELOAD=./lib/linux-amd64/libjsigdebug.so java -classpath classes -Djava.library.path=lib/linux-amd64 com.attachmate.test.GoodbyeWorldFromJNI > stdout.txt
    echo $?
    141
    tail stdout.txt
    JSIG: exit(141) called
    JSIG: Call stack has 4 frames:
    JSIG: ./lib/linux-amd64/libjsigdebug.so [0x2b07dc1bdc2f]
    JSIG: ./lib/linux-amd64/libjsigdebug.so(exit+0x29) [0x2b07dc1bea41]
    JSIG: /tmp/goodbyeJNI/lib/linux-amd64/libgoodbye.so [0x2aaab3e82547]
    JSIG: [0x2aaaab366d8e]       
    === ===

  • JVM core dump - JNI code

    I am using JNI in my Java application , 12 hours after running my test case get a JVM crash -
    1) These are the parameters with which i invoke my Java program
    java -d64 -Xcheck:jni -Xmx2560M -Xms2560M -Xss256k RunQueries
    2) The Heap output at the time of the core shows "from space" as 100% used , does this signify anything?
    Heap at VM Abort:
    Heap
    def new generation total 848128K, used 672342K [0xfffffffe93c00000, 0xfffffffec9150000, 0xfffffffec9150000)
    eden space 822464K, 78% used [0xfffffffe93c00000, 0xfffffffebb385b90, 0xfffffffec5f30000)
    from space 25664K, 100% used [0xfffffffec7840000, 0xfffffffec9150000, 0xfffffffec9150000)
    to space 25664K, 0% used [0xfffffffec5f30000, 0xfffffffec5f30000, 0xfffffffec7840000)
    tenured generation total 1747648K, used 1350866K [0xfffffffec9150000, 0xffffffff33c00000, 0xffffffff33c00000)
    the space 1747648K, 77% used [0xfffffffec9150000, 0xffffffff1b884830, 0xffffffff1b884a00, 0xffffffff33c00000)
    compacting perm gen total 16384K, used 13550K [0xffffffff33c00000, 0xffffffff34c00000, 0xffffffff37c00000)
    the space 16384K, 82% used [0xffffffff33c00000, 0xffffffff3493b860, 0xffffffff3493ba00, 0xffffffff34c00000)
    Local Time = Mon Feb 12 21:49:40 2007
    Elapsed Time = 61687
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.4.2_07-b05 mixed mode)
    3) A dbx on the Java core shows the location in the JNI code where the core dump occured.
    dbx `which java` core
    For information about new features see `help changes'
    To remove this message, put `dbxenv suppress_startup_message 7.3' in your .dbxrc
    Reading java
    dbx: internal warning: writable memory segment 0x7cb00000[16384] of size 0 in core
    core file header read successfully
    Reading ld.so.1
    Reading libthread.so.1
    Reading libdl.so.1
    Reading libc.so.1
    Reading libc_psr.so.1
    Reading libjvm.so
    Reading libCrun.so.1
    Reading libsocket.so.1
    Reading libnsl.so.1
    Reading libm.so.1
    WARNING!!
    A loadobject was found with an unexpected checksum value.
    See `help core mismatch' for details, and run `proc -map'
    to see what checksum values were expected and found.
    dbx: warning: Some symbolic information might be incorrect.
    t@1 (l@1) terminated by signal ABRT (Abort)
    0xffffffff7eea822c: lwpkill+0x0008: bcc,a,pt %icc,_lwp_kill+0x18 ! 0xffffffff7eea823c
    Current function is Java_getLoid (optimized)
    7239 e = cod_to_long (*(o_object*) data, &loid_as_long);
    (dbx) where
    current thread: t@1
    [1] lwpkill(0x0, 0x6, 0xffffffffffffffe6, 0x0, 0x0, 0x0), at 0xffffffff7eea822c
    [2] raise(0x6, 0x0, 0xffffffff7fffad30, 0x7fbffeff00003ff6, 0x0, 0x2), at 0xffffffff7ee58a8c
    [3] abort(0x0, 0xffffffff7fffae10, 0x0, 0xfffffffffffffff8, 0x0, 0xffffffff7fffae39), at 0xffffffff7ee3e3b8
    [4] os::abort(0x1, 0xffffffff7e9d295c, 0xffffffff7fffaf10, 0xffffffff7e9d24a9, 0x4b007c, 0xffffffff7eb78878), at 0xffffffff7e90951c
    [5] os::handle_unexpected_exception(0x10011e600, 0xa, 0xfffffffe90345704, 0xffffffff7fffbeb0, 0xffffffff7e69c6f8, 0x0), at 0xffffffff7e907e08
    [6] JVM_handle_solaris_signal(0xffffffff7fffbeb0, 0xffffffff7e9d443e, 0xffffffff7fffbbd0, 0x1, 0x0, 0x1), at 0xffffffff7e69c800
    [7] __sighndlr(0xa, 0xffffffff7fffbeb0, 0xffffffff7fffbbd0, 0xffffffff7e69cb9c, 0x0, 0x0), at 0xffffffff7f2188d8
    ---- called from signal handler with signal 10 (SIGBUS) ------
    =>[8] Java_getLoid(vjEnv = ???, cls = ???, handle = ???, attr = ???) (optimized), at 0xfffffffe90345704 (line ~7239) in "j.c"
    I have added checks for this function call to ensure that no invalid pointer is being sent to it which could cause a segmentation violation.
    Please could someone give me some pointers on how to solve this problem, the error occurs at this point only 12 hours after running the test case..

    First step is to add the option -Xcheck:jni to your java command line. It will flag common JNI errors.
    If that doesn't identify the problem, then compile your jni code with debugging symbols (-g) and add the following option to the java command line when you run your test: -XX:+ShowMessageBoxOnError. When you hit the problem again, the VM will keep the process alive instead of calling abort(). Then you can use dbx to attach to the live process and should be able to get a better idea of what went wrong.

  • Pacman seg fault(Solved but with comments on pacman-db-upgrade)

    Performed an install from FTP and booted into root login.
    Performed pacman -Syu  and received report system up to date.
    Performed downloads via pacman of twelve packages including xorg and xfce4.
    Performed download of abs package. 
    Downloaded abs repos.
    Modified abs extra vlc package and performed pacman -U install of modified package.
    Pacman working well at this point.
    Rebooted.
    After reaching xfce4 Desktop, attemptd to install firefox.
    Pacman -S firefox produced..... /usr/bin/pacman/ report(forget the exact error)
    Subsequent trials with ...pacman -U .... produces seg fault.
    Cannot use pacman.  All other programs seem to perform correctly.  Perhaps have lost DNS.
    Cannot perform ...pacman -Syu --debug.....segfaults.
    Last edited by lilsirecho (2011-07-19 18:19:49)

    Solved the difficulty but have no idea what can be done to prevent it from occuring for another user.
    It seems that the db did not get upgraded when the ...pacman-db-upgrade ...command was executed.  There was no statement for ..."pre 3.5 db" upgrade....while executing the command.
    After re-install, the upgrade command performed correctly and pacman now performs correctly after reboots.
    The question comes up as to what to do if the upgrade command does not work correctly and whether some indicator of correct response should appear in the beginners guide.  Additionally, what can be done in the event that the upgrade command fails to meet the correct response.
    These questions will in time be resolved by a new .iso but the present exposure is amazing in its consequences!
    Perhaps the upgrade command is also a function of properly synced mirrors but the command requesting the upgrade was ...pacman -Syy... the mirror sync function!
    What do we have...catch22?
    The resultant segfaults make sense if the pacman sync db is not upgraded.
    How is a user to know the upgrade failed?  What to do about such a condition?
    Marking this thread as solved ...with comments...

  • Maven - ERROR: Maven JVM terminated unexpectedly with exit code 0

    Hi All,
    I have written pom.xml for auto deployment process between hudson and deployment servers.
    The script which i return its working perfectly i can see the application in web logic server. The application has been deployed in the web logic server. No issues that.
    All the remaining task is also very well working in the servers but the build is failing as **failed** by saying the below error in hudson
    [ServerConnectionImpl.close():332] : Closing DM connection
    [ServerConnectionImpl.close():352] : Unregistered all listeners
    [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
    [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
    [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
    **ERROR: Maven JVM terminated unexpectedly with exit code 0**
    Sending e-mails to: [email protected]
    Finished: FAILURE
    I dont why like this happening in the maven.
    Here is my maven opts set in Hudson server.
    Maven_OPTS : -Xms256m -Xmx1024m -XX:MaxPermSize=512m
    kindly help me to resolve this issue. Thanks in advance.
    Regards,
    Rocky.

    Hi Sir,
    Please try the following items:
    1. if ther is anti-virus installed , please uninstall it temporarily
    2. run  " sfc /scannow "
    3. keep windows up-to-date
    4. if you updated some hardware driver please roll it back
    5. if the issue persists , please use windows installation media to perform inplace-upgrade for the system
    Also please refer to reinstall C++ runtime within the similar thread:
    https://social.technet.microsoft.com/Forums/windows/en-US/bf69eeff-24c4-499f-b280-b6a3098f4f9f/problem-with-msvcrtdll-version-70760117744?forum=w7itprogeneral
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Distinct JVMs terminate simultaneously with error code 143

    I am running 2 distinct java processes (started in 2 separate JVMs) on a win2k server using JRE 1.3.1_07. Both of these processe spend the majority of their time sleeping, but wake up every 10 minutes to do some work. The processes run for 23 hours and 50 minutes, then shut down and are restarted approximately 30 minutes later.
    In each of these processes, I have a catch throwable in main intended to provide a stack trace in the event of a catastrophic error.
    Occasionally (without any pattern that I can discern), these two processes suddenly die at exactly the same time. Neither provides a stack trace. The only thing I have to go on is that both JVMs exit with a return code of 143. The windows return code of 143 ("The system cannot join or substitute a drive to or for a directory on the same drive") makes absolutely no sense in the context of what these two processes do.
    Sometimes these processes run the entire 23 hours and 50 minutes without a problem. Sometimes the problem occurs within the first 20 minutes. Sometimes it occurs after 20 hours. There is no pattern that I can find relating to when this occurs.
    When I look at system monitoring on the box, there are no memory issues or overcommits of any kind occurring at the time the processes died.
    Once, I had a third java process running (this process only runs once per day and lasts for about 5 minutes) and all three processes suddenly died with an error code of 143.
    I have run these two processes on different boxes with the same intermittent bahavior.
    Any help?

    Are they accessing a network drive or the internet ?
    Maybe the connection times out, or the network server shuts down every night to do a backup.
    "Subst" is an old DOS program which mapped a directory to a virtual drive. It's usually used when you log into a network, to map shared directories to the same virtual drive eg X:, for everyone.
    Although program return values aren't very reliable.
    Error 143 could be a red herring from from the real problem.
    regards,
    Owen

  • Need to use default package for JNI code?

    Hi,
    I don't have much experience with JNI code, so excuse me if I make a silly mistake.
    I have a set of DLLs to interface with Microsoft native speech code ("Microsoft Sam") -- a GPL library called Quadmore. Quadmore has some sample Java code to work with the libraries, all of which they put in the default package (no package). If I move their code to a named package, it breaks. The Java code is able to load th libraries, but can't find any of the methods.
    Looking at the source for their DLLs (though I don't speak C++), the method names are things like
    JNIEXPORT jboolean JNICALL Java_QuadmoreTTS_SpeakDarling(JNIEnv *env,jobject obj,jstring strInput)As far as I understand, this implies that the QuadmoreTTS.class that calls the code must be in the default package, as otherwise the method name needs to be prepended with a package name.
    If that's so, then there's no way I can use the code as-is, right? Naturally, the rest of my program is in named packages, and I can't import any class that is in the default package, right? I've tried placing all their code in a jar and adding the jar to my classpath, but I still can't import any of their classes as they are in the default package.
    Is the only solution to re-compile all their C/C++ code to let it use packages? Am I being dumb and missing something? I'm pretty sure other people have used Quadmore before, so I can't believe that they've never had this problem before.
    Any suggestions greatly appreciated!
    Sam

    C/C++ functions in JNI must conform to the prototypes produced by running the javah compiler against the class file with native methods in it. So if you move the class to another package, the prototypes change. If you doun't change the compiled C coudes to suit, you will get undefined method errors when you load the dll as the JVM won't be able to match the native methods to the methods in the dll (it will call WinLoadLibrary() and WinLoadProcAddress() or somesuch under Windows).

  • FreeRADIUS rlm_krb5 seg fault

    I'm having a few problems setting up freeRadius with a kerberos backend on arch and would really appreciate a little help.
    Kernal: Linux 3.11.6-1-ARCH i686
    freeradius 3.0.0-1
    All the configuration changes I have made to the default configs are listed below:
    /etc/raddb/users
    Added the following line at the top of the file:
    DEFAULT Auth-Type = Kerberos
    /etc/raddb/sites-enabled/default and /etc/raddb/sites-enabled/inner-tunnel
    Added the following in the Authenticate section directly after the pap entry
    Auth-Type Kerberos {
    krb5
    I have also copied the file /etc/raddb/mods-available/krb5 to /etc/raddb/mods-enabled/krb5 and edited the entries to point to the keytab and principle im using for radius. The keytab contains two entries one for radius/hostname.domain and one for host/hostname.domain.
    I have verified the keytab is ok by using it with kinit to get a valid ticket for both principles. Additionally im sure my kerberos setup is ok as it works fine with ldap, nslcd and ssh.
    The problem is when I run radiusd -X and then attempt a radtest I get the following:
    (0) files : users: Matched entry DEFAULT at line 1
    (0) [files] = ok
    (0) [expiration] = noop
    (0) [logintime] = noop
    (0) WARNING: pap: No “known good” password found for the user. Not setting Auth-Type.
    (0) WARNING: pap: Authentication will fail unless a “known good” password is available.
    (0) [pap] = noop
    (0) } # authorize = ok
    (0) Found Auth-Type = Kerberos
    (0) # Executing group from file /etc/raddb/sites-enabled/default
    (0) Auth-Type Kerberos {
    at which point the server dies with no further output. Running the server using systemctl start freeradius and then looking at the status after its died shows its failed with Main PID: 21835 (code=dumped, signal=SEGV)
    I have looked all over the internet but the only place I have found someone with the same problem is here:
    http://www.mail-archive.com/freeradius- … 77744.html
    I have also enabled core dumps in the radiusd.conf however I have no idea how to actually view the dump or where it is (and yes I did google it, but all the responses made no sence to me)
    I have also tried the freeradius-git package on the AUR however that throws errors when building, something to do with undefined symbols while making radattr.
    CC src/main/radattr.c
    LINK build/bin/radattr
    UNIT-TEST rfc.txt
    ./build/bin/radattr: symbol lookup error: ./build/bin/radattr: undefined symbol: _fr_cursor_init
    src/tests/unit/all.mk:23: recipe for target 'build/tests/unit/rfc.txt' failed
    make: *** [build/tests/unit/frc.txt] Error 127
    => ERROR: A failure occurred in build().
    Aborting...
    => ERROR: Makepkg was unable to build freeradius-git.
    => Restart building freeradius-git ? [y/N]
    => -----------------------------------------------
    =>
    I don't usually post here as every problem i've had using arch so far, I've solved after reading the wiki/forums or random googling. However i'm at a complete loss this time, i have literally no idea how to solve this...
    Thanks

    Just as a quick update, the rlm_krb module still seems to be causing seg faults, however it is possible to get it working by configuring freeRadius to use PAM and then telling PAM to authenticate with kerberos.

  • Seg fault compiling Fractal C example in ss 12.1  opensolaris 117 x64

    Hello,
    When i try to compile the Fractal example with default settings i get :
    CC -o dist/Debug/SunStudio-Solaris-x86/fractal_2 build/Debug/SunStudio-Solaris-x86/fractal.o
    CC: Fatal error in ld: Segmentation Fault (core dumped)
    ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section .rela.annotate has invalid type [ SHT_RELA ]
    *** Error code 1
    Compiling openjdk 7 hotspot gives me the same seg fault too.
    I'm using ss 12.1 opensolaris 117 x64 with their update managers patches applied for both products.
    Is there some possible error at my system or is it an ss bug ?

    switching to latest ss express fixed the problem.

  • [SOLVED] Seg fault on Haswell processor (TSX+glibc)

    Hello,
    I just installed ArchLinux on a brand new Intel i7 4770S (Haswell) because my old laptop was unable to handle HD content properly under Kdenlive. I have the exact package versions on both machines but when disabling a simple effect in Kdenlive I get a seg fault.
    You can see my bug report on Kdenlive bug tracker here: http://www.kdenlive.org/mantis/view.php?id=3186
    I then looked at the trace and found this stuff about lock elision that seems very (hardware) specific to Haswell CPU.
    http://lwn.net/Articles/534758/
    http://halobates.de/adding-lock-elision-to-linux.pdf
    http://www.phoronix.com/scan.php?page=n … px=MTQzNDk
    http://www.anandtech.com/show/6290/maki … tensions/2
    I looked at the PKGBUILD for the current glibc 2.18-9 and it has the  "--enable-lock-elision" so I used ABS to recompile it without support for it to see if it would make my Kdenlive work again. And yes problem is gone.
    Is this a problem with Kdenlive code or lock elision implementation in current glibc?   Don't know if this is related but I also had some issues with Digikam when using the default glibc.
    Thanks
    Alphazo
    Bug reported: https://bugs.archlinux.org/task/37617#comment116170
    Last edited by alphazo (2013-11-06 08:11:46)

    I've managed to fix it by appending --opencc-options -OPT:Olimit=99999 to nvcc's compiling flags. It compiles and executes fine. Even though that's still a bug (no program should seg fault).

Maybe you are looking for