Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6466665

Crash when using libjsig.so library in jdk1.6.0-b97

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b28
    • Introduced In Version:
      6
    • Resolved In Build:
      b99
    • CPU:
      x86
    • OS:
      linux

      Description

      There appears to be a regression in the libjsig.so library between jdk1.5.0 and jdk1.6.0 (b97). I'm testing a Java 3D application on Linux running the NVIDIA Cg library. Since it uses signal handlers, I use LD_PRELOAD to load the libjsig.so library from the jre. The behavior I see is:

      jdk1.5.0 - Works
      jdk1.6.0 - Crashes in native code (segv)
      jdk1.6.0 with libjsig from jdk1.5.0 - WORKS!

      I get the same problem with/without using JOGL.

      Note that using jdk1.6.0, but setting LD_PRELOAD to the libjsig.so from jdk1.5.0 works. This suggests a regression in libjsig.so between Tiger and Mustang.

      I have attached the log file.

      To reproduce this bug, you will need a Linux system with an NVIDIA graphics card (5700 or better) and the OpenGL drivers and the libCg library installed. Let me know if you want a system to test it on. Once you have the system setup, you can run the following:

      cd /home/kcr/java/bugs/libjsig
      ./RUN.sh

      It will crash after a short time in native code. If instead you run:

      ./RUN-jsig5.sh

      It will use the libjsig from jdk1.5.0 and run indefinitely.
      This bug affects all JNI applications which uses signal handling to manage memory,
      NOTE: This is a generic problem AND not specific to NVIDIA graphics.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ksrini Kumar Srinivasan
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: