Since upgrading to glibc 2.14.1 (from 2.13-r4) I see frequent crashes in firefox. The following is recorded in .xsession-errors: firefox: res_query.c:251: __libc_res_nquery: Assertion `hp != hp2' failed.
I cannot confirm this bug. Perhaps you could do the following: (a) Provide more information about your system and Firefox versions (emerge --info is a must). (b) Have you tried rebuilding Firefox and/or its dependencies (i.e., nss, nspr) ? Thanks.
Created attachment 293519 [details] emerge --info
(In reply to comment #1) > I cannot confirm this bug. > > Perhaps you could do the following: > (a) Provide more information about your system and Firefox versions (emerge > --info is a must). > (b) Have you tried rebuilding Firefox and/or its dependencies (i.e., nss, nspr) > ? I tried rebuilding nss, nspr and firefox (and rebooting). Still get the crash - which by the way I had never experienced before. Apologies for not providing emerge info before, it's attached now.
Thanks for that. The very same bug seems to be spotted at Arch Linux (https://bugs.archlinux.org/task/24615).
1) Please post the output of `emerge -vpq www-client/firefox' in a comment. 2) At which point during firefox's run time does it crash? Starting up, loading some page? Can you obtain a GDB backtrace?
(In reply to comment #5) > 1) Please post the output of `emerge -vpq www-client/firefox' in a comment. > 2) At which point during firefox's run time does it crash? Starting up, loading > some page? Can you obtain a GDB backtrace? # emerge -vpq www-client/firefox [ebuild R ] www-client/firefox-8.0 USE="alsa crashreporter dbus ipc libnotify startup-notification webm wifi -bindist -custom-cflags -custom-optimization -debug -pgo -system-sqlite" LINGUAS="en it -af -ak -ar -ast -be -bg -bn -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_US -en_ZA -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gd -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -hy -hy_AM -id -is -ja -kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb -nb_NO -nl -nn -nn_NO -nso -or -pa -pa_IN -pl -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh -zh_CN -zh_TW -zu" The crash always occurs when clicking a link or an image - except sometimes when looking at a page of results from Google, but in that case I suspect that it's Google's reading ahead that triggers the crash. I don't have gdb installed at the moment, give me just a while.
I have had the same problem. .xsession-errors: ABP timeline: Entered Bootstrap.startup() (first event) ABP timeline: * done registering URL components (0) ABP timeline: * started initializing default modules (0) ABP timeline: * Entered Prefs.startup() (1) ABP timeline: * * done loading initial values (1) ABP timeline: * * registering observers (1) ABP timeline: * Prefs.startup() done (0) ABP timeline: * Entered FilterListener.startup() (9) ABP timeline: * * Entered ElemHide.init() (0) ABP timeline: * * * done adding prefs listener (0) ABP timeline: * * * done determining stylesheet URL (27) ABP timeline: * * * registering component (1) ABP timeline: * * ElemHide.init() done (0) ABP timeline: * * Loading cache file (0) ABP timeline: * * Done loading cache file (171) ABP timeline: * * Entered ElemHide.apply() (0) ABP timeline: * * * ElemHide.unapply() finished (0) ABP timeline: * * * start inserting stylesheet (0) ABP timeline: * * ElemHide.apply() done (125) ABP timeline: * * done initializing data structures (1) ABP timeline: * * done adding observers (0) ABP timeline: * FilterListener.startup() done (0) ABP timeline: * Entered ContentPolicy.startup() (0) ABP timeline: * * done initializing types (10) ABP timeline: * * registering global stylesheet (0) ABP timeline: * * done registering stylesheet (1) ABP timeline: * * registering component (0) ABP timeline: * ContentPolicy.startup() done (0) ABP timeline: * Entered Synchronizer.startup() (1) ABP timeline: * Synchronizer.startup() done (0) ABP timeline: * initializing additional modules (1) ABP timeline: Bootstrap.startup() done (0) ABP timeline: Total time elapsed: 350 ABP timeline: Entered delayed FilterStorage init (first event) ABP timeline: * Entered FilterStorage.loadFromDisk() (0) ABP timeline: * * done parsing file (596) ABP timeline: * * load complete, calling observers (1) ABP timeline: * FilterStorage.loadFromDisk() done (0) ABP timeline: Delayed FilterStorage init done (0) ABP timeline: Total time elapsed: 597 ABP timeline: Entered AppIntegration.addWindow() (first event) ABP timeline: * App-wide first-run actions done (0) ABP timeline: * Entered WindowWrapper constructor (0) ABP timeline: * * Hooks element initialized (0) ABP timeline: * * Context menu copying done (1) ABP timeline: * * Shortcut keys configured (3) ABP timeline: * * Context menu initialized (1) ABP timeline: * * Icon state updated (0) ABP timeline: * * Added event listeners (1) ABP timeline: * * Window-specific first-run actions done (0) ABP timeline: * WindowWrapper constructor done (0) ABP timeline: AppIntegration.addWindow() done (0) ABP timeline: Total time elapsed: 6 ABP timeline: Entered FilterStorage.saveToDisk() (first event) ABP timeline: * created temp file (32) ABP timeline: * saved filter data (49) ABP timeline: * saved subscription data (45) ABP timeline: * finalized file write (196) ABP timeline: * created backups and renamed temp file (1) ABP timeline: FilterStorage.saveToDisk() done (20) ABP timeline: Total time elapsed: 343 ABP timeline: Entered FilterStorage.saveToDisk() (first event) ABP timeline: * created temp file (1) ABP timeline: * saved filter data (57) ABP timeline: * saved subscription data (46) ABP timeline: * finalized file write (163) ABP timeline: * created backups and renamed temp file (1) ABP timeline: FilterStorage.saveToDisk() done (30) ABP timeline: Total time elapsed: 298 firefox: res_query.c:251: __libc_res_nquery: Assertion `hp != hp2' failed. ---------------------------------------------------------------------------------------------------- Portage 2.2.0_alpha77 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.14.1-r0, 3.1.1-custom x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.1.1-custom-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.1 Timestamp of tree: Wed, 23 Nov 2011 20:15:01 +0000 ccache version 3.1.6 [enabled] app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.6 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.22::custom sys-devel/gcc: 4.6.2::custom sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.1::custom (virtual/os-headers) sys-libs/glibc: 2.14.1::custom Repositories: gentoo gnome systemd vmware custom Installed sets: @custom-initramfs-rebuild, @custom-protected, @custom-selinux-rebuild ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Wall -march=core2 -mtune=core2 -msse4.1 -pipe -O3 -fno-tree-vectorize -fstack-protector-all -D_FORTIFY_SOURCE=2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-Wall -march=core2 -mtune=core2 -msse4.1 -pipe -O3 -fno-tree-vectorize -fstack-protector-all -D_FORTIFY_SOURCE=2" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg" FFLAGS="" GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--sort-section=alignment -Wl,-z,now" LINGUAS="en en_US zh zh_CN" MAKEOPTS="V=1 -j10" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9ef" 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="/var/lib/layman/gnome /var/lib/layman/systemd /var/lib/layman/vmware /usr/local/portage" SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage" USE="X acl alsa amd64 audit bash-completion berkdb bzip2 cairo caps cli cracklib crypt cups cxx dbus dri fortran gdbm gmp gnome gpm gtk gtk3 hardened iconv ipv6 jpeg jpeg2k mmx modules mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre png pppd pulseaudio readline selinux session sse sse2 ssl svg sysfs tcpd tiff unicode vim-syntax xattr xinetd xorg zlib" ALSA_CARDS="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 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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs caps dmsquash-live gensplash livenet lvm nbd nfs plymouth 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= www-client/firefox-8.0 was built with the following: USE="alsa crashreporter custom-cflags custom-optimization dbus ipc (multilib) pgo system-sqlite webm -bindist -debug -libnotify -startup-notification -wifi" LINGUAS="en en_US zh zh_CN -af -ak -ar -ast -be -bg -bn -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_ZA -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gd -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -hy -hy_AM -id -is -it -ja -kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb -nb_NO -nl -nn -nn_NO -nso -or -pa -pa_IN -pl -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_TW -zu" CFLAGS="-Wall -march=core2 -mtune=core2 -msse4.1 -pipe -fno-tree-vectorize -fstack-protector-all -D_FORTIFY_SOURCE=2 -mno-avx" CXXFLAGS="-Wall -march=core2 -mtune=core2 -msse4.1 -pipe -fno-tree-vectorize -fstack-protector-all -D_FORTIFY_SOURCE=2 -mno-avx" sys-libs/glibc-2.14.1 was built with the following: USE="gd glibc-omitfp hardened (multilib) nls selinux -debug -profile -vanilla" CFLAGS="-Wall -march=core2 -mtune=core2 -pipe -O2 -fno-strict-aliasing -fno-stack-protector" CXXFLAGS="-Wall -march=core2 -mtune=core2 -pipe -O2 -fno-strict-aliasing" ---------------------------------------------------------------------------------------------------- With this patch, all seems fine now... http://sourceware.org/bugzilla/show_bug.cgi?id=13013
I can confirm that the patch linked to in comment 7 corrects this issue.
Can we get the patch in portage, please? Firefox is unusable as of now.
(In reply to comment #9) > Can we get the patch in portage, please? Firefox is unusable as of now. Hi, For temporary fix i thinks you must use this : mkdir -p /etc/portage/patches/sys-libs/glibc-2.14.1 cd /etc/portage/patches/sys-libs/glibc-2.14.1 wget "http://sourceware.org/bugzilla/attachment.cgi?id=5855" -O fix_assertion_hp2_failed_glibc.patch
And re emerge glibc.
Thank you 2 times. One for the patch works perfectly, a second for introducing me to use the user patch system in portage.
gentoo, please apply this to portage. this bug has been resolved against glibc since july
This issue has nothing to do with Firefox, but only glibc. I encounter the problem with e.g. subtle or git. The patch given by lamusic seems to fix it.
I have the exact same problem. Trying the patch right now. Would be nice if I could just downgrade glibc, but portage refuses.
this is in glibc-2.14.1-r1 http://sources.gentoo.org/gentoo/src/patchsets/glibc/2.14.1/0052_all_glibc-2.14-resolv-hp-assert.patch?rev=1.1
*** Bug 392399 has been marked as a duplicate of this bug. ***