From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qKBiIsHDbmONQAAAbAwnHQ (envelope-from ) for ; Fri, 11 Nov 2022 22:50:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GCh6IsHDbmNnAQAA9RJhRA (envelope-from ) for ; Fri, 11 Nov 2022 22:50:57 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4887F35949 for ; Fri, 11 Nov 2022 22:50:57 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7AF985FA3F; Fri, 11 Nov 2022 21:43:05 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by mail.notmuchmail.org (Postfix) with ESMTPS id B59C15F35E for ; Wed, 9 Nov 2022 14:35:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1668004506; bh=OTiKrPnCcno9bUKywehhHKw0HovLRmr0+UGud0dJjEE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=b6SqdUIHoUwN+8LAx8i39Q4Cqug4YcN13GfX1zDiZUW3F35yOLSB6lDYTfa+nnQhP v5T8GoANkYSQiT7wiMNhIvV1R7QpYeLOA2r0tsYHIYnlS/o+6fOtKZxDP1ORjSFrFJ zBWX4AyyqPNuK2FMfE7lBb/xuovC5uMrda6u64oHhCwT3RhwGCJ0puyqVOgykchkTs plZ7jHa4KGDHEwckRgqauqZtnJZKvUMr0bUVAiC3Ym1f53sTr84638t0KHDM4hSjfR TOQS8nLkTkk0fht6ry8v2ZdeMhCwD3/oVerfPTNTNp9Ox+qV7wNRSpbrqR1HJLPZf9 huxsSfoWLulvA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost ([95.90.239.135]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ma20q-1oXtnx3erM-00Vz2v; Wed, 09 Nov 2022 15:35:05 +0100 From: Gregor Zattler To: Eli Zaretskii Subject: Re: bug#59147: 29.0.50; dispnew.c:1456: Emacs fatal error: assertion failed: row >= 0 && row < matrix->nrows In-Reply-To: <83sfiste7r.fsf@gnu.org> References: <87o7tg718m.fsf@no.workgroup> <831qqcuuuc.fsf@gnu.org> <87pmdwgrvo.fsf@no.workgroup> <83sfiste7r.fsf@gnu.org> Mail-Followup-To: Eli Zaretskii , bug-gnu-emacs@gnu.org, notmuch@notmuchmail.org Date: Wed, 09 Nov 2022 15:35:01 +0100 Message-ID: <87leokgpre.fsf@no.workgroup> MIME-Version: 1.0 X-Provags-ID: V03:K1:qfWMullBvrVc5wLMJiaRzQLkZGmRdbmejTOc4aAGfQKU+YuY8qW uuYYl8rSQzpyFHPM6iymzS6jca9cWxME3p1NEJzSWGZQV6Dqn+nx43h6nWKh+yjnrYjFjm3 ScPPGrFF7EkScQFCDljKa0VTTyF5UFPdCN2O4JkxO4iK7qnRzEGsVaIMAmK0341Xy2zVLSi OQD0bV0DFWT8N81xMYkog== UI-OutboundReport: notjunk:1;M01:P0:9TAbx8BP0wA=;we0MRz2nWv29QAk1N9XJva2kVmV UxzE0d5wVXQROTqByRZDtEGGb8k0rka0kjE1JRUXWjvGisWLUDRLW1Ug3dMXS/3+3hM9FSLQ0 tiJRD9rz1JyrC6wHEZOkPDZKcWlxrHeUGuhC8nuoGkyKtHRA7dZtGTGIGkprYOohfSE4Oq7a1 oM1rUFp8xwhNm9HE2YtoxeRIinGPlRSbHXDoOzj7OUH7QzoqbF936p3xsPZZb7wd7Ja9gSTZz lF/1weJn6ZdVWkNQdmBcHb1RvHYWcOiXLzbMckEBRSLBiA9VlpfmWRb3ITXOTyQI4fkXaKBvV Tf45jWTp1QAqxaN3TrRmT9x3l86Quwty4Z+NJPdEUWA4H1WH/JzjUZAQ1KNEeh7HjaLBOZBVF mZR5BRr3FQCwIltNkzelfI9T0GBXqeMLYpMvlkJQRw+b33ftuO3uke2od5M5prD49fnGNLbx3 B/8wUdgBeAzCYJDdPEaHZs+lszBhp95BOEF+nClae+nkp0cwW3Al1K9hLrfYY7TohlaMahwhT D0pgTuhitHM0/AVCRRZB0qLN1VZ1H0lKy9VvXFiiT4++z0zSvVZZ2xh0qHLyunj5C9xPbyJsH PKXOj/d7M7MEkFVwrIycKVyhTLbhrcLPuoLOaY71JY3qz55L27CVVwmW7kRi10Sdu6jro7kYE /vlmj8dvWx3D1USBc+JkJ9g8BmizhrhnosioWE/Y18UB6qYfkvbPwFk/w/OYTv3QWDMuPVx9m z0tXpL23220EbLcZKnvO4+6pNszjcSyEd/vV/jwobU9l5LiFmhmW3gqtAahhaZVMazyEYMidE BdTd4cPYzkumMJ8HE4IkcIu+QOdZvRy4vpH4KWFjSpP2pS1ktfC0exkfFsGn4S0oTr8XUyfkS yIVq3z8DtK0tQAP50H1LJix9uN9z5YUR4iLwt8qLqWaGs6id8pg5aGCSTQYkKbK07d6mPQxN2 9RAApkFQQ2o4yNTNTLoFacsIuRM= X-MailFrom: grfz@gmx.de X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: 4KHLWY5GPFC6SYGZSZZK2XN64UPHMJ7D X-Message-ID-Hash: 4KHLWY5GPFC6SYGZSZZK2XN64UPHMJ7D X-Mailman-Approved-At: Fri, 11 Nov 2022 21:43:04 +0000 CC: bug-gnu-emacs@gnu.org, notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668203457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=C1BmCJhzezLFi69KGUxgpyPy37PiqAFovgDoomqczxY=; b=Sw3ESiQX9FUeanqMipwK8ZOlMymTXmtWLelj/I+gjkVhwOiu84f9QJwlf3pXM2AjggExLy dEV4885UOwoCVCQ7jfsSGPWTe7avo/x/E/5Af6JPKnCZvL62Caz1H05qjsGXw/Srr+4zjn iiDUvM+wNADVgbjeMlY6PVzLgZSAmoYwOcSNZROj00P6+vAJP1lnIUjFRhb/9uyIktWnqw JpCGIlb7XTk8GMtQP5oMooA2W1pCyMStX3XQ1dkl5Mx4NUISEZ8PkmFx8HR/teZGBu6F/9 jR3UXnjuybnaF5iryAiIHJ0UPFcW6AGmOcRSfJi5CfPs6tl/WaET4qsYgw6r4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668203457; a=rsa-sha256; cv=none; b=ShOe5S54MIw/Tz2tPkVEGG8vuq8I4rYfVC+Y/6Hlq4/FIMHv2jRW4itt5mMkvJynY2gET7 w0HF4wk3yzaiOLISOOmoRra8QjKOtuLolssxIF/H1VpXE+anuAz86MXapsRZ3kwWUBTxAa jk+/cEANsMTr6zat4luw4oKQoZEMH7p27gGmssMS39FzOYRFeiTeyTJuKMnpgSzugk98Dh L6K6G0ValhWNaN+sXPF+uYAEM6VrRUiO21tbe4J7zmfmlOEH3pAFI9ITvxniBESobyWmNO twpLkbgnthHETNBT22DdiXmDaIa1Jz0ziMqkN0yL8N6mtRfTEy39OKpfMs1w4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmx.de header.s=s31663417 header.b=b6SqdUIH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 8.60 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmx.de header.s=s31663417 header.b=b6SqdUIH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 4887F35949 X-Spam-Score: 8.60 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: B/rhRKgyMCio Hi Eli, * Eli Zaretskii [2022-11-09; 16:06 +02]: >> From: Gregor Zattler >> Cc: bug-gnu-emacs@gnu.org, notmuch@notmuchmail.org >> Date: Wed, 09 Nov 2022 14:49:15 +0100 >> >> > What does the below produce: >> > >> > (gdb) frame 2 >> > (gdb) p matrix->nrows >> >> (gdb) frame 2 >> #2 0x000055555559d310 in matrix_row (matrix=0x55555d44d470, row=8) at dispnew.c:1456 >> 1456 eassert (row >= 0 && row < matrix->nrows); >> (gdb) p matrix->nrows >> $1 = 7 >> (gdb) > > Can you describe what does notmuch-jump do and maybe show its code? notmuch-emacs is a xapian based mail client. It's possible to configure saved searches accompanied with keys to select them froma menu notmuch-jump presents in the minibuffer. This is it's code: (defun notmuch-jump (action-map prompt) "Interactively prompt for one of the keys in ACTION-MAP. Displays a summary of all bindings in ACTION-MAP in the minibuffer, reads a key from the minibuffer, and performs the corresponding action. The prompt can be canceled with C-g or RET. PROMPT must be a string to use for the prompt. PROMPT should include a space at the end. ACTION-MAP must be a list of triples of the form (KEY LABEL ACTION) where KEY is a key binding, LABEL is a string label to display in the buffer, and ACTION is a nullary function to call. LABEL may be null, in which case the action will still be bound, but will not appear in the pop-up buffer." (let* ((items (notmuch-jump--format-actions action-map)) ;; Format the table of bindings and the full prompt (table (with-temp-buffer (notmuch-jump--insert-items (window-body-width) items) (buffer-string))) (full-prompt (concat table "\n\n" (propertize prompt 'face 'minibuffer-prompt))) ;; By default, the minibuffer applies the minibuffer face to ;; the entire prompt. However, we want to clearly ;; distinguish bindings (which we put in the prompt face ;; ourselves) from their labels, so disable the minibuffer's ;; own re-face-ing. (minibuffer-prompt-properties (notmuch-plist-delete (copy-sequence minibuffer-prompt-properties) 'face)) ;; Build the keymap with our bindings (minibuffer-map (notmuch-jump--make-keymap action-map prompt)) ;; The bindings save the the action in notmuch-jump--action (notmuch-jump--action nil)) ;; Read the action (read-from-minibuffer full-prompt nil minibuffer-map) ;; If we got an action, do it (when notmuch-jump--action (funcall notmuch-jump--action)))) > The backtrace seems to indicate that it reads from the minibuffer, but > in that case, does it mean the mini-window was 7-lines high in this > case? quite possible, I have quite a few saved searches which are presented to me. The hight of the minibuffer also depends on the frames width. If the frame is half of the width of my monitor the choices are listed in 6 lines, then there is a blan line and a final line with a prompt. In fullscreen it's 3 lines of choices, the blank line and the prompt. > Also, can you describe what you do to trigger this assertion > violation? I can do so only on the level of user interaction: I call notmuch-jump-search via it's key binding which is key chord prefixed. Then I enter one or more chars to select the specific saved search I want to perform. It might be possible that I'm typing faster than Emacs performs this commands. Emacs hits the assertion with the choices still visible. I cannot say if it does so after my last key stroke or in the middel of them. Thanks for looking into this, Gregor