From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#47067: 28.0.50; [feature/native-comp] Crash while scrolling through dispnew.c Date: Sat, 13 Mar 2021 18:55:37 +0000 Message-ID: References: <83sg52lykn.fsf@gnu.org> <83mtv8lrmf.fsf@gnu.org> <83czw4lelg.fsf@gnu.org> <83mtv8jgn2.fsf@gnu.org> <834khfjv7q.fsf@gnu.org> <83tupfia1m.fsf@gnu.org> <83mtv7hy5c.fsf@gnu.org> <83k0qbhvnh.fsf@gnu.org> <83czw3hu5f.fsf@gnu.org> <834khfhsmf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo , 47067@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 13 19:57:10 2021 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 1lL9Rm-0001hZ-98 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 19:57:10 +0100 Original-Received: from localhost ([::1]:56178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lL9Rk-0006l9-PW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 13:57:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lL9Rd-0006kh-Vk for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 13:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lL9Rd-0000qJ-Ob for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 13:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lL9Rd-00057f-NI for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 13:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Mar 2021 18:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47067 X-GNU-PR-Package: emacs Original-Received: via spool by 47067-submit@debbugs.gnu.org id=B47067.161566178019644 (code B ref 47067); Sat, 13 Mar 2021 18:57:01 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 13 Mar 2021 18:56:20 +0000 Original-Received: from localhost ([127.0.0.1]:60668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL9Qy-00056l-68 for submit@debbugs.gnu.org; Sat, 13 Mar 2021 13:56:20 -0500 Original-Received: from mail-ot1-f49.google.com ([209.85.210.49]:46475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL9Qw-00056Y-TX for 47067@debbugs.gnu.org; Sat, 13 Mar 2021 13:56:19 -0500 Original-Received: by mail-ot1-f49.google.com with SMTP id r24so5150120otq.13 for <47067@debbugs.gnu.org>; Sat, 13 Mar 2021 10:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ThNtILi765lbp3SzlSAFTSTLNPIqAjJN6XZdP5kqwe4=; b=dvft0dBowjU8usXocGQTgCmRhymBltIUawyAtViy9jA6F1+tMe98k1wbyJcL+VasGk MJ7YDCpGNWOADamLaGkhOfQoM7tD9j9EUGP6FUwWJCPB6zaLUp/W4eQg3mToSyaqMSPu +oAzZ8e2+0jgmYEiIHEjV6u5oDpC45asUvcMxLxlteuOlsu9j7Ni9vGZIT4Gi/fDX+f/ MuCjmBqNtkG2MkNpVOfbZnXv2/QmZwkDWbOpeSuheBxw/D52uZCGQKIAn02VhiH0E+iP 6pMxxFeMon6xiCDuANwQiS1sFy0nwhtp26UCbNXlgI1q7u8CQ3XUojj0asBKFKwdie6c db/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ThNtILi765lbp3SzlSAFTSTLNPIqAjJN6XZdP5kqwe4=; b=kOwmzO6YrOUGgtFCid8c40SKLhXGSKckH0ej6clF9c/ToE7zCMcN6JjdF6qVh0MJwl LttlWpAyKLFPO3jRHBKV4a+vXWpLVoSDUGqgJ5gY5hWk/FB4mZi71gmaa7PgDnrGcwA8 2MimxBU9pJj6eEvO+GBlvFX9YEU8xZE0+q9nSZHb7m7nboePSzVWdi4bAJw7GzGd3NUr 940cEm/i2W4hPah5xEqmh2PpVMEMLI64F70rdXdnY7T3cT6mhZ59pTBuQsHUfqtkU0m9 daVq8dj4NFoPODtowFVuPW09rtwZAKU5dPikJJHlVuW+PxrYWJtGj43GEphOV/1YER1j KcOQ== X-Gm-Message-State: AOAM5316cQEEeWeomDNsZr7UXIyOn5FuLN1xokOwg5Nrqk14RxOFR3IP 29EQau7QzauPZuEzY/Q2+UlgZbUdYF2OwpHF7tw= X-Google-Smtp-Source: ABdhPJyuGedBmw52IFnFPULMJbgEwIR5it6Sz82t2/aOeyTr+zlaGYqhPCuAgLmvpIseWUQUr/zjqBTTZK+CXJ+lysc= X-Received: by 2002:a9d:6e8d:: with SMTP id a13mr7958494otr.287.1615661773283; Sat, 13 Mar 2021 10:56:13 -0800 (PST) In-Reply-To: <834khfhsmf.fsf@gnu.org> 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:202286 Archived-At: On Sat, Mar 13, 2021 at 5:26 PM Eli Zaretskii wrote: > > From: Pip Cet > > Date: Sat, 13 Mar 2021 17:10:08 +0000 > > Cc: Andrea Corallo , 47067@debbugs.gnu.org > > > > > > It's a long function, that might not have been enough. > > > > > > But since I found those two, everything before that is irrelevant, > > > right? > > > > Assuming all code paths hit these insns, yes. > > Then tell me how far back to go. > > Or, better yet, perhaps there's a way of displaying that code in C? Sure! Put the defun in a file called breakage.el. Then open emacs -Q in GDB and evaluate (require 'comp) (let ((comp-debug 3) (comp-verbose 3)) (load (native-compile "breakage.el"))) Then set a GDB breakpoint on F632d626567696e6e696e672d6f662d73746174656d656e742d31_c_beginning_of_statement_1_0, continue and evaluate (c-beginning-of-stmt-1) In GDB, you should now see the "source" code interspersed with the disassembly (if you have that enabled). I'd suggest to try disass/rs next and post the entire output, but you know your way around gdb much better than I do :-) The code you're looking for looks like this: 7961 /* calling subr: < */ 7962 frame[(int)0] = freloc->R3c__0 ((long long)2, (&frame[(int)0])); 0x00007fffec660f41 <+3409>: 4c 89 f6 mov %r14,%rsi 0x00007fffec660f44 <+3412>: bf 02 00 00 00 mov $0x2,%edi (but different, of course, because of the different architecture). > > Since mingw (at least the version I could find) declares setjmp with > > the "returns_twice" attribute, I'm assuming their implementation is > > not such that you can call it through a function pointer. > > I think you are looking at a 64-bit MinGW64, but I'm out of my depth > here anyway. If you want to pursue this further, the implementation I > use is in MSVCRT.DLL. Thanks! Pip