Unexpected Signal 10 when GC runs while in native code

I submitted the following bug but didn't get an answer. Can anyone reproduce this? Is it a bug or do we make something wrong?
description: FULL PRODUCT VERSION :
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_05-b04, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
SunOS 5.8 Generic_117000-03 sun4u sparc SUNW,Sun-Fire-V440
EXTRA RELEVANT SYSTEM CONFIGURATION :
g++ --version:
g++ (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
A DESCRIPTION OF THE PROBLEM :
If the GC-Thread runs while another Thread is in a native method, then the GC Thread crashes with unexpected Signal 10. This problem happens only in some circumstances where the order, the types and the values of the parameters passed to the native method are important.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
please see attached source.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
no crash
ACTUAL -
Unexpected Signal 10 (GC Thread)
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Unexpected Signal : 10 occurred at PC=0xFFFFFFFF7D1A81E8
Function=[Unknown. Nearest: JVM_ArrayCopy+0x108F0]
Library=/home/shm/java/j2sdk1.4.2_05/jre/lib/sparcv9/server/libjvm.so
Dynamic libraries:
0x100000000 java
0xffffffff7f300000 /usr/lib/64/libthread.so.1
0xffffffff7f500000 /usr/lib/64/libdl.so.1
0xffffffff7ef00000 /usr/lib/64/libc.so.1
0xffffffff7f100000 /usr/platform/SUNW,Sun-Fire-V440/lib/sparcv9/libc_psr.so.1
0xffffffff7d000000 /home/shm/java/j2sdk1.4.2_05/jre/lib/sparcv9/server/libjvm.so
0xffffffff7d900000 /usr/lib/64/libCrun.so.1
0xffffffff7ce00000 /usr/lib/64/libsocket.so.1
0xffffffff7cc00000 /usr/lib/64/libnsl.so.1
0xffffffff7ca00000 /usr/lib/64/libm.so.1
0xffffffff7c800000 /usr/lib/64/libsched.so.1
0xffffffff7db00000 /usr/lib/64/libw.so.1
0xffffffff7c400000 /usr/lib/64/libmp.so.2
0xffffffff7c100000 /home/shm/java/j2sdk1.4.2_05/jre/lib/sparcv9/native_threads/libhpi.so
0xffffffff7bd00000 /home/shm/java/j2sdk1.4.2_05/jre/lib/sparcv9/libverify.so
0xffffffff7ba00000 /home/shm/java/j2sdk1.4.2_05/jre/lib/sparcv9/libjava.so
0xffffffff7b800000 /home/shm/java/j2sdk1.4.2_05/jre/lib/sparcv9/libzip.so
0xffffffff2f600000 /usr/lib/locale/en_US.ISO8859-1/sparcv9/en_US.ISO8859-1.so.2
0xffffffff2e100000 /home/shm/test/javasetlong/libjni01.so
0xffffffff2d900000 /usr/lib/64/libpthread.so.1
0xffffffff2d700000 /usr/local/lib/sparcv9/libstdc++.so.5
0xffffffff2d500000 /usr/local/lib/sparcv9/libgcc_s.so.1
Heap at VM Abort:
Heap
def new generation total 2112K, used 168K [0xffffffff2f800000, 0xffffffff2fa20000, 0xffffffff30d50000)
eden space 2048K, 8% used [0xffffffff2f800000, 0xffffffff2f82a0b8, 0xffffffff2fa00000)
from space 64K, 0% used [0xffffffff2fa00000, 0xffffffff2fa00000, 0xffffffff2fa10000)
to space 64K, 0% used [0xffffffff2fa10000, 0xffffffff2fa10000, 0xffffffff2fa20000)
tenured generation total 1408K, used 0K [0xffffffff30d50000, 0xffffffff30eb0000, 0xffffffff33800000)
the space 1408K, 0% used [0xffffffff30d50000, 0xffffffff30d50000, 0xffffffff30d50200, 0xffffffff30eb0000)
compacting perm gen total 16384K, used 1522K [0xffffffff33800000, 0xffffffff34800000, 0xffffffff37800000)
the space 16384K, 9% used [0xffffffff33800000, 0xffffffff3397cb78, 0xffffffff3397cc00, 0xffffffff34800000)
Local Time = Thu Jul 15 10:12:00 2004
Elapsed Time = 0
# HotSpot Virtual Machine Error : 10
# Error ID : 4F530E43505002EF 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.4.2_05-b04 mixed mode)
# An error report file has been saved as hs_err_pid22521.log.
# Please refer to the file for further information.
Abort (core dumped)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
FILE 1: jni01.java
import java.lang.*;
import java.util.*;
class jni01 implements Runnable {
     // static initialise block loads shared library
     // libjni01.so at startup (before executing main)
     static {
          System.loadLibrary( "jni01" );
     // declaration of native method
     public native synchronized void print(
          long p1,
          long p2,
          long p3,
          Date p4,
          Date p5,
          long p6,
          long p7,
          Date p8,
          Date p9,
          Date p10,
          Date p11,
          Date p12,
          Date p13,
          long p14,
          long p15,
          long p16,
          long p17,
          long p18,
          String p19,
          long p20,
          long p21,
          long p22,
          long p23,
          long p24,
          String p25,
          int p26,
          long p27,
          java.lang.Long p28);
     // Constant value
     public static final long C_LongNull = 0xFFFFFFFFFFFFFFFFL;
     // main method (entry point of java application)
     public static void main(String[] args) {
          jni01 ref = new jni01();
          Thread ThreadRef = new Thread( ref );
          // start GC Thread
          ThreadRef.start();
          try
               for( int i = 0; i < 1000; ++i ) {
                    ref.print(
                         0,
                         0,
                         0,
                         null,
                         null,
                         0,
                         C_LongNull,
                         null,
                         null,
                         null,
                         null,
                         null,
                         null,
                         0,
                         0,
                         0,
                         0,
                         0,
                         null,
                         0,
                         0,
                         0,
                         0,
                         0,
                         null,
                         0,
                         0,
                         null
               } // for
               // Wait for GC Thread
               ThreadRef.join();
               System.out.println( "GC Thread joined" );
          catch (java.lang.InterruptedException ex)
               System.out.println( "Main-Thread interrupted while joining!" );
     public void run()
          for ( int iCounter = 0; iCounter < 5000; ++iCounter )
               try
                    System.out.print( "Forcing GC NOW: " );
                    System.gc();
                    Thread.currentThread().sleep( 1 );
               catch (java.lang.InterruptedException ex)
                    System.out.println( "GC Thread interrupted!" );
          } // for
     } // run
FILE 2: jni01.cpp
#include <jni.h>
#include <iostream>
#include "jni01.h"
JNIEXPORT void JNICALL Java_jni01_print( JNIEnv* env, jobject jObj,
          jlong p1,
          jlong p2,
          jlong p3,
          jobject p4,
          jobject p5,
          jlong p6,
          jlong p7,
          jobject p8,
          jobject p9,
          jobject p10,
          jobject p11,
          jobject p12,
          jobject p13,
          jlong p14,
          jlong p15,
          jlong p16,
          jlong p17,
          jlong p18,
          jstring p19,
          jlong p20,
          jlong p21,
          jlong p22,
          jlong p23,
          jlong p24,
          jstring p25,
          jint p26,
          jlong p27,
          jobject p28 )
     std::cout << "Entering C++" << std::flush << std::endl;
     usleep( 100 );
     std::cout << "Leaving C++" << std::flush << std::endl;
BUILD
javac jni01.java
javah -jni jni01
g++ -o libjni01.so -shared -Wall -m64 -fPIC -D__SOLARIS__ -D_THREAD_SAFE -D_REENTRANT -I-I$JDK_HOME/include -I$JDK_HOME/include/solaris -lpthread jni01.cpp
RUN
java -verbose:gc -Xcheck:jni -Djava.library.path=. jni01
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
- changing parameter values or parameter order may help but I don't know the exact criterias.
- 32 bit works (but our application needs 64 bit)
workaround:
comments: (company - Profidata , email - martin dot schmid at profidatagroup dot com)

You are not supposed to allocate memory, etc., while GC is running. That's one of the things in JVMPI implementation. Looks like this may be a related scenario, although my guess would be that JNI methods should be invoked with GC disabled already, or block until GC completes if it's already running. However, if that's not the case, then basically you might be copying from a memory location that the JVM is moving around, resulting in a null pointer...
HTH,
<rsa/>

Similar Messages

  • How to run 64-bit native code with Java Web Start

    This question has probably been asked many times, but I couldn't find anything in my searches.
    How can I get Java Web Start on a Solaris client (Solaris 10 in this case, with JRE 1.5) to run a java application that includes a 64-bit native code library? The application downloads fine, including the jar file that has the native shared object, but when the native library is loaded by the java application, I get a "wrong ELF class: ELFCLASS64" error.
    I assume that is because Web Start is invoking the 32-bit java VM, which can't load a 64-bit library. I tried configuring Java Web Start to use the 64-bit VM (by setting the path to java to ".../jre/bin/sparcv9/java" in the javaws console) but then I get an error that says "Can't load library: .../jre/lib/sparcv9/libdeploy.so".
    Does Java Web Start support 64-bit native code, and if so, what do I need to do differently?
    Thanks.

    No it can't. On the Sun download page of the JRE it says that 64 Bit systems need to use the 32 Bit JRE to execute Plugins - this might be the same for Web Start apps.

  • Java Runtime crash while executing native code.(version 1.6.0_10-beta)

    HI all
    i observed a crash while execution a native fuction , which is initializing an
    char array of size (1024*1024).Plz see the code snippet below:
    But it is working with java version: 1.5.0
    FileTest.c:
    #include<stdio.h>
    #include<fcntl.h>
    #include<string.h>
    #include<stdlib.h>
    #include "HelloWorld.h"
    JNIEXPORT jint JNICALL Java_HelloWorld_CreateLargestF<div style="direction: ltr">ile (JNIEnv * env, jclass obj)
    //int CreateLargestFile(char* filename)
    char *filename = "LargestFile.tmp";
    int fd = creat(filename, 0666);
    if(fd == -1)
    return 0;
    int size = 1024 * 1024;
    char buffer[size];
    //buffer is not filled fully, JRE aborts after i reaches to 61327 approx.
    int i;
    for( i = 0;i<size;i++)
    buffer[i] = 'a';
    printf("\n\n==>> Executing FSTLD0001 : buffer %d = %c \n",i,buffer);
    printf("\n\n==>> Executing FSTLD0001 : after init\n");
    //memset(buffer, 'a', size);
    while(1)
    long bytes = write(fd, buffer, size);
    if(bytes < size)
    break;
    close(fd);
    return 1;
    HelloWorld.java
    public class HelloWorld {
    public static native int CreateLargestFile();
    public static void main(String[] args)
    String dir = System.getProperty("user.dir");
    String libpath = dir + "/libFileTest.so";
    System.load(libpath);
    CreateLargestFile();
    jni.h version used is: 1.56 03/12/19
    jni_md.h version used is : 1.14 03/12/19
    FULL PRODUCT VERSION :
    java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b14)
    Java HotSpot(TM) Client VM (11.0-b11 mixed mode, sharing)
    FULL OS VERSION :
    Linux debian 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux
    ERROR MESSAGES:
    # An unexpected error has been detected by Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0xb7eec667, pid=7128, tid=3084340144
    # Java VM: Java HotSpot(TM) Client VM (11.0-b11 mixed mode, sharing linux-x86)
    # Problematic frame:
    # C [libFileTest.so+0x667] Java_HelloWorld_CreateLargestFile+0x8b
    <div style="direction: ltr">#
    # If you would like to submit a bug report, please visit:
    # [http://java.sun.com/webapps/bugreport/crash.jsp]
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.</div>
    May i have any feedbacks or help?
    Thanks
    </div>

    Stack size perhaps?
    Allocate the buffer off the heap instead of the stack.
    The following might be related (might not as well.)
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6227033
    There is a flag that adds info for jni via the command line turn it on.

  • What are the criterias to consider while deciding when to run the mrp?

    Hello Friends,
    Actually i was just thinking,if any company wants to run the mrp for planning than how to decide,when to run the mrp(daily,weekly,monthly).
    One of the factor,while deciding this could be the raw material procurements,right?if they procure raw material once in a month than they should run the mrp once in a month.(even we can control this by keeping monthly lot size,if you run the mrp every week).
    What could be the other reasons?
    Thanks and Regards,
    Jitendra Chauhan

    Dear Jitendra,
    As said by our other forum friends it depends on the business requirement.
    In one of my project as the client were recieving monthly plan for their production MRP was carried out monthly.
    It can be based on the production plan or say sometimes the maximum lead time for producing a product.
    Also Check this link,
    [MRP Activities|http://www.sage.co.uk/sage1000v2_1/form_help/workingw/Subfiles/mrp_activities.htm]
    Regards
    Mangalraj.S

  • My performance is very slow when I run graphs. How do I increase the speed at which I can do other things while the data is being updated and displayed on the graphs?

    I am doing an an aquisition and displaying the data on graphs. When I run the program it is slow. I think because I have the number of scans to read associated with my scan rate. It takes the number of seconds I want to display on the chart times the scan rate and feeds that into the number of samples to read at a time from the AI read. The problem is that it stalls until the data points are aquired and displayed so I cannot click or change values on the front panel until the updates occur on the graph. What can I do to be able to help this?

    On Fri, 15 Aug 2003 11:55:03 -0500 (CDT), HAL wrote:
    >My performance is very slow when I run graphs. How do I increase the
    >speed at which I can do other things while the data is being updated
    >and displayed on the graphs?
    >
    >I am doing an an aquisition and displaying the data on graphs. When I
    >run the program it is slow. I think because I have the number of
    >scans to read associated with my scan rate. It takes the number of
    >seconds I want to display on the chart times the scan rate and feeds
    >that into the number of samples to read at a time from the AI read.
    >The problem is that it stalls until the data points are aquired and
    >displayed so I cannot click or change values on the front panel until
    >the updates occur on the graph. What can I do to be a
    ble to help
    >this?
    It may also be your graphics card. LabVIEW can max the CPU and you
    screen may not be refreshing very fast.
    --Ray
    "There are very few problems that cannot be solved by
    orders ending with 'or die.' " -Alistair J.R Young

  • Hi I replaced my hard drive on macbook and I want to install mac osx10.5 with the CD that came with the macbook. When I run the CD after a while I get the page showing language options for 2 second then a gray screen appears and nothing happens

    Hi I replaced my hard drive on macbook and I want to install mac osx10.5 with the CD that came with the macbook. When I run the CD after a while I get the page showing language options for 2 second then a gray screen appears and nothing happens. I partitioned my hard drive and I tried installing Microsoft windows and that worked just fine.  But I do not understand why it wont install mac os x 10.5?????  PLEASE HELP ME.  Thanks  Hamid

    Try a new post in the 10.5 Installation forum.
    DALE

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • Video Signal Dropped when running slideshow screensaver

    When I run the screensaver slideshow, the pictures display fine, but I loose the video signal from the mac mini after about 10 minutes. When this happens, I simply move the mouse and the signal comes back and I'm at the desktop.
    The mac mini is connected to my Sharp Aquious LCD TV via the DVI port. The resolution is set to 1024 x 768 @ 60Hz.
    Any ideas about what might be causing this or how to fix it?

    Not sure what your application is, but if you are planning on running the screen saver 24/7, that would be a really bad idea. An LCD TV like the Sharp Aquos is backlit with flourescent bulbs that have limited life and running the TV around the clock will consume precious lamp life.

  • HT201210 i updated my iphone 3gs to iphone 6 . while installing the software it gets error and closed. then i restored my previous version. when i turned on the phone it gets usb and itunes symbol on screen. when i run itunes error is coming like server c

    i updated my iphone 3gs to iphone 6 . while installing the software it gets error and closed. then i restored my previous version. when i turned on the phone it gets usb and itunes symbol on screen. when i run itunes error is coming like server contact problem. what can i do to start my phone????  plz help me

    I will need a little bit of information about your phone. What kind of error are you getting?

  • Does LabView display the Bluetooth signal strength when running on Windows XP?

    I am interested in getting the Bluetooth signal strength in a Windows XP application. I would like to use the Microsoft bluetooth drivers for my application. First, Does LabView display the Bluetooth signal strength when running Windows XP? Secondly, If it does what Windows API(s) does it use to get access to this information?

    Hi,
    It does not seem like the Bluetooth VIs allow you to display the signal strength and I can definitly enter that as a product suggestion for the Bluetooth functionality in LabVIEW. For now, I would suggest going through the Windows API and searchingn for RSSI - Received Signal Strength Indication. I did not have a lot of luck in my searches through Microsoft, but you can give that a shot and post back with any more headway you make.
    Also, you can try going to SourceForge.net. Just doing a search for Bluetooth and RSSI popped up several hits of code that has been developed for Bluetooth applications. Then, you can see about creating a DLL call to a particular function that will return RSSI information to you, to which
    you can then use in LabVIEW with the Call Library Node.vi.
    Hope this helps and best of luck!
    Kileen C.
    NI

  • "Error in Java Launcher. Error while launching program with JVM" when I run dnConfig on a windows instance of AWS

    Hi,
    I've installed Oracle EDQ on an AWS Windows 2008 instance. I installed "EDQ 12.1.3 Quick-Start". The installation went through without a hitch. The Oracle EDQ Application Server, Oracle EDQ Config Store and Oracle EDQ Results Store services are running. However when I run dnConfig to change the 32 bit JVM to the 64 bit version, I get the above error.
    Can anyone help resolve this issue?
    Warm regards
    Feroze Arif

    Hi Feroze,
    A word of warning. You shouldn't be trying to change the bitness whilst the services are running. This will cause you a whole world of problems.
    regards,
    Nick

  • Serious problem ????? Unexpected Signal : EXCEPTION_ACCESS_VIOLATION

    Hi,
    While running a simple program i got a problem.The program has generated a report file. Attaching the same. Can anyone tell me why it is so??
    Log file is :
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d448cb7
    Function name=(N/A)
    Library=D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\hotspot\jvm.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.jdbc.odbc.JdbcOdbc.driverConnect(Native Method)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at AJFrame.testsql(AJframe.java:16)
         at AJFrame.<init>(AJframe.java:7)
         at AJFrame.main(AJframe.java:10)
    Dynamic libraries:
    0x00400000 - 0x00405000      C:\WINNT\system32\java.exe
    0x77F80000 - 0x77FFB000      C:\WINNT\System32\ntdll.dll
    0x77DB0000 - 0x77E0B000      C:\WINNT\system32\ADVAPI32.dll
    0x77E80000 - 0x77F35000      C:\WINNT\system32\KERNEL32.DLL
    0x77D40000 - 0x77DB0000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78046000      C:\WINNT\system32\MSVCRT.dll
    0x6D420000 - 0x6D4F0000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\hotspot\jvm.dll
    0x77E10000 - 0x77E74000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000      C:\WINNT\system32\GDI32.DLL
    0x77570000 - 0x775A0000      C:\WINNT\system32\WINMM.dll
    0x75E60000 - 0x75E7A000      C:\WINNT\System32\IMM32.DLL
    0x6D220000 - 0x6D227000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\hpi.dll
    0x6D3B0000 - 0x6D3BD000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\verify.dll
    0x6D250000 - 0x6D266000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\java.dll
    0x6D3C0000 - 0x6D3CD000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\zip.dll
    0x6D020000 - 0x6D12A000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\awt.dll
    0x77800000 - 0x7781D000      C:\WINNT\system32\WINSPOOL.DRV
    0x77A50000 - 0x77B46000      C:\WINNT\system32\ole32.dll
    0x6D1E0000 - 0x6D21B000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\fontmanager.dll
    0x72800000 - 0x72846000      C:\WINNT\system32\DDRAW.dll
    0x728A0000 - 0x728A6000      C:\WINNT\system32\DCIMAN32.dll
    0x69000000 - 0x691D7000      C:\WINNT\system32\G400ICD.DLL
    0x6E420000 - 0x6E426000      C:\WINNT\System32\INDICDLL.dll
    0x6D290000 - 0x6D29A000      D:\Program Files\JavaSoft\JRE\1.3.1_03\bin\JdbcOdbc.dll
    0x1F7D0000 - 0x1F804000      C:\WINNT\system32\ODBC32.dll
    0x76B30000 - 0x76B6E000      C:\WINNT\system32\comdlg32.dll
    0x70BD0000 - 0x70C20000      C:\WINNT\system32\SHLWAPI.DLL
    0x71730000 - 0x717BA000      C:\WINNT\system32\COMCTL32.DLL
    0x782F0000 - 0x78532000      C:\WINNT\system32\SHELL32.DLL
    0x1F8C0000 - 0x1F8D6000      C:\WINNT\system32\odbcint.dll
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x0B240000 - 0x0B24B000      C:\WINNT\system32\PSAPI.DLL
    Local Time = Tue Aug 20 15:57:39 2002
    Elapsed Time = 1
    # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
    # Error ID : 4F530E43505002BD
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 mixed mode)

    Today I was trouble shooting a jsp page that uses JDBC posted on a TOMCAT server. I was have the same exception as you guys described but found a work around for my program.
    I as reading data from my db into the jsp page (into a table and some drop down menus). The error screen would pop up randomly as I accessed the page. If I refreshed page quickly it would cause the error to happen more often it seemed.
    The fix was i used the "finally" statement to close every instance of ResultSet and Statement.
    Before I use simply:
    rs.close();
    st.close();
    rs = null;
    st = null;
    I have 2 seperate parts on jsp page where I accessed db. Once I put in the finally it worked. Here is the code I used:
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         String sourceURL = new String("jdbc:odbc:D2TEST");
         Connection dbconn = DriverManager.getConnection(sourceURL);
         st = dbconn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
         rs = st.executeQuery("SELECT * FROM CIS_REFERENCE");
         while (rs.next())
              {     minute = rs.getInt("PERIOD");
                   onoff = rs.getInt("PONOFF");
         finally {
              if (rs != null) {
                   try {
                        rs.close();
                   catch (SQLException sqle)
                        System.out.println(sqle.toString());
              if (st != null) {
                   try {
                        st.close();
                   catch (SQLException sqle)
                        System.out.println(sqle.toString());
    Sorry bout the spacing I just cut and paste.
    Hope this helps
    B~

  • [b]Unexpected Signal : 10 Error[/b]

    We are running our application with OC4J server, JDK 1.4.2_07 in a HP UX 11i. The application runs perfectly fine all through the day till 3:30 PM. Around 3:30 PM, the application crashes with the following error in the log.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 10 occurred at PC=0xDFBB04DC
    Function=Hash__11ObHashProxyCFv
    Library=/opt/retek/oblix/AccessServerSDK/oblix/lib/libobaccess.sl
    Current Java thread:
    "HttpRequestHandler-16667599" prio=6 tid=0x0b5aeea0 nid=588 lwp_id=5701570 runnable [0xdbfeb000..0xdbfea530]
    at com.oblix.access.ObUserSession.jni_isAuthorized(Native Method)
    at com.oblix.access.ObUserSession.isAuthorized(ObUserSession.java:232)
    at com.retek.rsw.service.OblixHelper.getLDAPProperties(Unknown Source)
    at com.retek.rsw.persistence.ldap.BbySsoRswSecurityDao.authenticateAndReadUser(Unknown Source)
    at com.retek.rsw.service.UserAuthenticateAndReadCommand.doTransactionalExecute(Unknown Source)
    at com.retek.rsw.service.TransactionCommand.doExecute(Unknown Source)
    at com.retek.rsw.service.Command.execute(Unknown Source)
    at com.retek.rsw.ui.control.security.LoginDoneAction.perform(Unknown Source)
    at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
    at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:536)
    Dynamic libraries:
    /opt/java1.4.1_07/bin/PA_RISC2.0/java
    text:0x00001000-0x000095ac data:0x0000a000-0x0000a828
    /opt/java1.4.1_07/jre/lib/PA_RISC2.0/server/libjvm.sl
    text:0xef000000-0xefbcd000 data:0xefcec000-0xefe57000
    /usr/lib/libpthread.1
    text:0xefc49000-0xefc62000 data:0xefc46000-0xefc49000
    /usr/lib/libm.2
    text:0xefc63000-0xefc8f000 data:0xefc62000-0xefc63000
    /usr/lib/librt.2
    text:0xefc90000-0xefc94000 data:0xefc8f000-0xefc90000
    /usr/lib/libcl.2
    text:0xeef15000-0xef000000 data:0xefc96000-0xefca2000
    /usr/lib/libisamstub.1
    text:0xefc95000-0xefc96000 data:0xefc94000-0xefc95000
    /usr/lib/libCsup.2
    text:0xefca5000-0xefcc0000 data:0xefca2000-0xefca5000
    /usr/lib/libc.2
    text:0xefe72000-0xeffb8000 data:0xefe5f000-0xefe72000
    /usr/lib/libdld.2
    text:0xefe58000-0xefe5b000 data:0xefe57000-0xefe58000
    /opt/java1.4.1_07/jre/lib/PA_RISC2.0/native_threads/libhpi.sl
    text:0xefc32000-0xefc42000 data:0xefc30000-0xefc32000
    /opt/java1.4.1_07/jre/lib/PA_RISC2.0/libverify.sl
    text:0xefc0d000-0xefc1d000 data:0xefc0c000-0xefc0d000
    /opt/java1.4.1_07/jre/lib/PA_RISC2.0/libjava.sl
    text:0xefbdf000-0xefc0c000 data:0xefbda000-0xefbdf000
    /opt/java1.4.1_07/jre/lib/PA_RISC2.0/libzip.sl
    text:0xeef02000-0xeef15000 data:0xefbd8000-0xefbda000
    /usr/lib/libnss_compat.1
    text:0xefbd4000-0xefbd8000 data:0xefbd3000-0xefbd4000
    /usr/lib/libnsl.1
    text:0xeec51000-0xeecde000 data:0xeec44000-0xeec51000
    /usr/lib/libxti.2
    text:0xeec2c000-0xeec44000 data:0xeec29000-0xeec2c000
    /opt/java1.4.1_07/jre/lib/PA_RISC2.0/libnet.sl
    text:0xeec19000-0xeec29000 data:0xefbce000-0xefbcf000
    /usr/lib/libnm.sl
    text:0xeec0e000-0xeec19000 data:0xefbcd000-0xefbce000
    /usr/lib/libnss_files.1
    text:0xeec05000-0xeec0e000 data:0xeec04000-0xeec05000
    /usr/lib/libnss_dns.1
    text:0xe8a77000-0xe8a7d000 data:0xeec03000-0xeec04000
    /u01/app/oracle/product/j2ee_904/jdbc/lib/libocijdbc10.sl
    text:0xe6800000-0xe782f000 data:0xe7a52000-0xe7ab8000
    /u01/app/oracle/product/j2ee_904/jdbc/lib/libclntsh.sl.10.1
    text:0xe5400000-0xe65b9000 data:0xe6783000-0xe6800000
    /u01/app/oracle/product/j2ee_904/jdbc/lib/libnnz10.sl
    text:0xe787e000-0xe7a52000 data:0xe7866000-0xe787e000
    /u01/app/oracle/product/j2ee_904/jdbc/lib/libociei.sl
    text:0xdfc00000-0xe5324000 data:0xeec02000-0xeec03000
    /opt/retek/oblix/AccessServerSDK/oblix/lib/libobaccess.sl
    text:0xdfaca000-0xdfc00000 data:0xe65c3000-0xe6600000
    /opt/retek/oblix/AccessServerSDK/oblix/lib/libaaa_client.sl
    text:0xdf98f000-0xdfaca000 data:0xe5361000-0xe53a3000
    /usr/lib/libstream.2
    text:0xe5339000-0xe5361000 data:0xe65ba000-0xe65bd000
    /usr/lib/libstd.2
    text:0xe53a3000-0xe53e1000 data:0xe7830000-0xe7833000
    /usr/lib/libC.2
    text:0xe53e1000-0xe5400000 data:0xe7833000-0xe7836000
    Local Time = Sun Dec 26 15:23:28 2004
    Elapsed Time = 46165
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Server VM (1.4.1 1.4.1.07-040312-15:24-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode)
    # An error report file has been saved as hs_err_pid23435.log.
    # Please refer to the file for further information.
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Version: 03 - 01
    Can anyone help me in identifying the issue?

    We are running our application with OC4J server, JDK
    1.4.2_07 in a HP UX 11i. The application runs
    perfectly fine all through the day till 3:30 PM.
    Around 3:30 PM, the application crashes with the
    following error in the log.
    I would suggest looking it up but I believe that particular signal occurs when there is a pointer problem in C/C++ code.
    Which means it isn't a java problem. That really seems likely given that there is a "Native Method" call. Either there is a bug in the C/C++ code or the java code is using it incorrectly.
    And the reason of course for it occurring at 3:30 is because you are doing something at 3:30 that you are not doing the rest of the day.

  • Runtime stlport4 error: Unexpected Signal : 11

    Hi Gurus,
    I am using CC 5.5 with stlport4 to build our project. I basically build a jni library which got called from java class. I had no compile and link problem. If do "ldd -r MyLib.so", all symbols are resolved. But at runtime, I got the following error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0xEFD7FF84
    Function=__1cDstdGlocale2t5B6Mrk1_v_+0xC
    Library=/opt/SUNWspro/lib/stlport4/libstlport.so.1
    Current Java thread:
    at com.ss.sp.MyLogStream.initialize(Native Method)
    Platform: Solaris 2.8
    SUNW CC: 5.5, compiler option -library=stlport4, -mt
    JDK: 1.4.2
    Thanks
    Ivan

    Sun C++ 5.5. comes with STLport as an optional standard library. SInce it is not the default version of the standard library, you must follow these rules when using it:
    Every CC command line used to build the entire program must have the option -library=stlport4
    Every CC command used to link any part of the program, including shared libraries, must have the option -library=stlport4
    If ld is used directly (instead of CC) to link a program or shared library, it must link libstlport.so.1, and not link to libCstd.so.1.
    You cannot mix program parts using the default libCstd with program parts using stlport4. The entire program, including shared libraries, must use the same standard library -- either libCstd or stlport.
    You can see whether there is any conflict between libCstd and stlport in your program by running the ldd command on every executable program and every shared library. If any of these shows a dependency on libCstd.so.1, you cannot use stlport in other parts of the code.
    Unfortunately, it is possible to link libCstd statically, and it's difficult to tell whether that happened if all you have is an a.out or a library. Let's hope that is not the case. The supplier of the third-party components you are using should document whether they used stlport or libCstd. If they used stlport, it needs to be the version that comes with the compiler, not a version they acquired from the stlport web site. Different versions of stlport from the web site are not binary compatibie. The versions we ship with our compilers are compatible with each other.
    The remaining issue is order of initialization of shared libraries. If (for example) a C program dlopens a C++ shared library that was not built with the correct dependencies, it is possible that the shared library will try to use stlport objects that haven't been initialized yet. If the main program is a C++ program that has a dependency on stlport , you won't run into that problem. Using ldd to check the dependencies of the main programs and shared libraries will show you if dependencies are inconsistent.
    It is also possible for shared libraries to be mutually dependent, so that each library requires the other library to be initialized first. (This is a programming error.) That situation should not be possible with stlport, since it should not have any dependency on any user library. But if user libraries A and B have this circular dependency, it is possible that one of them passes a bad reference to stlport. Let's consider this scenario unlikely for now. The other major issues I outlined should be investigated first.
    In particular, find out from the 3rd-party vendor how they built their C++ code. The possible good answers are
    1 They used the default libCstd.so.1
    2. They used the libstdport.so.1 that came with the compiler.
    (You can run ldd to find out these answers.)
    In case 1, you cannot use stlport. You must use the default libCstd, and link it dynamically (which is the default).
    In case 2, you can use stlport, and you must link it dynamically (which is the default).
    Any other answer is very bad news.

  • Precompiling jsps Unexpected Signal : 11  JVM_IsInterface

              Hi,
              We have an weblogic 7.0 SP0 application running on solaris 7. As part of it startup
              in precompiles jsps - sometimes at different points weblogic crashes
              when we don't precompile the jsp's we never get this problem
              has any body seem it got a work around
              the message is
              Unexpected Signal : 11 occurred at PC=0xfe15b1c8
              Function name=JVM_IsInterface
              Library=/usr/j2sdk1_3_1_03/jre/lib/sparc/server/libjvm.so
              Current Java thread:
              Dynamic libraries:
              0x10000      /usr/j2sdk1_3_1_03/bin/../bin/sparc/native_threads/java
              0xff360000      /usr/lib/libthread.so.1
              0xff3a0000      /usr/lib/libdl.so.1
              0xff280000      /usr/lib/libc.so.1
              0xff270000      /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
              0xfe000000      /usr/j2sdk1_3_1_03/jre/lib/sparc/server/libjvm.so
              0xff210000      /usr/lib/libCrun.so.1
              0xff1f0000      /usr/lib/libsocket.so.1
              0xff100000      /usr/lib/libnsl.so.1
              0xff1c0000      /usr/lib/libm.so.1
              0xff240000      /usr/lib/libw.so.1
              0xff0e0000      /usr/lib/libmp.so.2
              0xff0a0000      /usr/j2sdk1_3_1_03/jre/lib/sparc/native_threads/libhpi.so
              0xff070000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libverify.so
              0xff030000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libjava.so
              0xfe7d0000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libzip.so
              0xfe650000      /usr/lib/nss_files.so.1
              0xfe540000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libnet.so
              0xfdee0000      /usr/lib/nss_nis.so.1
              0xfdec0000      /apps/wls70/weblogic/server/lib/solaris/libmuxer.so
              0xfdd50000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libioser12.so
              Local Time = Thu Sep 4 17:40:55 2003
              Elapsed Time = 288
              # HotSpot Virtual Machine Error : 11
              # Error ID : 4F530E43505002BD 01
              # Please report this error at
              # http://java.sun.com/cgi-bin/bugreport.cgi
              # Java VM: Java HotSpot(TM) Server VM (1.3.1_03-b03 mixed mode)
              Many thanks
              Malcolm Bridgeford
              

              See Sun's bug parade:
              http://developer.java.sun.com/developer/bugParade/bugs/4458653.html
              They fixed something in 1.3.1_04 that was causing errors similar to yours so you
              should probably try moving up to the _04 release.
              Also there are some know problems with older JVMs when JSPs get REALLY big through
              many custom tags, includes, etc. Breaks some internal 64K limit.. Might be related
              to that.
              -Greg
              Co-author of new advanced WebLogic book, "Mastering BEA WebLogic Server" http://www.amazon.com/exec/obidos/ASIN/047128128X
              "Malcolm Bridgeford" <[email protected]> wrote:
              >
              >Hi,
              >We have an weblogic 7.0 SP0 application running on solaris 7. As part
              >of it startup
              >in precompiles jsps - sometimes at different points weblogic crashes
              >
              >when we don't precompile the jsp's we never get this problem
              >
              >has any body seem it got a work around
              >
              >the message is
              >
              >Unexpected Signal : 11 occurred at PC=0xfe15b1c8
              >Function name=JVM_IsInterface
              >Library=/usr/j2sdk1_3_1_03/jre/lib/sparc/server/libjvm.so
              >
              >Current Java thread:
              >
              >Dynamic libraries:
              >0x10000      /usr/j2sdk1_3_1_03/bin/../bin/sparc/native_threads/java
              >0xff360000      /usr/lib/libthread.so.1
              >0xff3a0000      /usr/lib/libdl.so.1
              >0xff280000      /usr/lib/libc.so.1
              >0xff270000      /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
              >0xfe000000      /usr/j2sdk1_3_1_03/jre/lib/sparc/server/libjvm.so
              >0xff210000      /usr/lib/libCrun.so.1
              >0xff1f0000      /usr/lib/libsocket.so.1
              >0xff100000      /usr/lib/libnsl.so.1
              >0xff1c0000      /usr/lib/libm.so.1
              >0xff240000      /usr/lib/libw.so.1
              >0xff0e0000      /usr/lib/libmp.so.2
              >0xff0a0000      /usr/j2sdk1_3_1_03/jre/lib/sparc/native_threads/libhpi.so
              >0xff070000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libverify.so
              >0xff030000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libjava.so
              >0xfe7d0000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libzip.so
              >0xfe650000      /usr/lib/nss_files.so.1
              >0xfe540000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libnet.so
              >0xfdee0000      /usr/lib/nss_nis.so.1
              >0xfdec0000      /apps/wls70/weblogic/server/lib/solaris/libmuxer.so
              >0xfdd50000      /usr/j2sdk1_3_1_03/jre/lib/sparc/libioser12.so
              >
              >Local Time = Thu Sep 4 17:40:55 2003
              >Elapsed Time = 288
              >#
              ># HotSpot Virtual Machine Error : 11
              ># Error ID : 4F530E43505002BD 01
              ># Please report this error at
              ># http://java.sun.com/cgi-bin/bugreport.cgi
              >#
              ># Java VM: Java HotSpot(TM) Server VM (1.3.1_03-b03 mixed mode)
              >#
              >
              >Many thanks
              >Malcolm Bridgeford
              >
              >
              >
              

Maybe you are looking for