[Pkg-chromium-maint] Bug#864565: chromium-shell: Couldn't mmap v8 natives data file, status code is 1

bert schulze spambemyguest at googlemail.com
Fri Jul 7 23:41:49 UTC 2017


tag 864565 +patch
thanks

hi,

the chromium-shell binary is not supposed to be installed in /usr/bin
but rather /usr/lib/chromium. debian/chromium-shell.install pushes it
into /usr/bin at the moment.

The v8 natives file referred to is /usr/lib/chromium/natives_blob.bin,
other than that /usr/lib/chromium/snapshot_blob.bin is mandatory.

Moving the binary and running with strace shows:

open("/usr/lib/chromium/natives_blob.bin", O_RDONLY) = -1 ENOENT
open("/usr/lib/chromium/snapshot_blob.bin", O_RDONLY) = -1 ENOENT

Also the chromium package includes content_shell.pak which is not needed
for chromium itself and should be moved into the shell package itself.

open("/usr/lib/chromium/content_shell.pak", O_RDONLY) = -1 ENOENT

As the blobs are needed by both chromium and chromium-shell I'd suggest
to add a new chromium-blobs package and let chromium and chromium-shell
use Depends: chromium-blobs. That way we don't need to waste disk space
by installing chromium if only the shell is needed.


Further the chromium-shell binary wants to open a log within its path.

open("/usr/lib/chromium/content_shell.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1

This will fail for unprivileged users but does not seem to be fatal.
I've got no idea if theres a build flag to move the logfile somewhere
else e.g. ~/.config/chromium.


build _and_ use-tested patch splitting the V8 blobs and fixing
chromium-shell attached.

bye
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chromium-package.patch
Type: text/x-diff
Size: 2829 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-chromium-maint/attachments/20170708/24877d53/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-chromium-maint/attachments/20170708/24877d53/attachment.sig>


More information about the Pkg-chromium-maint mailing list