Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320419 - www-client/chromium-6.0.401.1: segfault crash at start
Summary: www-client/chromium-6.0.401.1: segfault crash at start
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Paweł Hajdan, Jr. (RETIRED)
URL: http://code.google.com/p/google-perft...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 15:54 UTC by fkhp
Modified: 2010-08-01 16:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
disable tcmalloc with gcc 4.5 (chromium-6.0.401.1.ebuild.patch,585 bytes, patch)
2010-05-19 15:34 UTC, Evan Teran
Details | Diff
segfault patch for chromium since version 5.0.396 (chromium.patch,565 bytes, patch)
2010-05-19 23:58 UTC, fkhp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fkhp 2010-05-18 15:54:19 UTC
www-client/chromium-6.0.401.1 (and 5.0.396.0) segfault crash at start

gentoo shm # chromium
Segmentation fault
gentoo shm # 

======== syslog error messages
May 18 23:41:46 gentoo kernel: chrome[21223]: segfault at 0 ip 0000000000bda678 sp
00007fff5025e6b0 error 4 in chrome[400000+2a98000]
May 18 23:41:46 gentoo kernel: chrome[21218]: segfault at 0 ip 0000000000bda678 sp
00007fff50261e50 error 4 in chrome[400000+2a98000]


Reproducible: Always

Steps to Reproduce:
1. chromium
2.
3.

Actual Results:  
crash

Expected Results:  
start

gentoo ~ # emerge --info chromium
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.5.0, glibc-2.11.1-r0, 2.6.34-ccs x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-ccs-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 18 May 2010 13:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.osuosl.org/pub/gentoo/distfiles/ "
LANG="zh_CN.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN en_US zh en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/vmware /var/lib/layman/gentoo-china /var/lib/layman/gentoo-taiwan /var/lib/layman/sunrise /var/lib/layman/gnome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 ao apache2 bash-completion berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cups cxx dbus djvu doc dri dts dvd dvdr eds emboss encode esd evo examples exif fam ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gphoto2 gpm gstreamer gtk guile i18n iconv icu introspection jadetex java jpeg jpeg2k latex lcms ldap libnotify mad midi mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nas nautilus ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pch pcre pda pdf perl php png policykit ppds pppd python qt3support qt4 readline reflection samba scsi sdl session smp snmp spell spl sqlite sse sse2 ssl ssse3 startup-notification suid svg sysfs tcpd threads tiff tk truetype unicode usb v4l2 vim-syntax vorbis x264 xattr xcb xml xmp xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ens1370 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US zh en" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmwgfx vmwlegacy nouveau nvidia nv vmware vesa svga" XTABLES_ADDONS="cui gfw zhang ipset" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-client/chromium-6.0.401.1 was built with the following:
USE="plugins-symlink" ALSA_CARDS="ens1370 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" INPUT_DEVICES="evdev synaptics" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" VIDEO_CARDS="nouveau nv nvidia (svga) vesa vmware vmwgfx vmwlegacy" XTABLES_ADDONS="account chaos condition delude dhcpmac fuzzy geoip iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee" 
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe -ftracer -D__STDC_CONSTANT_MACROS"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe -ftracer"
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-05-18 17:04:30 UTC
Uh, likely a gcc 4.5.0 problem. Also, the C/CXXFLAGS are a bit suspicious. Could you obtain a meaningful backtrace?
Comment 2 Evan Teran 2010-05-18 19:37:05 UTC
I believe from a quick googling that it is related to tcmalloc. Something like this may fix it (untested)

	if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then
		myconf="${myconf} -Dlinux_use_tcmalloc=0
	fi
