Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 442692

Summary: www-client/firefox-16.0.2 mail-client/thunderbird-16.0.1-r1 - comm-release/tbird/mozi - Segmentation fault in arena_bin_nonfull_run_get.
Product: Gentoo Linux Reporter: Laurent G. <lauranger>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Logs from thunderbird and firefox builds

Description Laurent G. 2012-11-11 10:12:41 UTC
Trying to upgrade from 15.0.1 of each mozilla app, I get the same crash in install phase.

/bin/sh: line 1:  9092 Segmentation fault      (core dumped) /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/tbird/mail/installer/../../mozilla/dist/bin/run-mozilla.sh /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/tbird/mozilla/dist/bin/xpcshell -g "$PWD" -a "$PWD" -f /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/toolkit/mozapps/installer/precompile_cache.js -e "populate_startupcache('GreD', 'omni.ja', 'startupCache.zip');"

Loading the generated core with gdb, the backtrace gives

Reading symbols from /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/tbird/mozilla/dist/bin/xpcshell...done.
[New LWP 2949]

warning: Could not load shared library symbols for linux-vdso32.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/tbird/mozi'.
Program terminated with signal 11, Segmentation fault.
#0  0x0dee1238 in memset () from /lib/libc.so.6
(gdb) bt
#0  0x0dee1238 in memset () from /lib/libc.so.6
#1  0x100243fc in bitmap_init (bitmap=<optimized out>, binfo=0x10042e8c <arena_bin_info+1452>)
    at /usr/include/bits/string3.h:84
#2  0x100162fc in arena_bin_nonfull_run_get (bin=0x48100b48, arena=0x481000c0)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/src/arena.c:1119
#3  arena_bin_malloc_hard (arena=0x481000c0, bin=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/src/arena.c:1156
#4  0x100167a8 in arena_tcache_fill_small (arena=0x481000c0, tbin=0x48201218, binind=21, 
    prof_accumbytes=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/src/arena.c:1232
#5  0x1001e01c in tcache_alloc_small_hard (tcache=<optimized out>, tbin=0x48201218, binind=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/src/tcache.c:72
#6  0x1001ae84 in tcache_alloc_small (zero=false, size=1036, tcache=0x48201000)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/include/jemalloc/internal/tcache.h:302
#7  arena_malloc (arena=<optimized out>, size=1036, zero=<optimized out>, try_tcache=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/include/jemalloc/internal/arena.h:869
#8  0x1001b2c8 in malloc (size=1036)
    at /var/tmp/portage/mail-client/thunderbird-16.0.1-r1/work/comm-release/mozilla/memory/jemalloc/src/src/jemalloc.c:829
#9  0x0d5e97a8 in _pixman_implementation_create () from /usr/lib/libpixman-1.so.0
#10 0x0d5e8164 in _pixman_implementation_create_general () from /usr/lib/libpixman-1.so.0
#11 0x0d5ea18c in _pixman_choose_implementation () from /usr/lib/libpixman-1.so.0
#12 0x0d59f530 in pixman_constructor () from /usr/lib/libpixman-1.so.0
#13 0x4800f568 in call_init () from /lib/ld.so.1
#14 0x4800f684 in _dl_init_internal () from /lib/ld.so.1
#15 0x48017e2c in got_label () from /lib/ld.so.1
Backtrace stopped: frame did not save the PC


Reproducible: Always




Portage 2.2.0_alpha142 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.5.3, glibc-2.16.0, 3.2.11-gentoo-l4 ppc)
=================================================================
System uname: Linux-3.2.11-gentoo-l4-ppc-7447A,_altivec_supported-with-gentoo-2.2
Timestamp of tree: Sun, 11 Nov 2012 08:30:01 +0000
ld GNU ld (GNU Binutils) 2.23
distcc 3.1 powerpc-unknown-linux-gnu [enabled]
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.3
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13::<unknown repository>, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.3.6-r1, 4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo stuff qt local
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=G4 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=G4 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/in_n_outs/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
LANG="fr_FR.UTF8"
LC_ALL="fr_FR.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/in_n_outs/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/stuff /var/lib/layman/qt /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl alsa altivec apache2 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cscope cups cxx dba dbus dri dts dvd dvdr emboss encode exif fam fbcon filter flac flash fortran gb gcj gd gdbm gif gnome gpm gtk gtk2 iconv ipv6 java jikes jpeg kde kdehiddenvisibility kpathsea lcms ldap libnotify mad mng modules mozdevelop mozsvg mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp pam pango pcre pdf pdflib perl png policykit povray ppc ppds pppd private-headers python qt qt3support qt4 readline samba sasl scanner sdl session speex spell ssl startup-notification svg tcpd theora threads tiff tk truetype udev udisks unicode upower usb vorbis wmf wxwidgets xcb xinerama xml xml2 xosd xulrunner xv xvid zlib" ALSA_CARDS="snd-aoa" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi krita sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="ati fbdev radeon" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-12 12:06:43 UTC
Please attach the entire build log(s) to this bug report.
Comment 2 Laurent G. 2012-11-12 22:15:29 UTC
Created attachment 329422 [details]
Logs from thunderbird and firefox builds

Here we go
Comment 3 Jory A. Pratt gentoo-dev 2012-11-26 16:26:17 UTC
Please test firefox-17.0-r2 from mozilla overlay many bug fixes have been added for jemalloc-3 support.
Comment 4 Laurent G. 2012-11-27 06:26:44 UTC
Hi
I read too quickly your post and thought it was about thunderbird-17.0-r1 and firefox-17.0-r1 "straight" (not from overlay), so I got :

In file included from /var/tmp/portage/mail-client/thunderbird-17.0-r1/work/comm-release/mozilla/media/webrtc/trunk/src/modules/interface/module.h:16:0,
                 from /var/tmp/portage/mail-client/thunderbird-17.0-r1/work/comm-release/mozilla/media/webrtc/trunk/src/modules/audio_device/main/interface/audio_device.h:14,
                 from /var/tmp/portage/mail-client/thunderbird-17.0-r1/work/comm-release/mozilla/media/webrtc/trunk/src/modules/audio_device/main/source/audio_device_generic.h:14,
                 from /var/tmp/portage/mail-client/thunderbird-17.0-r1/work/comm-release/mozilla/media/webrtc/trunk/src/modules/audio_device/main/source/audio_device_generic.cc:11:
/var/tmp/portage/mail-client/thunderbird-17.0-r1/work/comm-release/mozilla/media/webrtc/trunk/src/modules/../typedefs.h:52:2: error: #error Please add support for your architecture in typedefs.h

and firefox meets the same problem.
Comment 5 Laurent G. 2012-11-30 06:41:13 UTC
Same result with 17.0-r2 as with 17.0-r1 : the typedefs.h doesn't handle ppc.
Comment 6 Laurent G. 2013-02-25 20:01:24 UTC
Good news : firefox 19.0 is OK. Waiting for thunderbird to follow.
Comment 7 Jory A. Pratt gentoo-dev 2013-12-16 15:21:14 UTC
Firefox-24/Thunderbird-24 are all in tree which has the appropriate fix.