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

C2 compiler creates data corruption in native code after compiling JNIstubmethod

XMLWordPrintable

    • x86
    • windows_2000

      A JNI method receives incorrect data after the JNI stub gets compiled by C2 compiler

      Occurrence of the bug:
      -----------------------
      1. the bug is known to occure with the -server option on Win32
      2. The bug seem to be dependent on the PC. The bug only occured after having taken
         a larger data file on a Tecra 9100
      3.) The bug could not be reproduced on the Tecra by using -client
      4.) The bug disappears when the following method
          gets exluded
              exclude com/sap/mw/rfc/engine/Compress CsRCompress

      The customers provides a test case in the attachement.
      Please follow the readme.txt file.

      General architecture:
      1. Customers uses a native program called jlaunch to start the Java VM
         jlaunch has already all native libs compiled into it.
      2.) Java application read a data stream
      3.) Java application passes data stream to native method for compression
      4.) Native function corrupts data whenever the JNI function gets compiled
      5.) Test application reads and writes a datastream into it's own compression library until it crashes.

      *****************************


            kvn Vladimir Kozlov
            stschnei Stefan Schneider (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: