Original report by me.
Original issue 23 created by magreenblatt on 2013-12-30T18:59:00.000Z:
What steps will reproduce the problem?
- Run the JCEF sample application on Mac.
- Select an option from the application or dock menu.
What is the expected output? What do you see instead?
The selection should work as expected. Instead, the application crashes with the below stack trace (edit run.sh, change the java command-line to "lldb -- /usr/bin/java -cp $CLS_PATH -Djava.library.path=$LIB_PATH MainFrame"):
$ ./run.sh macosx64 Debug
Current executable set to '/usr/bin/java' (x86_64).
(lldb) r
Process 9312 launched: '/usr/bin/java' (x86_64)
Process 9312 stopped
* thread comment 1.: tid = 0x1c03, 0x00007fff5fc01028 dyld`_dyld_start, stop reason = exec
frame comment 0.: 0x00007fff5fc01028 dyld`_dyld_start
dyld`_dyld_start:
-> 0x7fff5fc01028: popq %rdi
0x7fff5fc01029: pushq $0
0x7fff5fc0102b: movq %rsp, %rbp
0x7fff5fc0102e: andq $-16, %rsp
(lldb) c
Process 9312 resuming
initialize on Thread[AWT-EventQueue-0,6,main] with library path ./xcodebuild/Debug/jcef_app.app/Contents/MacOS
Process 9312 stopped
* thread comment 30.: tid = 0x3d03, 0x00000001030adc35, stop reason = signal SIGSEGV
frame comment 0.: 0x00000001030adc35
-> 0x1030adc35: movl 12(%rdx), %edx
0x1030adc38: movl 12(%r12,%rdx,8), %ebx
0x1030adc3d: movl 16(%rsi), %edi
0x1030adc40: movl 12(%r12,%rdi,8), %r8d
(lldb) bt
* thread comment 30.: tid = 0x3d03, 0x00000001030adc35, stop reason = signal SIGSEGV
frame comment 0.: 0x00000001030adc35
frame comment 1.: 0x0000000103006233
frame comment 2.: 0x0000000103006058
frame comment 3.: 0x0000000103006233
frame comment 4.: 0x0000000103006058
frame comment 5.: 0x0000000103006058
frame comment 6.: 0x0000000103006058
frame comment 7.: 0x0000000103006233
frame comment 8.: 0x0000000103006058
frame comment 9.: 0x0000000103006233
frame comment 10.: 0x0000000103006233
frame comment 11.: 0x00000001030004e7
frame comment 12.: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
frame comment 13.: 0x00000001012d6b60 libjvm.dylib`JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) + 40
frame comment 14.: 0x000000010130a605 libjvm.dylib`jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) + 698
frame comment 15.: 0x00000001012fc2cd libjvm.dylib`jni_CallObjectMethodV + 174
frame comment 16.: 0x0000000101aed42d JavaNativeFoundation`JNFCallObjectMethod + 170
frame comment 17.: 0x000000011649aa64 libosxui.dylib`Java_com_apple_laf_ScreenPopupFactory__1getHeavyWeightPopup + 89
frame comment 18.: 0x0000000103012698
frame comment 19.: 0x0000000103006233
frame comment 20.: 0x0000000103006233
frame comment 21.: 0x0000000103006233
frame comment 22.: 0x0000000103006233
frame comment 23.: 0x0000000103006058
frame comment 24.: 0x0000000103006058
frame comment 25.: 0x0000000103006058
frame comment 26.: 0x0000000103006706
frame comment 27.: 0x0000000103006058
frame comment 28.: 0x0000000103006058
frame comment 29.: 0x0000000103006058
frame comment 30.: 0x0000000103006058
frame comment 31.: 0x0000000103006706
frame comment 32.: 0x0000000103006058
frame comment 33.: 0x0000000103006058
frame comment 34.: 0x0000000103006058
frame comment 35.: 0x0000000103006058
frame comment 36.: 0x0000000103006058
frame comment 37.: 0x0000000103006058
frame comment 38.: 0x0000000103006058
frame comment 39.: 0x0000000103006058
frame comment 40.: 0x0000000103006350
frame comment 41.: 0x0000000103006350
frame comment 42.: 0x0000000103006058
frame comment 43.: 0x0000000103006058
frame comment 44.: 0x0000000103006058
frame comment 45.: 0x0000000103006058
frame comment 46.: 0x0000000103006058
frame comment 47.: 0x0000000103006233
frame comment 48.: 0x00000001030004e7
frame comment 49.: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
frame comment 50.: 0x00000001012d6b60 libjvm.dylib`JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) + 40
frame comment 51.: 0x000000010132a444 libjvm.dylib`JVM_DoPrivileged + 1041
frame comment 52.: 0x0000000103012698
frame comment 53.: 0x0000000103006233
frame comment 54.: 0x0000000103006233
frame comment 55.: 0x00000001030068e1
frame comment 56.: 0x0000000103006233
frame comment 57.: 0x00000001030004e7
frame comment 58.: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
frame comment 59.: 0x00000001012d6b60 libjvm.dylib`JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) + 40
frame comment 60.: 0x000000010132a444 libjvm.dylib`JVM_DoPrivileged + 1041
frame comment 61.: 0x0000000103012698
frame comment 62.: 0x0000000103006233
frame comment 63.: 0x00000001030068e1
frame comment 64.: 0x0000000103006058
frame comment 65.: 0x0000000103006058
frame comment 66.: 0x0000000103006058
frame comment 67.: 0x0000000103006058
frame comment 68.: 0x0000000103006058
frame comment 69.: 0x0000000103006058
frame comment 70.: 0x00000001030004e7
frame comment 71.: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
frame comment 72.: 0x00000001012d72a7 libjvm.dylib`JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 283
frame comment 73.: 0x00000001012d73e4 libjvm.dylib`JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74
frame comment 74.: 0x00000001013263ca libjvm.dylib`thread_entry(JavaThread*, Thread*) + 173
frame comment 75.: 0x00000001014efb47 libjvm.dylib`JavaThread::thread_main_inner() + 155
frame comment 76.: 0x00000001014f124f libjvm.dylib`JavaThread::run() + 419
frame comment 77.: 0x000000010141b1c6 libjvm.dylib`java_start(Thread*) + 294
frame comment 78.: 0x00007fff845e8742 libsystem_c.dylib`_pthread_start + 327
frame comment 79.: 0x00007fff845d5181 libsystem_c.dylib`thread_start + 13