Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421065 - mail-client/thunderbird-13.0 throws segmentation fault while starts
Summary: mail-client/thunderbird-13.0 throws segmentation fault while starts
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-14 08:13 UTC by Marcin Mirosław
Modified: 2012-06-14 14:41 UTC (History)
0 users

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


Attachments
output from gdb "thread apply all bt full" on core dump (bt.full,80.29 KB, text/plain)
2012-06-14 08:15 UTC, Marcin Mirosław
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2012-06-14 08:13:18 UTC
I tried with empty ~/.thunderbird also, TB still throws segfault.
Probably this is caused by gcc-4.7.0, i didn't check older gcc yet.
I've cretaed backtraces:

$ echo "bt"|gdb /usr/lib64/thunderbird/thunderbird core.20311
GNU gdb (Gentoo 7.4.1 p1) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/lib64/thunderbird/thunderbird...Reading symbols from /usr/lib64/debug/usr/lib64/thunderbird/thunderbird.debug...done.
done.
[New LWP 20311]
[New LWP 20313]
[New LWP 20314]
[New LWP 20318]
[New LWP 20315]
[New LWP 20322]
[New LWP 20316]
[New LWP 20334]
[New LWP 20317]
[New LWP 20336]
[New LWP 20320]
[New LWP 20319]
[New LWP 20335]
[New LWP 20338]
[New LWP 20327]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `thunderbird'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fb48d39f0cb in raise () from /lib64/libpthread.so.0
(gdb) #0  0x00007fb48d39f0cb in raise () from /lib64/libpthread.so.0
#1  0x00007fb489b222d1 in nsProfileLock::FatalSignalHandler (signo=11, info=<optimized out>, context=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/tbird/mozilla/toolkit/profile/nsProfileLock.cpp:217
#2  <signal handler called>
#3  SetScriptLineNumber (aLineNumber=68, this=<optimized out>) at ../../../../dist/include/nsIScriptElement.h:150
#4  nsXMLContentSink::CreateElement (this=this@entry=0x7fb48c46b670, aAtts=aAtts@entry=0x7fb477bef800, aAttsCount=aAttsCount@entry=1, aNodeInfo=0x7fb46eb0c8a0, 
    aLineNumber=aLineNumber@entry=68, aResult=0x7fff0fb4e3b0, aAppendContent=aAppendContent@entry=0x7fff0fb4e3ab, 
    aFromParser=aFromParser@entry=mozilla::dom::FROM_PARSER_NETWORK)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/content/xml/document/src/nsXMLContentSink.cpp:503
#5  0x00007fb489ee7117 in nsXMLContentSink::HandleStartElement (this=0x7fb48c46b670, aName=<optimized out>, aAtts=0x7fb477bef800, aAttsCount=1, aIndex=-1, 
    aLineNumber=68, aInterruptable=aInterruptable@entry=true)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/content/xml/document/src/nsXMLContentSink.cpp:1028
#6  0x00007fb489ee7370 in nsXMLContentSink::HandleStartElement (this=<optimized out>, aName=<optimized out>, aAtts=<optimized out>, aAttsCount=<optimized out>, 
    aIndex=<optimized out>, aLineNumber=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/content/xml/document/src/nsXMLContentSink.cpp:982
#7  0x00007fb489bf4062 in nsExpatDriver::HandleStartElement (this=0x7fb46bc121f0, aValue=<optimized out>, aAtts=0x7fb477bef800)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/htmlparser/src/nsExpatDriver.cpp:411
#8  0x00007fb489c064e8 in doContent (parser=parser@entry=0x7fb46b487400, startTagLevel=startTagLevel@entry=0, enc=0x7fb48b417a60, s=0x7fb46b8d8954 "<", 
    s@entry=0x7fb46b8d8240 "<", end=end@entry=0x7fb46b8d9a1c "", nextPtr=nextPtr@entry=0x7fff0fb4e678, haveMore=1 '\001')
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/expat/lib/xmlparse.c:2387
#9  0x00007fb489c06dbb in contentProcessor (parser=parser@entry=0x7fb46b487400, start=start@entry=0x7fb46b8d8240 "<", end=end@entry=0x7fb46b8d9a1c "", 
    endPtr=endPtr@entry=0x7fff0fb4e678) at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/expat/lib/xmlparse.c:2043
#10 0x00007fb489c046f6 in doProlog (parser=parser@entry=0x7fb46b487400, enc=<optimized out>, s=0x7fb46b8d8240 "<", s@entry=0x7fb46b8d7020 "<", 
    end=end@entry=0x7fb46b8d9a1c "", tok=29, next=0x7fb46b8d8240 "<", nextPtr=nextPtr@entry=0x7fff0fb4e678, haveMore=1 '\001')
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/expat/lib/xmlparse.c:4024
#11 0x00007fb489c059fd in prologProcessor (parser=0x7fb46b487400, s=0x7fb46b8d7020 "<", end=0x7fb46b8d9a1c "", nextPtr=0x7fff0fb4e678)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/expat/lib/xmlparse.c:3758
#12 0x00007fb489c085ca in MOZ_XML_Parse (parser=0x7fb46b487400, s=0x7fb46b8d7020 "<", len=10748, isFinal=0)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/expat/lib/xmlparse.c:1520
#13 0x00007fb489bf3a83 in nsExpatDriver::ParseBuffer (this=this@entry=0x7fb46bc121f0, aBuffer=<optimized out>, aLength=aLength@entry=5374, 
    aIsFinal=aIsFinal@entry=false, aConsumed=aConsumed@entry=0x7fff0fb4e704)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/htmlparser/src/nsExpatDriver.cpp:1008
#14 0x00007fb489bf3b99 in nsExpatDriver::ConsumeToken (this=0x7fb46bc121f0, aScanner=..., aFlushTokens=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/htmlparser/src/nsExpatDriver.cpp:1106
#15 0x00007fb489bfddfa in nsParser::Tokenize (this=this@entry=0x7fb46c95ae40, aIsFinalChunk=aIsFinalChunk@entry=false)
---Type <return> to continue, or q <return> to quit---    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/htmlparser/src/nsParser.cpp:2297
#16 0x00007fb489bfdf6e in nsParser::ResumeParse (this=0x7fb46c95ae40, allowIteration=true, aIsFinalChunk=false, aCanInterrupt=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/htmlparser/src/nsParser.cpp:1587
#17 0x00007fb489bfc802 in nsParser::OnDataAvailable (this=0x7fb46c95ae40, request=0x7fb472ba6e80, aContext=<optimized out>, pIStream=<optimized out>, 
    sourceOffset=<optimized out>, aLength=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/parser/htmlparser/src/nsParser.cpp:2179
#18 0x00007fb489be3304 in nsJARChannel::OnDataAvailable (this=0x7fb472ba6e80, req=<optimized out>, ctx=<optimized out>, stream=<optimized out>, offset=0, count=5374)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/modules/libjar/nsJARChannel.cpp:955
#19 0x00007fb489b3803d in nsInputStreamPump::OnStateTransfer (this=this@entry=0x7fb46b82ba20)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/netwerk/base/src/nsInputStreamPump.cpp:514
#20 0x00007fb489b381eb in nsInputStreamPump::OnInputStreamReady (this=0x7fb46b82ba20, stream=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/netwerk/base/src/nsInputStreamPump.cpp:402
#21 0x00007fb48a686e8a in nsInputStreamReadyEvent::Run (this=0x7fb46bae48e0)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/xpcom/io/nsStreamUtils.cpp:114
#22 0x00007fb48a6948fb in nsThread::ProcessNextEvent (this=0x7fb48c416b30, mayWait=<optimized out>, result=0x7fff0fb4ea0f)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/xpcom/threads/nsThread.cpp:657
#23 0x00007fb48a66bc54 in NS_ProcessNextEvent_P (thread=<optimized out>, mayWait=false)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/tbird/mozilla/xpcom/build/nsThreadUtils.cpp:245
#24 0x00007fb48a604920 in mozilla::ipc::MessagePump::Run (this=0x7fb47dc05080, aDelegate=0x7fb47dc280b0)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/ipc/glue/MessagePump.cpp:110
#25 0x00007fb48a6b0417 in RunHandler (this=0x7fb47dc280b0)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/ipc/chromium/src/base/message_loop.cc:201
#26 MessageLoop::Run (this=0x7fb47dc280b0) at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/ipc/chromium/src/base/message_loop.cc:175
#27 0x00007fb48a37611f in nsBaseAppShell::Run (this=0x7fb47b940400)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/widget/xpwidgets/nsBaseAppShell.cpp:189
#28 0x00007fb48a259b03 in nsAppStartup::Run (this=0x7fb47b942060)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/toolkit/components/startup/nsAppStartup.cpp:295
#29 0x00007fb489b1c8d8 in XRE_main (argc=<optimized out>, argv=<optimized out>, aAppData=<optimized out>)
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mozilla/toolkit/xre/nsAppRunner.cpp:3703
#30 0x00000000004020e6 in do_main (argv=0x7fff0fb50118, argc=1, exePath=0x7fff0fb4f000 "/usr/lib64/thunderbird/")
    at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mail/app/nsMailApp.cpp:144
#31 main (argc=1, argv=0x7fff0fb50118) at /var/tmp/portage/mail-client/thunderbird-13.0/work/comm-release/mail/app/nsMailApp.cpp:233
(gdb) quit


Reproducible: Always




# emerge --info thunderbird
FEATURES variable contains unknown value(s): Xfail-clean, Xkeepwork, Xsplitdebug

Portage 2.2.0_alpha110_p32 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.0, glibc-2.15-r2, 3.4.2-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.2-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Thu, 14 Jun 2012 05:30:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.3-r2, 4.6.3, 4.7.0
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2                                                                         
Repositories: gentoo                      
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 PUEL Q3AEULA skype-eula dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fpeel-loops -frename-registers -fpredictive-commoning -fweb -ftree-vectorize -floop-interchange -ftree-loop-distribution -fivopts -floop-block -floop-strip-mine -fira-loop-pressure -floop-interchange -ftree-loop-linear -fipa-sra -s -Wdisabled-optimization"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fpeel-loops -frename-registers -fpredictive-commoning -fweb -ftree-vectorize -floop-interchange -ftree-loop-distribution -fivopts -floop-block -floop-strip-mine -fira-loop-pressure -floop-interchange -ftree-loop-linear -fipa-sra -s -Wdisabled-optimization"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n"
FEATURES="Xfail-clean Xkeepwork Xsplitdebug assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en es es_ES"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
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="/usr/local/portage /usr/local/portage/layman/sunrise /usr/local/portage/miro-overlay/in_sunrise /usr/local/portage/miro-overlay/staging /usr/local/portage/miro-overlay/portage"
SYNC="rsync://192.168.138.254/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 apm async bash-completion bfq bittorrent branding bzip2 cairo caps cdda cdr chroot cli consolekit crypt cups cxx dbus declarative dmx dri dvd dvdr emboss encode exif fam firefox ftp gif glibc-omitfp gpm graphite gstreamer iconv idn iproute2 ipv6 ithreads jpeg kde kipi laptop lcms libnotify lightning logrotate mad mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses network-cron nls nptl nsplugin nspluginwrapper objc ogg opengl openmp openssl optimization optimized-qmake pam pango pch pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline samba sdl semantic-desktop session sharedmem smp spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg threads threadsafe tiff tools truetype udev udisks unicode upower urandom usb vim vim-pager vim-syntax vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zip zlib" 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" 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 cgid dav dbd deflate dir env expires ext_filter filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps lvm mdraid" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en es es_ES" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

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

mail-client/thunderbird-13.0 was built with the following:
USE="alsa (consolekit) crashreporter crypt dbus ipc jit libnotify lightning minimal (multilib) (policykit) startup-notification webm -bindist -custom-cflags -custom-optimization -debug -gconf -mozdom -system-sqlite -wifi" LINGUAS="es_ES pl -ar -ast -be -bg -bn_BD -br -ca -cs -da -de -el -en_GB -es_AR -et -eu -fi -fr -fy_NL -ga_IE -gd -gl -he -hu -id -is -it -ja -ko -lt -nb_NO -nl -nn_NO -pa_IN -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv_SE -ta_LK -tr -uk -vi -zh_CN -zh_TW"
CFLAGS="-march=native -pipe -g -Wno-return-type -w -mno-avx"
CXXFLAGS="-march=native -pipe -g -Wno-return-type -w -mno-avx"
Comment 1 Marcin Mirosław 2012-06-14 08:15:47 UTC
Created attachment 315253 [details]
output from gdb "thread apply all bt full" on core dump
Comment 2 Jory A. Pratt gentoo-dev 2012-06-14 13:17:36 UTC
With that CFLAGS combination is not a wonder more things segfault. When you can tone down your cflags for all libs that are thunderbird links to mozilla herd will be more then happy to review.
Comment 3 Marcin Mirosław 2012-06-14 14:09:33 UTC
Hmm, what (and how) should i remove from:
CFLAGS="-march=native -pipe -g -Wno-return-type -w -mno-avx"
? :)
# cat /var/db/pkg/mail-client/thunderbird-13.0/CFLAGS 
-march=native -pipe -g -Wno-return-type -w -mno-avx

CFLAGS in make.conf was changed after emerging of TB, sorry it was missleading.
I've tried gcc: 4.7.0, 4.6.3, 4.5.3 with gold linker.
4.7.0, 4.6.3 with classic (bfd). Every time i've got segfault. mail-client/thunderbird-bin works correctly. I'm still trying to find out what is the reason of segfaults.
Comment 4 Marcin Mirosław 2012-06-14 14:41:26 UTC
I recompiled nspr with more "classic" CFLAGS, tb works now. So indeed, bug is "INVALID".