Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-29 01:04:25



Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
CEF3 Web Pluging Failure 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
I'm on a Linux rig, running Fedora 22 (32 bit/PAE/nvidia) and when I launch Cool VL Viewer a stack trace is generated and I fail to get web content. I do not know if this is because of my particular set up or perhaps a missing dependency. Searching for bits of the trace output, Google reveals that others are fixing this error in Chromium by passing a command line argument to disable the sandbox (--no-sandbox). Given that the CEF plugin is a lib, I suspect this will not work. My version information is below.

Any thoughts?

Code:
[0619/143602:FATAL:sandbox_linux.cc(178)] Check failed: sandbox::Credentials::MoveToNewUserNS().
#0 0x0000b25b526a base::debug::StackTrace::StackTrace()
#1 0x0000b25cf7cd logging::LogMessage::~LogMessage()
#2 0x0000b4d22230 content::LinuxSandbox::EngageNamespaceSandbox()
#3 0x0000b5c1e6f2 content::ZygoteMain()
#4 0x0000b5da5a87 content::RunZygote()
#5 0x0000b5da60bc content::RunNamedProcessTypeMain()
#6 0x0000b5da6aba content::ContentMainRunnerImpl::Run()
#7 0x0000b5da57e2 content::ContentMain()
#8 0x0000b24b0564 CefExecuteProcess()
#9 0x0000b24436f1 cef_execute_process
#10 0x00000804b157 CefExecuteProcess()
#11 0x00000804af6c main
#12 0x000049f61715 <unknown>
#13 0x00000804ade1 <unknown>

Received signal 6
#0 0x0000b25b4ea4 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#1 0x0000b7755c20 ([vdso]+0xc1f)
#2 0x0000b7755c31 ([vdso]+0xc30)
#3 0x000049f76796 <unknown>
#4 0x000049f78027 <unknown>
#5 0x0000b25b3a19 base::debug::BreakDebugger()
#6 0x0000b25cfad9 logging::LogMessage::~LogMessage()
#7 0x0000b4d22230 content::LinuxSandbox::EngageNamespaceSandbox()
#8 0x0000b5c1e6f2 content::ZygoteMain()
#9 0x0000b5da5a87 content::RunZygote()
#10 0x0000b5da60bc content::RunNamedProcessTypeMain()
#11 0x0000b5da6aba content::ContentMainRunnerImpl::Run()
#12 0x0000b5da57e2 content::ContentMain()
#13 0x0000b24b0564 CefExecuteProcess()
#14 0x0000b24436f1 cef_execute_process
#15 0x00000804b157 CefExecuteProcess()
#16 0x00000804af6c main
#17 0x000049f61715 <unknown>
#18 0x00000804ade1 <unknown>
  gs: 00000033  fs: 00000000  es: 0000007b  ds: 0000007b
 edi: 4a111000 esi: 00000000 ebp: bf917988 esp: bf917814
 ebx: 00000001 edx: 00000006 ecx: 00000001 eax: 00000000
 trp: 00000000 err: 00000000  ip: b7755c31  cs: 00000073
 efl: 00000202 usp: bf917814  ss: 0000007b
[end of stack trace]


Code:
Cool VL Viewer 1.26.18 (10) Jun 18 2016 09:29:52 (Cool VL Viewer)
Release Notes

You are at 258765.2, 262417.4, 63.3 in Catalpa located at sim10289.agni.lindenlab.com (216.82.50.11:13015)
Second Life RC Magnum 16.06.03.316139
Release Notes

CPU: AMD Phenom(tm) II X3 720 Processor (800 MHz)
Memory: 4034 MB
OS version: Linux-i686 v4.4.13-200.fc22.i686+PAE #1 SMP Wed Jun 8 16:19:50 UTC 2016
Memory manager: OS native
Graphics card vendor: NVIDIA Corporation
Graphics card: GeForce GTS 450/PCIe/SSE2/3DNOW!
OpenGL version: 4.5.0 NVIDIA 358.16

