From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58288: 29.0.50; (flyspell-correct-word-before-point) followed by crashes emacs Date: Wed, 05 Oct 2022 13:06:52 +0300 Message-ID: <83fsg2twhv.fsf@gnu.org> References: <877d1f3kgj.fsf@gnus.org> <83tu4jvkfz.fsf@gnu.org> <87zgeb91ac.fsf@gmail.com> <83mtabvgxw.fsf@gnu.org> <87pmf78vta.fsf@gmail.com> <83fsg3v9fb.fsf@gnu.org> <87k05e8u8w.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58288@debbugs.gnu.org, larsi@gnus.org, ajd2195@columbia.edu To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 05 12:08:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1og1K5-0007cu-Go for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 12:08:17 +0200 Original-Received: from localhost ([::1]:33418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og1K4-0003Kp-0o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 06:08:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og1Jq-0003Iy-Uh for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 06:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og1Jq-00085w-L6 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 06:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og1Jp-0004g2-Ss for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 06:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 10:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58288 X-GNU-PR-Package: emacs Original-Received: via spool by 58288-submit@debbugs.gnu.org id=B58288.166496442517915 (code B ref 58288); Wed, 05 Oct 2022 10:08:01 +0000 Original-Received: (at 58288) by debbugs.gnu.org; 5 Oct 2022 10:07:05 +0000 Original-Received: from localhost ([127.0.0.1]:55928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og1Iv-0004et-Jb for submit@debbugs.gnu.org; Wed, 05 Oct 2022 06:07:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og1Ir-0004eM-1k for 58288@debbugs.gnu.org; Wed, 05 Oct 2022 06:07:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og1Il-0007z3-AG; Wed, 05 Oct 2022 06:06:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZMLWaoURXG9aXBlShvqZh0nSUTiFsMWLbob3GSEGgF8=; b=jKRcjKTmYLah 6FEGBFtpHJyey+jMJLWBzcamP8wiyTQ88iBG/+XSuG5T7wdyEWxBFGA6IZoJ/84bu3E7jvMY09i9U 0Mi+pH9rTHaMhp6c+CxEEmFrdIQRvri/fhihK23hHmXN13FH8EvflRw4VRqX+tbjVJm6j4oVf0OXf +7403opmp+DVthmSa3YO4viAQtEdG0qdQKpJNx06Duw3xj8uJYcf0XuvWP5NqBSRe/2gA4zktxSj/ OlDvXYG6ofxgnVh/H6yzBDoyzRcxN9HsiCf8eeknw8yBvlk0nT1wno2Yz7vwCDq6ngxyar9OHASjP isXhKvvYWKAbNPUnwAu8pw==; Original-Received: from [87.69.77.57] (port=2470 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og1Ik-0000hO-Pn; Wed, 05 Oct 2022 06:06:55 -0400 In-Reply-To: <87k05e8u8w.fsf@gmail.com> (message from Robert Pluim on Wed, 05 Oct 2022 12:01:03 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244502 Archived-At: > From: Robert Pluim > Cc: 58288@debbugs.gnu.org, larsi@gnus.org, ajd2195@columbia.edu > Date: Wed, 05 Oct 2022 12:01:03 +0200 > > So the code is assuming that menu_items_used > 0 means that menu_items > is valid, but we have this in menu.c: > > void > save_menu_items (void) > { > Lisp_Object saved = list4 (menu_items_inuse ? menu_items : Qnil, > make_fixnum (menu_items_used), > make_fixnum (menu_items_n_panes), > make_fixnum (menu_items_submenu_depth)); > record_unwind_protect (restore_menu_items, saved); > menu_items_inuse = false; > menu_items = Qnil; > } > > This fixes it, but it seems a bit dodgy to me, why has no other > platform ever run into this? How come a menu is in use, but menu_items_inuse is zero?