From owner-freebsd-ia64@FreeBSD.ORG Mon May 9 09:00:19 2011 Return-Path: Delivered-To: freebsd-ia64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C207106566C for ; Mon, 9 May 2011 09:00:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CD8148FC17 for ; Mon, 9 May 2011 09:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4990I0Z048301 for ; Mon, 9 May 2011 09:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4990Iq3048300; Mon, 9 May 2011 09:00:18 GMT (envelope-from gnats) Resent-Date: Mon, 9 May 2011 09:00:18 GMT Resent-Message-Id: <201105090900.p4990Iq3048300@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ia64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anton Shterenlikht Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9DD2106564A for ; Mon, 9 May 2011 08:52:00 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 6AE648FC1A for ; Mon, 9 May 2011 08:52:00 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1QJLwM-0004Oy-Td for FreeBSD-gnats-submit@freebsd.org; Mon, 09 May 2011 09:35:43 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QJLwM-0006aE-MR for FreeBSD-gnats-submit@freebsd.org; Mon, 09 May 2011 09:35:42 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p498Zg5t008793 for ; Mon, 9 May 2011 09:35:42 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p498ZgdJ008792; Mon, 9 May 2011 09:35:42 +0100 (BST) (envelope-from mexas) Message-Id: <201105090835.p498ZgdJ008792@mech-cluster241.men.bris.ac.uk> Date: Mon, 9 May 2011 09:35:42 +0100 (BST) From: Anton Shterenlikht To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ia64/156900: ia64 -current r221488 panic if kern.maxssiz=536748033 or above X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anton Shterenlikht List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 09:00:19 -0000 >Number: 156900 >Category: ia64 >Synopsis: ia64 -current r221488 panic if kern.maxssiz=536748033 or above >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ia64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 09 09:00:18 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Anton Shterenlikht >Release: FreeBSD 9.0-CURRENT ia64 >Organization: University of Bristol, UK >Environment: System: FreeBSD mech-cluster241.men.bris.ac.uk 9.0-CURRENT FreeBSD 9.0-CURRENT #3 r221488: Thu May 5 12:39:44 BST 2011 root@mech-cluster241.men.bris.ac.uk:/usr/obj/usr/src/sys/TZAV ia64 >Description: On ia64 (Madison and Madison II) starting at least with r221488, I get this panic on boot if kern.maxssiz=536748033 or above: Trying to mount root from ufs:/dev/da0p2 [rw]... panic: mutex Giant owned at /usr/src/sys/kern/kern_exit.c:125 cpuid = 0 KDB: enter: panic [ thread pid 1 tid 100001 ] Stopped at kdb_enter+0x92: [I2] addl r14=0xffffffffffe236c8,gp ;; db> db> show thread Thread 100001 at 0xe000000010fc8000: proc (pid 1): 0xe000000010fc2000 name: kernel stack: 0xa0000000ec748000-0xa0000000ec74ffff flags: 0x10004 pflags: 0 state: RUNNING (CPU 0) priority: 84 container lock: sched lock 0 (0x9ffc000000b04900) db> db> bt Tracing pid 1 tid 100001 td 0xe000000010fc8000 kdb_enter(0x9ffc0000009e1f00, 0x9ffc0000009e1f00, 0x9ffc0000004063d0, 0x793) at kdb_enter+0x92 panic(0x9ffc0000009e0278, 0x9ffc0000009e05c8, 0x9ffc0000009db7b8, 0x7d) at panic+0x2e0 _mtx_assert(0x9ffc000000aed898, 0x0, 0x9ffc0000009db7b8, 0x7d, 0x9ffc0000003ada10) at +_mtx_assert+0x200 exit1(0xe000000010fc8000, 0x6, 0x152e, 0x375) at exit1+0x40 kern_execve(0xe000000010fc8000, 0xa0000000ec74f4e0, 0x9ffc0000009db658, 0x0, 0xa0000000ec74f420) at +kern_execve+0x1ed0 execve(0xe000000010fc8000, 0xa0000000ec74f538, 0x9ffc000000376c20, 0x91a, 0x91a) at execve+0x60 start_init(0x7fffffffffffffd8, 0x7ffffffffffffff2, 0x9ffc000000a7a7d2, 0x9ffc000000a7a7c8) at +start_init+0x4a0 fork_exit(0x9ffc000000a2b5d0, 0x0, 0xa0000000ec74f550) at fork_exit+0x110 enter_userland() at enter_userland db> If the limit is reduced by 1 to kern.maxssiz=536748032, the boot goes ahead fine. >How-To-Repeat: 1. update to r221488. 2. set kern.maxssiz=536748033 (either in /boot/loader.conf or in the loader directly). 3. boot >Fix: Marcel's analysis of the problem (in case anybody else it looking at this): *quote* On ia64 each process has 2 stacks. There's the traditional memory stack that grows downwards and the there's the RSE register stack that grows upwards. Before my change, the RSE stack started at offset 0 in region 4 (=0x8000000000000000) and the register stack started close to the top in region 4 (=9fffffffffffxxxx). After my change, region 4 belongs to the kernel and the last region of the process is region 3. The register stack stayed at the top of the region (=0x7fffffffffffxxxx), but I moved the RSE register stack closer to the register stack: (USRSTACK - (2 * MAXSSIZ) - PAGE_SIZE) It's this change that causes the problem. The maxssiz is effectively bounded by the distance between the RSE stack (bottom) and the memory stack (top). This used to be close (1<<61), but is now close to (1<<29) (~512MB = 536870912) *end quote* >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-ia64@FreeBSD.ORG Mon May 9 11:07:07 2011 Return-Path: Delivered-To: freebsd-ia64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1DD310656D5 for ; Mon, 9 May 2011 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B6E9D8FC08 for ; Mon, 9 May 2011 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p49B77Xb070645 for ; Mon, 9 May 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p49B77lU070643 for freebsd-ia64@FreeBSD.org; Mon, 9 May 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 May 2011 11:07:07 GMT Message-Id: <201105091107.p49B77lU070643@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ia64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ia64@FreeBSD.org X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 11:07:08 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ia64/156900 ia64 ia64 -current r221488 panic if kern.maxssiz=536748033 o ia64/147501 ia64 [ia64] options PREEMPTION causes instability 2 problems total. From owner-freebsd-ia64@FreeBSD.ORG Wed May 11 11:50:42 2011 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8717E106566C for ; Wed, 11 May 2011 11:50:42 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 42A888FC12 for ; Wed, 11 May 2011 11:50:42 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1QK7w9-0006iO-6T; Wed, 11 May 2011 12:50:41 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QK7w9-0001qk-1q; Wed, 11 May 2011 12:50:41 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p4BBoesE005295; Wed, 11 May 2011 12:50:40 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p4BBoegj005294; Wed, 11 May 2011 12:50:40 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 11 May 2011 12:50:40 +0100 From: Anton Shterenlikht To: gecko@freebsd.org, freebsd-ia64@freebsd.org Message-ID: <20110511115040.GA5280@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: gecko@freebsd.org, freebsd-ia64@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: regression: firefox4 fails to build on ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2011 11:50:42 -0000 I'm updating from firefox 3.6.15 to 4.01 on ia64 -current. I get this error: c++ -o jsdtoa.o -c -fvisibility=hidden -DOSTYPE=\"FreeBSD9\" -DOSARCH=FreeBSD -DEXPORT_JS_API -D__S TDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DJS_HAS_CTYPES -DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -DFREEBSD -Ictypes/libffi/include -I. -I. -I. -I./../../dist/include -I./../../dist/include/nsprpub -I/usr/local/include -I/usr/local/include/nspr -I. -I./assembler -I./yarr -fPIC -I/usr/local/in clude -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-pr ivacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pipe -g -fno-strict-aliasing -pipe -DDEBUG -D_DEBUG -DTRACING -g -O3 -fstrict-aliasing -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -I/usr/local/include -DMOZILLA_CLIENT -i nclude ./js-confdefs.h jsdtoa.cpp jsdbgapi.cpp: In function 'bool CompartmentHasLiveScripts(JSCompartment*)': jsdbgapi.cpp:131: error: 'currentThreadId' was not declared in this scope gmake[3]: *** [jsdbgapi.o] Error 1 gmake[3]: *** Waiting for unfinished jobs.... gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla-2.0/js/src' gmake[2]: *** [libs_tier_js] Error 2 gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla-2.0' gmake[1]: *** [tier_js] Error 2 My bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=647830 Please advise Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423