yueying0083 / javachromiumembedded

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

Linux: 2171 branch: CefDoMessageLoopWork called on invalid thread #139

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Ubuntu 14.04.1 64-bit

What steps will reproduce the problem?
1. Run the jcef sample application on Linux with a Debug build of libcef.

What is the expected output? What do you see instead?
The application should run successfully. Instead, get the following error:

[1126/121931:FATAL:context.cc(157)] Check failed: false. called on invalid 
thread
#0  base::debug::(anonymous namespace)::DebugBreak () at 
../../base/debug/debugger_posix.cc:228
#1  0x00007fff99c52299 in base::debug::BreakDebugger () at 
../../base/debug/debugger_posix.cc:241
#2  0x00007fff99cd957a in logging::LogMessage::~LogMessage 
(this=0x7fffa99f9310) at ../../base/logging.cc:644
#3  0x00007fff999eb83f in CefDoMessageLoopWork () at 
../../cef/libcef/browser/context.cc:157
#4  0x00007fff999061d9 in cef_do_message_loop_work () at 
../../cef/libcef_dll/libcef_dll.cc:277
#5  0x00007fffe00f59e2 in CefDoMessageLoopWork ()
    at third_party/cef/linux64/libcef_dll/wrapper/libcef_dll_wrapper.cc:269
#6  0x00007fffe008521e in Java_org_cef_CefApp_N_1DoMessageLoopWork 
(env=0x7fff900031e8) at native/CefApp.cpp:101

(gdb) info threads
  Id   Target Id         Frame 
  41   Thread 0x7fffd8061700 (LWP 3335) "java" pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  40   Thread 0x7fff5f55a700 (LWP 3331) "Proxy resolver" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
* 39   Thread 0x7fffa99fb700 (LWP 3328) "java" base::debug::(anonymous 
namespace)::DebugBreak ()
    at ../../base/debug/debugger_posix.cc:228
  38   Thread 0x7fffa81a2700 (LWP 3327) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  37   Thread 0x7fff5ffff700 (LWP 3326) "gdbus" 0x00007ffff74c8c6d in poll ()
    at ../sysdeps/unix/syscall-template.S:81
  36   Thread 0x7fff74ff8700 (LWP 3325) "BrowserBlocking" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  35   Thread 0x7fff757f9700 (LWP 3324) "dconf worker" 0x00007ffff74c8c6d in poll ()
    at ../sysdeps/unix/syscall-template.S:81
  34   Thread 0x7fff75ffa700 (LWP 3320) "IndexedDB" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  33   Thread 0x7fff767fb700 (LWP 3319) "Chrome_IOThread" 0x00007ffff74d6653 in epoll_wait ()
    at ../sysdeps/unix/syscall-template.S:81
  32   Thread 0x7fff76ffc700 (LWP 3318) "Chrome_CacheThr" 0x00007ffff74d6653 in epoll_wait ()
    at ../sysdeps/unix/syscall-template.S:81
  31   Thread 0x7fff777fd700 (LWP 3317) "Chrome_ProcessL" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  30   Thread 0x7fff77ffe700 (LWP 3316) "Chrome_FileUser" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  29   Thread 0x7fff80be6700 (LWP 3315) "Chrome_FileThre" 0x00007ffff74d6653 in epoll_wait ()
    at ../sysdeps/unix/syscall-template.S:81
  28   Thread 0x7fff813e7700 (LWP 3314) "Chrome_DBThread" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  27   Thread 0x7fff81be8700 (LWP 3313) "OptimizingCompi" sem_wait ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  26   Thread 0x7fff823e9700 (LWP 3312) "threaded-ml" 0x00007ffff74c8c6d in poll ()
    at ../sysdeps/unix/syscall-template.S:81
  25   Thread 0x7fff83fff700 (LWP 3311) "AudioThread" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  24   Thread 0x7fffd80c2700 (LWP 3310) "WorkerPool/3310" pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  23   Thread 0x7fffe002b700 (LWP 3309) "WorkerPool/3309" pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  22   Thread 0x7fff988fc700 (LWP 3308) "inotify_reader" 0x00007ffff74cd8e3 in select ()
    at ../sysdeps/unix/syscall-template.S:81
  21   Thread 0x7fff990fd700 (LWP 3307) "NetworkChangeNo" 0x00007ffff74d6653 in epoll_wait ()
    at ../sysdeps/unix/syscall-template.S:81
  20   Thread 0x7fffa8df7700 (LWP 3304) "sandbox_ipc_thr" 0x00007ffff74c8c6d in poll ()
    at ../sysdeps/unix/syscall-template.S:81
  19   Thread 0x7fffa98fa700 (LWP 3303) "java" pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  16   Thread 0x7fffe2672700 (LWP 3296) "java" 0x00007ffff74c8c6d in poll () at ../sysdeps/unix/syscall-template.S:81
  15   Thread 0x7fffe2b83700 (LWP 3295) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  14   Thread 0x7fffe8391700 (LWP 3293) "java" pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  13   Thread 0x7fffe8492700 (LWP 3292) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  12   Thread 0x7fffe8593700 (LWP 3291) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  11   Thread 0x7fffe8694700 (LWP 3290) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  10   Thread 0x7fffe8795700 (LWP 3289) "java" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
  9    Thread 0x7fffe90ef700 (LWP 3288) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  8    Thread 0x7fffe91f0700 (LWP 3287) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  7    Thread 0x7fffe92f1700 (LWP 3286) "java" pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
  6    Thread 0x7ffff49b6700 (LWP 3285) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  5    Thread 0x7ffff4ab7700 (LWP 3284) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  4    Thread 0x7ffff4bb8700 (LWP 3283) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  3    Thread 0x7ffff4cb9700 (LWP 3282) "java" pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
  2    Thread 0x7ffff7fd9700 (LWP 3281) "java" 0x00007ffff696639d in ClassFileParser::parse_constant_pool(Handle, Thread*) () from /usr/lib/jvm/java-7-oracle/jre/lib/amd64/server/libjvm.so
  1    Thread 0x7ffff7fda740 (LWP 3276) "java" 0x00007ffff7bc566b in pthread_join (threadid=140737353979648, 
    thread_return=0x7fffffff9ab0) at pthread_join.c:92

Please use labels and text to provide additional information.
This occurred while stepping through the code with gdb.

Original issue reported on code.google.com by magreenb...@gmail.com on 26 Nov 2014 at 8:25

GoogleCodeExporter commented 8 years ago
JCEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/java-cef/issue/139

Original comment by magreenb...@gmail.com on 18 Mar 2015 at 6:01