NetBSD Problem Report #48750

From wiz@yt.nih.at  Wed Apr 16 17:34:16 2014
Return-Path: <wiz@yt.nih.at>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E4AF1A5816
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Apr 2014 17:34:16 +0000 (UTC)
Message-Id: <20140416173349.4BB462AC0C4@yt.nih.at>
Date: Wed, 16 Apr 2014 19:33:49 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: firefox has problems when compiled with clang
X-Send-Pr-Version: 3.95

>Number:         48750
>Category:       pkg
>Synopsis:       firefox has problems when compiled with clang
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 16 17:35:00 +0000 2014
>Closed-Date:    Fri Dec 30 12:24:05 +0000 2016
>Last-Modified:  Fri Dec 30 12:24:05 +0000 2016
>Originator:     Thomas Klausner
>Release:        NetBSD 6.99.40
>Organization:
Curiosity is the very basis of education and if you tell me that 
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:


Architecture: x86_64
Machine: amd64
>Description:
I'm not sure if to file this as toolchain or pkg bug. Please reassign
if you have a strong different opinion

When using firefox from a pkgsrc completely compiled with clang from
the NetBSD base system as of April 8, firefox has the following problems:

1. the search box doesn't work
I can type stuff there, but when I press enter or click the 'search' icon,
nothing happens

2. some plugins don't work (in my case Selfdestructing Cookies and
Ghostery).
During startup, firefox reports:
Bootstrap error: Boolean is not defined                                                                                                                                                                             
merge@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/util/object.js:38                                                                                                    
readURI@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js ->  
+resource://gre/modules/commonjs/sdk/net/url.js:83                                                                                                                                                                  
parseJsonURI@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js
+-> resource://gre/modules/commonjs/sdk/l10n/loader.js:17                                                                                                                                                           
getAvailableLocales@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js ->                                           
+resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/l10n/loader.js:28                                                                                                         
getBestLocale@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js ->                                                 
+resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/l10n/loader.js:38                                                                                                         
load@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js ->     
+resource://gre/modules/commonjs/sdk/l10n/loader.js:53                                                                                                                                                              
startup@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js ->  
+resource://gre/modules/commonjs/sdk/addon/runner.js:103                                                                                                                                                            
startup@resource://gre/modules/XPIProvider.jsm -> jar:file:///home/wiz/.mozilla/firefox/6mr9duv5.default/extensions/firefox@ghostery.com.xpi!/bootstrap.js:253                                                      
XPI_callBootstrapMethod@resource://gre/modules/XPIProvider.jsm:4287                                                                                                                                                 
AI_startInstall/<@resource://gre/modules/XPIProvider.jsm:5658                                                                                                                                                       
TaskImpl_run@resource://gre/modules/Task.jsm:233                                                                                                                                                                    
Handler.prototype.process@resource://gre/modules/Promise.jsm:767                                                                                                                                                    
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm:531                                                                                                                                                

The whole paragraph twice, once for each of the two plugins.

For both problem, starting without a .mozilla directory doesn't
change anything, the problems happen anyway.
>How-To-Repeat:
Build firefox with clang from the NetBSD base system.
It didn't happen in February, but I'm not sure when in March
it started happening.
>Fix:
Using gcc to compile firefox makes the problems disappear.
But that's a workaround...

>Release-Note:

>Audit-Trail:
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48750: firefox has problems when compiled with clang
Date: Fri, 30 Dec 2016 12:17:43 +0000

 I don't believe this is a problem any more (I've used
 firefox-compiled clang to browse this PR, although not
 the same specifi addons)

 ok to close?

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 30 Dec 2016 12:24:05 +0000
State-Changed-Why:
outdated. will refile if it appears again.


>Unformatted:

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.