Current BC master hangs at ./build15+ test

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Current BC master hangs at ./build15+ test

Uri Blumenthal
bash ./build15+ test
Buildfile: /Users/uri/src/bc-java/ant/jdk15+.xml

init:

build-test:

pack200-on:

pack200-off:

initPackJar:

initMacros:

build-test:
     [copy] Copying 2 files to /Users/uri/src/bc-java/build/artifacts/jdk1.5/bctest-jdk15on-157/src
   [delete] Deleting: /Users/uri/src/bc-java/build/artifacts/jdk1.5/bctest-jdk15on-157/src/org/bouncycastle/x509/CertPathReviewerMessages_de.properties
   [delete] Deleting: /Users/uri/src/bc-java/build/artifacts/jdk1.5/bctest-jdk15on-157/src/org/bouncycastle/x509/CertPathReviewerMessages.properties
    [javac] /Users/uri/src/bc-java/ant/bc+-build.xml:147: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /Users/uri/src/bc-java/build/bctest-jdk15on-157/classes
    [javac] Since fork is false, ignoring memoryMaximumSize setting.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

test:

test:
    [mkdir] Created dir: /Users/uri/src/bc-java/build/jdk15on


Attempts to re-clone the Github repo from scratch did not help. The above is the last line of the output. CPU is 98% busy, and that’s it.

Perhaps this might be of help:

Sampling process 99292 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling java (pid 99292) every 1 millisecond
Process:         java [99292]
Path:            /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java
Load Address:    0x104d4e000
Identifier:      java
Version:         1.0 (1.0)
Code Type:       X86-64
Parent Process:  java [99182]

Date/Time:       2017-06-29 22:05:31.890 -0400
Launch Time:     2017-06-29 21:53:12.152 -0400
OS Version:      Mac OS X 10.12.5 (16F73)
Report Version:  7
Analysis Tool:   /usr/bin/sample
----