J2C decoder: KDU
Audio driver: FMOD Ex 4.44.61
Networking backend: libcurl/7.47.0 OpenSSL/1.0.1h zlib/1.2.8
Embedded browser: CEF3 plugin v1.5.3-(CEF-LIN-3.2526.1347-32)
Packets lost: 0/10700 (0.0%)

Built with GCC version 4.6.4

Compile flags used for this build:
-O3 -fno-ipa-cp-clone -frename-registers -fweb -DNDEBUG -pipe -g -fexceptions -fno-strict-aliasing -fvisibility=hidden -fsigned-char -m32 -march=pentium4 -msse2 -mfpmath=sse -fno-math-errno -fno-trapping-math -pthread -fno-stack-protector -Wall -Wno-reorder -Werror -DLL_LINUX=1 -D_REENTRANT -DAPPID=secondlife -DLL_IGNORE_SIGCHLD -DXML_STATIC -DLL_PRIVATE_MEMORY_POOLS=1 -DLL_VB_MEM_POOL=1 -DLL_VOLUME_MEM_POOL=1 -DLL_DBUS_ENABLED=1 -DLL_ELFBIN=1 -DOV_EXCLUDE_STATIC_CALLBACKS -DLL_SDL=1 -DLIB_NDOF=1 -DLL_X11=1


2016-06-19 21:46:10
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Not sure why the sandbox fails on your particular system (missing system-wide certificates or libraries ?): remember to check your system libraries dependencies with (from a terminal opened in the installation directory of the viewer):
Code:
./cool_vl_viewer --check-libs


If it's not a missing library issue, you may disable the sandbox altogether by editing the cool_vl_viewer script around line 140 and change the:
Code:
if [ "$UID" != "0" ] ; then
   export CHROME_DEVEL_SANDBOX=$RUN_PATH/bin/llplugin/chrome-sandbox
else
   # Disable the sandbox when the viewer is ran as root, else CEF v3.257 and
   # newer fails to initialize.
   export CHROME_DEVEL_SANDBOX=""
fi
lines for:
Code:
# Disable the sandbox
export CHROME_DEVEL_SANDBOX=""

You might also want to try and build the viewer from sources (which should prove quite easy under Linux, see the doc/LinuxBuildHowto.txt file in the sources tree) and see if it solves that issue.


2016-06-19 22:08:49
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
Ensuring that the env variable is blank in the start up script allows the viewer to start up properly. I'll give the source a look and see about building locally because I'm curious why it might be failing for me.

Thanks,
ZZ


2016-06-19 22:51:33
Profile

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
I have tried to build the project, but alas, it fails to build the chrome_sandbox with various errors like:
Code:
[1/16140] CXX obj/v8/src/base/utils/v8_libbase.random-number-generator.o
FAILED: obj/v8/src/base/utils/v8_libbase.random-number-generator.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/v8/src/base/utils/v8_libbase.random-number-generator.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=269902-1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV -DFIELDTRIAL_TESTING_ENABLED -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PDF=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DV8_TARGET_ARCH_IA32 -DV8_I18N_SUPPORT -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -DENABLE_DISASSEMBLER -DV8_ENABLE_CHECKS -DOBJECT_PRINT -DVERIFY_HEAP -DDEBUG -DTRACE_MAPS -D_GLIBCXX_DEBUG=1 -DENABLE_HANDLE_ZAPPING -I../../v8 -Igen -fstack-protector --param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -momit-leaf-frame-pointer -mstack-alignment=16 -mstackrealign -fcolor-diagnostics -B/data/projects/cef/chromium/src/third_party/binutils/Linux_ia32/Release/bin -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-unused-variable -B/data/projects/cef/chromium/src/third_party/binutils/Linux_ia32/Release/bin -msse2 -mfpmath=sse -mmmx -msse2 -mfpmath=sse -mmmx -m32 --sysroot=/data/projects/cef/chromium/src/build/linux/debian_wheezy_i386-sysroot -m32 -g -funwind-tables -Woverloaded-virtual  -fdata-sections -ffunction-sections -O3 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11 -Wno-deprecated  -c ../../v8/src/base/utils/random-number-generator.cc -o obj/v8/src/base/utils/v8_libbase.random-number-generator.o
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/clang++: cannot execute binary file: Exec format error


I did some more digging and it may not even be required based on:
https://bugs.chromium.org/p/chromium/issues/detail?id=598454

For now, I'll just run with a modified start up script as that seems to allow me to run properly.

ZZ


2016-06-20 15:50:10
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
ZaneZimer wrote:
I have tried to build the project, but alas, it fails to build the chrome_sandbox with various errors like:
Code:
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/clang++: cannot execute binary file: Exec format error


Please, do read the doc/LinuxBuildHowto.txt file: the viewer shall be built with gcc, not with llvm/clang...

Quote:
I did some more digging and it may not even be required based on:
https://bugs.chromium.org/p/chromium/issues/detail?id=598454
For now, I'll just run with a modified start up script as that seems to allow me to run properly.

Yes, that sandbox stuff is pretty silly anyway... It could be useful when the viewer is ran as root, but in that case the sandbox doesn't work either...


2016-06-20 16:58:53
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
And of course in my testing, I thought the change to the launcher script worked. It does not. I had set the viewer to use webkit at one point and obviously forgot. So even with the script alteration, I get the stack trace, CEF still doesn't work and there is a new error:

Code:
[0620/103841:ERROR:browser_main_loop.cc(203)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[0620/103841:FATAL:sandbox_linux.cc(178)] Check failed: sandbox::Credentials::MoveToNewUserNS().


Heh, and I misunderstood. You meant build Cool VL Viewer. I had been trying to build just CEF.

ZZ


2016-06-20 17:45:17
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
I'm afraid we will have to wait for that sandbox stuff to be deprecated then... In the mean time, you should be able to run the viewer with CEF3 from a root session...

As for rebuilding CEF3 yourself... Well... Good luck. The instructions are here. Not sure it would accept to build without a sandbox either...

EDIT: does your distro's kernel use SELinux extensions ? If yes, it could explain it refuses to escalate the privileges of the plugin via the sandbox...


2016-06-20 18:18:17
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 337
Location: Columbus area, OH, USA
Reply with quote
Well even if I successfuly built CEF, I am thinking I couldn't just drop it in Cool VL Viewer anyway. Now that I think a bit more, I a guessing you build it against a specific release of CEF.

Fedora does use SELinux which I have set to permissive. I do not get any warnings of violations when I run the viewer. That was one of my first thoughts. I may be missing something else though.


2016-06-20 18:49:30
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
ZaneZimer wrote:
Well even if I successfuly built CEF, I am thinking I couldn't just drop it in Cool VL Viewer anyway. Now that I think a bit more, I a guessing you build it against a specific release of CEF.
Yes, the one quoted in the "recipe" file. You'll also have to rebuild the llceflib library, using your new CEF3 build, and the plugin itself, using the newly built llceflib library...

Quote:
Fedora does use SELinux which I have set to permissive. I do not get any warnings of violations when I run the viewer. That was one of my first thoughts. I may be missing something else though.
The SELinux stuff might be worth investigating (not using any such kernel myself, so I won't be able to help you on that). Did you try a Chromium browser of the same version as the CEF3 plugin ?... I would guess it's sandboxed too, and should show the same issue (or have a workaround for it)...


2016-06-20 19:15:04
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Please, verify that the "chrome-sandbox" binary (in bin/llplugin/) is set UUID root ('chmod +s chrome-sandbox', from a root terminal): the SUUID bit might have been reset at installation time, if you didn't install the viewer as root...

Also, in today's releases, I used a patched CEF3 plugin version that does allow to disable the sandbox for the non-root users (with the same 'export CHROME_DEVEL_SANDBOX=""' trick in the wrapper script as the one you already tried: this time however, it should work).


2016-07-09 12:40:06
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.