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

Code compiled with invokedynamic causes HS error (SIGSEGV)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b113
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b118)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b60, mixed mode)

      FULL OS VERSION :
      Darwin Brians-iMac.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

      A DESCRIPTION OF THE PROBLEM :
      I created a simple class in Groovy with invokedynamic enabled during compilation. The resulting Java class causes a HS error on JDK 8 but runs fine on JDK 7.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      REGRESSION. Last worked in version 7u10

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Brian Goetz said not to post Groovy code, but unfortunately I don't have too much else to go on. I can send you the .class file if you want, but otherwise, just compile this Groovy class with invokedynamic enabled and then simply run it with java.

      Also, I'm going to add in some of the output from javap -c on the class. The really interesting thing is that that code snippet "Paths.get(".").resolve("build/test").toString()" are all called using invokedynamic from the Groovy code and that appears to be where the issue is.

      Here's the key parts of the javap output:

        public static void main(java.lang.String...);
          Code:
             0: ldc #2 // class org/test/TestClass
             2: ldc #32 // class java/nio/file/Paths
             4: ldc #34 // String .
             6: invokedynamic #48, 0 // InvokeDynamic #0:invoke:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
            11: ldc #50 // String build/cache
            13: invokedynamic #55, 0 // InvokeDynamic #1:invoke:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            18: invokedynamic #60, 0 // InvokeDynamic #2:invoke:(Ljava/lang/Object;)Ljava/lang/Object;
            23: invokedynamic #65, 0 // InvokeDynamic #3:invoke:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
            28: pop
            29: return

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected
      ./build/cache

      Actual
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000000000000000, pid=28430, tid=6403
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0-b109) (build 1.8.0-ea-b109)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b51 mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # C 0x0000000000000000
      #
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/bpontarelli/dev/test/groovy-indy-jdk8/hs_err_pid28430.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #
      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      bpontarelli@Brians-MacBook-Pro ~/d/t/groovy-indy-jdk8> cat hs_err_pid28414.log
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000000000000000, pid=28414, tid=6403
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0-b109) (build 1.8.0-ea-b109)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b51 mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # C 0x0000000000000000
      #
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #

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

      Current thread (0x00007f7f9b00f000): JavaThread "main" [_thread_in_Java, id=6403, stack(0x00000001040f4000,0x00000001041f4000)]

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

      Registers:
      RAX=0x0000000800028e70, RBX=0x0000000800028c90, RCX=0x00000007abbca8d8, RDX=0x0000000000000002
      RSP=0x00000001041f2300, RBP=0x00000001041f2350, RSI=0x0000000000000007, RDI=0x00007f7f9b00f000
      R8 =0x00000001041f1e68, R9 =0x0000000000000000, R10=0x00000008000ff500, R11=0x00000000000003a0
      R12=0x0000000000000000, R13=0x00000001041f2300, R14=0x00000001041f2370, R15=0x00007f7f9b00f000
      RIP=0x0000000000000000, EFLAGS=0x0000000000010246, ERR=0x0000000000000014
        TRAPNO=0x000000000000000e

        Top of Stack: (sp=0x00000001041f2300)
      0x00000001041f2300: 0000000105cf0233 00000007abbca8d8
      0x00000001041f2310: 00000001041f2310 000000011f60521a
      0x00000001041f2320: 00000001041f2370 000000011f6052b0
      0x00000001041f2330: 0000000000000000 000000011f605230
      0x00000001041f2340: 00000001041f2300 00000001041f2368
      0x00000001041f2350: 00000001041f23b8 0000000105cf0233
      0x00000001041f2360: 00000007abbd5458 00000007abbca8d8
      0x00000001041f2370: 00000007abbd8b38 00000001041f2378
      0x00000001041f2380: 000000011f057b28 00000001041f23d0
      0x00000001041f2390: 000000011f058b50 0000000000000000
      0x00000001041f23a0: 000000011f057b40 00000001041f2368
      0x00000001041f23b0: 00000001041f23e0 00000001041f23e0
      0x00000001041f23c0: 0000000105fc083c 00000007abbdca00
      0x00000001041f23d0: 00000007abbd8b38 0000000105fc083c
      0x00000001041f23e0: 00007f7f9ac121d0 00007f7f9ac12218
      0x00000001041f23f0: 000000011f5cea20 00007f7f9b00f000
      0x00000001041f2400: 000000011f5cea20 00007f7f9b00f000
      0x00000001041f2410: 00000001041f2440 00000001056a6e64
      0x00000001041f2420: 00000001041f2498 0000000105cf0233
      0x00000001041f2430: 00000001041f2498 0000000105cf0233
      0x00000001041f2440: 00000007abbdca00 00000007abbd8b38
      0x00000001041f2450: 00000007aaaf9780 00000001041f2458
      0x00000001041f2460: 000000011f0580be 00000001041f24b0
      0x00000001041f2470: 000000011f058b50 000000011f5f78c0
      0x00000001041f2480: 000000011f0580e0 00000001041f2440
      0x00000001041f2490: 00000001041f24c0 00000001041f2598
      0x00000001041f24a0: 0000000105fb2724 00000007abbdca00
      0x00000001041f24b0: 00000007abbd8c70 0000000105fb2724
      0x00000001041f24c0: 00000007abbdc9c8 00007f7f9b00f000
      0x00000001041f24d0: 0000000000000003 00000007abbdc9c8
      0x00000001041f24e0: 00000007abbdc9e0 000000080000efc0
      0x00000001041f24f0: 00000007abbdc9e0 00000007abbd8c58

      Instructions: (pc=0x0000000000000000)
      0xffffffffffffffe0:

      Register to memory mapping:

      RAX=0x0000000800028e70 is an unknown value
      RBX=0x0000000800028c90 is an unknown value
      RCX=0x00000007abbca8d8 is an oop
      sun.nio.fs.UnixPath
       - klass: 'sun/nio/fs/UnixPath'
      RDX=0x0000000000000002 is an unknown value
      RSP=0x00000001041f2300 is pointing into the stack for thread: 0x00007f7f9b00f000
      RBP=0x00000001041f2350 is pointing into the stack for thread: 0x00007f7f9b00f000
      RSI=0x0000000000000007 is an unknown value
      RDI=0x00007f7f9b00f000 is a thread
      R8 =0x00000001041f1e68 is pointing into the stack for thread: 0x00007f7f9b00f000
      R9 =0x0000000000000000 is an unknown value
      R10=0x00000008000ff500 is an unknown value
      R11=0x00000000000003a0 is an unknown value
      R12=0x0000000000000000 is an unknown value
      R13=0x00000001041f2300 is pointing into the stack for thread: 0x00007f7f9b00f000
      R14=0x00000001041f2370 is pointing into the stack for thread: 0x00007f7f9b00f000
      R15=0x00007f7f9b00f000 is a thread


      Stack: [0x00000001040f4000,0x00000001041f4000], sp=0x00000001041f2300, free space=1016k

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

      Java Threads: ( => current thread )
        0x00007f7f9c01a800 JavaThread "Service Thread" daemon [_thread_blocked, id=22275, stack(0x0000000121f38000,0x0000000122038000)]
        0x00007f7f9b803000 JavaThread "C1 CompilerThread3" daemon [_thread_in_native, id=21763, stack(0x0000000121e1e000,0x0000000121f1e000)]
        0x00007f7f9b802000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=21251, stack(0x0000000121d1b000,0x0000000121e1b000)]
        0x00007f7f9c86e800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=20739, stack(0x0000000121c18000,0x0000000121d18000)]
        0x00007f7f9c86d000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=20227, stack(0x0000000121b15000,0x0000000121c15000)]
        0x00007f7f9c01a000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=19715, stack(0x0000000121a12000,0x0000000121b12000)]
        0x00007f7f9b021800 JavaThread "Finalizer" daemon [_thread_blocked, id=14595, stack(0x00000001217c1000,0x00000001218c1000)]
        0x00007f7f9b021000 JavaThread "Reference Handler" daemon [_thread_blocked, id=14083, stack(0x00000001216be000,0x00000001217be000)]
      =>0x00007f7f9b00f000 JavaThread "main" [_thread_in_Java, id=6403, stack(0x00000001040f4000,0x00000001041f4000)]

      Other Threads:
        0x00007f7f9c84c000 VMThread [stack: 0x00000001215bb000,0x00000001216bb000] [id=13571]
        0x00007f7f9c009000 WatcherThread [stack: 0x000000012203b000,0x000000012213b000] [id=22787]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap:
       PSYoungGen total 76800K, used 18730K [0x00000007aaa80000, 0x00000007b0000000, 0x0000000800000000)
        eden space 66048K, 28% used [0x00000007aaa80000,0x00000007abccabd0,0x00000007aeb00000)
        from space 10752K, 0% used [0x00000007af580000,0x00000007af580000,0x00000007b0000000)
        to space 10752K, 0% used [0x00000007aeb00000,0x00000007aeb00000,0x00000007af580000)
       ParOldGen total 174592K, used 0K [0x0000000700000000, 0x000000070aa80000, 0x00000007aaa80000)
        object space 174592K, 0% used [0x0000000700000000,0x0000000700000000,0x000000070aa80000)
       Metaspace total 8842K, used 8733K, reserved 1056768K
        data space 7793K, used 7735K, reserved 8192K
        class space 1049K, used 998K, reserved 1048576K

      Card table byte_map: [0x00000001150aa000,0x00000001158ab000] byte_map_base: 0x00000001118aa000

      Marking Bits: (ParMarkBitMap*) 0x0000000105a45910
       Begin Bits: [0x0000000116619000, 0x000000011a619000)
       End Bits: [0x000000011a619000, 0x000000011e619000)

      Polling page: 0x00000001041f6000

      CodeCache: size=245760Kb used=2921Kb max_used=2921Kb free=242838Kb
       bounds [0x0000000105cea000, 0x0000000105fca000, 0x0000000114cea000]
       total_blobs=1167 nmethods=863 adapters=221
       compilation: enabled

      Compilation events (10 events):
      Event: 0.451 Thread 0x00007f7f9b803000 nmethod 849 0x0000000105fc0210 code [0x0000000105fc0360, 0x0000000105fc04b0]
      Event: 0.451 Thread 0x00007f7f9b803000 857 3 java.lang.invoke.LambdaForm$DMH/1252169911::invokeStatic_LL_L (15 bytes)
      Event: 0.451 Thread 0x00007f7f9b803000 nmethod 857 0x0000000105fc0510 code [0x0000000105fc06a0, 0x0000000105fc09b8]
      Event: 0.451 Thread 0x00007f7f9b803000 858 3 java.lang.invoke.LambdaForm$NamedFunction::invoker (28 bytes)
      Event: 0.451 Thread 0x00007f7f9b803000 nmethod 858 0x0000000105fc0b10 code [0x0000000105fc0ca0, 0x0000000105fc1118]
      Event: 0.451 Thread 0x00007f7f9b803000 859 3 java.lang.invoke.LambdaForm$NamedFunction::resolvedHandle (16 bytes)
      Event: 0.452 Thread 0x00007f7f9b803000 nmethod 859 0x0000000105fc1450 code [0x0000000105fc1600, 0x0000000105fc1d78]
      Event: 0.452 Thread 0x00007f7f9b803000 862 1 java.lang.invoke.MethodType::parameterCount (6 bytes)
      Event: 0.452 Thread 0x00007f7f9b803000 nmethod 862 0x0000000105fc20d0 code [0x0000000105fc2220, 0x0000000105fc2370]
      Event: 0.452 Thread 0x00007f7f9b803000 860 3 java.lang.invoke.LambdaForm$NamedFunction::invokeWithArguments (50 bytes)

      GC Heap History (0 events):
      No events

      Deoptimization events (0 events):
      No events

      Internal exceptions (10 events):
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ClassNotFoundException': sun/nio/fs/AbstractPathCustomizer> (0x00000007abba4520) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 202]
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x00000007abba7a28) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/runtime/sharedRuntime.cpp, line 593]
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x00000007abba8898) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/runtime/sharedRuntime.cpp, line 593]
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x00000007abbaa250) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/runtime/sharedRuntime.cpp, line 593]
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x00000007abbab2a0) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/runtime/sharedRuntime.cpp, line 593]
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/security/PrivilegedActionException'> (0x00000007abbada20) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/prims/jvm.cpp, line 1249]
      Event: 0.447 Thread 0x00007f7f9b00f000 Exception <a 'java/security/PrivilegedActionException'> (0x00000007abbaeb40) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/prims/jvm.cpp, line 1249]
      Event: 0.448 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ClassNotFoundException': sun/nio/fs/UnixPathCustomizer> (0x00000007abbaed60) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 202]
      Event: 0.448 Thread 0x00007f7f9b00f000 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x00000007abbb55c8) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/runtime/sharedRuntime.cpp, line 593]
      Event: 0.451 Thread 0x00007f7f9b00f000 Exception <a 'java/security/PrivilegedActionException'> (0x00000007abbd1a70) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8/312/hotspot/src/share/vm/prims/jvm.cpp, line 1249]

      Events (10 events):
      Event: 0.447 loading class java/nio/file/WatchEvent
      Event: 0.447 loading class java/nio/file/WatchEvent done
      Event: 0.447 loading class sun/reflect/generics/reflectiveObjects/GenericArrayTypeImpl
      Event: 0.447 loading class sun/reflect/generics/reflectiveObjects/GenericArrayTypeImpl done
      Event: 0.447 loading class sun/nio/fs/UnixPathCustomizer
      Event: 0.447 loading class sun/nio/fs/UnixPathCustomizer done
      Event: 0.447 loading class sun/nio/fs/UnixPathCustomizer
      Event: 0.447 loading class sun/nio/fs/UnixPathCustomizer done
      Event: 0.451 loading class groovy/lang/ExpandoMetaClassCreationHandle
      Event: 0.451 loading class groovy/lang/ExpandoMetaClassCreationHandle done


      Dynamic libraries:
      0x000000000265d000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
      0x000000000265d000 /System/Library/Frameworks/Security.framework/Versions/A/Security
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
      0x000000000265d000 /usr/lib/libz.1.dylib
      0x000000000265d000 /usr/lib/libSystem.B.dylib
      0x000000000265d000 /usr/lib/libobjc.A.dylib
      0x000000000265d000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
      0x000000000265d000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
      0x000000000265d000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
      0x000000000265d000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
      0x000000000265d000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
      0x000000000265d000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
      0x000000000265d000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
      0x000000000265d000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
      0x000000000265d000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
      0x000000000265d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
      0x000000000265d000 /usr/lib/libauto.dylib
      0x000000000265d000 /usr/lib/libicucore.A.dylib
      0x000000000265d000 /usr/lib/libxml2.2.dylib
      0x000000000265d000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
      0x000000000265d000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
      0x000000000265d000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
      0x000000000265d000 /usr/lib/liblangid.dylib
      0x000000000265d000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
      0x000000000265d000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
      0x000000000265d000 /usr/lib/libDiagnosticMessagesClient.dylib
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
      0x000000000265d000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
      0x000000000265d000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
      0x000000000265d000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
      0x000000000265d000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
      0x000000000265d000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
      0x000000000265d000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
      0x000000000265d000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
      0x000000000265d000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
      0x000000000265d000 /usr/lib/libCRFSuite.dylib
      0x000000000265d000 /usr/lib/libc++.1.dylib
      0x000000000265d000 /usr/lib/libc++abi.dylib
      0x000000000265d000 /usr/lib/system/libcache.dylib
      0x000000000265d000 /usr/lib/system/libcommonCrypto.dylib
      0x000000000265d000 /usr/lib/system/libcompiler_rt.dylib
      0x000000000265d000 /usr/lib/system/libcopyfile.dylib
      0x000000000265d000 /usr/lib/system/libcorecrypto.dylib
      0x000000000265d000 /usr/lib/system/libdispatch.dylib
      0x000000000265d000 /usr/lib/system/libdyld.dylib
      0x000000000265d000 /usr/lib/system/libkeymgr.dylib
      0x000000000265d000 /usr/lib/system/liblaunch.dylib
      0x000000000265d000 /usr/lib/system/libmacho.dylib
      0x000000000265d000 /usr/lib/system/libquarantine.dylib
      0x000000000265d000 /usr/lib/system/libremovefile.dylib
      0x000000000265d000 /usr/lib/system/libsystem_asl.dylib
      0x000000000265d000 /usr/lib/system/libsystem_blocks.dylib
      0x000000000265d000 /usr/lib/system/libsystem_c.dylib
      0x000000000265d000 /usr/lib/system/libsystem_configuration.dylib
      0x000000000265d000 /usr/lib/system/libsystem_dnssd.dylib
      0x000000000265d000 /usr/lib/system/libsystem_info.dylib
      0x000000000265d000 /usr/lib/system/libsystem_kernel.dylib
      0x000000000265d000 /usr/lib/system/libsystem_m.dylib
      0x000000000265d000 /usr/lib/system/libsystem_malloc.dylib
      0x000000000265d000 /usr/lib/system/libsystem_network.dylib
      0x000000000265d000 /usr/lib/system/libsystem_notify.dylib
      0x000000000265d000 /usr/lib/system/libsystem_platform.dylib
      0x000000000265d000 /usr/lib/system/libsystem_pthread.dylib
      0x000000000265d000 /usr/lib/system/libsystem_sandbox.dylib
      0x000000000265d000 /usr/lib/system/libsystem_stats.dylib
      0x000000000265d000 /usr/lib/system/libunc.dylib
      0x000000000265d000 /usr/lib/system/libunwind.dylib
      0x000000000265d000 /usr/lib/system/libxpc.dylib
      0x000000000265d000 /usr/lib/libbsm.0.dylib
      0x000000000265d000 /usr/lib/libsqlite3.dylib
      0x000000000265d000 /usr/lib/libxar.1.dylib
      0x000000000265d000 /usr/lib/libpam.2.dylib
      0x000000000265d000 /usr/lib/libOpenScriptingUtil.dylib
      0x000000000265d000 /usr/lib/libbz2.1.0.dylib
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
      0x000000000265d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
      0x000000000265d000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
      0x000000000265d000 /usr/lib/system/libkxld.dylib
      0x000000000265d000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
      0x000000000265d000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
      0x000000000265d000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
      0x000000000265d000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
      0x000000000265d000 /usr/lib/libxslt.1.dylib
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
      0x000000000265d000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
      0x000000000265d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
      0x000000000265d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
      0x000000000265d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
      0x000000000265d000 /usr/lib/libcups.2.dylib
      0x000000000265d000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
      0x000000000265d000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS
      0x000000000265d000 /usr/lib/libresolv.9.dylib
      0x000000000265d000 /usr/lib/libiconv.2.dylib
      0x000000000265d000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
      0x000000000265d000 /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
      0x000000000265d000 /usr/lib/libheimdal-asn1.dylib
      0x000000000265d000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
      0x000000000265d000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
      0x000000000265d000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
      0x000000000265d000 /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
      0x000000000265d000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
      0x000000000265d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
      0x000000000265d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
      0x000000000265d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
      0x000000000265d000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
      0x000000000265d000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
      0x000000000265d000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
      0x000000000265d000 /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
      0x000000000265d000 /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
      0x000000000265d000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
      0x000000000265d000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
      0x000000000265d000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
      0x000000000265d000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
      0x000000000265d000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
      0x0000000105200000 /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/server/libjvm.dylib
      0x000000000265d000 /usr/lib/libstdc++.6.dylib
      0x0000000105ca0000 /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libverify.dylib
      0x0000000105cad000 /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libjava.dylib
      0x0000000105ce1000 /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libzip.dylib
      0x00000001218c3000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport
      0x00000001218db000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
      0x00000001218f0000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
      0x00000001218fd000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
      0x000000000265d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
      0x00000001223cb000 /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libnio.dylib
      0x00000001223da000 /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/./libnet.dylib

      VM Arguments:
      java_command: org.test.TestClass
      java_class_path (initial): build:/Library/Groovy/Versions/2.2.1/embeddable/groovy-all-2.2.1-indy.jar
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
      PATH=/Users/bpontarelli/bin:/Applications/IntelliJ IDEA 12.app/Contents/MacOS:/usr/local/git/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/bpontarelli/dev/inversoft/invforum/invforum-scripts/src/main/ruby/:/Users/bpontarelli/dev/inversoft/cleanspeak/cleanspeak-scripts/src/main/ruby:/Users/bpontarelli/dev/gradle/current/bin:/Users/bpontarelli/dev/savant/current/bin:/Users/bpontarelli/dev/savant/current/ant/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin:/usr/local/mysql/bin:/Applications/Postgres93.app/Contents/MacOS/bin:/Library/Groovy/Versions/2.2.1/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin
      SHELL=/Applications/fish.app/Contents/Resources/base/bin/fish

      Signal Handlers:
      SIGSEGV: [libjvm.dylib+0x54fa51], sa_mask[0]=0xfffefeff, sa_flags=0x00000043
      SIGBUS: [libjvm.dylib+0x54fa51], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGFPE: [libjvm.dylib+0x434722], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGPIPE: [libjvm.dylib+0x434722], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGXFSZ: [libjvm.dylib+0x434722], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGILL: [libjvm.dylib+0x434722], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      SIGUSR2: [libjvm.dylib+0x434240], sa_mask[0]=0x00000000, sa_flags=0x00000042
      SIGHUP: [libjvm.dylib+0x43245d], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGINT: [libjvm.dylib+0x43245d], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGTERM: [libjvm.dylib+0x43245d], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
      SIGQUIT: [libjvm.dylib+0x43245d], sa_mask[0]=0xfffefeff, sa_flags=0x00000042


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

      OS:Bsduname:Darwin 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
      rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity
      load average:1.12 1.05 0.94

      CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, ht, tsc, tscinvbit

      Memory: 4k page, physical 16777216k(4194304k free)

      /proc/meminfo:


      vm_info: Java HotSpot(TM) 64-Bit Server VM (25.0-b51) for bsd-amd64 JRE (1.8.0-ea-b109), built on Sep 26 2013 10:28:57 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

      time: Thu Jan 16 14:22:44 2014
      elapsed time: 0 seconds


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package org.test

      import java.nio.file.Path
      import java.nio.file.Paths

      class TestClass {
        public static void main(String[] args) {
          println Paths.get(".").resolve("build/cache").toString()
        }
      }


      Command-line to compile and run it on my machine:

      $ groovyc --indy -d build src/main/groovy/com/test/TestClass.groovy
      $ java -cp build:/Library/Groovy/Versions/2.2.1/embeddable/groovy-all-2.2.1-indy.jar org.test.TestClass
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Use JDK 7 or simply disable invokedynamic completely. With invokedynamic disabled everything works fine on JDK 8.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vlivanov Vladimir Ivanov
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: