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

VM crash when close the ResultSet after an exception has occured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.1
    • 1.4.0
    • core-libs
    • hopper
    • x86
    • windows_2000


      ###@###.### 2002-01-23

      J2SE Version (please include all output from java -version flag):
       java version "1.4.0-rc"
       Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
       Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)


      Does this problem occur on J2SE 1.3? Yes / No (pick one)
      No.


      Operating System Configuration Information (be specific):
      Windows 2000, Windows NT4


      Hardware Configuration Information (be specific):
      P3, 866 Mhz with 512 MB Ram or P2 400Mhz with 256 MB Ram


      Bug Description:

      When read the column type of an autoincrement column

      rs.getMetaData().getColumnType(1)

      then insertRow overwrites the autovalue and get an "Error in Row"
      after trying to insert a column into the table for the second time.

      After the exception has occured and try to close the ResultSet, JavaVM crashes:

      MSG: [Microsoft][ODBC Microsoft Access Driver]Error in row
      java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Error in row
              at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
              at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
              at sun.jdbc.odbc.JdbcOdbc.SQLSetPos(JdbcOdbc.java:4726)
              at
      sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5019)
              at
      sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:4018
      )
              at Test_InsertRow.main(Test_InsertRow.java:25)
      java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Error in row
              at
      sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5068)
              at
      sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:4018
      )
              at Test_InsertRow.main(Test_InsertRow.java:25)
      *ResultSet.close

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77FCBF4C
      Function=RtlSizeHeap+0x613
      Library=C:\WINNT\System32\ntdll.dll

      Current Java thread:
              at sun.jdbc.odbc.JdbcOdbc.ReleaseStoredBytes(Native Method)
              at
      sun.jdbc.odbc.JdbcOdbcResultSet.FreeCols(JdbcOdbcResultSet.java:1522)

              - locked <02A369E8> (a sun.jdbc.odbc.JdbcOdbcResultSet)
              at
      sun.jdbc.odbc.JdbcOdbcResultSet.close(JdbcOdbcResultSet.java:1478)
              - locked <02A369E8> (a sun.jdbc.odbc.JdbcOdbcResultSet)
              at Test_InsertRow.main(Test_InsertRow.java:37)

      Dynamic libraries:
      0x00400000 - 0x00406000 c:\j2sdk1.4.0-rc\bin\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
      0x6D330000 - 0x6D442000 c:\j2sdk1.4.0-rc\jre\bin\client\jvm.dll
      0x77E10000 - 0x77E74000 C:\WINNT\system32\USER32.dll
      0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
      0x77570000 - 0x775A0000 C:\WINNT\System32\WINMM.dll
      0x10000000 - 0x10019000 C:\WINNT\System32\NVDESK32.DLL
      0x6D1D0000 - 0x6D1D7000 c:\j2sdk1.4.0-rc\jre\bin\hpi.dll
      0x6D300000 - 0x6D30D000 c:\j2sdk1.4.0-rc\jre\bin\verify.dll
      0x6D210000 - 0x6D228000 c:\j2sdk1.4.0-rc\jre\bin\java.dll
      0x6D320000 - 0x6D32D000 c:\j2sdk1.4.0-rc\jre\bin\zip.dll
      0x6D250000 - 0x6D25A000 C:\j2sdk1.4.0-rc\jre\bin\JdbcOdbc.dll
      0x1F7F0000 - 0x1F825000 C:\WINNT\System32\ODBC32.dll
      0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
      0x77C70000 - 0x77CBA000 C:\WINNT\system32\SHLWAPI.DLL
      0x77B50000 - 0x77BD9000 C:\WINNT\system32\COMCTL32.DLL
      0x782F0000 - 0x78532000 C:\WINNT\system32\SHELL32.DLL
      0x1F8E0000 - 0x1F8F6000 C:\WINNT\System32\odbcint.dll
      0x0AF50000 - 0x0AF92000 C:\WINNT\System32\odbcjt32.dll
      0x1B000000 - 0x1B16F000 C:\WINNT\System32\msjet40.dll
      0x1B5C0000 - 0x1B655000 C:\WINNT\System32\mswstr10.dll
      0x77A50000 - 0x77B46000 C:\WINNT\system32\ole32.dll
      0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.dll
      0x0BBD0000 - 0x0BBDE000 C:\WINNT\System32\odbcji32.dll
      0x1B2C0000 - 0x1B2CD000 C:\WINNT\System32\msjter40.dll
      0x1B2D0000 - 0x1B2F6000 C:\WINNT\System32\MSJINT40.DLL
      0x775A0000 - 0x77625000 C:\WINNT\System32\CLBCATQ.DLL
      0x1B7F0000 - 0x1B82A000 C:\WINNT\System32\msjtes40.dll
      0x0F9A0000 - 0x0F9AB000 C:\WINNT\System32\VBAJET32.DLL
      0x0FDC0000 - 0x0FE22000 C:\WINNT\System32\expsrv.dll
      0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
      0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
      0x690A0000 - 0x690AB000 C:\WINNT\System32\PSAPI.DLL

      Local Time = Wed Jan 23 15:29:14 2002
      Elapsed Time = 0
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b91 mixed mode)
      #
      # An error report file has been saved as hs_err_pid596.log.
      # Please refer to the file for further information.
      #


      Attached is the complete logging output of the test program and the test
      program to reproduce it, also.


      Steps to Reproduce (be specific):

      1. Create a ODBC DSN called "access" to the attached Access.mdb.
      2. Execute Test_InsertRow test program with b91 of JDK 1.4


      Attached:
      1) Access.mdb (MS Access 2000)
      2) test program Test_InsertRow.java
      3) The complete logging output of Test_InsertRow

            ssuryasunw Saikiran Surya (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: