This issue is intermittent but when building the "modules" target with the MVM<->Jigsaw merge then the build hangs. It usually hangs installing a module with jmod:
ab23780 10916 13015 0 16:08 pts/1 00:00:00 /bin/sh -c for jm in `/usr/bin/gawk '{print $1}' /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/tmp/modules/classlist/jdk.base.tools.modules.list` ; do \? image=jdk-base-image; m=$jm; mlib=/u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/$image/lib/modules; mid=`/u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod ls -L $mlib $m | /bin/grep -v '#'` ; if [ "x$mid" = "x" ] ; then /bin/echo -e "Installing module $m in $image" ; cd /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/modules && if [ -d $m/resources ] ; then /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod install $m/classes -r $m/resources -L $mlib $m || exit 1; else /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod install $m/classes -L $mlib $m || exit 1; fi ; image=jdk-base-image; m=$jm; javahome=/u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/$image; for d in bin lib ; do if [ -d $m/$d ] ; then /bin/cp -rf /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/modules/$m/$d $javahome; fi ; done ; else /bin/echo -e "Module $m already installed in $image" ; fi ; \?done
ab23780 11214 10916 1 16:09 pts/1 00:00:00 /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod install jdk.base.tools/classes -L /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/jdk-base-image/lib/modules jdk.base.tools
:
(gdb) info threads
7 Thread 0x40ac3b70 (LWP 22703) 0x4001d422 in __kernel_vsyscall ()
6 Thread 0x84fedb70 (LWP 22704) 0x4001d422 in __kernel_vsyscall ()
5 Thread 0x8503eb70 (LWP 22705) 0x4001d422 in __kernel_vsyscall ()
4 Thread 0x8508fb70 (LWP 22706) 0x4001d422 in __kernel_vsyscall ()
3 Thread 0x85161b70 (LWP 22708) 0x4001d422 in __kernel_vsyscall ()
2 Thread 0x851b2b70 (LWP 22709) 0x4001d422 in __kernel_vsyscall ()
* 1 Thread 0x401aa6c0 (LWP 22702) 0x4001d422 in __kernel_vsyscall ()
(gdb) thread 7
[Switching to thread 7 (Thread 0x40ac3b70 (LWP 22703))]#0 0x4001d422 in __kernel_vsyscall ()
(gdb) bt
#0 0x4001d422 in __kernel_vsyscall ()
#1 0x4003b142 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x404c5ba4 in os::Linux::safe_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, timespec const*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#3 0x404c5d0d in os::PlatformEvent::park(long long) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#4 0x4053e1a7 in ObjectMonitor::EnterI(Thread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#5 0x40540692 in ObjectMonitor::enter(Thread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#6 0x40540ad6 in ObjectSynchronizer::slow_enter(Handle, BasicLock*, Thread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#7 0x40540bc9 in ObjectSynchronizer::fast_enter(Handle, BasicLock*, bool, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#8 0x403bd3fc in InterpreterRuntime::monitorenter(JavaThread*, BasicObjectLock*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#9 0x40b6e022 in ?? ()
#10 0x40b5fda1 in ?? ()
#11 0x40b5d2cc in ?? ()
#12 0x403c7f15 in JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#13 0x404c3ed9 in os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*)
() from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#14 0x403c6dff in JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#15 0x403c6e82 in JavaCalls::call_static(JavaValue*, KlassHandle, symbolHandle, symbolHandle, JavaCallArguments*, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#16 0x403c6fed in JavaCalls::call_static(JavaValue*, KlassHandle, symbolHandle, symbolHandle, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#17 0x4057a394 in JavaThread::exit(bool, JavaThread::ExitType) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#18 0x4057a900 in Threads::destroy_vm() () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#19 0x4047e0fd in MTaskTable::destroy_mtask(MTask*, JavaThread*, int, MTask::MVMState, MTask::MVMExitReason, oopDesc*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#20 0x4047e1e2 in MTaskTable::destroy_JavaVM(JavaVM_*, JavaThread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#21 0x403d441d in jni_DestroyJavaVM () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#22 0x4004f405 in JavaMain () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/../lib/i386/jli/libjli.so
#23 0x4003680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#24 0x401327ee in clone () from /lib/tls/i686/cmov/libc.so.6
ab23780 10916 13015 0 16:08 pts/1 00:00:00 /bin/sh -c for jm in `/usr/bin/gawk '{print $1}' /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/tmp/modules/classlist/jdk.base.tools.modules.list` ; do \? image=jdk-base-image; m=$jm; mlib=/u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/$image/lib/modules; mid=`/u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod ls -L $mlib $m | /bin/grep -v '#'` ; if [ "x$mid" = "x" ] ; then /bin/echo -e "Installing module $m in $image" ; cd /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/modules && if [ -d $m/resources ] ; then /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod install $m/classes -r $m/resources -L $mlib $m || exit 1; else /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod install $m/classes -L $mlib $m || exit 1; fi ; image=jdk-base-image; m=$jm; javahome=/u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/$image; for d in bin lib ; do if [ -d $m/$d ] ; then /bin/cp -rf /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/modules/$m/$d $javahome; fi ; done ; else /bin/echo -e "Module $m already installed in $image" ; fi ; \?done
ab23780 11214 10916 1 16:09 pts/1 00:00:00 /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/jmod install jdk.base.tools/classes -L /u/alanb/ws/mvm-jigsaw-android-merge/build/android/g1/jdk/jdk-base-image/lib/modules jdk.base.tools
:
(gdb) info threads
7 Thread 0x40ac3b70 (LWP 22703) 0x4001d422 in __kernel_vsyscall ()
6 Thread 0x84fedb70 (LWP 22704) 0x4001d422 in __kernel_vsyscall ()
5 Thread 0x8503eb70 (LWP 22705) 0x4001d422 in __kernel_vsyscall ()
4 Thread 0x8508fb70 (LWP 22706) 0x4001d422 in __kernel_vsyscall ()
3 Thread 0x85161b70 (LWP 22708) 0x4001d422 in __kernel_vsyscall ()
2 Thread 0x851b2b70 (LWP 22709) 0x4001d422 in __kernel_vsyscall ()
* 1 Thread 0x401aa6c0 (LWP 22702) 0x4001d422 in __kernel_vsyscall ()
(gdb) thread 7
[Switching to thread 7 (Thread 0x40ac3b70 (LWP 22703))]#0 0x4001d422 in __kernel_vsyscall ()
(gdb) bt
#0 0x4001d422 in __kernel_vsyscall ()
#1 0x4003b142 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x404c5ba4 in os::Linux::safe_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, timespec const*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#3 0x404c5d0d in os::PlatformEvent::park(long long) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#4 0x4053e1a7 in ObjectMonitor::EnterI(Thread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#5 0x40540692 in ObjectMonitor::enter(Thread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#6 0x40540ad6 in ObjectSynchronizer::slow_enter(Handle, BasicLock*, Thread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#7 0x40540bc9 in ObjectSynchronizer::fast_enter(Handle, BasicLock*, bool, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#8 0x403bd3fc in InterpreterRuntime::monitorenter(JavaThread*, BasicObjectLock*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#9 0x40b6e022 in ?? ()
#10 0x40b5fda1 in ?? ()
#11 0x40b5d2cc in ?? ()
#12 0x403c7f15 in JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#13 0x404c3ed9 in os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*)
() from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#14 0x403c6dff in JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#15 0x403c6e82 in JavaCalls::call_static(JavaValue*, KlassHandle, symbolHandle, symbolHandle, JavaCallArguments*, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#16 0x403c6fed in JavaCalls::call_static(JavaValue*, KlassHandle, symbolHandle, symbolHandle, Thread*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#17 0x4057a394 in JavaThread::exit(bool, JavaThread::ExitType) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#18 0x4057a900 in Threads::destroy_vm() () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#19 0x4047e0fd in MTaskTable::destroy_mtask(MTask*, JavaThread*, int, MTask::MVMState, MTask::MVMExitReason, oopDesc*) ()
from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#20 0x4047e1e2 in MTaskTable::destroy_JavaVM(JavaVM_*, JavaThread*) () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#21 0x403d441d in jni_DestroyJavaVM () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/lib/i386/client/libjvm.so
#22 0x4004f405 in JavaMain () from /u/alanb/ws/mvm-jigsaw-android-merge/build/host/jdk/bin/../lib/i386/jli/libjli.so
#23 0x4003680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#24 0x401327ee in clone () from /lib/tls/i686/cmov/libc.so.6