From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: eassert always aborts in eval.c in an optimized build Date: Sun, 27 Oct 2024 17:34:57 -0700 Organization: UCLA Computer Science Department Message-ID: References: <8634kiaq0b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------r4IrMl28guAQCViDzogtIVYB" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1656"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 28 01:36:00 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t5Djj-0000F9-Jd for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Oct 2024 01:35:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5Dir-0002kx-10; Sun, 27 Oct 2024 20:35:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5Dio-0002jy-PK for emacs-devel@gnu.org; Sun, 27 Oct 2024 20:35:03 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5Dim-0000ab-N2; Sun, 27 Oct 2024 20:35:02 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 550443C011BC5; Sun, 27 Oct 2024 17:34:58 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id T32J71Osr9hS; Sun, 27 Oct 2024 17:34:57 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id BFBBD3C082C81; Sun, 27 Oct 2024 17:34:57 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu BFBBD3C082C81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1730075697; bh=5YjuqF9hZzBhJ+ccqXafer8dGdBf7Fa9eREHSng8nfk=; h=Message-ID:Date:MIME-Version:From:To; b=EtokMHnvHUzZOhhb+QuKEkScIz0nnTRUt2f+vxkaovw1ij8dBO8Q3B8KjGOOv+0NF OokgH3R63Lvgtx+2ouNgBl07QPd8W1n1eTz6+6klxKmqFZKVSxzw+qzno6Tnn63FgN XscwyCC9it6DeZNPqucUkUW67H4QJa313SAy4h23Q44kbH93MWapi0LaPCvIoAmp6j VSG+roRBuzhfT18Iv8VQQ6WSC3BV7a4EaxxG0BYs2fqhzXI4ZOa87PcUB07bcj5Ky/ KZsQo6apKD39ug05AT2KCmTvDe4JPPc1u8bWRfc49cCuc71WccLqCXsF+b1lZDBJLV B4DpFXlLyOACQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id cPpcElqqdY5i; Sun, 27 Oct 2024 17:34:57 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.150.137.250]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 9F5653C011BC5; Sun, 27 Oct 2024 17:34:57 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324889 Archived-At: This is a multi-part message in MIME format. --------------r4IrMl28guAQCViDzogtIVYB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I installed the attached hack to work around what appears to be a GDB bug; please give it a try when you have the time. Although the hack might be needed for other functions marked EXTERNALLY_VISIBLE for GDB, I applied it only to the function that you reported the GDB bug for. We can apply the hack to the other functions later, if we discover they need it. This hack is merely for convenience when we debug Emacs with GDB so it's OK to be cautious about applying the hack. --------------r4IrMl28guAQCViDzogtIVYB Content-Type: text/x-patch; charset=UTF-8; name="0001-Work-around-GDB-bug-32313-when-debugging-Emacs-inter.patch" Content-Disposition: attachment; filename*0="0001-Work-around-GDB-bug-32313-when-debugging-Emacs-inter.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSBlYmYzZmI5YTIyOTU1MjBlZjhjZTE3NTYwODZmZDliYmQzZDA0ZTllIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ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