Call graph:
    2613 Thread_9193693   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2613 start  (in java) + 52  [0x104d4f9e4]
    +   2613 main  (in java) + 101  [0x104d564c2]
    +     2613 JLI_Launch  (in java) + 1952  [0x104d5018c]
    +       2613 CreateExecutionEnvironment  (in java) + 871  [0x104d54465]
    +         2613 CFRunLoopRunSpecific  (in CoreFoundation) + 420  [0x7fffc27ac114]
    +           2613 __CFRunLoopRun  (in CoreFoundation) + 1361  [0x7fffc27ac8c1]
    +             2613 __CFRunLoopServiceMachPort  (in CoreFoundation) + 212  [0x7fffc27ad434]
    +               2613 mach_msg  (in libsystem_kernel.dylib) + 55  [0x7fffd804c797]
    +                 2613 mach_msg_trap  (in libsystem_kernel.dylib) + 10  [0x7fffd804d34a]
    2613 Thread_9193696
    + 2613 thread_start  (in libsystem_pthread.dylib) + 13  [0x7fffd813f08d]
    +   2613 _pthread_start  (in libsystem_pthread.dylib) + 286  [0x7fffd813f887]
    +     2613 _pthread_body  (in libsystem_pthread.dylib) + 180  [0x7fffd813f93b]
    +       2613 apple_main  (in java) + 92  [0x104d540f7]
    +         2613 main  (in java) + 101  [0x104d564c2]
    +           2613 JLI_Launch  (in java) + 4837  [0x104d50cd1]
    +             2613 JVMInit  (in java) + 315  [0x104d537f7]
    +               2613 ContinueInNewThread  (in java) + 201  [0x104d50f53]
    +                 2613 ContinueInNewThread0  (in java) + 102  [0x104d53a22]
    +                   2613 pthread_join  (in libsystem_pthread.dylib) + 425  [0x7fffd81416e5]
    +                     2613 __semwait_signal  (in libsystem_kernel.dylib) + 10  [0x7fffd8054f46]
    2613 Thread_9193698
    + 2613 start_wqthread  (in libsystem_pthread.dylib) + 13  [0x7fffd813f07d]
    +   2613 _pthread_wqthread  (in libsystem_pthread.dylib) + 1023  [0x7fffd813f48e]
    +     2613 __workq_kernreturn  (in libsystem_kernel.dylib) + 10  [0x7fffd805544e]
    2613 Thread_9193700
    + 433 ???  (in <unknown binary>)  [0x108d6e91b]
    + 169 ???  (in <unknown binary>)  [0x108d6e970]
    + 166 ???  (in <unknown binary>)  [0x108d6e9b1]
    + 164 ???  (in <unknown binary>)  [0x108d6e994]
    + 162 ???  (in <unknown binary>)  [0x108d6e95e]
    + 151 ???  (in <unknown binary>)  [0x108d6e935]
    + 151 ???  (in <unknown binary>)  [0x108d6e987]
    + 148 ???  (in <unknown binary>)  [0x108d6e9cb]
    + 145 ???  (in <unknown binary>)  [0x108d6e97a]
    + 144 ???  (in <unknown binary>)  [0x108d6e9a1]
    + 138 ???  (in <unknown binary>)  [0x108d6e9c5]
    + 136 ???  (in <unknown binary>)  [0x108d6e9d9]
    + 116 ???  (in <unknown binary>)  [0x108d6e9ce]
    + 100 ???  (in <unknown binary>)  [0x1088f14db]
    + ! 50 OptoRuntime::handle_exception_C(JavaThread*)  (in libjvm.dylib) + 41  [0x105adfce7]
    + ! : 13 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 140,188,...  [0x105adfae8,0x105adfb18,...]
    + ! : 10 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 362  [0x105adfbc6]
    + ! : | 5 nmethod::handler_for_exception_and_pc(Handle, unsigned char*)  (in libjvm.dylib) + 45  [0x105a68df9]
    + ! : | + 5 ExceptionCache::match(Handle, unsigned char*)  (in libjvm.dylib) + 49,0,...  [0x105a68be3,0x105a68bb2,...]
    + ! : | 5 nmethod::handler_for_exception_and_pc(Handle, unsigned char*)  (in libjvm.dylib) + 74,0,...  [0x105a68e16,0x105a68dcc,...]
    + ! : 9 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 589  [0x105adfca9]
    + ! : | 7 ThreadInVMfromJavaNoAsyncException::~ThreadInVMfromJavaNoAsyncException()  (in libjvm.dylib) + 30  [0x1057432bc]
    + ! : | + 7 ThreadStateTransition::trans(JavaThreadState, JavaThreadState)  (in libjvm.dylib) + 81,147,...  [0x1057f366d,0x1057f36af,...]
    + ! : | 2 ThreadInVMfromJavaNoAsyncException::~ThreadInVMfromJavaNoAsyncException()  (in libjvm.dylib) + 33,1  [0x1057432bf,0x10574329f]
    + ! : 6 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 206  [0x105adfb2a]
    + ! : | 3 JavaThread::reguard_stack()  (in libjvm.dylib) + 17  [0x105b6a57f]
    + ! : | + 3 os::current_stack_pointer()  (in libjvm.dylib) + 0,4  [0x105a8bb56,0x105a8bb5a]
    + ! : | 2 JavaThread::reguard_stack()  (in libjvm.dylib) + 20,28  [0x105b6a582,0x105b6a58a]
    + ! : | 1 JavaThread::reguard_stack()  (in libjvm.dylib) + 28  [0x105b6a58a]
    + ! : |   1 JavaThread::reguard_stack(unsigned char*)  (in libjvm.dylib) + 164  [0x105b6a568]
    + ! : 4 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 129  [0x105adfadd]
    + ! : | 4 CodeCache::find_blob(void*)  (in libjvm.dylib) + 14  [0x10579d184]
    + ! : |   4 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 38  [0x105a6e8f6]
    + ! : |     4 CodeHeap::find_start(void*) const  (in libjvm.dylib) + 62,56,...  [0x10589ffee,0x10589ffe8,...]
    + ! : 4 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 580  [0x105adfca0]
    + ! : | 4 HandleMarkCleaner::~HandleMarkCleaner()  (in libjvm.dylib) + 18,76  [0x10592691a,0x105926954]
    + ! : 3 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 85  [0x105adfab1]
    + ! : | 3 Arena::Amalloc_4(unsigned long, AllocFailStrategy::AllocFailEnum)  (in libjvm.dylib) + 23,73,...  [0x10579cae7,0x10579cb19,...]
    + ! : 1 OptoRuntime::handle_exception_C_helper(JavaThread*, nmethod*&)  (in libjvm.dylib) + 533  [0x105adfc71]
    + ! :   1 nmethod::is_method_handle_return(unsigned char*)  (in libjvm.dylib) + 1  [0x105a69205]
    + ! 31 OptoRuntime::handle_exception_C(JavaThread*)  (in libjvm.dylib) + 107  [0x105adfd29]
    + ! : 21 frame::sender(RegisterMap*) const  (in libjvm.dylib) + 114  [0x10584cad2]
    + ! : | 16 frame::sender_for_compiled_frame(RegisterMap*) const  (in libjvm.dylib) + 162  [0x10584c8d2]
    + ! : | + 10 CodeCache::find_blob(void*)  (in libjvm.dylib) + 14  [0x10579d184]
    + ! : | + ! 7 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 38  [0x105a6e8f6]
    + ! : | + ! : 7 CodeHeap::find_start(void*) const  (in libjvm.dylib) + 77,72,...  [0x10589fffd,0x10589fff8,...]
    + ! : | + ! 3 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 24,16,...  [0x105a6e8e8,0x105a6e8e0,...]
    + ! : | + 4 CodeCache::find_blob(void*)  (in libjvm.dylib) + 25,65,...  [0x10579d18f,0x10579d1b7,...]
    + ! : | + 2 CodeCache::find_blob(void*)  (in libjvm.dylib) + 31  [0x10579d195]
    + ! : | +   2 nmethod::is_zombie() const  (in libjvm.dylib) + 11,0  [0x105a6e523,0x105a6e518]
    + ! : | 2 frame::sender_for_compiled_frame(RegisterMap*) const  (in libjvm.dylib) + 180  [0x10584c8e4]
    + ! : | + 2 nmethod::is_nmethod() const  (in libjvm.dylib) + 0,1  [0x105a6e4d4,0x105a6e4d5]
    + ! : | 2 frame::sender_for_compiled_frame(RegisterMap*) const  (in libjvm.dylib) + 188  [0x10584c8ec]
    + ! : | + 1 nmethod::get_deopt_original_pc(frame const*)  (in libjvm.dylib) + 28  [0x105a691c6]
    + ! : | + ! 1 nmethod::is_nmethod() const  (in libjvm.dylib) + 0  [0x105a6e4d4]
    + ! : | + 1 nmethod::get_deopt_original_pc(frame const*)  (in libjvm.dylib) + 22  [0x105a691c0]
    + ! : | 1 frame::sender_for_compiled_frame(RegisterMap*) const  (in libjvm.dylib) + 206  [0x10584c8fe]
    + ! : 7 frame::sender(RegisterMap*) const  (in libjvm.dylib) + 73  [0x10584caa9]
    + ! : | 7 frame::is_interpreted_frame() const  (in libjvm.dylib) + 27,40,...  [0x10584c363,0x10584c370,...]
    + ! : 3 frame::sender(RegisterMap*) const  (in libjvm.dylib) + 0,35  [0x10584ca60,0x10584ca83]
    + ! 12 OptoRuntime::handle_exception_C(JavaThread*)  (in libjvm.dylib) + 86  [0x105adfd14]
    + ! : 8 JavaThread::pd_last_frame()  (in libjvm.dylib) + 64  [0x1057f332c]
    + ! : | 4 CodeCache::find_blob(void*)  (in libjvm.dylib) + 31  [0x10579d195]
    + ! : | + 4 CodeBlob::is_zombie() const  (in libjvm.dylib) + 0,1  [0x10579aa9c,0x10579aa9d]
    + ! : | 2 CodeCache::find_blob(void*)  (in libjvm.dylib) + 14  [0x10579d184]
    + ! : | + 1 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 38  [0x105a6e8f6]
    + ! : | + ! 1 CodeHeap::find_start(void*) const  (in libjvm.dylib) + 44  [0x10589ffdc]
    + ! : | + 1 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 19  [0x105a6e8e3]
    + ! : | 2 CodeCache::find_blob(void*)  (in libjvm.dylib) + 65  [0x10579d1b7]
    + ! : 2 JavaThread::pd_last_frame()  (in libjvm.dylib) + 103,76  [0x1057f3353,0x1057f3338]
    + ! : 1 JavaThread::pd_last_frame()  (in libjvm.dylib) + 76  [0x1057f3338]
    + ! : | 1 CodeBlob::is_nmethod() const  (in libjvm.dylib) + 1  [0x10579aa85]
    + ! : 1 JavaThread::pd_last_frame()  (in libjvm.dylib) + 84  [0x1057f3340]
    + ! :   1 nmethod::get_deopt_original_pc(frame const*)  (in libjvm.dylib) + 28  [0x105a691c6]
    + ! :     1 CodeBlob::is_nmethod() const  (in libjvm.dylib) + 0  [0x10579aa84]
    + ! 4 OptoRuntime::handle_exception_C(JavaThread*)  (in libjvm.dylib) + 29,8,...  [0x105adfcdb,0x105adfcc6,...]
    + ! 2 OptoRuntime::handle_exception_C(JavaThread*)  (in libjvm.dylib) + 115  [0x105adfd31]
    + ! : 2 frame::is_deoptimized_frame() const  (in libjvm.dylib) + 0,4  [0x105849e14,0x105849e18]
    + ! 1 OptoRuntime::handle_exception_C(JavaThread*)  (in libjvm.dylib) + 71  [0x105adfd05]
    + !   1 RegisterMap::RegisterMap(JavaThread*, bool)  (in libjvm.dylib) + 0  [0x105849dd6]
    + 40 ???  (in <unknown binary>)  [0x1088fa293]
    + ! 23 SharedRuntime::raw_exception_handler_for_return_address(JavaThread*, unsigned char*)  (in libjvm.dylib) + 38  [0x105ae9296]
    + ! : 13 CodeCache::find_blob(void*)  (in libjvm.dylib) + 14  [0x10579d184]
    + ! : | 8 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 19,43,...  [0x105a6e8e3,0x105a6e8fb,...]
    + ! : | 5 CodeCache::find_blob_unsafe(void*)  (in libjvm.dylib) + 38  [0x105a6e8f6]
    + ! : |   5 CodeHeap::find_start(void*) const  (in libjvm.dylib) + 77,62,...  [0x10589fffd,0x10589ffee,...]
    + ! : 8 CodeCache::find_blob(void*)  (in libjvm.dylib) + 31  [0x10579d195]
    + ! : | 8 nmethod::is_zombie() const  (in libjvm.dylib) + 0,1,...  [0x105a6e518,0x105a6e519,...]
    + ! : 2 CodeCache::find_blob(void*)  (in libjvm.dylib) + 22,25  [0x10579d18c,0x10579d18f]
    + ! 10 SharedRuntime::raw_exception_handler_for_return_address(JavaThread*, unsigned char*)  (in libjvm.dylib) + 4,0,...  [0x105ae9274,0x105ae9270,...]
    + ! 4 SharedRuntime::raw_exception_handler_for_return_address(JavaThread*, unsigned char*)  (in libjvm.dylib) + 70  [0x105ae92b6]
    + ! : 4 nmethod::is_method_handle_return(unsigned char*)  (in libjvm.dylib) + 0,11,...  [0x105a69204,0x105a6920f,...]
    + ! 2 OptoRuntime::rethrow_C(oopDesc*, JavaThread*, unsigned char*)  (in libjvm.dylib) + 1,0  [0x105adfa45,0x105adfa44]
    + ! 1 SharedRuntime::raw_exception_handler_for_return_address(JavaThread*, unsigned char*)  (in libjvm.dylib) + 55  [0x105ae92a7]
    + !   1 nmethod::is_nmethod() const  (in libjvm.dylib) + 1  [0x105a6e4d5]
    + 35 ???  (in <unknown binary>)  [0x108d6e9b8]
    + 10 ???  (in <unknown binary>)  [0x108d6e8ca]
    + 10 ???  (in <unknown binary>)  [0x108d6e92a]
    + 10 ???  (in <unknown binary>)  [0x108d6e974]
    + 9 ???  (in <unknown binary>)  [0x108d6e897]
    + 9 ???  (in <unknown binary>)  [0x108d6e910]
    + 8 ???  (in <unknown binary>)  [0x108d6e8f4]
    + 8 ???  (in <unknown binary>)  [0x108d6e951]
    + 8 ???  (in <unknown binary>)  [0x108d6e981]
    + 7 ???  (in <unknown binary>)  [0x108d6e640]
    + 7 ???  (in <unknown binary>)  [0x108d6e96a]
    + 7 ???  (in <unknown binary>)  [0x108d6e9a8]
    + 6 ???  (in <unknown binary>)  [0x1088f9f07]
    + ! 6 OptoRuntime::new_array_C(Klass*, int, JavaThread*)  (in libjvm.dylib) + 63  [0x105ae03cd]
    + !   6 TypeArrayKlass::allocate_common(int, bool, Thread*)  (in libjvm.dylib) + 108  [0x105b7c124]
    + !     6 CollectedHeap::array_allocate(KlassHandle, int, int, Thread*)  (in libjvm.dylib) + 43  [0x1056b2f89]
    + !       5 CollectedHeap::common_mem_allocate_noinit(KlassHandle, unsigned long, Thread*)  (in libjvm.dylib) + 140  [0x1056b2d8e]
    + !       : 5 ParallelScavengeHeap::mem_allocate(unsigned long, bool*)  (in libjvm.dylib) + 518  [0x105a9da36]
    + !       :   5 VMThread::execute(VM_Operation*)  (in libjvm.dylib) + 269  [0x105bb8175]
    + !       :     5 Monitor::wait(bool, long, bool)  (in libjvm.dylib) + 222  [0x105a64c8c]
    + !       :       5 Monitor::IWait(Thread*, long)  (in libjvm.dylib) + 168  [0x105a64abc]
    + !       :         5 ParkCommon(ParkEvent*, long)  (in libjvm.dylib) + 42  [0x105a641e6]
    + !       :           5 os::PlatformEvent::park()  (in libjvm.dylib) + 192  [0x105a87112]
    + !       :             5 _pthread_cond_wait  (in libsystem_pthread.dylib) + 712  [0x7fffd81407fa]
    + !       :               5 __psynch_cvwait  (in libsystem_kernel.dylib) + 10  [0x7fffd8054bf2]
    + !       1 CollectedHeap::common_mem_allocate_noinit(KlassHandle, unsigned long, Thread*)  (in libjvm.dylib) + 105  [0x1056b2d6b]
    + !         1 CollectedHeap::allocate_from_tlab_slow(KlassHandle, Thread*, unsigned long)  (in libjvm.dylib) + 324  [0x10579ebf0]
    + !           1 AllocTracer::send_allocation_in_new_tlab_event(KlassHandle, unsigned long, unsigned long)  (in libjvm.dylib) + 52  [0x1056a3690]
    + !             1 JfrBackend::is_event_enabled(TraceEventId)  (in libjvm.dylib) + 23  [0x105912de1]
    + 6 ???  (in <unknown binary>)  [0x108d6e8c0]
    + 6 ???  (in <unknown binary>)  [0x108d6e98e]
    + 6 ???  (in <unknown binary>)  [0x108d6e99b]
    + 5 ???  (in <unknown binary>)  [0x108d6e701]
    + 5 ???  (in <unknown binary>)  [0x108d6e861]
    + 5 ???  (in <unknown binary>)  [0x108d6e8dc]

--
Uri Blumenthal


smime.p7s (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Gradle installation? RNG? (Re: [dev-crypto] Current BC master hangs at ./build15+ test)

Uri Blumenthal
On Jun 29, 2017, at 22:09 , Uri Blumenthal <[hidden email]> wrote:

. . . . .
test:
    [mkdir] Created dir: /Users/uri/src/bc-java/build/jdk15on


Attempts to re-clone the Github repo from scratch did not help. The above is the last line of the output. CPU is 98% busy, and that’s it.

Update. After removing Gradle plugin files /opt/local/share/java/gradle/lib/plugins/bcpg-jdk15on-1.51.jar and /opt/local/share/java/gradle/lib/plugins/bcprov-jdk15on-1.51.jar  and re-building BC from scratch, the test completed in roughly 14 minutes of CPU time.

I noticed that another README of yours mentions that if a hardware RNG is not available, tests may take a very long time. Could you clarify what “hardware RNG” means in the context (I hope Intel RDRAND instruction qualifies?), and how the code determines its presence?

Thanks!
--
Uri Blumenthal


smime.p7s (2K) Download Attachment