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

SEGV in java.net.SocketInputStream.socketRead0

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0_21"
      Java(TM) SE Runtime Environment (build 1.7.0_21-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

      FULL OS VERSION :
      Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      MacBook Pro late 2012

      A DESCRIPTION OF THE PROBLEM :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      [thread 30467 also had an error][thread 30467 also had an error]
      [thread 28163 also had an error]
      [thread 28163 also had an error]
      #
      SIGSEGV[thread 24835 also had an error]
       (0xb) at pc=0x000000010583334c, pid=3575, tid=31491
      #
      # JRE version: 7.0_13-b20
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # C [libjava.dylib+0x934c] JNU_NewStringPlatform+0x1c8
      #

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

      REGRESSION. Last worked in version 7u13

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Current thread (0x00007f9118ff7800): JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#29" daemon [_thread_in_native, id=31491, stack(0x00000001557b2000,0x00000001558b2000)]

      siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00007f911cff79d8

      Registers:
      RAX=0x000000010583334c, RBX=0x00000001558a0f30, RCX=0x0000000105833460, RDX=0x0000000000000000
      RSP=0x00000001558a0af0, RBP=0x00000001558a0f20, RSI=0x00000001558a0f30, RDI=0x00007f911cff79d8
      R8 =0x00000001558a0f30, R9 =0x6c1f6e6e52ff736d, R10=0x00007fff75939e30, R11=0x8080808080808080
      R12=0x00007fff759344b0, R13=0x00000001558a1061, R14=0x00007f911cff79d8, R15=0x00007f911cff79d8
      RIP=0x000000010583334c, EFLAGS=0x0000000000010203, ERR=0x0000000000000004
        TRAPNO=0x000000000000000e

        Top of Stack: (sp=0x00000001558a0af0)
      0x00000001558a0af0: 00000001558a1060 00000001558a0f70
      0x00000001558a0b00: 0000000000000000 000020600a484a20
      0x00000001558a0b10: 0000280000002800 0000000100000000
      0x00000001558a0b20: 00000000000004f8 00000000000004f8
      0x00000001558a0b30: 0000000100000000 000000010a4107a8
      0x00000001558a0b40: 0000000100000000 00007f910af146e8
      0x00000001558a0b50: 00000000099afc00 0000000000000018
      0x00000001558a0b60: 00000001558b2000 00007f9100000000
      0x00000001558a0b70: 00007f9100000000 00000001558a0bc0
      0x00000001558a0b80: 0000000000000000 0000000000000800
      0x00000001558a0b90: 00000001558a0e98 00000001558a0ba8
      0x00000001558a0ba0: 0000000000000000 000000015207577e
      0x00000001558a0bb0: 0000000000000001 0000000152075584
      0x00000001558a0bc0: 0000000000000012 0000000000000000
      0x00000001558a0bd0: 0000000100000000 00000001558a0c4c
      0x00000001558a0be0: 0000000100000000 0000000109b78040
      0x00000001558a0bf0: 000000010a6b09f0 000000400b2b9998
      0x00000001558a0c00: 0000000009b78288 0000000100000000
      0x00000001558a0c10: 0000000000000000 0000000000000000
      0x00000001558a0c20: 0000000100000000 5800000100000000
      0x00000001558a0c30: 000000010a628790 00007fff0b61ae90
      0x00000001558a0c40: 0000000000000000 0000206000000000
      0x00000001558a0c50: 00002c0000000000 0000000100000000
      0x00000001558a0c60: 0000000000000000 0000000000000000
      0x00000001558a0c70: 00000001558a0ce0 0000000100000000
      0x00000001558a0c80: 0000000100000000 0000000000000000
      0x00000001558a0c90: 0000000000000000 0000000000000000
      0x00000001558a0ca0: 0000000100000000 00007f9100000000
      0x00000001558a0cb0: 00007f9100000000 00000001558a0d00
      0x00000001558a0cc0: 0000000000000000 0000000000000000
      0x00000001558a0cd0: 00007f9100000000 0000000000000000
      0x00000001558a0ce0: 0000000100000000 0000000100000000

      Instructions: (pc=0x000000010583334c)
      0x000000010583332c: 9f 7f 08 0f b7 b4 b1 00 fe ff ff 66 89 32 48 83
      0x000000010583333c: c2 02 48 ff c3 48 ff c8 0f 84 ef fe ff ff eb da
      0x000000010583334c: 49 8b 06 be 02 00 00 00 4c 89 f7 ff 90 d0 00 00
      0x000000010583335c: 00 85 c0 0f 88 f1 00 00 00 48 89 df e8 3b 08 01

      Register to memory mapping:

      RAX=0x000000010583334c: JNU_NewStringPlatform+0x1c8 in /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib/libjava.dylib at 0x000000010582a000
      RBX=0x00000001558a0f30 is pointing into the stack for thread: 0x00007f9118ff7800
      RCX=0x0000000105833460: JNU_NewStringPlatform+0x2dc in /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib/libjava.dylib at 0x000000010582a000
      RDX=0x0000000000000000 is an unknown value
      RSP=0x00000001558a0af0 is pointing into the stack for thread: 0x00007f9118ff7800
      RBP=0x00000001558a0f20 is pointing into the stack for thread: 0x00007f9118ff7800
      RSI=0x00000001558a0f30 is pointing into the stack for thread: 0x00007f9118ff7800
      RDI=0x00007f911cff79d8 is an unknown value
      R8 =0x00000001558a0f30 is pointing into the stack for thread: 0x00007f9118ff7800
      R9 =0x6c1f6e6e52ff736d is an unknown value
      R10=0x00007fff75939e30: strerror.ebuf+0 in /usr/lib/system/libsystem_c.dylib at 0x00007fff8b646000
      R11=0x8080808080808080 is an unknown value
      R12=0x00007fff759344b0: __stack_chk_guard+0 in /usr/lib/system/libsystem_c.dylib at 0x00007fff8b646000
      R13=0x00000001558a1061 is pointing into the stack for thread: 0x00007f9118ff7800
      R14=0x00007f911cff79d8 is an unknown value
      R15=0x00007f911cff79d8 is an unknown value


      Stack: [0x00000001557b2000,0x00000001558b2000], sp=0x00000001558a0af0, free space=954k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libjava.dylib+0x934c] JNU_NewStringPlatform+0x1c8
      C [libjava.dylib+0x94c9] JNU_ThrowByNameWithLastError+0x4b
      C [libnet.dylib+0x632a] NET_ThrowByNameWithLastError+0x64

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I
      J java.net.SocketInputStream.read([BIII)I
      J oracle.net.ns.Packet.receive()V
      j oracle.net.ns.NSProtocol.connect(Ljava/lang/String;Ljava/util/Properties;)V+329
      j oracle.jdbc.driver.T4CConnection.connect(Ljava/lang/String;)V+715
      j oracle.jdbc.driver.T4CConnection.logon()V+43
      j oracle.jdbc.driver.PhysicalConnection.<init>(Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V+323
      j oracle.jdbc.driver.T4CConnection.<init>(Ljava/lang/String;Ljava/util/Properties;Loracle/jdbc/driver/OracleDriverExtension;)V+4
      j oracle.jdbc.driver.T4CDriverExtension.getConnection(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+7
      j oracle.jdbc.driver.OracleDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+296
      j com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+18
      j com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(Ljava/lang/String;Ljava/lang/String;Lcom/mchange/v2/c3p0/ConnectionCustomizer;Ljava/lang/String;)Ljavax/sql/PooledConnection;+25
      j com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(Ljava/lang/String;Ljava/lang/String;)Ljavax/sql/PooledConnection;+5
      j com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource()Ljava/lang/Object;+50
      j com.mchange.v2.resourcepool.BasicResourcePool.doAcquire()V+25
      j com.mchange.v2.resourcepool.BasicResourcePool.access$800(Lcom/mchange/v2/resourcepool/BasicResourcePool;)V+1
      j com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run()V+31
      j com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run()V+121
      v ~StubRoutines::call_stub

      REPRODUCIBILITY :
      This bug can be reproduced often.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chegar Chris Hegarty
                Reporter:
                coffeys Sean Coffey
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: