From unknown Mon Aug 18 15:40:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10780 <10780@debbugs.gnu.org> To: bug#10780 <10780@debbugs.gnu.org> Subject: Status: 24.0.93 fails to build with 'Invalid function: "DEAD"' Reply-To: bug#10780 <10780@debbugs.gnu.org> Date: Mon, 18 Aug 2025 22:40:58 +0000 retitle 10780 24.0.93 fails to build with 'Invalid function: "DEAD"' reassign 10780 emacs submitter 10780 Dan Hor=C3=A1k severity 10780 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 12:34:56 2012 Received: (at submit) by debbugs.gnu.org; 10 Feb 2012 17:34:56 +0000 Received: from localhost ([127.0.0.1]:35170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvuN4-0008Mu-WD for submit@debbugs.gnu.org; Fri, 10 Feb 2012 12:34:55 -0500 Received: from eggs.gnu.org ([140.186.70.92]:38805) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvuIR-0008E1-BD for submit@debbugs.gnu.org; Fri, 10 Feb 2012 12:30:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvuH8-0007Mx-2P for submit@debbugs.gnu.org; Fri, 10 Feb 2012 12:28:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:49845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvuH7-0007Mb-Bj for submit@debbugs.gnu.org; Fri, 10 Feb 2012 12:28:45 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvuGh-0007kb-Ef for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 12:28:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvuGb-0007Ek-KN for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 12:28:19 -0500 Received: from hroch-jedna-sest.core.ignum.cz ([217.31.49.176]:40129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvuGb-0007Dv-5m for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 12:28:13 -0500 Received: from freza2.core.ignum.cz (unknown [192.168.1.153]) by hroch.core.ignum.cz (Postfix) with ESMTP id 0D56C11DD983 for ; Fri, 10 Feb 2012 16:51:36 +0100 (CET) Received: from freza2.core.ignum.cz (localhost [127.0.0.1]) by freza2.core.ignum.cz (Postfix) with ESMTP id AB5FEA1B0 for ; Fri, 10 Feb 2012 16:51:46 +0100 (CET) Received: from [192.168.160.10] (72.155.broadband6.iol.cz [88.101.155.72]) by freza2.core.ignum.cz (Postfix) with ESMTPA id 8DDDBA1AE for ; Fri, 10 Feb 2012 16:51:46 +0100 (CET) Message-ID: <1328889106.3178.26.camel@eagle.danny.cz> Subject: 24.0.93 fails to build with 'Invalid function: "DEAD"' From: Dan =?ISO-8859-1?Q?Hor=E1k?= To: bug-gnu-emacs@gnu.org Date: Fri, 10 Feb 2012 16:51:46 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 10 Feb 2012 12:34:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Hi, emacs 24.0.93 (and 24.0.92) fails to build on ppc and s390 (32-bit big-endians) with make[3]: Entering directory `/builddir/build/BUILD/emacs-24.0.93/build-gtk/lisp' cd /builddir/build/BUILD/emacs-24.0.93/lisp; subdirs=`(find . -type d -print)`; for file in $subdirs; do case $file in */.* | */.*/* | */=* | */cedet* ) ;; *) wins="$wins $file" ;; esac; done; \ for file in $wins; do \ /builddir/build/BUILD/emacs-24.0.93/update-subdirs $file; \ done; make[3]: Leaving directory `/builddir/build/BUILD/emacs-24.0.93/build-gtk/lisp' if test "no" = "yes"; then \ ln -f temacs bootstrap-emacs; \ else \ `/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \ mv -f emacs bootstrap-emacs; \ fi Loading loadup.el (source)... Using load-path (/builddir/build/BUILD/emacs-24.0.93/lisp /builddir/build/BUILD/emacs-24.0.93/lisp/emacs-lisp /builddir/build/BUILD/emacs-24.0.93/lisp/language /builddir/build/BUILD/emacs-24.0.93/lisp/international /builddir/build/BUILD/emacs-24.0.93/lisp/textmodes) Loading emacs-lisp/byte-run (source)... Loading emacs-lisp/backquote (source)... Loading subr (source)... Invalid function: "DEAD" make[2]: Leaving directory `/builddir/build/BUILD/emacs-24.0.93/build-gtk/src' make[2]: *** [bootstrap-emacs] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/emacs-24.0.93/build-gtk' make[1]: *** [src] Error 2 make: *** [bootstrap] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.SbWTXU (%build) Bad exit status from /var/tmp/rpm-tmp.SbWTXU (%build) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. ... Build environment was Fedora 17 with gcc 4.7, but also fails on RHEL-6. Builds on ppc64 and s390x were successful. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 10 12:37:32 2012 Received: (at 10780) by debbugs.gnu.org; 10 Feb 2012 17:37:32 +0000 Received: from localhost ([127.0.0.1]:35180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvuPb-0008RS-UI for submit@debbugs.gnu.org; Fri, 10 Feb 2012 12:37:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:54234 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvuPZ-0008RL-CO for 10780@debbugs.gnu.org; Fri, 10 Feb 2012 12:37:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RvuOL-0007VJ-8V; Fri, 10 Feb 2012 12:36:13 -0500 From: Glenn Morris To: Dan =?utf-8?Q?Hor=C3=A1k?= Subject: Re: bug#10780: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <1328889106.3178.26.camel@eagle.danny.cz> X-Spook: quiche Delta Force NSA SAPO assassinate NATO DES Bin Laden X-Ran: Xs_lvXmJaZb_pX\&|^Cbst7e0Xn|[@;M@uY|r13$76reigK=BNkI?jRuIn@kZ/hq_'l-,^ X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 10 Feb 2012 12:36:12 -0500 In-Reply-To: <1328889106.3178.26.camel@eagle.danny.cz> ("Dan =?utf-8?Q?Hor?= =?utf-8?Q?=C3=A1k=22's?= message of "Fri, 10 Feb 2012 16:51:46 +0100") Message-ID: <9olioa4mlv.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Dan Hor=C3=A1k wrote: > Invalid function: "DEAD" Maybe see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10749 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 02:26:08 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 07:26:09 +0000 Received: from localhost ([127.0.0.1]:40921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxZFg-0003dk-A9 for submit@debbugs.gnu.org; Wed, 15 Feb 2012 02:26:08 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:43080) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxZFa-0003d4-7x; Wed, 15 Feb 2012 02:26:07 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id AB0EA39E800B; Tue, 14 Feb 2012 23:24:15 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vFRlKFRehj18; Tue, 14 Feb 2012 23:24:15 -0800 (PST) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0D0CE39E8006; Tue, 14 Feb 2012 23:24:15 -0800 (PST) Message-ID: <4F3B5DA0.8090309@cs.ucla.edu> Date: Tue, 14 Feb 2012 23:24:16 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?RGFuIEhvcsOhaw==?= Subject: Re: 24.0.93 fails to build with 'Invalid function: "DEAD"' Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org, 10749@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) I can't reproduce the problem on my bigendian 32-bit host (Solaris 10, 32-bit sparc, Sun C 5.12 2011/11/16), so the problem can't be just the 32-bit bigendianness. The symptoms are those of a failure during conservative garbage collection, and my suspicion is that the conservative marking isn't picking up some register that's hiding in a setjmp buffer or whatnot. Suppose you do a "make clean" and then "make CPPFLAGS=-DGC_LISP_OBJECT_ALIGNMENT=2" and/or "make CPPFLAGS=-DGC_LISP_OBJECT_ALIGNMENT=1". Does that work around the problem? Likewise, suppose you do a "make clean" and then rebuild with compiler optimization disabled. Does that work around the problem? I'll CC: this to bug 10749, since GC_LISP_OBJECT_ALIGNMENT=1 may work around its problems too. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 02:41:07 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 07:41:07 +0000 Received: from localhost ([127.0.0.1]:40930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxZUA-000407-Mj for submit@debbugs.gnu.org; Wed, 15 Feb 2012 02:41:06 -0500 Received: from h242.core.ignum.cz ([217.31.49.242]:43817) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxZU4-0003zU-4u; Wed, 15 Feb 2012 02:41:01 -0500 Received: from freza3.core.ignum.cz (unknown [192.168.1.154]) by hroch.core.ignum.cz (Postfix) with ESMTP id 5C3EC11E342A; Wed, 15 Feb 2012 08:39:08 +0100 (CET) Received: from freza3.core.ignum.cz (localhost [127.0.0.1]) by freza3.core.ignum.cz (Postfix) with ESMTP id A31AEA1E3; Wed, 15 Feb 2012 08:39:12 +0100 (CET) Received: from [192.168.160.10] (72.155.broadband6.iol.cz [88.101.155.72]) by freza3.core.ignum.cz (Postfix) with ESMTPA id 78766A1DA; Wed, 15 Feb 2012 08:39:12 +0100 (CET) Message-ID: <1329291553.3029.10.camel@eagle.danny.cz> Subject: Re: 24.0.93 fails to build with 'Invalid function: "DEAD"' From: Dan =?ISO-8859-1?Q?Hor=E1k?= To: Paul Eggert Date: Wed, 15 Feb 2012 08:39:13 +0100 In-Reply-To: <4F3B5DA0.8090309@cs.ucla.edu> References: <4F3B5DA0.8090309@cs.ucla.edu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) Mime-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org, 10749@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Paul Eggert p=C3=AD=C5=A1e v =C3=9At 14. 02. 2012 v 23:24 -0800:=20 > I can't reproduce the problem on my bigendian 32-bit host > (Solaris 10, 32-bit sparc, Sun C 5.12 2011/11/16), > so the problem can't be just the 32-bit bigendianness. >=20 > The symptoms are those of a failure during conservative > garbage collection, and my suspicion is that the > conservative marking isn't picking up some register that's > hiding in a setjmp buffer or whatnot. >=20 > Suppose you do a "make clean" and then > "make CPPFLAGS=3D-DGC_LISP_OBJECT_ALIGNMENT=3D2" and/or > "make CPPFLAGS=3D-DGC_LISP_OBJECT_ALIGNMENT=3D1". > Does that work around the problem? >=20 > Likewise, suppose you do a "make clean" > and then rebuild with compiler optimization disabled. > Does that work around the problem? >=20 > I'll CC: this to bug 10749, since GC_LISP_OBJECT_ALIGNMENT=3D1 > may work around its problems too. I have to do some more testing but now it seems that using --with-wide-int option for configure provokes the "Invalid function" behaviour. When the option is not given, the build is successful, when given, then I see a segfault in the non-bootstrap build. Dan From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 03:16:34 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 08:16:34 +0000 Received: from localhost ([127.0.0.1]:41022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rxa2T-0005cE-T1 for submit@debbugs.gnu.org; Wed, 15 Feb 2012 03:16:34 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:51547) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rxa2O-0005bt-R5; Wed, 15 Feb 2012 03:16:30 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 7DBD439E800B; Wed, 15 Feb 2012 00:14:42 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EAWO+kH6yNYL; Wed, 15 Feb 2012 00:14:42 -0800 (PST) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1A78639E8006; Wed, 15 Feb 2012 00:14:42 -0800 (PST) Message-ID: <4F3B6974.4080600@cs.ucla.edu> Date: Wed, 15 Feb 2012 00:14:44 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?RGFuIEhvcsOhaw==?= Subject: Re: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> In-Reply-To: <1329291553.3029.10.camel@eagle.danny.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org, 10749@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 02/14/2012 11:39 PM, Dan Hor=C3=A1k wrote: > I have to do some more testing but now it seems that using > --with-wide-int option for configure provokes the "Invalid function" > behaviour. In that case the bug is probably distinct from Bug#10749, as 10749 occurs without wide ints. I'll drop 10749 from the CC: list before replying further. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 03:40:39 2012 Received: (at control) by debbugs.gnu.org; 15 Feb 2012 08:40:39 +0000 Received: from localhost ([127.0.0.1]:41031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxaPn-00069g-9O for submit@debbugs.gnu.org; Wed, 15 Feb 2012 03:40:39 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45136 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxaPm-00069a-8G for control@debbugs.gnu.org; Wed, 15 Feb 2012 03:40:38 -0500 Received: from [155.69.16.88] (port=57636 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RxaO7-0000eD-Ph for control@debbugs.gnu.org; Wed, 15 Feb 2012 03:38:56 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: merge 10749 10780 Date: Wed, 15 Feb 2012 16:38:49 +0800 Message-ID: <87lio4trs6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) merge 10749 10780 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 03:41:34 2012 Received: (at control) by debbugs.gnu.org; 15 Feb 2012 08:41:34 +0000 Received: from localhost ([127.0.0.1]:41035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxaQf-0006BG-SI for submit@debbugs.gnu.org; Wed, 15 Feb 2012 03:41:34 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45164 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxaQe-0006B9-43 for control@debbugs.gnu.org; Wed, 15 Feb 2012 03:41:32 -0500 Received: from [155.69.16.88] (port=57637 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RxaP0-0000h6-Dd for control@debbugs.gnu.org; Wed, 15 Feb 2012 03:39:51 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: unmerge 10780 Date: Wed, 15 Feb 2012 16:39:44 +0800 Message-ID: <87ipj8trqn.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) unmerge 10780 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 04:17:18 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 09:17:18 +0000 Received: from localhost ([127.0.0.1]:41042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxazF-0007la-Us for submit@debbugs.gnu.org; Wed, 15 Feb 2012 04:17:18 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:42071) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxazC-0007lK-Rw for 10780@debbugs.gnu.org; Wed, 15 Feb 2012 04:17:15 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id E2CE739E8006; Wed, 15 Feb 2012 01:15:27 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mwpkfcyc-WQm; Wed, 15 Feb 2012 01:15:27 -0800 (PST) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2F19139E800B; Wed, 15 Feb 2012 01:15:27 -0800 (PST) Message-ID: <4F3B77B1.4010000@cs.ucla.edu> Date: Wed, 15 Feb 2012 01:15:29 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?RGFuIEhvcsOhaw==?= Subject: Re: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> In-Reply-To: <1329291553.3029.10.camel@eagle.danny.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 02/14/2012 11:39 PM, Dan Hor=C3=A1k wrote: > I have to do some more testing but now it seems that using > --with-wide-int option for configure provokes the "Invalid function" > behaviour. Thanks for looking into it. I configured --with-wide-int on my bigendian 32-bit host and could not reproduce the problem. My host is a Solaris 10 sparc (32-bit). I tried with both Sun C 5.12 SunOS_sparc 2011/11/16 (cc -xO4) and with GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath) (gcc -O2). Since you built --with-wide-int, can you please also try compiling from scratch, with "make CPPFLAGS=3D-DGC_LISP_OBJECT_ALIGNMENT=3D4"? It could be that your compilers claim to be aligning 64-bit integers on 8-byte boundaries, but are occasionally actually aligning them on 4-byte boundaries. This messes up conservative garbage collection big-time and would explain your symptoms. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 04:57:25 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 09:57:25 +0000 Received: from localhost ([127.0.0.1]:41068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rxbc1-0000Fa-Dm for submit@debbugs.gnu.org; Wed, 15 Feb 2012 04:57:25 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:52817) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rxbbr-0000FB-R9; Wed, 15 Feb 2012 04:57:16 -0500 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 7CFE31C0C0F4; Wed, 15 Feb 2012 10:55:23 +0100 (CET) X-Auth-Info: sqQA1gV/ueNR+9ppan/kaj+CIP+5hz0gfzoX4ep7UpU= Received: from igel.home (ppp-93-104-147-89.dynamic.mnet-online.de [93.104.147.89]) by mail.mnet-online.de (Postfix) with ESMTPA id 610F81C00267; Wed, 15 Feb 2012 10:55:23 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 1812CCA29E; Wed, 15 Feb 2012 10:55:23 +0100 (CET) From: Andreas Schwab To: Paul Eggert Subject: Re: bug#10780: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> <4F3B6974.4080600@cs.ucla.edu> X-Yow: Are we THERE yet? My MIND is a SUBMARINE!! Date: Wed, 15 Feb 2012 10:55:22 +0100 In-Reply-To: <4F3B6974.4080600@cs.ucla.edu> (Paul Eggert's message of "Wed, 15 Feb 2012 00:14:44 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: Dan =?utf-8?Q?Hor=C3=A1k?= , 10780@debbugs.gnu.org, 10749@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) I see a similar crash when building with wide ints on ppc-linux, where a string contains a null data pointer. Something is definitely broken with wide ints and gc marking. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 05:11:02 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 10:11:02 +0000 Received: from localhost ([127.0.0.1]:41082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxbpC-0000Za-1e for submit@debbugs.gnu.org; Wed, 15 Feb 2012 05:11:02 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:48117) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rxbp5-0000ZI-Co for 10780@debbugs.gnu.org; Wed, 15 Feb 2012 05:10:56 -0500 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id CD4C11C0C0E8; Wed, 15 Feb 2012 11:09:04 +0100 (CET) X-Auth-Info: 31yZZwPELgNTKHY/8fP1dt0y9TE+MukkNGlaJ3runRg= Received: from igel.home (ppp-93-104-147-89.dynamic.mnet-online.de [93.104.147.89]) by mail.mnet-online.de (Postfix) with ESMTPA id C01261C00127; Wed, 15 Feb 2012 11:09:04 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 767BACA29E; Wed, 15 Feb 2012 11:09:04 +0100 (CET) From: Andreas Schwab To: Paul Eggert Subject: Re: bug#10780: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> <4F3B77B1.4010000@cs.ucla.edu> X-Yow: The PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!! Date: Wed, 15 Feb 2012 11:09:04 +0100 In-Reply-To: <4F3B77B1.4010000@cs.ucla.edu> (Paul Eggert's message of "Wed, 15 Feb 2012 01:15:29 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: Dan =?utf-8?Q?Hor=C3=A1k?= , 10780@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Paul Eggert writes: > It could be that your compilers claim to be aligning 64-bit > integers on 8-byte boundaries, but are occasionally actually > aligning them on 4-byte boundaries. This messes up conservative > garbage collection big-time and would explain your symptoms. What about local variables in registers? They are split between two registers, but mark_stack does not handle that. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 11:42:50 2012 Received: (at 10780) by debbugs.gnu.org; 15 Feb 2012 16:42:50 +0000 Received: from localhost ([127.0.0.1]:41606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxhwQ-0001q0-3C for submit@debbugs.gnu.org; Wed, 15 Feb 2012 11:42:50 -0500 Received: from h242.core.ignum.cz ([217.31.49.242]:45051) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RxhwM-0001pi-VA for 10780@debbugs.gnu.org; Wed, 15 Feb 2012 11:42:48 -0500 Received: from freza2.core.ignum.cz (unknown [192.168.1.153]) by hroch.core.ignum.cz (Postfix) with ESMTP id E932B11E7631; Wed, 15 Feb 2012 17:38:14 +0100 (CET) Received: from freza2.core.ignum.cz (localhost [127.0.0.1]) by freza2.core.ignum.cz (Postfix) with ESMTP id D486AA590; Wed, 15 Feb 2012 17:38:24 +0100 (CET) Received: from [192.168.160.10] (72.155.broadband6.iol.cz [88.101.155.72]) by freza2.core.ignum.cz (Postfix) with ESMTPA id B6481A580; Wed, 15 Feb 2012 17:38:24 +0100 (CET) Message-ID: <1329323904.3029.30.camel@eagle.danny.cz> Subject: Re: 24.0.93 fails to build with 'Invalid function: "DEAD"' From: Dan =?ISO-8859-1?Q?Hor=E1k?= To: Paul Eggert Date: Wed, 15 Feb 2012 17:38:24 +0100 In-Reply-To: <4F3B77B1.4010000@cs.ucla.edu> References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> <4F3B77B1.4010000@cs.ucla.edu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) Mime-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) Paul Eggert p=C3=AD=C5=A1e v St 15. 02. 2012 v 01:15 -0800:=20 > On 02/14/2012 11:39 PM, Dan Hor=C3=A1k wrote: > > I have to do some more testing but now it seems that using > > --with-wide-int option for configure provokes the "Invalid function" > > behaviour. >=20 > Thanks for looking into it. I configured --with-wide-int on > my bigendian 32-bit host and could not reproduce the problem. > My host is a Solaris 10 sparc (32-bit). I tried with both > Sun C 5.12 SunOS_sparc 2011/11/16 (cc -xO4) and with > GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath) (gcc -O2). >=20 > Since you built --with-wide-int, can you please also try > compiling from scratch, with > "make CPPFLAGS=3D-DGC_LISP_OBJECT_ALIGNMENT=3D4"? > It could be that your compilers claim to be aligning 64-bit > integers on 8-byte boundaries, but are occasionally actually > aligning them on 4-byte boundaries. This messes up conservative > garbage collection big-time and would explain your symptoms. The builds (on s390, haven't tried ppc yet) were successful with GC_LISP_OBJECT_ALIGNMENT set to 1, 2 and 4. Only when it's not set, the build fails with the "Invalid function" error message. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 20 18:16:35 2012 Received: (at 10780) by debbugs.gnu.org; 20 Feb 2012 23:16:35 +0000 Received: from localhost ([127.0.0.1]:47847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzcTC-0004C5-OL for submit@debbugs.gnu.org; Mon, 20 Feb 2012 18:16:35 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:39037) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzcT9-0004Br-RG for 10780@debbugs.gnu.org; Mon, 20 Feb 2012 18:16:33 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id AFF5D39E800A; Mon, 20 Feb 2012 15:14:12 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SEi-Klh7ygjC; Mon, 20 Feb 2012 15:14:12 -0800 (PST) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id DF03339E8008; Mon, 20 Feb 2012 15:14:11 -0800 (PST) Message-ID: <4F42D3DF.7010303@cs.ucla.edu> Date: Mon, 20 Feb 2012 15:14:39 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: =?UTF-8?B?RGFuIEhvcsOhaw==?= Subject: Re: bug#10780: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> <4F3B77B1.4010000@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 02/15/2012 02:09 AM, Andreas Schwab wrote: > What about local variables in registers? They are split between two > registers, but mark_stack does not handle that. True. Teerrroooo. Thanks for diagnosing that. I pushed the following fix into the trunk. It's needed regardless of this particular bug. Dan, can you please check whether it indeed fixes the bug for you? Thanks. Fix crash due to non-contiguous EMACS_INT (Bug#10780). * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it. (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS =3D=3D 0. It's useless in that case, and it can cause problems on hosts that allocate halves of EMACS_INT values separately. Reported by Dan Hor=C3=A1k. Diagnosed by Andreas Schwab in . * mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where UINTPTR_MAX >> VALBITS =3D=3D 0. This is required by the above change; it avoids undefined behavior on hosts where shifting right by more than the word width has undefined behavior. =3D=3D=3D modified file 'src/lisp.h' --- src/lisp.h 2012-01-19 07:21:25 +0000 +++ src/lisp.h 2012-02-20 16:27:49 +0000 @@ -168,6 +168,10 @@ #define GCTYPEBITS 3 #endif +#ifndef VALBITS +#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS) +#endif + #ifndef NO_DECL_ALIGN # ifndef DECL_ALIGN # if HAVE_ATTRIBUTE_ALIGNED @@ -191,7 +195,15 @@ || defined DARWIN_OS || defined __sun) /* We also need to be able to specify mult-of-8 alignment on static vars= . */ # if defined DECL_ALIGN -# define USE_LSB_TAG +/* mark_maybe_object assumes that EMACS_INT values are contiguous, + but this is not true on some hosts where EMACS_INT is wider than a po= inter, + as they may allocate the halves of an EMACS_INT separately. + On these hosts USE_LSB_TAG is not needed because the top bits of an + EMACS_INT are unused, so define USE_LSB_TAG only on hosts where it + might be useful. */ +# if UINTPTR_MAX >> VALBITS !=3D 0 +# define USE_LSB_TAG +# endif # endif #endif @@ -309,11 +321,6 @@ Lisp_Fwd_Kboard_Obj, /* Fwd to a Lisp_Object field of kboards. */ }; -/* These values are overridden by the m- file on some machines. */ -#ifndef VALBITS -#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS) -#endif - #ifdef USE_LISP_UNION_TYPE #ifndef WORDS_BIGENDIAN =3D=3D=3D modified file 'src/mem-limits.h' --- src/mem-limits.h 2012-01-19 07:21:25 +0000 +++ src/mem-limits.h 2012-02-20 22:53:46 +0000 @@ -34,7 +34,7 @@ #endif extern char *start_of_data (void); -#if defined USE_LSB_TAG +#if defined USE_LSB_TAG || UINTPTR_MAX >> VALBITS =3D=3D 0 #define EXCEEDS_LISP_PTR(ptr) 0 #elif defined DATA_SEG_BITS #define EXCEEDS_LISP_PTR(ptr) \ From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 04:34:54 2012 Received: (at 10780) by debbugs.gnu.org; 21 Feb 2012 09:34:54 +0000 Received: from localhost ([127.0.0.1]:48197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rzm7V-0007Gc-Hs for submit@debbugs.gnu.org; Tue, 21 Feb 2012 04:34:53 -0500 Received: from hroch-dve-ctyri.core.ignum.cz ([217.31.49.204]:33325) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rzm7P-0007GB-IP for 10780@debbugs.gnu.org; Tue, 21 Feb 2012 04:34:48 -0500 Received: from freza3.core.ignum.cz (unknown [192.168.1.154]) by hroch.core.ignum.cz (Postfix) with ESMTP id 2E74A11F7E36; Tue, 21 Feb 2012 10:32:14 +0100 (CET) Received: from freza3.core.ignum.cz (localhost [127.0.0.1]) by freza3.core.ignum.cz (Postfix) with ESMTP id 1DDE0A172; Tue, 21 Feb 2012 10:32:19 +0100 (CET) Received: from [192.168.160.10] (72.155.broadband6.iol.cz [88.101.155.72]) by freza3.core.ignum.cz (Postfix) with ESMTPA id CA59AA14E; Tue, 21 Feb 2012 10:32:18 +0100 (CET) Message-ID: <1329816739.3029.13.camel@eagle.danny.cz> Subject: Re: bug#10780: 24.0.93 fails to build with 'Invalid function: "DEAD"' From: Dan =?ISO-8859-1?Q?Hor=E1k?= To: Paul Eggert Date: Tue, 21 Feb 2012 10:32:19 +0100 In-Reply-To: <4F42D3DF.7010303@cs.ucla.edu> References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> <4F3B77B1.4010000@cs.ucla.edu> <4F42D3DF.7010303@cs.ucla.edu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) Mime-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780 Cc: 10780@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Paul Eggert p=C3=AD=C5=A1e v Po 20. 02. 2012 v 15:14 -0800:=20 > On 02/15/2012 02:09 AM, Andreas Schwab wrote: >=20 > > What about local variables in registers? They are split between two > > registers, but mark_stack does not handle that. >=20 > True. Teerrroooo. Thanks for diagnosing that. >=20 > I pushed the following fix into the trunk. It's needed > regardless of this particular bug. Dan, can you please > check whether it indeed fixes the bug for you? Thanks. yes, this change fixed the issue for me. Thanks to all involved. >=20 > Fix crash due to non-contiguous EMACS_INT (Bug#10780). > * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it. > (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS =3D=3D 0. > It's useless in that case, and it can cause problems on hosts > that allocate halves of EMACS_INT values separately. > Reported by Dan Hor=C3=A1k. Diagnosed by Andreas Schwab in > . > * mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where > UINTPTR_MAX >> VALBITS =3D=3D 0. This is required by the above change; > it avoids undefined behavior on hosts where shifting right by more > than the word width has undefined behavior. > =3D=3D=3D modified file 'src/lisp.h' > --- src/lisp.h 2012-01-19 07:21:25 +0000 > +++ src/lisp.h 2012-02-20 16:27:49 +0000 > @@ -168,6 +168,10 @@ > #define GCTYPEBITS 3 > #endif >=20 > +#ifndef VALBITS > +#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS) > +#endif > + > #ifndef NO_DECL_ALIGN > # ifndef DECL_ALIGN > # if HAVE_ATTRIBUTE_ALIGNED > @@ -191,7 +195,15 @@ > || defined DARWIN_OS || defined __sun) > /* We also need to be able to specify mult-of-8 alignment on static va= rs. */ > # if defined DECL_ALIGN > -# define USE_LSB_TAG > +/* mark_maybe_object assumes that EMACS_INT values are contiguous, > + but this is not true on some hosts where EMACS_INT is wider than a = pointer, > + as they may allocate the halves of an EMACS_INT separately. > + On these hosts USE_LSB_TAG is not needed because the top bits of an > + EMACS_INT are unused, so define USE_LSB_TAG only on hosts where it > + might be useful. */ > +# if UINTPTR_MAX >> VALBITS !=3D 0 > +# define USE_LSB_TAG > +# endif > # endif > #endif >=20 > @@ -309,11 +321,6 @@ > Lisp_Fwd_Kboard_Obj, /* Fwd to a Lisp_Object field of kboards. */ > }; >=20 > -/* These values are overridden by the m- file on some machines. */ > -#ifndef VALBITS > -#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS) > -#endif > - > #ifdef USE_LISP_UNION_TYPE >=20 > #ifndef WORDS_BIGENDIAN >=20 > =3D=3D=3D modified file 'src/mem-limits.h' > --- src/mem-limits.h 2012-01-19 07:21:25 +0000 > +++ src/mem-limits.h 2012-02-20 22:53:46 +0000 > @@ -34,7 +34,7 @@ > #endif >=20 > extern char *start_of_data (void); > -#if defined USE_LSB_TAG > +#if defined USE_LSB_TAG || UINTPTR_MAX >> VALBITS =3D=3D 0 > #define EXCEEDS_LISP_PTR(ptr) 0 > #elif defined DATA_SEG_BITS > #define EXCEEDS_LISP_PTR(ptr) \ >=20 >=20 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 18:40:02 2012 Received: (at 10780-done) by debbugs.gnu.org; 21 Feb 2012 23:40:02 +0000 Received: from localhost ([127.0.0.1]:49403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzzJO-0000cG-0S for submit@debbugs.gnu.org; Tue, 21 Feb 2012 18:40:01 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:36423) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzzJD-0000bl-LI; Tue, 21 Feb 2012 18:39:52 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 7C17939E800B; Tue, 21 Feb 2012 15:37:22 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zXESeijJhbmv; Tue, 21 Feb 2012 15:37:17 -0800 (PST) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 98FEC39E8006; Tue, 21 Feb 2012 15:37:17 -0800 (PST) Message-ID: <4F442AAD.90704@cs.ucla.edu> Date: Tue, 21 Feb 2012 15:37:17 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: =?UTF-8?B?RGFuIEhvcsOhaw==?= Subject: Re: 24.0.93 fails to build with 'Invalid function: "DEAD"' References: <4F3B5DA0.8090309@cs.ucla.edu> <1329291553.3029.10.camel@eagle.danny.cz> <4F3B77B1.4010000@cs.ucla.edu> <4F42D3DF.7010303@cs.ucla.edu> <1329816739.3029.13.camel@eagle.danny.cz> In-Reply-To: <1329816739.3029.13.camel@eagle.danny.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10780-done Cc: 10780-done@debbugs.gnu.org, 10749@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 02/21/2012 01:32 AM, Dan Hor=C3=A1k wrote: > this change fixed the issue for me. Great! Thanks for checking. I'm marking 10780 as "done". I'm leaving 10749 open, as it occurs without wide ints and is almost surely a different bug. From unknown Mon Aug 18 15:40:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 Mar 2012 11:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator