From owner-freebsd-gecko@FreeBSD.ORG Tue Sep 4 15:33:52 2012 Return-Path: Delivered-To: freebsd-gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD1DC1065670 for ; Tue, 4 Sep 2012 15:33:51 +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 97E5F8FC0A for ; Tue, 4 Sep 2012 15:33:51 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1T8v3S-0001Hi-QR; Tue, 04 Sep 2012 16:28:43 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1T8v3S-0000TO-8R; Tue, 04 Sep 2012 16:28:42 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q84FSfio005249; Tue, 4 Sep 2012 16:28:41 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q84FSfOm005248; Tue, 4 Sep 2012 16:28:41 +0100 (BST) (envelope-from mexas) Date: Tue, 4 Sep 2012 16:28:41 +0100 (BST) From: Anton Shterenlikht Message-Id: <201209041528.q84FSfOm005248@mech-cluster241.men.bris.ac.uk> To: jbeich@tormail.org, mexas@bristol.ac.uk In-Reply-To: <1T8dWC-000FCy-Im@internal.tormail.org> Cc: freebsd-gecko@freebsd.org Subject: Re: ia64 www/firefox - segfault on startup X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2012 15:33:52 -0000 From jbeich@tormail.org Mon Sep 3 23:37:19 2012 > > It segfaults straight away on the firefox congratulations > page (or whatever it is called): > > http://eis.bris.ac.uk/~mexas/ia64-exp-ff15-debug-output [picking a random thread] > Thread 13 (Thread 134d81800 (LWP 101632/firefox)): > #0 0x000000012049dbc0 in __error () from /lib/libthr.so.3 > #1 0x0000000120482d00 in pthread_getschedparam () from /lib/libthr.so.3 > #2 0x0000000000000000 in ?? () > Previous frame identical to this frame (corrupt stack?) Can you build libthr and nspr with debug symbols? Even if it doesn't trigger an assert gdb backtrace would be more verbose. $ cd /usr/src/lib/libthr; make all install DEBUG_FLAGS='-g' done $ cd /usr/ports/devel/nspr; make install WITH_DEBUG= Also try disabling pthread_getschedparam in devel/nspr. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=patch-ia64-disable-pthread_getschedparam --- ../pr/src/pthreads/ptthread.c~ +++ ../pr/src/pthreads/ptthread.c @@ -25,7 +25,7 @@ #include #endif -#ifdef SYMBIAN +#if defined(SYMBIAN) || (defined(FREEBSD) && defined(__ia64)) /* In Open C sched_get_priority_min/max do not work properly, so we undefine * _POSIX_THREAD_PRIORITY_SCHEDULING here. */ --=-=-=-- Ok, about devel/nspr - it fails tests. Here's what I did: # pwd /usr/ports/devel/nspr # cat files/patch-ia64-disable-pthread_getschedparam --- ../pr/src/pthreads/ptthread.c~ +++ ../pr/src/pthreads/ptthread.c @@ -25,7 +25,7 @@ #include #endif -#ifdef SYMBIAN +#if defined(SYMBIAN) || (defined(FREEBSD) && defined(__ia64)) /* In Open C sched_get_priority_min/max do not work properly, so we undefine * _POSIX_THREAD_PRIORITY_SCHEDULING here. */ # Fine so far, right? I build WITH_DEBUG=, the log is: http://seis.bris.ac.uk/~mexas/nspr-build.log By the way, can I check just from the build log that I indeed used WITH_DEBUG= ? Is it the "-UDEBUG -DNDEBUG=1" tokens? I never paid much attention to this port, so I never run the tests before. So I don't know if they always failed on ia64, or it is a new thing. Anyway, the test log: http://seis.bris.ac.uk/~mexas/nspr-test.log There are 2 failures: libfilename FAILED libfilename: PR_GetLibraryFilePathname failed libfilename: FAIL peek FAILED peek: Running the test with local threads peek: PR_Connect failed and then "socket" test appears to hang. YOu can see in the log that I started tests at night, and by the morning, the socket was still there. Here's the ps -axwwdd trace: http://seis.bris.ac.uk/~mexas/nspr-test-hang 93280 6 S+ 0:00.09 | `-- script nspr-test.log make test deinstall reinstall 93281 5 Is+ 0:00.20 | `-- make test deinstall reinstall 94911 5 I+ 0:00.25 | `-- /bin/sh ../../../pr/tests/runtests.sh 95023 5 S+ 0:00.37 | `-- ./socket I reinstalled devel/nspr anyway, and will now try to rebuild freebsd-gecko/www/firefox. I'll report back. Thank you Anton P.S. I wonder why the src and ports folk don't agree on a single debug variable. Right now it's DEBUG_FLAGS='-g' in src and WITH_DEBUG= in ports. Is it for a good reason?