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

Segmentation error while running program

XMLWordPrintable

    • b29
    • x86
    • linux

        FULL PRODUCT VERSION :
        java version "1.8.0_11"
        Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
        Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)


        FULL OS VERSION :
        Linux cc 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


        A DESCRIPTION OF THE PROBLEM :
        Program crashes while run

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

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

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        javac WordsSum.java
        java WordsSum

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        Expected : No crash
        Actual: Crash
        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007ff2f472de73, pid=12023, tid=140681826342656
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0_11-b12) (build 1.8.0_11-b12)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.11-b03 mixed mode linux-amd64 compressed oops)
        # Problematic frame:
        # J 170% C2 WordsSum.maxSum4(Ljava/util/List;)V (449 bytes) @ 0x00007ff2f472de73 [0x00007ff2f472d4e0+0x993]
        #
        # 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 (0x00007ff304009800): JavaThread "main" [_thread_in_Java, id=12024, stack(0x00007ff30a391000,0x00007ff30a492000)]

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

        Registers:
        RAX=0x00000000d7809e10, RBX=0x000000008581d070, RCX=0x0000000000000000, RDX=0x0000000000000001
        RSP=0x00007ff30a490710, RBP=0x0000000000000000, RSI=0x00000000d7809e20, RDI=0x00000000fffffffe
        R8 =0x0000000000000001, R9 =0x000000008563ad98, R10=0x0000000000000001, R11=0x00000000fffffffe
        R12=0x0000000000000000, R13=0x00007ff2f472de04, R14=0x00007ff30a490708, R15=0x00007ff304009800
        RIP=0x00007ff2f472de73, EFLAGS=0x0000000000010287, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
          TRAPNO=0x000000000000000e

        Top of Stack: (sp=0x00007ff30a490710)
        0x00007ff30a490710: 0000000000000000 0000000004000000
        0x00007ff30a490720: 00000147c850f712 000000008581d070
        0x00007ff30a490730: 00000000d7780ee0 0000000000000000
        0x00007ff30a490740: 000000008563ad98 0000000000000000
        0x00007ff30a490750: 000000009581d080 00000000d741aac0
        0x00007ff30a490760: ffffffff00000000 0000000000000000
        0x00007ff30a490770: 000000008581d070 00000147c850f712
        0x00007ff30a490780: 00007ff30a4909b0 00007ff2f4713d84
        0x00007ff30a490790: 000000000000002f 00007ff2f2fa8768
        0x00007ff30a4907a0: 00007ff304151c60 00007ff304000020
        0x00007ff30a4907b0: 0000000000000028 0000000000000028
        0x00007ff30a4907c0: 00007ff2f4712c50 00007ff30a490800
        0x00007ff30a4907d0: 0000000000000028 00007ff304151c60
        0x00007ff30a4907e0: 0000000000000000 0000000000000400
        0x00007ff30a4907f0: 00007ff30a490850 00007ff30920a35e
        0x00007ff30a490800: 0000000000000000 000000000000001d
        0x00007ff30a490810: 0000000000000000 00007ff3091d77b9
        0x00007ff30a490820: 00007ff30a490860 0000000000000028
        0x00007ff30a490830: 0000000000000000 00007ff2f4712c50
        0x00007ff30a490840: 00007ff30a490860 0000000000000005
        0x00007ff30a490850: 00007ff30a4908c0 00007ff3092a9cd5
        0x00007ff30a490860: 00007ff30a4908d8 00007ff2f45c5d52
        0x00007ff30a490870: 00007ff2f45ad310 00007ff300000000
        0x00007ff30a490880: 00007ff30a490918 00007ff30a4908d8
        0x00007ff30a490890: 00007ff2f45ad310 000000000000002b
        0x00007ff30a4908a0: 0000000000000000 00007ff2f4712c50
        0x00007ff30a4908b0: 00007ff30a490948 00007ff304009800
        0x00007ff30a4908c0: 00007ff30a490918 00007ff2f45c5d94
        0x00007ff30a4908d0: 00000147c850f624 000000008548d6f8
        0x00007ff30a4908e0: 000000008548c678 000000008548c678
        0x00007ff30a4908f0: 000000008548d6f8 00000147c850f624
        0x00007ff30a490900: 00000000d741afd8 00000000854b27d0

        Instructions: (pc=0x00007ff2f472de73)
        0x00007ff2f472de53: 41 ff c8 44 3b 44 24 08 0f 83 44 06 00 00 4c 8b
        0x00007ff2f472de63: 4c 24 30 45 8b 41 0c 45 8b 40 0c 48 8b 5c 24 18
        0x00007ff2f472de73: 46 8b 54 9b 10 45 0f af d0 44 3b 54 24 54 7e 23
        0x00007ff2f472de83: 4c 8b 44 24 40 41 8b 48 0c 44 3b d9 0f 83 30 06

        Register to memory mapping:

        RAX=0x00000000d7809e10 is an oop
        [C
         - klass: {type array char}
         - length: 1
        RBX=0x000000008581d070 is an oop
        [I
         - klass: {type array int}
         - length: 67108864
        RCX=0x0000000000000000 is an unknown value
        RDX=0x0000000000000001 is an unknown value
        RSP=0x00007ff30a490710 is pointing into the stack for thread: 0x00007ff304009800
        RBP=0x0000000000000000 is an unknown value
        RSI=0x00000000d7809e20 is an oop

        [error occurred during error reporting (printing register info), id 0xb]

        Stack: [0x00007ff30a391000,0x00007ff30a492000], sp=0x00007ff30a490710, free space=1021k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        J 170% C2 WordsSum.maxSum4(Ljava/util/List;)V (449 bytes) @ 0x00007ff2f472de73 [0x00007ff2f472d4e0+0x993]
        J 157% C1 WordsSum.main([Ljava/lang/String;)V (84 bytes) @ 0x00007ff2f4713d84 [0x00007ff2f4712f60+0xe24]
        v ~StubRoutines::call_stub
        V [libjvm.so+0x627466] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056
        V [libjvm.so+0x66ef76] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x346
        V [libjvm.so+0x680c5a] jni_CallStaticVoidMethod+0x17a
        C [libjli.so+0x77e4] JavaMain+0x844


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

        Java Threads: ( => current thread )
          0x00007ff3040d8000 JavaThread "Service Thread" daemon [_thread_blocked, id=12036, stack(0x00007ff2f0ecc000,0x00007ff2f0fcd000)]
          0x00007ff3040b2000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=12035, stack(0x00007ff2f0fcd000,0x00007ff2f10ce000)]
          0x00007ff3040b0800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=12034, stack(0x00007ff2f10ce000,0x00007ff2f11cf000)]
          0x00007ff3040ad800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=12033, stack(0x00007ff2f11cf000,0x00007ff2f12d0000)]
          0x00007ff3040ab800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12032, stack(0x00007ff2f12d0000,0x00007ff2f13d1000)]
          0x00007ff30407c000 JavaThread "Finalizer" daemon [_thread_blocked, id=12031, stack(0x00007ff2f169a000,0x00007ff2f179b000)]
          0x00007ff304078000 JavaThread "Reference Handler" daemon [_thread_blocked, id=12030, stack(0x00007ff2f179b000,0x00007ff2f189c000)]
        =>0x00007ff304009800 JavaThread "main" [_thread_in_Java, id=12024, stack(0x00007ff30a391000,0x00007ff30a492000)]

        Other Threads:
          0x00007ff304073000 VMThread [stack: 0x00007ff2f189c000,0x00007ff2f199d000] [id=12029]
          0x00007ff3040da800 WatcherThread [stack: 0x00007ff2f0dcb000,0x00007ff2f0ecc000] [id=12037]

        VM state:not at safepoint (normal execution)

        VM Mutex/Monitor currently owned by a thread: None

        Heap:
         PSYoungGen total 14848K, used 8930K [0x00000000d7180000, 0x00000000d8b00000, 0x0000000100000000)
          eden space 12288K, 54% used [0x00000000d7180000,0x00000000d7810800,0x00000000d7d80000)
          from space 2560K, 86% used [0x00000000d7d80000,0x00000000d7fa8368,0x00000000d8000000)
          to space 3072K, 0% used [0x00000000d8800000,0x00000000d8800000,0x00000000d8b00000)
         ParOldGen total 650752K, used 528500K [0x0000000085400000, 0x00000000acf80000, 0x00000000d7180000)
          object space 650752K, 81% used [0x0000000085400000,0x00000000a581d090,0x00000000acf80000)
         Metaspace used 3307K, capacity 4494K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K

        Card table byte_map: [0x00007ff2f3e11000,0x00007ff2f41e8000] byte_map_base: 0x00007ff2f39e7000

        Marking Bits: (ParMarkBitMap*) 0x00007ff30986cc20
         Begin Bits: [0x00007ff2e82a0000, 0x00007ff2ea150000)
         End Bits: [0x00007ff2ea150000, 0x00007ff2ec000000)

        Polling page: 0x00007ff30a4b5000

        CodeCache: size=245760Kb used=1550Kb max_used=1566Kb free=244209Kb
         bounds [0x00007ff2f45a8000, 0x00007ff2f4818000, 0x00007ff3035a8000]
         total_blobs=412 nmethods=171 adapters=156
         compilation: enabled

        Compilation events (10 events):
        Event: 0.418 Thread 0x00007ff3040ad800 nmethod 167 0x00007ff2f4720810 code [0x00007ff2f4720960, 0x00007ff2f4720a78]
        Event: 0.418 Thread 0x00007ff3040ad800 168 4 java.util.ArrayList$Itr::hasNext (20 bytes)
        Event: 0.418 Thread 0x00007ff3040b0800 nmethod 166 0x00007ff2f47204d0 code [0x00007ff2f4720620, 0x00007ff2f4720758]
        Event: 0.419 Thread 0x00007ff3040ad800 nmethod 168 0x00007ff2f4717cd0 code [0x00007ff2f4717e00, 0x00007ff2f4717e98]
        Event: 0.419 Thread 0x00007ff3040b2000 169 1 java.lang.String::length (6 bytes)
        Event: 0.419 Thread 0x00007ff3040b2000 nmethod 169 0x00007ff2f47183d0 code [0x00007ff2f4718520, 0x00007ff2f4718630]
        Event: 0.421 Thread 0x00007ff3040b0800 170 % 4 WordsSum::maxSum4 @ 67 (449 bytes)
        Event: 0.454 Thread 0x00007ff3040b0800 nmethod 170% 0x00007ff2f472d250 code [0x00007ff2f472d4e0, 0x00007ff2f472e700]
        Event: 0.454 Thread 0x00007ff3040ad800 171 % 4 WordsSum::maxSum4 @ 27 (449 bytes)
        Event: 0.486 Thread 0x00007ff3040ad800 nmethod 171% 0x00007ff2f472f850 code [0x00007ff2f472fac0, 0x00007ff2f4730ce0]

        GC Heap History (10 events):
        Event: 0.191 GC heap before
        {Heap before GC invocations=7 (full 0):
         PSYoungGen total 5120K, used 4902K [0x00000000d7180000, 0x00000000d7780000, 0x0000000100000000)
          eden space 4096K, 100% used [0x00000000d7180000,0x00000000d7580000,0x00000000d7580000)
          from space 1024K, 78% used [0x00000000d7680000,0x00000000d7749bb8,0x00000000d7780000)
          to space 1024K, 0% used [0x00000000d7580000,0x00000000d7580000,0x00000000d7680000)
         ParOldGen total 125440K, used 544K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 0% used [0x0000000085400000,0x0000000085488010,0x000000008ce80000)
         Metaspace used 3274K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        Event: 0.193 GC heap after
        Heap after GC invocations=7 (full 0):
         PSYoungGen total 5120K, used 1019K [0x00000000d7180000, 0x00000000d7c80000, 0x0000000100000000)
          eden space 4096K, 0% used [0x00000000d7180000,0x00000000d7180000,0x00000000d7580000)
          from space 1024K, 99% used [0x00000000d7580000,0x00000000d767ee18,0x00000000d7680000)
          to space 1536K, 0% used [0x00000000d7b00000,0x00000000d7b00000,0x00000000d7c80000)
         ParOldGen total 125440K, used 868K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 0% used [0x0000000085400000,0x00000000854d9070,0x000000008ce80000)
         Metaspace used 3274K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        }
        Event: 0.215 GC heap before
        {Heap before GC invocations=8 (full 0):
         PSYoungGen total 5120K, used 5115K [0x00000000d7180000, 0x00000000d7c80000, 0x0000000100000000)
          eden space 4096K, 100% used [0x00000000d7180000,0x00000000d7580000,0x00000000d7580000)
          from space 1024K, 99% used [0x00000000d7580000,0x00000000d767ee18,0x00000000d7680000)
          to space 1536K, 0% used [0x00000000d7b00000,0x00000000d7b00000,0x00000000d7c80000)
         ParOldGen total 125440K, used 868K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 0% used [0x0000000085400000,0x00000000854d9070,0x000000008ce80000)
         Metaspace used 3290K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        Event: 0.218 GC heap after
        Heap after GC invocations=8 (full 0):
         PSYoungGen total 9216K, used 1531K [0x00000000d7180000, 0x00000000d7d80000, 0x0000000100000000)
          eden space 7680K, 0% used [0x00000000d7180000,0x00000000d7180000,0x00000000d7900000)
          from space 1536K, 99% used [0x00000000d7b00000,0x00000000d7c7ee18,0x00000000d7c80000)
          to space 2048K, 0% used [0x00000000d7900000,0x00000000d7900000,0x00000000d7b00000)
         ParOldGen total 125440K, used 892K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 0% used [0x0000000085400000,0x00000000854df070,0x000000008ce80000)
         Metaspace used 3290K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        }
        Event: 0.244 GC heap before
        {Heap before GC invocations=9 (full 0):
         PSYoungGen total 9216K, used 9008K [0x00000000d7180000, 0x00000000d7d80000, 0x0000000100000000)
          eden space 7680K, 97% used [0x00000000d7180000,0x00000000d78cd4c0,0x00000000d7900000)
          from space 1536K, 99% used [0x00000000d7b00000,0x00000000d7c7ee18,0x00000000d7c80000)
          to space 2048K, 0% used [0x00000000d7900000,0x00000000d7900000,0x00000000d7b00000)
         ParOldGen total 125440K, used 892K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 0% used [0x0000000085400000,0x00000000854df070,0x000000008ce80000)
         Metaspace used 3294K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        Event: 0.248 GC heap after
        Heap after GC invocations=9 (full 0):
         PSYoungGen total 9728K, used 2041K [0x00000000d7180000, 0x00000000d8280000, 0x0000000100000000)
          eden space 7680K, 0% used [0x00000000d7180000,0x00000000d7180000,0x00000000d7900000)
          from space 2048K, 99% used [0x00000000d7900000,0x00000000d7afe520,0x00000000d7b00000)
          to space 2560K, 0% used [0x00000000d8000000,0x00000000d8000000,0x00000000d8280000)
         ParOldGen total 125440K, used 1388K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 1% used [0x0000000085400000,0x000000008555b070,0x000000008ce80000)
         Metaspace used 3294K, capacity 4490K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        }
        Event: 0.274 GC heap before
        {Heap before GC invocations=10 (full 0):
         PSYoungGen total 9728K, used 9721K [0x00000000d7180000, 0x00000000d8280000, 0x0000000100000000)
          eden space 7680K, 100% used [0x00000000d7180000,0x00000000d7900000,0x00000000d7900000)
          from space 2048K, 99% used [0x00000000d7900000,0x00000000d7afe520,0x00000000d7b00000)
          to space 2560K, 0% used [0x00000000d8000000,0x00000000d8000000,0x00000000d8280000)
         ParOldGen total 125440K, used 1388K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 1% used [0x0000000085400000,0x000000008555b070,0x000000008ce80000)
         Metaspace used 3304K, capacity 4494K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        Event: 0.281 GC heap after
        Heap after GC invocations=10 (full 0):
         PSYoungGen total 14848K, used 2229K [0x00000000d7180000, 0x00000000d8280000, 0x0000000100000000)
          eden space 12288K, 0% used [0x00000000d7180000,0x00000000d7180000,0x00000000d7d80000)
          from space 2560K, 87% used [0x00000000d8000000,0x00000000d822d7a0,0x00000000d8280000)
          to space 2560K, 0% used [0x00000000d7d80000,0x00000000d7d80000,0x00000000d8000000)
         ParOldGen total 125440K, used 2316K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 1% used [0x0000000085400000,0x0000000085643070,0x000000008ce80000)
         Metaspace used 3304K, capacity 4494K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        }
        Event: 0.313 GC heap before
        {Heap before GC invocations=11 (full 0):
         PSYoungGen total 14848K, used 14517K [0x00000000d7180000, 0x00000000d8280000, 0x0000000100000000)
          eden space 12288K, 100% used [0x00000000d7180000,0x00000000d7d80000,0x00000000d7d80000)
          from space 2560K, 87% used [0x00000000d8000000,0x00000000d822d7a0,0x00000000d8280000)
          to space 2560K, 0% used [0x00000000d7d80000,0x00000000d7d80000,0x00000000d8000000)
         ParOldGen total 125440K, used 2316K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 1% used [0x0000000085400000,0x0000000085643070,0x000000008ce80000)
         Metaspace used 3305K, capacity 4494K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        Event: 0.319 GC heap after
        Heap after GC invocations=11 (full 0):
         PSYoungGen total 14848K, used 2208K [0x00000000d7180000, 0x00000000d8b00000, 0x0000000100000000)
          eden space 12288K, 0% used [0x00000000d7180000,0x00000000d7180000,0x00000000d7d80000)
          from space 2560K, 86% used [0x00000000d7d80000,0x00000000d7fa8368,0x00000000d8000000)
          to space 3072K, 0% used [0x00000000d8800000,0x00000000d8800000,0x00000000d8b00000)
         ParOldGen total 125440K, used 4212K [0x0000000085400000, 0x000000008ce80000, 0x00000000d7180000)
          object space 125440K, 3% used [0x0000000085400000,0x000000008581d070,0x000000008ce80000)
         Metaspace used 3305K, capacity 4494K, committed 4864K, reserved 1056768K
          class space used 376K, capacity 386K, committed 512K, reserved 1048576K
        }

        Deoptimization events (0 events):
        No events

        Internal exceptions (9 events):
        Event: 0.022 Thread 0x00007ff304009800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x00000000d7194568) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share
        Event: 0.022 Thread 0x00007ff304009800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000d71947f8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jni.cpp,
        Event: 0.053 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d71d6820) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]
        Event: 0.072 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d71880f8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]
        Event: 0.072 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d7188440) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]
        Event: 0.073 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d718a9d8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]
        Event: 0.073 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d718ad20) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]
        Event: 0.087 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d71a09e8) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]
        Event: 0.087 Thread 0x00007ff304009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d71a1a78) thrown at [/HUDSON/workspace/8-2-build-linux-amd64/jdk8u11/648/hotspot/src/share/vm/prims/jvm.cpp, line 1248]

        Events (10 events):
        Event: 0.260 Thread 0x00007ff304009800 DEOPT PACKING pc=0x00007ff2f46f359b sp=0x00007ff30a490330
        Event: 0.260 Thread 0x00007ff304009800 DEOPT UNPACKING pc=0x00007ff2f45ef41a sp=0x00007ff30a490150 mode 0
        Event: 0.262 Thread 0x00007ff304009800 DEOPT PACKING pc=0x00007ff2f46f359b sp=0x00007ff30a490330
        Event: 0.262 Thread 0x00007ff304009800 DEOPT UNPACKING pc=0x00007ff2f45ef41a sp=0x00007ff30a490150 mode 0
        Event: 0.274 Executing VM operation: ParallelGCFailedAllocation
        Event: 0.281 Executing VM operation: ParallelGCFailedAllocation done
        Event: 0.313 Executing VM operation: ParallelGCFailedAllocation
        Event: 0.320 Executing VM operation: ParallelGCFailedAllocation done
        Event: 15.047 Executing VM operation: EnableBiasedLocking
        Event: 15.047 Executing VM operation: EnableBiasedLocking done


        Dynamic libraries:
        00400000-00401000 r-xp 00000000 08:02 34997230 /usr/lib/jvm/java-8-oracle/jre/bin/java
        00600000-00601000 rw-p 00000000 08:02 34997230 /usr/lib/jvm/java-8-oracle/jre/bin/java
        0175d000-0177e000 rw-p 00000000 00:00 0 [heap]
        85400000-acf80000 rw-p 00000000 00:00 0
        acf80000-d7180000 ---p 00000000 00:00 0
        d7180000-d8b00000 rw-p 00000000 00:00 0
        d8b00000-100000000 ---p 00000000 00:00 0
        100000000-100080000 rw-p 00000000 00:00 0
        100080000-140000000 ---p 00000000 00:00 0
        7ff2b4000000-7ff2b4021000 rw-p 00000000 00:00 0
        7ff2b4021000-7ff2b8000000 ---p 00000000 00:00 0
        7ff2bc000000-7ff2bc0d6000 rw-p 00000000 00:00 0
        7ff2bc0d6000-7ff2c0000000 ---p 00000000 00:00 0
        7ff2c0000000-7ff2c0021000 rw-p 00000000 00:00 0
        7ff2c0021000-7ff2c4000000 ---p 00000000 00:00 0
        7ff2c4000000-7ff2c465c000 rw-p 00000000 00:00 0
        7ff2c465c000-7ff2c8000000 ---p 00000000 00:00 0
        7ff2c8000000-7ff2c837d000 rw-p 00000000 00:00 0
        7ff2c837d000-7ff2cc000000 ---p 00000000 00:00 0
        7ff2cc000000-7ff2cc021000 rw-p 00000000 00:00 0
        7ff2cc021000-7ff2d0000000 ---p 00000000 00:00 0
        7ff2d0000000-7ff2d0021000 rw-p 00000000 00:00 0
        7ff2d0021000-7ff2d4000000 ---p 00000000 00:00 0
        7ff2d4000000-7ff2d4021000 rw-p 00000000 00:00 0
        7ff2d4021000-7ff2d8000000 ---p 00000000 00:00 0
        7ff2d8000000-7ff2d8021000 rw-p 00000000 00:00 0
        7ff2d8021000-7ff2dc000000 ---p 00000000 00:00 0
        7ff2dc000000-7ff2dc021000 rw-p 00000000 00:00 0
        7ff2dc021000-7ff2e0000000 ---p 00000000 00:00 0
        7ff2e0000000-7ff2e0021000 rw-p 00000000 00:00 0
        7ff2e0021000-7ff2e4000000 ---p 00000000 00:00 0
        7ff2e4000000-7ff2e4021000 rw-p 00000000 00:00 0
        7ff2e4021000-7ff2e8000000 ---p 00000000 00:00 0
        7ff2e82a0000-7ff2ec000000 rw-p 00000000 00:00 0
        7ff2ec000000-7ff2ec021000 rw-p 00000000 00:00 0
        7ff2ec021000-7ff2f0000000 ---p 00000000 00:00 0
        7ff2f06ef000-7ff2f0957000 rw-p 00000000 00:00 0
        7ff2f0957000-7ff2f0973000 r--s 00393000 08:02 34999770 /usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar
        7ff2f0973000-7ff2f0983000 r-xp 00000000 08:02 35000549 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
        7ff2f0983000-7ff2f0b83000 ---p 00010000 08:02 35000549 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
        7ff2f0b83000-7ff2f0b84000 rw-p 00010000 08:02 35000549 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnio.so
        7ff2f0b84000-7ff2f0bb5000 rw-p 00000000 00:00 0
        7ff2f0bb5000-7ff2f0bcb000 r-xp 00000000 08:02 34999825 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
        7ff2f0bcb000-7ff2f0dca000 ---p 00016000 08:02 34999825 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
        7ff2f0dca000-7ff2f0dcb000 rw-p 00015000 08:02 34999825 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnet.so
        7ff2f0dcb000-7ff2f0dcc000 ---p 00000000 00:00 0
        7ff2f0dcc000-7ff2f0ecc000 rw-p 00000000 00:00 0 [stack:12037]
        7ff2f0ecc000-7ff2f0ecf000 ---p 00000000 00:00 0
        7ff2f0ecf000-7ff2f0fcd000 rw-p 00000000 00:00 0 [stack:12036]
        7ff2f0fcd000-7ff2f0fd0000 ---p 00000000 00:00 0
        7ff2f0fd0000-7ff2f10ce000 rw-p 00000000 00:00 0 [stack:12035]
        7ff2f10ce000-7ff2f10d1000 ---p 00000000 00:00 0
        7ff2f10d1000-7ff2f11cf000 rw-p 00000000 00:00 0 [stack:12034]
        7ff2f11cf000-7ff2f11d2000 ---p 00000000 00:00 0
        7ff2f11d2000-7ff2f12d0000 rw-p 00000000 00:00 0 [stack:12033]
        7ff2f12d0000-7ff2f12d3000 ---p 00000000 00:00 0
        7ff2f12d3000-7ff2f13d1000 rw-p 00000000 00:00 0 [stack:12032]
        7ff2f13d1000-7ff2f169a000 r--p 00000000 08:02 34866838 /usr/lib/locale/locale-archive
        7ff2f169a000-7ff2f169d000 ---p 00000000 00:00 0
        7ff2f169d000-7ff2f179b000 rw-p 00000000 00:00 0 [stack:12031]
        7ff2f179b000-7ff2f179e000 ---p 00000000 00:00 0
        7ff2f179e000-7ff2f189c000 rw-p 00000000 00:00 0 [stack:12030]
        7ff2f189c000-7ff2f189d000 ---p 00000000 00:00 0
        7ff2f189d000-7ff2f295e000 rw-p 00000000 00:00 0 [stack:12029]
        7ff2f295e000-7ff2f2b32000 r--s 03c50000 08:02 34997280 /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
        7ff2f2b32000-7ff2f2fe8000 rw-p 00000000 00:00 0
        7ff2f2fe8000-7ff2f33a8000 ---p 00000000 00:00 0
        7ff2f33a8000-7ff2f377e000 rw-p 00000000 00:00 0
        7ff2f377e000-7ff2f377f000 ---p 00000000 00:00 0
        7ff2f377f000-7ff2f387f000 rw-p 00000000 00:00 0 [stack:12028]
        7ff2f387f000-7ff2f3880000 ---p 00000000 00:00 0
        7ff2f3880000-7ff2f3980000 rw-p 00000000 00:00 0 [stack:12027]
        7ff2f3980000-7ff2f3981000 ---p 00000000 00:00 0
        7ff2f3981000-7ff2f3a81000 rw-p 00000000 00:00 0 [stack:12026]
        7ff2f3a81000-7ff2f3a82000 ---p 00000000 00:00 0
        7ff2f3a82000-7ff2f3cc0000 rw-p 00000000 00:00 0 [stack:12025]
        7ff2f3cc0000-7ff2f3e11000 ---p 00000000 00:00 0
        7ff2f3e11000-7ff2f3f4f000 rw-p 00000000 00:00 0
        7ff2f3f4f000-7ff2f409f000 ---p 00000000 00:00 0
        7ff2f409f000-7ff2f40ad000 rw-p 00000000 00:00 0
        7ff2f40ad000-7ff2f41e7000 ---p 00000000 00:00 0
        7ff2f41e7000-7ff2f41f2000 rw-p 00000000 00:00 0
        7ff2f41f2000-7ff2f45a8000 ---p 00000000 00:00 0
        7ff2f45a8000-7ff2f4818000 rwxp 00000000 00:00 0
        7ff2f4818000-7ff3035a8000 ---p 00000000 00:00 0
        7ff3035a8000-7ff3035c4000 r-xp 00000000 08:02 34999807 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
        7ff3035c4000-7ff3037c3000 ---p 0001c000 08:02 34999807 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
        7ff3037c3000-7ff3037c4000 rw-p 0001b000 08:02 34999807 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
        7ff3037c4000-7ff3037cf000 r-xp 00000000 08:02 21496086 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7ff3037cf000-7ff3039ce000 ---p 0000b000 08:02 21496086 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7ff3039ce000-7ff3039cf000 r--p 0000a000 08:02 21496086 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7ff3039cf000-7ff3039d0000 rw-p 0000b000 08:02 21496086 /lib/x86_64-linux-gnu/libnss_files-2.19.so
        7ff3039d0000-7ff3039db000 r-xp 00000000 08:02 21496054 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7ff3039db000-7ff303bda000 ---p 0000b000 08:02 21496054 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7ff303bda000-7ff303bdb000 r--p 0000a000 08:02 21496054 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7ff303bdb000-7ff303bdc000 rw-p 0000b000 08:02 21496054 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
        7ff303bdc000-7ff303bf3000 r-xp 00000000 08:02 21496090 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7ff303bf3000-7ff303df2000 ---p 00017000 08:02 21496090 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7ff303df2000-7ff303df3000 r--p 00016000 08:02 21496090 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7ff303df3000-7ff303df4000 rw-p 00017000 08:02 21496090 /lib/x86_64-linux-gnu/libnsl-2.19.so
        7ff303df4000-7ff303df6000 rw-p 00000000 00:00 0
        7ff303df6000-7ff303dff000 r-xp 00000000 08:02 21496076 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7ff303dff000-7ff303ffe000 ---p 00009000 08:02 21496076 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7ff303ffe000-7ff303fff000 r--p 00008000 08:02 21496076 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7ff303fff000-7ff304000000 rw-p 00009000 08:02 21496076 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
        7ff304000000-7ff30415d000 rw-p 00000000 00:00 0
        7ff30415d000-7ff308000000 ---p 00000000 00:00 0
        7ff308009000-7ff30802a000 rw-p 00000000 00:00 0
        7ff30802a000-7ff308054000 r-xp 00000000 08:02 34999828 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
        7ff308054000-7ff308254000 ---p 0002a000 08:02 34999828 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
        7ff308254000-7ff308256000 rw-p 0002a000 08:02 34999828 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
        7ff308256000-7ff308263000 r-xp 00000000 08:02 34999810 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
        7ff308263000-7ff308463000 ---p 0000d000 08:02 34999810 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
        7ff308463000-7ff308465000 rw-p 0000d000 08:02 34999810 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
        7ff308465000-7ff30846c000 r-xp 00000000 08:02 21496082 /lib/x86_64-linux-gnu/librt-2.19.so
        7ff30846c000-7ff30866b000 ---p 00007000 08:02 21496082 /lib/x86_64-linux-gnu/librt-2.19.so
        7ff30866b000-7ff30866c000 r--p 00006000 08:02 21496082 /lib/x86_64-linux-gnu/librt-2.19.so
        7ff30866c000-7ff30866d000 rw-p 00007000 08:02 21496082 /lib/x86_64-linux-gnu/librt-2.19.so
        7ff30866d000-7ff308772000 r-xp 00000000 08:02 21496084 /lib/x86_64-linux-gnu/libm-2.19.so
        7ff308772000-7ff308971000 ---p 00105000 08:02 21496084 /lib/x86_64-linux-gnu/libm-2.19.so
        7ff308971000-7ff308972000 r--p 00104000 08:02 21496084 /lib/x86_64-linux-gnu/libm-2.19.so
        7ff308972000-7ff308973000 rw-p 00105000 08:02 21496084 /lib/x86_64-linux-gnu/libm-2.19.so
        7ff308973000-7ff30958d000 r-xp 00000000 08:02 34999845 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
        7ff30958d000-7ff30978d000 ---p 00c1a000 08:02 34999845 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
        7ff30978d000-7ff309856000 rw-p 00c1a000 08:02 34999845 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
        7ff309856000-7ff309897000 rw-p 00000000 00:00 0
        7ff309897000-7ff309a53000 r-xp 00000000 08:02 21496092 /lib/x86_64-linux-gnu/libc-2.19.so
        7ff309a53000-7ff309c52000 ---p 001bc000 08:02 21496092 /lib/x86_64-linux-gnu/libc-2.19.so
        7ff309c52000-7ff309c56000 r--p 001bb000 08:02 21496092 /lib/x86_64-linux-gnu/libc-2.19.so
        7ff309c56000-7ff309c58000 rw-p 001bf000 08:02 21496092 /lib/x86_64-linux-gnu/libc-2.19.so
        7ff309c58000-7ff309c5d000 rw-p 00000000 00:00 0
        7ff309c5d000-7ff309c60000 r-xp 00000000 08:02 21496070 /lib/x86_64-linux-gnu/libdl-2.19.so
        7ff309c60000-7ff309e5f000 ---p 00003000 08:02 21496070 /lib/x86_64-linux-gnu/libdl-2.19.so
        7ff309e5f000-7ff309e60000 r--p 00002000 08:02 21496070 /lib/x86_64-linux-gnu/libdl-2.19.so
        7ff309e60000-7ff309e61000 rw-p 00003000 08:02 21496070 /lib/x86_64-linux-gnu/libdl-2.19.so
        7ff309e61000-7ff309e78000 r-xp 00000000 08:02 34999854 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
        7ff309e78000-7ff30a077000 ---p 00017000 08:02 34999854 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
        7ff30a077000-7ff30a078000 rw-p 00016000 08:02 34999854 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
        7ff30a078000-7ff30a091000 r-xp 00000000 08:02 21496094 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7ff30a091000-7ff30a290000 ---p 00019000 08:02 21496094 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7ff30a290000-7ff30a291000 r--p 00018000 08:02 21496094 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7ff30a291000-7ff30a292000 rw-p 00019000 08:02 21496094 /lib/x86_64-linux-gnu/libpthread-2.19.so
        7ff30a292000-7ff30a296000 rw-p 00000000 00:00 0
        7ff30a296000-7ff30a2b9000 r-xp 00000000 08:02 21496068 /lib/x86_64-linux-gnu/ld-2.19.so
        7ff30a2c6000-7ff30a391000 rw-p 00000000 00:00 0
        7ff30a391000-7ff30a394000 ---p 00000000 00:00 0
        7ff30a394000-7ff30a496000 rw-p 00000000 00:00 0 [stack:12024]
        7ff30a4a0000-7ff30a4a2000 rw-p 00000000 00:00 0
        7ff30a4a2000-7ff30a4ac000 r--s 0021b000 08:02 34999594 /usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar
        7ff30a4ac000-7ff30a4b4000 rw-s 00000000 08:02 19531255 /tmp/hsperfdata_ss/12023
        7ff30a4b4000-7ff30a4b5000 rw-p 00000000 00:00 0
        7ff30a4b5000-7ff30a4b6000 r--p 00000000 00:00 0
        7ff30a4b6000-7ff30a4b8000 rw-p 00000000 00:00 0
        7ff30a4b8000-7ff30a4b9000 r--p 00022000 08:02 21496068 /lib/x86_64-linux-gnu/ld-2.19.so
        7ff30a4b9000-7ff30a4ba000 rw-p 00023000 08:02 21496068 /lib/x86_64-linux-gnu/ld-2.19.so
        7ff30a4ba000-7ff30a4bb000 rw-p 00000000 00:00 0
        7ffffc36e000-7ffffc38f000 rw-p 00000000 00:00 0 [stack]
        7ffffc3fe000-7ffffc400000 r-xp 00000000 00:00 0 [vdso]
        ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

        VM Arguments:
        java_command: WordsSum -Xmx4G
        java_class_path (initial): .
        Launcher Type: SUN_STANDARD

        Environment Variables:
        JAVA_HOME=/usr/lib/jvm/java-8-oracle
        PATH=/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
        SHELL=/bin/bash
        DISPLAY=:0

        Signal Handlers:
        SIGSEGV: [libjvm.so+0xa2fde0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGBUS: [libjvm.so+0xa2fde0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGFPE: [libjvm.so+0x89b420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGPIPE: [libjvm.so+0x89b420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGXFSZ: [libjvm.so+0x89b420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGILL: [libjvm.so+0x89b420], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
        SIGUSR2: [libjvm.so+0x89cbc0], sa_mask[0]=0x00000000, sa_flags=0x10000004
        SIGHUP: [libjvm.so+0x89de70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGINT: [libjvm.so+0x89de70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGTERM: [libjvm.so+0x89de70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
        SIGQUIT: [libjvm.so+0x89de70], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


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

        OS:DISTRIB_ID=Ubuntu
        DISTRIB_RELEASE=14.04
        DISTRIB_CODENAME=trusty
        DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

        uname:Linux 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64
        libc:glibc 2.19 NPTL 2.19
        rlimit: STACK 8192k, CORE 0k, NPROC 62186, NOFILE 4096, AS infinity
        load average:2.09 3.73 2.91

        /proc/meminfo:
        MemTotal: 8039308 kB
        MemFree: 1423564 kB
        Buffers: 293640 kB
        Cached: 3466184 kB
        SwapCached: 0 kB
        Active: 3966072 kB
        Inactive: 1902828 kB
        Active(anon): 2076936 kB
        Inactive(anon): 580764 kB
        Active(file): 1889136 kB
        Inactive(file): 1322064 kB
        Unevictable: 48 kB
        Mlocked: 48 kB
        SwapTotal: 8251388 kB
        SwapFree: 8251264 kB
        Dirty: 136 kB
        Writeback: 0 kB
        AnonPages: 2109140 kB
        Mapped: 315044 kB
        Shmem: 548624 kB
        Slab: 594572 kB
        SReclaimable: 542316 kB
        SUnreclaim: 52256 kB
        KernelStack: 6248 kB
        PageTables: 58732 kB
        NFS_Unstable: 0 kB
        Bounce: 0 kB
        WritebackTmp: 0 kB
        CommitLimit: 12271040 kB
        Committed_AS: 8551912 kB
        VmallocTotal: 34359738367 kB
        VmallocUsed: 359844 kB
        VmallocChunk: 34359369216 kB
        HardwareCorrupted: 0 kB
        AnonHugePages: 1048576 kB
        HugePages_Total: 0
        HugePages_Free: 0
        HugePages_Rsvd: 0
        HugePages_Surp: 0
        Hugepagesize: 2048 kB
        DirectMap4k: 237816 kB
        DirectMap2M: 8013824 kB


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

        /proc/cpuinfo:
        processor : 0
        vendor_id : GenuineIntel
        cpu family : 6
        model : 58
        model name : Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
        stepping : 9
        microcode : 0x15
        cpu MHz : 1200.000
        cache size : 3072 KB
        physical id : 0
        siblings : 4
        core id : 0
        cpu cores : 2
        apicid : 0
        initial apicid : 0
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
        bogomips : 5188.27
        clflush size : 64
        cache_alignment : 64
        address sizes : 36 bits physical, 48 bits virtual
        power management:

        processor : 1
        vendor_id : GenuineIntel
        cpu family : 6
        model : 58
        model name : Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
        stepping : 9
        microcode : 0x15
        cpu MHz : 2601.000
        cache size : 3072 KB
        physical id : 0
        siblings : 4
        core id : 0
        cpu cores : 2
        apicid : 1
        initial apicid : 1
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
        bogomips : 5188.27
        clflush size : 64
        cache_alignment : 64
        address sizes : 36 bits physical, 48 bits virtual
        power management:

        processor : 2
        vendor_id : GenuineIntel
        cpu family : 6
        model : 58
        model name : Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
        stepping : 9
        microcode : 0x15
        cpu MHz : 2601.000
        cache size : 3072 KB
        physical id : 0
        siblings : 4
        core id : 1
        cpu cores : 2
        apicid : 2
        initial apicid : 2
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
        bogomips : 5188.27
        clflush size : 64
        cache_alignment : 64
        address sizes : 36 bits physical, 48 bits virtual
        power management:

        processor : 3
        vendor_id : GenuineIntel
        cpu family : 6
        model : 58
        model name : Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
        stepping : 9
        microcode : 0x15
        cpu MHz : 2601.000
        cache size : 3072 KB
        physical id : 0
        siblings : 4
        core id : 1
        cpu cores : 2
        apicid : 3
        initial apicid : 3
        fpu : yes
        fpu_exception : yes
        cpuid level : 13
        wp : yes
        flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
        bogomips : 5188.27
        clflush size : 64
        cache_alignment : 64
        address sizes : 36 bits physical, 48 bits virtual
        power management:



        Memory: 4k page, physical 8039308k(1423564k free), swap 8251388k(8251264k free)

        vm_info: Java HotSpot(TM) 64-Bit Server VM (25.11-b03) for linux-amd64 JRE (1.8.0_11-b12), built on Jun 16 2014 17:29:59 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

        time: Mon Aug 11 23:44:29 2014
        elapsed time: 15 seconds


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.util.*;
        import java.io.*;

        class WordsSum {
            public static void main(String args[]) throws IOException
            {
                Scanner input = new Scanner(new File("/usr/share/dict/words"));
                List<String> words = new ArrayList<>();
                long start = System.currentTimeMillis();
                while(input.hasNext()) {
                    words.add(input.next());
                }
                System.out.println("Reading time = "+ (System.currentTimeMillis() - start));
                maxSum4(words);
            }

            public static void maxSum4(List<String> words)
            {
                long start = System.currentTimeMillis();
                int wordMax[] = new int[1 << 26];
                String wordStringMax[] = new String[1 << 26];
                int result = 0;
                for(String word : words) {
                    result = 0;
                    for(char c : word.toCharArray()) {
                        if(c >= 'a' && c <= 'z')
                            result |= 1 << (c - 'a');
                        else {
                            result = -1;
                            break;
                        }
                    }
                    if(result > 0 && wordMax[result] < word.length()) {
                        wordStringMax[result] = word;
                        wordMax[result] = word.length();
                    }
                }

                for(int i = 1; i < (1 << 26); i++) {
                    int max = wordMax[i];
                    for(int j = 0; j < 31; j++) {
                        int cand = ~(1 << j) & i;
                        if(max < wordMax[cand]) {
                            wordMax[i] = wordMax[cand];
                            wordStringMax[i] = wordStringMax[cand];
                        }
                    }
                }
                
                int max = -1;
                String w1 = null;
                String w2 = null;
                String word1 = null;
                String word2 = null;
                for(String word : words) {
                    result = 0;
                    for(char c : word.toCharArray()) {
                        if(c >= 'a' && c <= 'z')
                            result |= 1 << (c - 'a');
                        else {
                            result = -1;
                            break;
                        }
                    }
                    if(result > 0 && wordMax[~result]*word.length() > max) {
                        max = wordMax[~result] * word.length();
                        w1 = word;
                        w2 = wordStringMax[~result];
                    }
                }
                System.out.println(w1 + " " + w2 + " " + (System.currentTimeMillis() - start));
            }
        }
        ---------- END SOURCE ----------

              iveresov Igor Veresov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: