View previous topic :: View next topic |
Author |
Message |
ElDorado n00b
Joined: 06 Feb 2018 Posts: 10
|
Posted: Mon Apr 09, 2018 7:20 am Post subject: Chromium "Aw snap". emerge -e does not help |
|
|
Hello,
Having problem with chromium that gives "aw snap" on every (even welcome screen) page.
Tryed to Code: | emerge -eav1 chromium | No luck.
Running from console gives:
Code: | $ chromium
ATTENTION: default value of option force_s3tc_enable overridden by environment.
Received signal 6
Received signal 11 <unknown> 000000000000 |
Note: I am runinng gentoo no-multilib hardened with clang 6.0.0 as main conpiler. Also I am using sys-libs/llvm-libunwind instead of sys-libs/libunwind and libc++ as default STL.
Code: | $ emerge --info
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-6.4.0, glibc-2.25-r11, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem: 8064444 total, 4847292 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 03 Apr 2018 07:00:01 +0000
Head commit of repository gentoo: 83320ffee0aec263704af0175cc0d64cd41646bf
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash: 4.4_p12::gentoo
dev-lang/perl: 5.24.3-r1::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.15.1-r2::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r11::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
eclass-overrides: gentoo-clang
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: no
vifino-overlay
location: /var/lib/layman/vifino-overlay
masters: gentoo
priority: 50
eclass-overrides: gentoo-clang
gentoo-clang
location: /usr/local/overlay/abilyak-overlay
masters: gentoo
priority: 9999
eclass-overrides: gentoo-clang
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O3 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X acl amd64 bluetooth bzip2 clang crypt cxx dbus hardened iconv ipv6 ncurses nls nptl openmp pam pcre pie pim pulseaudio qml qt5 readline seccomp ssl ssp touchpad unicode wayland xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx mmxext fxsr sse sse2 sse3 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Apr 10, 2018 3:04 am Post subject: |
|
|
Signal 6 is illegal instruction, which means the compiled binary contains something your CPU doesn't understand. It might help to specify -march in c*flags, or use less extreme optimisation. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Apr 10, 2018 9:43 am Post subject: |
|
|
ElDorado,
Code: | CC="clang"
CFLAGS="-O3 -pipe" | You don't pass -march=, so I wonder what CPU your code is built for?
The chromium ebuild forces clang anyway but its known not to work with everything.
-O3 is scary on Intel/AMD 64 as it changes floating point results sometimes.
It does other unsafe optimisations too.
-O3 makes uses optimisations that make the code bigger to try to get a speed improvement.
That's OK if you know that the working set still fits in the CPU cache.
When it doesn't you end up with more cache misses and an overall slowdown, waiting for the much slower main memory.
You might find that -O2 is actually faster. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ElDorado n00b
Joined: 06 Feb 2018 Posts: 10
|
Posted: Tue Apr 10, 2018 9:51 am Post subject: |
|
|
Ant P. wrote: | Signal 6 is illegal instruction, which means the compiled binary contains something your CPU doesn't understand. It might help to specify -march in c*flags, or use less extreme optimisation. |
Thanks for reply!
got it. I have added to CFLAGS. Strange, but gives me less optimization flags in clang than -march=native (though more specifying IMO)
Rebuilding... |
|
Back to top |
|
|
ElDorado n00b
Joined: 06 Feb 2018 Posts: 10
|
Posted: Tue Apr 10, 2018 9:53 am Post subject: |
|
|
NeddySeagoon wrote: | ElDorado,
Code: | CC="clang"
CFLAGS="-O3 -pipe" | You don't pass -march=, so I wonder what CPU your code is built for?
The chromium ebuild forces clang anyway but its known not to work with everything.
-O3 is scary on Intel/AMD 64 as it changes floating point results sometimes.
It does other unsafe optimisations too.
-O3 makes uses optimisations that make the code bigger to try to get a speed improvement.
That's OK if you know that the working set still fits in the CPU cache.
When it doesn't you end up with more cache misses and an overall slowdown, waiting for the much slower main memory.
You might find that -O2 is actually faster. |
Thanks for reply!
I've got my mistake with -march, fixed. Now rebuilding entire world.
Wow, thanks for info about -O3. Never thought of it. Fixed to -O2. Rebuilding... |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Wed Apr 11, 2018 2:09 am Post subject: |
|
|
Ant P. wrote: | Signal 6 is illegal instruction | kill -l and man 7 signal say that SIGILL (illegal instruction) is 4; signal 6 is SIGABRT. |
|
Back to top |
|
|
ElDorado n00b
Joined: 06 Feb 2018 Posts: 10
|
Posted: Thu Apr 12, 2018 4:22 pm Post subject: |
|
|
Just finished rebuilding chromium and all it's dependencies with -march=native.
Did not help
I've found this in dmesg:
Code: |
[33959.760454] traps: chrome[4503] general protection ip:7fae2a90d239 sp:7ffd5803c900 error:0
[33959.760462] in libc-2.25.so[7fae2a8d5000+1b2000]
|
ADD:
glibc is compiled with gcc as I was not able to patch it to support clang compiling
chromium is built with clang.
I'll try to rebuild chromium with gcc this night... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Thu Apr 12, 2018 7:14 pm Post subject: |
|
|
ElDorado,
Read the chromium ebuild. I'm sure it forces clang. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ElDorado n00b
Joined: 06 Feb 2018 Posts: 10
|
Posted: Thu Apr 12, 2018 9:48 pm Post subject: |
|
|
NeddySeagoon wrote: | ElDorado,
Read the chromium ebuild. I'm sure it forces clang. |
Looks like you are right. At least here I can see that clang is forced.
So it is not problem with clang/gcc.
Any other ideas? I can not find anymore, but some time ago I've found post on forum teling that chrmium has some problems with Hardened Gentoo |
|
Back to top |
|
|
ElDorado n00b
Joined: 06 Feb 2018 Posts: 10
|
Posted: Fri Apr 27, 2018 7:33 am Post subject: |
|
|
So...
I have removed clang as default compiler (and rebuilt world)
I have switched from llvm-unwind back to libunwind (rebuilt world)
I have switched from libc++ back to libstdc++ (rebuilt world)
I have switched from profile "default/linux/amd64/17.1/no-multilib/hardened" to "default/linux/amd64/17.1/no-multilib"
And yes, it still does not work.
Only thing changed is error in logs:
Code: | ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0026 |
I've googled it a little bit and looks like it is some issue with sandbox running on no-multilib platforms ( here is some bug report)
So I have ended with "--disable-seccomp-filter-sandbox" key passed to chromium...
Really, I don't know why I need chromium that much. While it was not working I was using qupzilla and it ws fine. Maybe some kind of challenge "will you fucking work on me?" |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Apr 27, 2018 10:57 am Post subject: |
|
|
Hu wrote: | Ant P. wrote: | Signal 6 is illegal instruction | kill -l and man 7 signal say that SIGILL (illegal instruction) is 4; signal 6 is SIGABRT. |
My bad. Wonder where the heck I got that idea... |
|
Back to top |
|
|
|