Comment 3 Evan Teran 2010-05-18 19:37:24 UTC
Also, 5.0.396.0 seems to have the same issue.
Comment 4 Evan Teran 2010-05-18 20:29:52 UTC
Just wanted to confirm that my quick and dirty ebuild patch disabling tcmalloc for gcc 4.5 does in fact fix this issue.
Comment 5 fkhp 2010-05-19 01:13:53 UTC
(In reply to comment #1)
> Uh, likely a gcc 4.5.0 problem. Also, the C/CXXFLAGS are a bit suspicious.
> Could you obtain a meaningful backtrace?
> 

how to obtain a meaningful backtrace for this bug?
Comment 6 fkhp 2010-05-19 01:17:09 UTC
(In reply to comment #2)
> I believe from a quick googling that it is related to tcmalloc. Something like
> this may fix it (untested)
> 
>         if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then
>                 myconf="${myconf} -Dlinux_use_tcmalloc=0
>         fi
> 
(In reply to comment #4)
> Just wanted to confirm that my quick and dirty ebuild patch disabling tcmalloc
> for gcc 4.5 does in fact fix this issue.
> 

can you attache a patch file ?


Comment 7 Evan Teran 2010-05-19 15:34:07 UTC
Created attachment 232107 [details, diff]
disable tcmalloc with gcc 4.5
Comment 8 Evan Teran 2010-05-19 15:35:08 UTC
after applying the patch to the ebuild, simple do:

ebuild  /usr/portage/www-client/chromium/chromium-6.0.401.1.ebuild digest

and it should work just fine with gcc 4.5
Comment 9 fkhp 2010-05-19 23:58:05 UTC
Created attachment 232165 [details, diff]
segfault patch for chromium since version 5.0.396
Comment 10 fkhp 2010-05-20 00:06:35 UTC
(In reply to comment #9)
> Created an attachment (id=232165) [details]
> segfault patch for chromium since version 5.0.396
> 
this patch is from Comment #7 From Evan Teran, only fixed a missing " problem.

first save the patch to /tmp/chromium.patch
# cd /usr/portage/www-client/chromium/
# cp chromium-6.0.401.1.ebuild chromium-6.0.401.1.ebuild.old
# patch -Np0 < /tmp/chromium.patch && ebuild chromium-6.0.401.1.ebuild manifest && emerge -av chromium
Comment 11 fkhp 2010-05-20 00:16:36 UTC
(In reply to comment #8)
> after applying the patch to the ebuild, simple do:
> 
> ebuild  /usr/portage/www-client/chromium/chromium-6.0.401.1.ebuild digest
> 
> and it should work just fine with gcc 4.5
> 

thank you very much, it works now.
Comment 12 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-05-21 09:13:24 UTC
Fixed in dev channel version bump.
Comment 13 Evan Teran 2010-05-23 07:35:15 UTC
can we apply this to the beta channel (5.0.xxx.xx)? I believe it also has some breakable with tcmalloc enabled.
Comment 14 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-05-23 08:19:23 UTC
(In reply to comment #13)
> can we apply this to the beta channel (5.0.xxx.xx)? I believe it also has some
> breakable with tcmalloc enabled.

Okay, re-opening. I plan to do it with the next version bump in the beta channel, just to save time on compile-testing.

Anyway, it seems to only happen with gcc 4.5, and if you use gcc 4.5, you also very likely use the dev channel releases.
Comment 15 fkhp 2010-05-24 08:25:51 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > can we apply this to the beta channel (5.0.xxx.xx)? I believe it also has some
> > breakable with tcmalloc enabled.
> 
> Okay, re-opening. I plan to do it with the next version bump in the beta
> channel, just to save time on compile-testing.
> 
> Anyway, it seems to only happen with gcc 4.5, and if you use gcc 4.5, you also
> very likely use the dev channel releases.
> 
since 6.0 chromium could be compliled with gcc4.5 without setfault.
6.0.414.0 (48006) is a better dev supporting webm,webgl,omnibox search. but it restores youtube video to black after being enlarged. sometimes webgl stalled and a restart is needed:
chromium --enable-webgl
gentoo root # [16165:16443:21686588230:ERROR:chrome/browser/sync/engine/download_updates_command.cc(88)] PostClientToServerMessage() failed during GetUpdates

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/chromium-browser/chrome.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libX11.so.6.3.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXrender.so.1.3.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXss.so.1.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXext.so.6.4.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgtk-x11-2.0.so.0.2000.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgdk-x11-2.0.so.0.2000.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libatk-1.0.so.0.3009.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgio-2.0.so.0.2400.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpangoft2-1.0.so.0.2800.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgdk_pixbuf-2.0.so.0.2000.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpangocairo-1.0.so.0.2800.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcairo.so.2.10800.8.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpango-1.0.so.0.2800.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libfreetype.so.6.4.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libfontconfig.so.1.4.4.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgobject-2.0.so.0.2400.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgmodule-2.0.so.0.2400.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgthread-2.0.so.0.2400.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libglib-2.0.so.0.2400.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libsmime3.so.12.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnssutil3.so.12.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnss3.so.12.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libplds4.so.8.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libplc4.so.8.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnspr4.so.8.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/lib64/libz.so.1.2.5.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libevent-1.4.so.2.1.3.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpng14.so.14.2.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgconf-2.so.4.1.5.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxml2.so.2.7.7.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libexpat.so.1.5.2.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libasound.so.2.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/lib64/libbz2.so.1.0.5.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libdbus-glib-1.so.2.1.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libdbus-1.so.3.4.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxslt.so.1.1.26.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxcb.so.1.1.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXau.so.6.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXdmcp.so.6.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXi.so.6.1.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXrandr.so.2.2.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXcursor.so.1.0.2.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXcomposite.so.1.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXdamage.so.1.1.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXfixes.so.3.1.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpixman-1.so.0.18.2.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxcb-render-util.so.0.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxcb-render.so.0.0.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libORBit-2.so.0.1.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/engines/libclearlooks.so.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcanberra-gtk.so.0.1.5.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcanberra.so.0.2.2.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libvorbisfile.so.3.3.2.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libvorbis.so.0.4.4.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libogg.so.0.7.0.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libltdl.so.7.2.1.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/modules/libgnomebreakpad.so.debug

warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libelf-0.146.so.debug
chromium  --enable-webgl&
[4] 16571
[3]   Done                    chromium --enable-webgl
gentoo root # [16571:16842:21921782926:ERROR:chrome/browser/sync/engine/download_updates_command.cc(88)] PostClientToServerMessage() failed during GetUpdates

(exe:17086): Gdk-WARNING **: XID collision, trouble ahead

gentoo root # 
(exe:17086): Gdk-WARNING **: XID collision, trouble ahead

(exe:17086): Gdk-WARNING **: XID collision, trouble ahead

(exe:17086): Gdk-WARNING **: XID collision, trouble ahead

(exe:17086): Gdk-WARNING **: XID collision, trouble ahead
Comment 16 fkhp 2010-05-24 08:31:11 UTC
since 6.0.408 chromium could be compliled with gcc4.5 and running without setfault.
Comment 17 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-05-29 15:48:03 UTC
(In reply to comment #13)
> can we apply this to the beta channel (5.0.xxx.xx)? I believe it also has some
> breakable with tcmalloc enabled.

Now applied to 5.0.375.55. Closing.
Comment 18 Zeev Tarantov 2010-06-04 02:39:22 UTC
upstream bug: http://code.google.com/p/google-perftools/issues/detail?id=237
Comment 19 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-06-04 06:32:22 UTC
Re-opening to change resolution to Upstream.
Comment 20 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-06-04 06:32:58 UTC
Zeev, thanks for the update.
Comment 21 Frank 2010-08-01 12:18:24 UTC
I get this error when I log into gmail.com
Comment 22 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-08-01 16:08:57 UTC
(In reply to comment #21)
> I get this error when I log into gmail.com

This is probably a different error, for two reasons:

1) doesn't occur at start, but when loading a page
2) tcmalloc is now disabled in all chromium ebuild versions in the tree

Please open a new bug.