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

JVM crashes (Access Violation) on "INSERT" PreparedStatement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Future Project
    • Affects Version/s: 6-pool
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows 2000 [Version 5.00.2195]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Connected to a remote Microsoft SQL Server 2005.

      A DESCRIPTION OF THE PROBLEM :
      Inserting large data [ ~ 16k], mixed NCHAR, BINARY and VARBINARY types produces this (the exact PreparedStatement string is below).

      The statement:INSERT INTO pivData(binCCC,binCertSig,sIssuerId,binCertKeyMgmt,bin
      PrintedInfo,sFASCN,binFingerprints,sCHUIDExpDate,sPrintedExpDate,binFacialImage,
      binCHUIDHash,sEmpAffl2,sAgencyCardSerNo,binCHUID,sEmpAffl1,binSecurityObj,binCer
      tCardAuth,binCertPIVAuth,sName) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77f87eeb, pid=3076, tid=3788
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing)
      # Problematic frame:
      # C [ntdll.dll+0x7eeb]
      #
      # An error report file with more information is saved as hs_err_pid3076.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a prepared statement as above, bind an appropriate number of large chunks of data, and submit...

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The data should have been posted to the server -- if anything was going to crash, /it/ should have.
      ACTUAL -
      JVM crash.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77f87eeb, pid=3076, tid=3788
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing)
      # Problematic frame:
      # C [ntdll.dll+0x7eeb]
      #
      # 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 (0x02ed1000): JavaThread "pool-1-thread-2" [_thread_in_native, id=3788]

      siginfo: ExceptionCode=0xc0000005, reading address 0x00000018

      Registers:
      EAX=0x00000004, EBX=0x26c34ca8, ECX=0x7ffaf000, EDX=0x00000004
      ESP=0x0356f0f4, EBP=0x0356f128, ESI=0x00000000, EDI=0x03d41590
      EIP=0x77f87eeb, EFLAGS=0x00010246

        Top of Stack: (sp=0x0356f0f4)
      0x0356f0f4: 1f7a2bd1 00000004 03d415b4 1f7a2beb
      0x0356f104: 03d415b4 03d41590 1f7a5a86 03d415b4
      0x0356f114: 02ed10e8 1f7a544b 03d41590 1f7d0000
      0x0356f124: 0356f388 0356f158 1f7a5704 03d41590
      0x0356f134: 0356f160 00000003 02efe5d8 02ed10e8
      0x0356f144: 6d3f124e 03d41590 0356f160 02ed1000
      0x0356f154: 26c34ca8 0356f198 0098a460 00000000
      0x0356f164: 0356f1b4 03d41590 00000000 0356f1a8

      Instructions: (pc=0x77f87eeb)
      0x77f87edb: cc cc cc cc cc 64 8b 0d 18 00 00 00 8b 54 24 04
      0x77f87eeb: 83 7a 14 00 75 4f f0 ff 42 04 75 19 8b 41 24 89


      Stack: [0x03520000,0x03570000), sp=0x0356f0f4, free space=316k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [ntdll.dll+0x7eeb]
      C [ODBC32.dll+0x5704]
      j sun.jdbc.odbc.JdbcOdbc.allocStmt(J[B)J+0
      j sun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(J)J+47
      j sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Ljava/lang/String;II)Ljava/sql/PreparedStatement;+55
      j sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Ljava/lang/String;)Ljava/sql/PreparedStatement;+8
      j tblive.daemon.dpm.PAD.PAD.setData(Ljava/util/Map;)V+346
      v ~StubRoutines::call_stub

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.jdbc.odbc.JdbcOdbc.allocStmt(J[B)J+0
      j sun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(J)J+47
      j sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Ljava/lang/String;II)Ljava/sql/PreparedStatement;+55
      j sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Ljava/lang/String;)Ljava/sql/PreparedStatement;+8
      j tblive.daemon.dpm.PAD.PAD.setData(Ljava/util/Map;)V+346
      v ~StubRoutines::call_stub
      j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
      j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
      j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
      j tblive.daemon.dispatch.JavaJSONProcessor.processCall(Ljava/lang/Object;Ljava/lang/reflect/Method;Ltblive/daemon/core/JSONMessage;[Ljava/lang/Object;)Ltblive/daemon/core/JSONMessage;+4
      j tblive.daemon.dispatch.JavaJSONProcessor.executeArrayMethod(Ljava/lang/Object;Ljava/lang/reflect/Method;Ltblive/daemon/core/JSONMessage;Ltblive/json/JSONArray;)Ltblive/daemon/core/JSONMessage;+198
      j tblive.daemon.dispatch.JavaJSONProcessor.executeMethod(Ljava/lang/Object;Ljava/lang/reflect/Method;Ltblive/daemon/core/JSONMessage;)Ltblive/daemon/core/JSONMessage;+42
      j tblive.daemon.dispatch.JavaJSONProcessor.process(Ltblive/daemon/core/JSONMessage;)Ltblive/daemon/core/JSONMessage;+239
      j tblive.daemon.dispatch.ChainedJSONProcessor.process(Ltblive/daemon/core/JSONMessage;)Ltblive/daemon/core/JSONMessage;+30
      j tblive.daemon.dispatch.SynchronizedJSONProcessor.process(Ltblive/daemon/core/JSONMessage;)Ltblive/daemon/core/JSONMessage;+5
      j tblive.daemon.dispatch.net.SocketHandler.handleData()V+14
      j tblive.daemon.dispatch.net.SocketHandler.run()V+11
      j java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4
      j java.util.concurrent.FutureTask$Sync.innerRun()V+30
      j java.util.concurrent.FutureTask.run()V+4
      j java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Ljava/util/concurrent/ScheduledThreadPoolExecutor$ScheduledFutureTask;)V+1
      j java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V+15
      j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
      j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x03135800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2508]
        0x03280400 JavaThread "pool-1-thread-4" [_thread_in_native, id=3156]
        0x02f64800 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=3480]
        0x02f49400 JavaThread "Timer-0" daemon [_thread_blocked, id=3496]
        0x02ad8000 JavaThread "derby.antiGC" daemon [_thread_blocked, id=3472]
        0x02b87400 JavaThread "pool-1-thread-3" [_thread_in_native, id=1896]
      =>0x02ed1000 JavaThread "pool-1-thread-2" [_thread_in_native, id=3788]
        0x00266400 JavaThread "DestroyJavaVM" [_thread_blocked, id=2932]
        0x02ef7c00 JavaThread "pool-1-thread-1" [_thread_in_native, id=588]
        0x02aecc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1968]
        0x02ae8000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2788]
        0x02ae7000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3160]
        0x02ae6000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3152]
        0x02ade400 JavaThread "Finalizer" daemon [_thread_blocked, id=3884]
        0x02add400 JavaThread "Reference Handler" daemon [_thread_blocked, id=256]

      Other Threads:
        0x02ad4000 VMThread [id=2304]
        0x02aee400 WatcherThread [id=3976]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 960K, used 461K [0x22900000, 0x22a00000, 0x22de0000)
        eden space 896K, 46% used [0x22900000, 0x22967e08, 0x229e0000)
        from space 64K, 71% used [0x229f0000, 0x229fb6b0, 0x22a00000)
        to space 64K, 0% used [0x229e0000, 0x229e0000, 0x229f0000)
       tenured generation total 4096K, used 2937K [0x22de0000, 0x231e0000, 0x26900000)
         the space 4096K, 71% used [0x22de0000, 0x230be470, 0x230be600, 0x231e0000)
       compacting perm gen total 12288K, used 8910K [0x26900000, 0x27500000, 0x2a900000)
         the space 12288K, 72% used [0x26900000, 0x271b39c8, 0x271b3a00, 0x27500000)
          ro space 8192K, 62% used [0x2a900000, 0x2adfe4e8, 0x2adfe600, 0x2b100000)
          rw space 12288K, 52% used [0x2b100000, 0x2b740e78, 0x2b741000, 0x2bd00000)

      Dynamic libraries:
      0x00400000 - 0x00423000 C:\WINNT\system32\java.exe
      0x77f80000 - 0x77ffc000 C:\WINNT\system32\ntdll.dll
      0x7c2d0000 - 0x7c335000 C:\WINNT\system32\ADVAPI32.dll
      0x7c570000 - 0x7c624000 C:\WINNT\system32\KERNEL32.dll
      0x77d30000 - 0x77d9f000 C:\WINNT\system32\RPCRT4.dll
      0x7c340000 - 0x7c396000 C:\Program Files\Java\jre1.6.0_01\bin\msvcr71.dll
      0x6d7c0000 - 0x6da07000 C:\Program Files\Java\jre1.6.0_01\bin\client\jvm.dll
      0x77e10000 - 0x77e6f000 C:\WINNT\system32\USER32.dll
      0x77f40000 - 0x77f7c000 C:\WINNT\system32\GDI32.dll
      0x77570000 - 0x775a0000 C:\WINNT\system32\WINMM.dll
      0x6d310000 - 0x6d318000 C:\Program Files\Java\jre1.6.0_01\bin\hpi.dll
      0x690a0000 - 0x690ab000 C:\WINNT\system32\PSAPI.DLL
      0x6d770000 - 0x6d77c000 C:\Program Files\Java\jre1.6.0_01\bin\verify.dll
      0x6d3b0000 - 0x6d3cf000 C:\Program Files\Java\jre1.6.0_01\bin\java.dll
      0x6d7b0000 - 0x6d7bf000 C:\Program Files\Java\jre1.6.0_01\bin\zip.dll
      0x6d570000 - 0x6d583000 C:\Program Files\Java\jre1.6.0_01\bin\net.dll
      0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.dll
      0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.DLL
      0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL
      0x74fd0000 - 0x74fee000 C:\WINNT\system32\msafd.dll
      0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
      0x6d590000 - 0x6d599000 C:\Program Files\Java\jre1.6.0_01\bin\nio.dll
      0x782c0000 - 0x782cc000 C:\WINNT\System32\rnr20.dll
      0x77980000 - 0x779a4000 C:\WINNT\system32\DNSAPI.DLL
      0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.dll
      0x77340000 - 0x77353000 C:\WINNT\system32\iphlpapi.dll
      0x77520000 - 0x77525000 C:\WINNT\system32\ICMP.dll
      0x77320000 - 0x77337000 C:\WINNT\system32\MPRAPI.dll
      0x75150000 - 0x75160000 C:\WINNT\system32\SAMLIB.DLL
      0x7cdc0000 - 0x7ce10000 C:\WINNT\system32\NETAPI32.DLL
      0x03710000 - 0x0371f000 C:\WINNT\system32\Secur32.dll
      0x77bf0000 - 0x77c01000 C:\WINNT\system32\NTDSAPI.dll
      0x77950000 - 0x7797b000 C:\WINNT\system32\WLDAP32.DLL
      0x751c0000 - 0x751c6000 C:\WINNT\system32\NETRAP.dll
      0x7ce20000 - 0x7cf0f000 C:\WINNT\system32\OLE32.DLL
      0x779b0000 - 0x77a4c000 C:\WINNT\system32\OLEAUT32.DLL
      0x773b0000 - 0x773df000 C:\WINNT\system32\ACTIVEDS.DLL
      0x77380000 - 0x773a3000 C:\WINNT\system32\ADSLDPC.DLL
      0x77830000 - 0x7783e000 C:\WINNT\system32\RTUTILS.DLL
      0x77880000 - 0x7790e000 C:\WINNT\system32\SETUPAPI.DLL
      0x7c0f0000 - 0x7c154000 C:\WINNT\system32\USERENV.DLL
      0x774e0000 - 0x77514000 C:\WINNT\system32\RASAPI32.dll
      0x774c0000 - 0x774d1000 C:\WINNT\system32\rasman.dll
      0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.dll
      0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
      0x70a70000 - 0x70ad6000 C:\WINNT\system32\SHLWAPI.DLL
      0x77360000 - 0x77379000 C:\WINNT\system32\DHCPCSVC.DLL
      0x777e0000 - 0x777e8000 C:\WINNT\System32\winrnr.dll
      0x777f0000 - 0x777f5000 C:\WINNT\system32\rasadhlp.dll
      0x6d1f0000 - 0x6d21f000 C:\Program Files\Java\jre1.6.0_01\bin\cmm.dll
      0x6d450000 - 0x6d474000 C:\Program Files\Java\jre1.6.0_01\bin\jpeg.dll
      0x6d000000 - 0x6d1c3000 C:\Program Files\Java\jre1.6.0_01\bin\awt.dll
      0x77800000 - 0x7781e000 C:\WINNT\system32\WINSPOOL.DRV
      0x76620000 - 0x76631000 C:\WINNT\system32\MPR.DLL
      0x75e60000 - 0x75e7a000 C:\WINNT\system32\IMM32.dll
      0x6d3f0000 - 0x6d3fd000 C:\Program Files\Java\jre1.6.0_01\bin\JdbcOdbc.dll
      0x1f7a0000 - 0x1f7d6000 C:\WINNT\system32\ODBC32.dll
      0x7cf30000 - 0x7d176000 C:\WINNT\system32\SHELL32.dll
      0x76b30000 - 0x76b6e000 C:\WINNT\system32\comdlg32.dll
      0x1f840000 - 0x1f857000 C:\WINNT\system32\odbcint.dll
      0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
      0x759b0000 - 0x759b6000 C:\WINNT\system32\LZ32.DLL
      0x1f7f0000 - 0x1f80a000 C:\WINNT\system32\odbccp32.dll
      0x782d0000 - 0x782f2000 C:\WINNT\system32\msv1_0.dll
      0x7c740000 - 0x7c7cc000 C:\WINNT\system32\CRYPT32.dll
      0x77430000 - 0x77441000 C:\WINNT\system32\MSASN1.dll
      0x78160000 - 0x78187000 C:\WINNT\system32\schannel.dll
      0x7ca00000 - 0x7ca23000 C:\WINNT\system32\rsaenh.dll
      0x67400000 - 0x67427000 C:\WINNT\system32\dssenh.dll

      VM Arguments:
      java_command: tblive.daemon.server.TBLiveDaemonServer -c default.conf -a abbrev.defs $*
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=C:\Program Files\Java\jdk1.6.0_01
      PATH=c:\program files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Schlumberger\Smart Cards and Terminals\Cyberflex Access Kits\v4\;C:\Program Files\WinSCP3\;C:\Program Files\SmartDeck\bin\;C:\msys\1.0\bin;c:\mingw\bin;C:\Program Files\Microsoft Visual Studio 8\VC\bin;c:\cmdline;C:\Program Files\Java\jdk1.6.0_01\bin;c:\bin
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel



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

      OS: Windows 2000 Build 2195 Service Pack 4

      CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

      Memory: 4k page, physical 2096620k(1259876k free), swap 4033296k(3149404k free)

      vm_info: Java HotSpot(TM) Client VM (1.6.0_01-b06) for windows-x86, built on Mar 14 2007 00:24:02 by "java_re" with unknown MS VC++:1310



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      String statement = "INSERT INTO pivData(binCCC,binCertSig,sIssuerId,binCertKeyMgmt,binPrintedInfo,sFASCN,binFingerprints,sCHUIDExpDate,sPrintedExpDate,binFacialImage,binCHUIDHash,sEmpAffl2,sAgencyCardSerNo,binCHUID,sEmpAffl1,binSecurityObj,binCertCardAuth,binCertPIVAuth,sName) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
      PreparedStatement stmt = db.prepareStatement(statement);

      i = 1;
      byte[] junk = new byte[8000];
      for(byte[] value:data.values()) {
      stmt.setBytes(i++, junk);
      }

      stmt.execute();
      stmt.close();
      db.commit();

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

        Attachments

          Activity

            People

            Assignee:
            lancea Lance Andersen
            Reporter:
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: