apimall / chromiumembedded

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

base::MessageLoop:current() returns a NULL pointer #1503

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout and build branch 3.2171.1979
2. Create the binary distribution
3. build cefsimple
4. run cefsimple

Output is:
Segmentation fault (core dumped)

What version of the product are you using? On what operating system?
branch 3.2171.1979
Running on AWS OpsWorks headless machine
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

Stack trace from GDB:

Program received signal SIGSEGV, Segmentation fault.
base::MessageLoop::type (this=0x0) at ../../base/message_loop/message_loop.h:288
(gdb) bt
#0  base::MessageLoop::type (this=0x0) at 
../../base/message_loop/message_loop.h:288
#1  0x00002aaaab59beb4 in CefBrowserMessageLoop::current () at 
../../cef/libcef/browser/browser_message_loop.cc:17
#2  0x00002aaaab5bda69 in CefRunMessageLoop () at 
../../cef/libcef/browser/context.cc:177
#3  0x00002aaaab4d8299 in cef_run_message_loop () at 
../../cef/libcef_dll/libcef_dll.cc:284
#4  0x0000000000415495 in CefRunMessageLoop ()
    at /mnt/work/cef/chromium/src/cef/binary_distrib/cef_binary_3.2171.1979_linux64/libcef_dll/wrapper/libcef_dll_wrapper.cc:276
#5  0x000000000040a02b in main (argc=1, argv=0x7fffffffe018)
    at /mnt/work/cef/chromium/src/cef/binary_distrib/cef_binary_3.2171.1979_linux64/cefsimple/cefsimple_linux.cpp:62

I've used GDB to check the value of 'loop' in CefBrowserMessageLoop::current() 
and it is 0 which means base::MessageLoop::current() returned 0;

Original issue reported on code.google.com by yona...@stylls.com on 25 Jan 2015 at 8:10

GoogleCodeExporter commented 9 years ago
What do you expect cefsimple to do on a headless machine? Are you at least 
running an X11 window server?

Original comment by magreenb...@gmail.com on 25 Jan 2015 at 10:45

GoogleCodeExporter commented 9 years ago
I thought I had Xvfb running, but it wasn't....

Sorry for that its working as expected - you can close this bug.

Original comment by yona...@stylls.com on 26 Jan 2015 at 6:02

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 26 Jan 2015 at 7:07