From owner-freebsd-gecko@FreeBSD.ORG Wed Feb 26 10:50:01 2014 Return-Path: Delivered-To: gecko@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 580E2F55 for ; Wed, 26 Feb 2014 10:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4378219A8 for ; Wed, 26 Feb 2014 10:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1QAo1sP092743 for ; Wed, 26 Feb 2014 10:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1QAo1DB092742; Wed, 26 Feb 2014 10:50:01 GMT (envelope-from gnats) Date: Wed, 26 Feb 2014 10:50:01 GMT Message-Id: <201402261050.s1QAo1DB092742@freefall.freebsd.org> To: gecko@FreeBSD.org From: Don Lewis Subject: Re: ports/186541: installing www/libxul fails X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Don Lewis List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 10:50:01 -0000 The following reply was made to PR ports/186541; it has been noted by GNATS. From: Don Lewis To: bug-followup@FreeBSD.org Cc: turutani@scphys.kyoto-u.ac.jp Subject: Re: ports/186541: installing www/libxul fails Date: Wed, 26 Feb 2014 02:46:09 -0800 (PST) Here's what I found: Executing /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/xpcshell -g /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -a /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -f ../../../toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/"); Traceback (most recent call last): File "../../../toolkit/mozapps/installer/packager.py", line 375, in main() File "../../../toolkit/mozapps/installer/packager.py", line 367, in main args.source, gre_path, base) File "../../../toolkit/mozapps/installer/packager.py", line 148, in precompile_cache errors.fatal('Error while running startup cache precompilation') File "/usr/ports/www/firefox/work/mozilla-release/python/mozbuild/mozpack/errors.py", line 101, in fatal self._handle(self.FATAL, msg) File "/usr/ports/www/firefox/work/mozilla-release/python/mozbuild/mozpack/errors.py", line 96, in _handle raise ErrorMessage(msg) mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation gmake[4]: *** [stage-package] Error 1 I dug through the python code, and it looks like the problem is that the command that it says that it is "Executing" is failing. If I try running this command manually, this is what I see: # /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/xpcshell -g /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -a /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -f ../../../toolkit/mozapps/installer/precompile_cache.js -e 'precompile_startupcache("resource://gre/");' Shared object "libicui18n.so.50" not found, required by "libxul.so" The problem is that xpcshell is loading a stale copy of libxul.so in /usr/local/lib/libxul that is looking for an old copy of libicui18n.so, which has undergone a library version bump since libxul was installed. ... or maybe not. Looking back at the python script: if launcher.launch(['xpcshell', '-g', gre_path, '-a', app_path, '-f', os.path.join(os.path.dirname(__file__), 'precompile_cache.js'), '-e', 'precompile_startupcache("resource://%s/");' % resource], extra_linker_path=gre_path, extra_env={'MOZ_STARTUP_CACHE': cache}): errors.fatal('Error while running startup cache precompilation') return it looks like $LD_LIBRARY_PATH is getting set to /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ and $MOZ_STARTUP_CACHE is getting set to a temporary zip file under /tmp. If I try to duplicate that: env MOZ_STARTUP_CACHE=/tmp/cache.zip LD_LIBRARY_PATH=/usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/xpcshell -g /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -a /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin/ -f ../../../toolkit/mozapps/installer/precompile_cache.js -e 'precompile_startupcache("resource://gre/");' Illegal instruction (core dumped) Running gdb on the core file gets me this backtrace: (gdb) bt #0 0x8833308d in XRE_GetBinaryPath () from /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin//libxul.so #1 0x88332fe5 in XRE_GetBinaryPath () from /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin//libxul.so #2 0x88e20515 in XRE_XPCShellMain () from /usr/ports/www/firefox/work/mozilla-release/obj-i386-portbld-freebsd11.0/dist/bin//libxul.so #3 0x0804a5ba in _start () #4 0x00000009 in ?? () #5 0xbfbfd9bc in ?? () #6 0xbfbfd9e4 in ?? () #7 0xbfbfd9e4 in ?? () #8 0xbfbfd9b8 in ?? () #9 0x00000000 in ?? ()