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

REGRESSION: Access violation is thrown by JRE when trying to connect to Excel

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b67)
      Java HotSpot(TM) Server VM (build 1.6.0-rc-b67, interpreted mode)

      ADDITIONAL OS VERSION INFORMATION :
      Slovenian version of Windows XP Home Edition:

      Microsoft Windows XP [različica 5.1.2600]


      A DESCRIPTION OF THE PROBLEM :
      An exception access violation is thrown by JRE when I tried to connect to Excel spreadsheet. The application correctly works with "build 1.6.0-rc-b65" and JSE 1.5.0_06

      REGRESSION. Last worked in version mustang-rc-b65, 5.0_06

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.) Register any Excel spreadsheet as user data source "jdbc:odbc:excel-bug" using the following driver: Name: Driver Microsoft Excel (*.xls); Version: 4.00.6019.00; Company: Microsoft Corporation; File: ODBCJT32.DLL; Date: 31.3.2003;

      2.) Execute the program to register database driver and get connection.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The program should correctly register driver and return connection to database.
      ACTUAL -
      Exception access violation is thrown.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d3c4df2, pid=3068, tid=1888
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b67 mixed mode, sharing)
      # Problematic frame:
      # C 0x6d3c4df2
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x00036800): JavaThread "main" [_thread_in_native, id=1888]

      siginfo: ExceptionCode=0xc0000005, reading address 0x6d3c4df2

      Registers:
      EAX=0x00000000, EBX=0x02e1e0f8, ECX=0x02ff1480, EDX=0x00000000
      ESP=0x008ef9c8, EBP=0x008efad8, ESI=0x000368e4, EDI=0x00000000
      EIP=0x6d3c4df2, EFLAGS=0x00010202

        Top of Stack: (sp=0x008ef9c8)
      0x008ef9c8: 00036800 26993b60 26993b60 3d4e5344
      0x008ef9d8: 65637865 75622d6c 42443b67 3a433d51
      0x008ef9e8: 646e415c 5c6a6572 74736554 7365745c
      0x008ef9f8: 782e3274 443b736c 75616665 6944746c
      0x008efa08: 3a433d72 646e415c 5c6a6572 74736554
      0x008efa18: 6972443b 49726576 39373d64 49463b30
      0x008efa28: 78653d4c 206c6563 3b302e38 4278614d
      0x008efa38: 65666675 7a695372 30323d65 503b3834

      Instructions: (pc=0x6d3c4df2)
      0x6d3c4de2:
      [error occurred during error reporting, step 100, id 0xc0000005]

      Stack: [0x008a0000,0x008f0000), sp=0x008ef9c8, free space=318k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C 0x6d3c4df2
      j sun.jdbc.odbc.JdbcOdbc.driverConnect(J[B[B)V+0
      j sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JLjava/lang/String;)V+93
      j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+984
      j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
      j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+183
      j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
      j OdbcBug.main([Ljava/lang/String;)V+14
      v ~StubRoutines::call_stub

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.jdbc.odbc.JdbcOdbc.driverConnect(J[B[B)V+0
      j sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JLjava/lang/String;)V+93
      j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+984
      j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
      j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+183
      j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
      j OdbcBug.main([Ljava/lang/String;)V+14
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x02b0fc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3424]
        0x02b0d400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1764]
        0x02b0c400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2712]
        0x02b0b400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=912]
        0x02ad1400 JavaThread "Finalizer" daemon [_thread_blocked, id=2700]
        0x02acd000 JavaThread "Reference Handler" daemon [_thread_blocked, id=1336]
      =>0x00036800 JavaThread "main" [_thread_in_native, id=1888]

      Other Threads:
        0x02acbc00 VMThread [id=2860]
        0x02b11400 WatcherThread [id=2748]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 960K, used 314K [0x22970000, 0x22a70000, 0x22e50000)
        eden space 896K, 35% used [0x22970000, 0x229bea00, 0x22a50000)
        from space 64K, 0% used [0x22a50000, 0x22a50000, 0x22a60000)
        to space 64K, 0% used [0x22a60000, 0x22a60000, 0x22a70000)
       tenured generation total 4096K, used 0K [0x22e50000, 0x23250000, 0x26970000)
         the space 4096K, 0% used [0x22e50000, 0x22e50000, 0x22e50200, 0x23250000)
       compacting perm gen total 12288K, used 196K [0x26970000, 0x27570000, 0x2a970000)
         the space 12288K, 1% used [0x26970000, 0x269a1118, 0x269a1200, 0x27570000)
          ro space 8192K, 67% used [0x2a970000, 0x2aecc958, 0x2aecca00, 0x2b170000)
          rw space 12288K, 56% used [0x2b170000, 0x2b82a950, 0x2b82aa00, 0x2bd70000)

      Dynamic libraries:
      0x00400000 - 0x00410000 C:\Program Files\Java\jdk1.6.0\jre\bin\java.exe
      0x77f50000 - 0x77ff7000 C:\WINDOWS\System32\ntdll.dll
      0x77e60000 - 0x77f46000 C:\WINDOWS\system32\kernel32.dll
      0x6d400000 - 0x6d40a000 C:\Program Files\Java\jdk1.6.0\jre\bin\jli.dll
      0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0\jre\bin\MSVCR71.dll
      0x77dd0000 - 0x77e5d000 C:\WINDOWS\system32\ADVAPI32.dll
      0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll
      0x6d770000 - 0x6d9a9000 C:\Program Files\Java\jdk1.6.0\jre\bin\client\jvm.dll
      0x77d40000 - 0x77dcd000 C:\WINDOWS\system32\USER32.dll
      0x7f000000 - 0x7f042000 C:\WINDOWS\system32\GDI32.dll
      0x76b40000 - 0x76b6c000 C:\WINDOWS\System32\WINMM.dll
      0x6d2f0000 - 0x6d2f8000 C:\Program Files\Java\jdk1.6.0\jre\bin\hpi.dll
      0x76bf0000 - 0x76bfb000 C:\WINDOWS\System32\PSAPI.DLL
      0x6d720000 - 0x6d72c000 C:\Program Files\Java\jdk1.6.0\jre\bin\verify.dll
      0x6d380000 - 0x6d39f000 C:\Program Files\Java\jdk1.6.0\jre\bin\java.dll
      0x6d760000 - 0x6d76f000 C:\Program Files\Java\jdk1.6.0\jre\bin\zip.dll
      0x1f7b0000 - 0x1f7e1000 C:\WINDOWS\System32\ODBC32.dll
      0x77340000 - 0x773cb000 C:\WINDOWS\system32\COMCTL32.dll
      0x763b0000 - 0x763f5000 C:\WINDOWS\system32\comdlg32.dll
      0x70a70000 - 0x70ad6000 C:\WINDOWS\system32\SHLWAPI.dll
      0x77c10000 - 0x77c63000 C:\WINDOWS\system32\msvcrt.dll
      0x7cd00000 - 0x7d4fb000 C:\WINDOWS\system32\SHELL32.dll
      0x71950000 - 0x71a35000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1740_x-ww_7cb8ab44\comctl32.dll
      0x1f850000 - 0x1f866000 C:\WINDOWS\System32\odbcint.dll
      0x1f8f0000 - 0x1f932000 C:\WINDOWS\System32\odbcjt32.dll
      0x1b000000 - 0x1b16f000 C:\WINDOWS\System32\msjet40.dll
      0x1b5c0000 - 0x1b655000 C:\WINDOWS\System32\mswstr10.dll
      0x4fec0000 - 0x4ffe6000 C:\WINDOWS\system32\ole32.dll
      0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
      0x1f8e0000 - 0x1f8ee000 C:\WINDOWS\System32\odbcji32.dll
      0x1b2c0000 - 0x1b2cd000 C:\WINDOWS\System32\msjter40.dll
      0x1b2d0000 - 0x1b2f6000 C:\WINDOWS\System32\MSJINT40.DLL
      0x76f90000 - 0x76fa0000 C:\WINDOWS\System32\Secur32.dll
      0x1b300000 - 0x1b34e000 C:\WINDOWS\System32\msexcl40.dll
      0x5ad70000 - 0x5ada4000 C:\WINDOWS\System32\uxtheme.dll
      0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll

      VM Arguments:
      java_command: OdbcBug
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin
      USERNAME=
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 15 Stepping 0, AuthenticAMD



      --------------- S Y S T E M ---------------

      OS: Windows XP Build 2600 Service Pack 1

      CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, mmxext, 3dnowext, 3dnow

      Memory: 4k page, physical 2096624k(1044788k free), swap 2730384k(1807008k free)

      vm_info: Java HotSpot(TM) Client VM (1.6.0-rc-b67) for windows-x86, built on Jan 12 2006 00:30:17 by "java_re" with unknown MS VC++:1310



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.sql.Connection;
      import java.sql.DriverManager;
      import java.sql.SQLException;
      import sun.jdbc.odbc.JdbcOdbcDriver;

      public class OdbcBug {
          public static void main(String[] args) throws Exception {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String userDsn = "jdbc:odbc:excel-bug";
              Connection conn = DriverManager.getConnection(userDsn, "", "");
          }
      }
       

      ---------- END SOURCE ----------

      Release Regression From : 5.0u6
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

        Attachments

          Activity

            People

            Assignee:
            ahandasunw Amit Handa (Inactive)
            Reporter:
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: