pottermm / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
0 stars 0 forks source link

Mac: Selecting an application menu causes a segfault #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the JCEF sample application on Mac.
2. 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 #1: tid = 0x1c03, 0x00007fff5fc01028 dyld`_dyld_start, stop reason = 
exec
    frame #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 #30: tid = 0x3d03, 0x00000001030adc35, stop reason = signal SIGSEGV
    frame #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 #30: tid = 0x3d03, 0x00000001030adc35, stop reason = signal SIGSEGV
    frame #0: 0x00000001030adc35
    frame #1: 0x0000000103006233
    frame #2: 0x0000000103006058
    frame #3: 0x0000000103006233
    frame #4: 0x0000000103006058
    frame #5: 0x0000000103006058
    frame #6: 0x0000000103006058
    frame #7: 0x0000000103006233
    frame #8: 0x0000000103006058
    frame #9: 0x0000000103006233
    frame #10: 0x0000000103006233
    frame #11: 0x00000001030004e7
    frame #12: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
    frame #13: 0x00000001012d6b60 libjvm.dylib`JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) + 40
    frame #14: 0x000000010130a605 libjvm.dylib`jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) + 698
    frame #15: 0x00000001012fc2cd libjvm.dylib`jni_CallObjectMethodV + 174
    frame #16: 0x0000000101aed42d JavaNativeFoundation`JNFCallObjectMethod + 170
    frame #17: 0x000000011649aa64 libosxui.dylib`Java_com_apple_laf_ScreenPopupFactory__1getHeavyWeightPopup + 89
    frame #18: 0x0000000103012698
    frame #19: 0x0000000103006233
    frame #20: 0x0000000103006233
    frame #21: 0x0000000103006233
    frame #22: 0x0000000103006233
    frame #23: 0x0000000103006058
    frame #24: 0x0000000103006058
    frame #25: 0x0000000103006058
    frame #26: 0x0000000103006706
    frame #27: 0x0000000103006058
    frame #28: 0x0000000103006058
    frame #29: 0x0000000103006058
    frame #30: 0x0000000103006058
    frame #31: 0x0000000103006706
    frame #32: 0x0000000103006058
    frame #33: 0x0000000103006058
    frame #34: 0x0000000103006058
    frame #35: 0x0000000103006058
    frame #36: 0x0000000103006058
    frame #37: 0x0000000103006058
    frame #38: 0x0000000103006058
    frame #39: 0x0000000103006058
    frame #40: 0x0000000103006350
    frame #41: 0x0000000103006350
    frame #42: 0x0000000103006058
    frame #43: 0x0000000103006058
    frame #44: 0x0000000103006058
    frame #45: 0x0000000103006058
    frame #46: 0x0000000103006058
    frame #47: 0x0000000103006233
    frame #48: 0x00000001030004e7
    frame #49: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
    frame #50: 0x00000001012d6b60 libjvm.dylib`JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) + 40
    frame #51: 0x000000010132a444 libjvm.dylib`JVM_DoPrivileged + 1041
    frame #52: 0x0000000103012698
    frame #53: 0x0000000103006233
    frame #54: 0x0000000103006233
    frame #55: 0x00000001030068e1
    frame #56: 0x0000000103006233
    frame #57: 0x00000001030004e7
    frame #58: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
    frame #59: 0x00000001012d6b60 libjvm.dylib`JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) + 40
    frame #60: 0x000000010132a444 libjvm.dylib`JVM_DoPrivileged + 1041
    frame #61: 0x0000000103012698
    frame #62: 0x0000000103006233
    frame #63: 0x00000001030068e1
    frame #64: 0x0000000103006058
    frame #65: 0x0000000103006058
    frame #66: 0x0000000103006058
    frame #67: 0x0000000103006058
    frame #68: 0x0000000103006058
    frame #69: 0x0000000103006058
    frame #70: 0x00000001030004e7
    frame #71: 0x00000001012d6d90 libjvm.dylib`JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 554
    frame #72: 0x00000001012d72a7 libjvm.dylib`JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 283
    frame #73: 0x00000001012d73e4 libjvm.dylib`JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74
    frame #74: 0x00000001013263ca libjvm.dylib`thread_entry(JavaThread*, Thread*) + 173
    frame #75: 0x00000001014efb47 libjvm.dylib`JavaThread::thread_main_inner() + 155
    frame #76: 0x00000001014f124f libjvm.dylib`JavaThread::run() + 419
    frame #77: 0x000000010141b1c6 libjvm.dylib`java_start(Thread*) + 294
    frame #78: 0x00007fff845e8742 libsystem_c.dylib`_pthread_start + 327
    frame #79: 0x00007fff845d5181 libsystem_c.dylib`thread_start + 13

Original issue reported on code.google.com by magreenb...@gmail.com on 30 Dec 2013 at 6:59

GoogleCodeExporter commented 9 years ago
@magreenb This issue seems to be fixed with the same workaround as in 
https://code.google.com/p/javachromiumembedded/issues/detail?id=41 (see comment 
32 there) . I can't reproduce that pb anymore with it.

Original comment by christop...@gmail.com on 9 Jun 2014 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 9 Jun 2014 at 5:33