NetBSD Problem Report #51966

From www@NetBSD.org  Sun Feb 12 20:38:44 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 351C77A26C
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Feb 2017 20:38:44 +0000 (UTC)
Message-Id: <20170212203842.C44E37A296@mollari.NetBSD.org>
Date: Sun, 12 Feb 2017 20:38:42 +0000 (UTC)
From: roy@roypittman.com
Reply-To: roy@roypittman.com
To: gnats-bugs@NetBSD.org
Subject: firefox crashes frequently
X-Send-Pr-Version: www-1.0

>Number:         51966
>Category:       pkg
>Synopsis:       firefox crashes frequently
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 20:40:00 +0000 2017
>Originator:     Roy Pittman
>Release:        NetBSD/amd64-7.0_STABLE, pkgsrc-2016Q4
>Organization:
>Environment:
NetBSD ratliff 7.0_STABLE NetBSD 7.0_STABLE (RATLIFF) #13: Sun Dec 25 16:29:39 MST 2016  roy@ratliff:/d0/build/netbsd-7/obj/amd64/sys/arch/amd64/compile/RATLIFF amd64
>Description:
Two days ago I removed firefox and reinstalled it. This was done with my /etc/mk.conf file which includes these lines:
PKG_DEFAULT_OPTIONS+=pam ssl -cups -pulseaudio -alsa
PKG_OPTIONS.firefox+=oss  debug
.if "${PKGPATH}" == "www/firefox"
  CFLAGS+=      -ggdb
  CXXFLAGS+=    -ggdb
  INSTALL_UNSTRIPPED=   yes
.endif

I rebuilt my OS yesterday with "MKDEBUG=yes" and "MKDEBUG_LIB=yes" and
installed the resulting "debug.tgz" and "xdebug.tgz" sets.

I then started firefox 50.1.0 in a terminal emulator.  Here is the output:
[10340] WARNING: Retargeting delivery to same thread: file /d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/netwerk/protocol/http/nsHttpChannel.cpp, line 6749
Assertion failure: mSearchesOngoing > 0 && mSearches.Contains(aSearch), at /d0/build/pkgsrc/www/firefox/work/firefox-50.1.0/toolkit/components/autocomplete/nsAutoCompleteController.cpp:818
#01: XRE_TelemetryAccumulate[/usr/pkg/lib/firefox/libxul.so +0x38b040c]
#02: XRE_TelemetryAccumulate[/usr/pkg/lib/firefox/libxul.so +0x38b8bdf]
#03: NS_InvokeByIndex[/usr/pkg/lib/firefox/libxul.so +0xbfa325]
#04: std::pair<unsigned long const, float>::pair<unsigned long const&, 0ul>(std::tuple<unsigned long const&>&, std::tuple<>&, std::_Index_tuple<0ul>, std::_Index_tuple<>)[/usr/pkg/lib/firefox/libxul.so +0x477e42f]
#05: std::pair<unsigned long const, float>::pair<unsigned long const&, 0ul>(std::tuple<unsigned long const&>&, std::tuple<>&, std::_Index_tuple<0ul>, std::_Index_tuple<>)[/usr/pkg/lib/firefox/libxul.so +0x477c0b8]
#06: XRE_XPCShellMain[/usr/pkg/lib/firefox/libxul.so +0x1599e4d]
#07: XRE_XPCShellMain[/usr/pkg/lib/firefox/libxul.so +0x15a2679]
#08: std::__atomic_base<PRLock*>::store(PRLock*, std::memory_order)[/usr/pkg/lib/firefox/libxul.so +0x5b4a926]
#09: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc2e1b]
#10: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc3138]
#11: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc3162]
#12: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dd040e]
#13: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc2aa3]
#14: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc2ee4]
#15: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc3138]
#16: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc31c9]
#17: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3ca5feb]
#18: std::__atomic_base<PRLock*>::store(PRLock*, std::memory_order)[/usr/pkg/lib/firefox/libxul.so +0x5b4a926]
#19: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc2e1b]
#20: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc3138]
#21: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc31c9]
#22: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3d67579]
#23: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3d289e9]
#24: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3d2cead]
#25: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3d2e149]
#26: std::__atomic_base<PRLock*>::store(PRLock*, std::memory_order)[/usr/pkg/lib/firefox/libxul.so +0x5b4a926]
#27: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc2d1f]
#28: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc3138]
#29: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3dc3162]
#30: mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)[/usr/pkg/lib/firefox/libxul.so +0x3a883dd]
#31: ??? (???:???)
Memory fault (core dumped) 
1044 [roy@ratliff:/d2/home/roy]$ date
Sun Feb 12 06:10:11 MST 2017
1045 [roy@ratliff:/d2/home/roy]$ gdb firefox firefox.core
<snip>
[New process 2]
Core was generated by `firefox'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7ff690e6fa in ?? ()
(gdb) bt
#0  0x00007f7ff690e6fa in ?? ()
#1  0x00007f7ff0cfd23b in ?? ()
#2  0x00007f7fffff7088 in ?? ()
#3  0x00007f7fffff7170 in ?? ()
#4  0x00007f7fffff70f0 in ?? ()
#5  0x0000000bffffa028 in ?? ()
#6  0x0000000000000400 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb) quit
1046 [roy@ratliff:/d2/home/roy]$ 

=====gdb bt from a previous crash 2017 02 10====

Core was generated by `firefox'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00007f7ff690e6fa in ?? ()
> (gdb) bt
> #0  0x00007f7ff690e6fa in ?? ()
> #1  0x00007f7ff0cfd23b in ?? ()
> #2  0x00007f7fa54fe0f8 in ?? ()
> #3  0x00007f7fa54fe1e0 in ?? ()
> #4  0x00007f7fa54fe160 in ?? ()
> #5  0x0000000ba54fffc8 in ?? ()
> #6  0x0000000000000400 in ?? ()
> #7  0x0000000000000000 in ?? ()
> (gdb)

====I have other backtraces that are identical.=====

>How-To-Repeat:
When I leave firefox 50.1 running, started either from a terminal or from the gui, the crash will eventually recur.
It seems to happen more often when I have several firefox windows open. Sorry I can't be more specific.
>Fix:
Not known to me.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.