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 11:24:28 +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> 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="4154"; 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 12:26:12 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 1lL2PM-0000xR-2w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 12:26:12 +0100 Original-Received: from localhost ([::1]:34750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lL2PL-0003ce-60 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Mar 2021 06:26:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lL2PC-0003Zq-G7 for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 06:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lL2PC-0008Cx-65 for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 06:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lL2PC-0006ld-2n for bug-gnu-emacs@gnu.org; Sat, 13 Mar 2021 06:26:02 -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 11:26:02 +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.161563471325629 (code B ref 47067); Sat, 13 Mar 2021 11:26:02 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 13 Mar 2021 11:25:13 +0000 Original-Received: from localhost ([127.0.0.1]:59216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL2OO-0006fJ-Pp for submit@debbugs.gnu.org; Sat, 13 Mar 2021 06:25:13 -0500 Original-Received: from mail-oi1-f169.google.com ([209.85.167.169]:39432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL2OM-0006bj-Bd for 47067@debbugs.gnu.org; Sat, 13 Mar 2021 06:25:10 -0500 Original-Received: by mail-oi1-f169.google.com with SMTP id u62so13824937oib.6 for <47067@debbugs.gnu.org>; Sat, 13 Mar 2021 03:25:10 -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=OOP+7FK79zGU+pMOI4kB/BHiT+SC7uSuXmojUs9tGw8=; b=ndnYVJp1aaON0uOInFn0TJeEXbEcy5C0VahGWi0gsGWsv84AAxm2Glsw287AtJZegD THYN1uyLJ8VE10czQaGF3oxQ3//JzzXmy0MXjzpWyobhfuXZSbm4p1xbB4zsgY/M1Het /4Q7HqW9Co+JsaMr4arLneu/ng7x9Wna1rvG63Eb/zgo/B9H7fxsFC9IEE+NSMu4moNG dTQTinfKcrwKv/HtBW+YXZyD81nIatAMDOFVrcPHUb3EDkCLL/hABd+5AMiTOyI6OkIK f4s7zdnTGgZrZbpL1oowPSWuyc87ChUAElbVjtAH2QFevYedhlVkHHusMpn7N90y0hsT 6Sdg== 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=OOP+7FK79zGU+pMOI4kB/BHiT+SC7uSuXmojUs9tGw8=; b=fYCLv34RItYDb/PQ2fDS70Kh69D0gqB265ZnBLnjywSzn06dvGh4yOw79ShnnTAHOe xbbOvVjrrYXQ82mN2rQijpVj0lV5KQD9ciVdE018GHv8vG7FaMWOeiM1Ghf6hcBiSKFe 8cipVMHoFzy02EimrbAob956CVvFJayXK7FwGFG5T6zO7lA80RR0qe/kLmTX+jWxOdck gHib77PbxXu/pz3LSKtXO81MWwdXSPJO324q4O4H6wy19s1ydbl4tzPP3wlZrL3aWmFP opZLzsp5CnYAjVPkvX4oskoqsCMpqS96VXUyLje2AytIGIRTuXN/+GNWnAwKZmo/Egcc JcPg== X-Gm-Message-State: AOAM530BXCPROLAOxcgdxGwUoPxYMF7utm2X/UchFcoyHloglOVmObPV S5JHTRvaJFQXH2LhrGajWynBP2tIy1wEROM7WzM= X-Google-Smtp-Source: ABdhPJy2RF+pxxbttv5vYI2skkdIG+W3Ptm7p9Fd2WvAQ0uaPe7PdSMBr2H4BuIrgdbBFnRSzQwi8AjZBlaPIjJbzlw= X-Received: by 2002:aca:aad6:: with SMTP id t205mr12809598oie.122.1615634704648; Sat, 13 Mar 2021 03:25:04 -0800 (PST) In-Reply-To: <83tupfia1m.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:202258 Archived-At: On Sat, Mar 13, 2021 at 11:10 AM Eli Zaretskii wrote: > > From: Pip Cet > > Date: Sat, 13 Mar 2021 08:53:04 +0000 > > Cc: Andrea Corallo , 47067@debbugs.gnu.org > > > > It's c-beginning-of-statement-1 that I think is the immediate caller. > > It's nowhere in the C backtrace, only its caller But it was in one of the previous backtraces? > c-font-lock-cut-off-declarators is. And I'm not sure we can trust the > C backtrace anyway, given its abnormalities that I cannot explain yet. Good point. > > Can you disassemble the function around 0x09c32285 (or, in another > > dump, whatever calls Flss), particularly the 256 bytes or so before > > that EIP? > > Below. The updated address for the caller of Flss is 0x09d82285, > which is not in any function whose name is known to GDB. That's normal, assuming you didn't compile with comp-debug > 0. > (gdb) disassemble 0x9d82100,+0x200 > Dump of assembler code from 0x9d82100 to 0x9d82300: > 0x09d82100: mov %edx,-0xe4(%ebp) > 0x09d82106: mov 0x9e87564,%edx > 0x09d8210c: mov %eax,-0xe0(%ebp) > 0x09d82112: mov -0x100(%ebp),%eax > 0x09d82118: mov %edx,-0xdc(%ebp) > 0x09d8211e: mov %eax,0x4(%esp) > 0x09d82122: call *0xd84(%ebx) > 0x09d82128: mov %eax,-0xf0(%ebp) > 0x09d8212e: mov %edx,-0xec(%ebp) > 0x09d82134: mov %eax,(%esp) > 0x09d82137: mov %edx,0x4(%esp) > 0x09d8213b: call *0xad8(%ebx) > 0x09d82141: mov %eax,-0xf0(%ebp) > 0x09d82147: mov %edx,-0xec(%ebp) > 0x09d8214d: call *0xab0(%ebx) > 0x09d82153: jmp 0x9d80934 > 0x09d82158: lea 0x0(%esi,%eiz,1),%esi > 0x09d8215f: nop > 0x09d82160: mov 0x9e87b50,%eax > 0x09d82165: mov 0x9e87b54,%edx > 0x09d8216b: mov %eax,-0xf0(%ebp) > 0x09d82171: mov 0x9e87aa0,%eax > 0x09d82176: mov %edx,-0xec(%ebp) > 0x09d8217c: mov 0x9e87aa4,%edx > 0x09d82182: mov %eax,(%esp) > 0x09d82185: mov %edx,0x4(%esp) > 0x09d82189: call *0x1358(%ebx) > 0x09d8218f: movl $0x4,(%esp) > 0x09d82196: mov %eax,-0xe8(%ebp) > 0x09d8219c: mov 0x9e875f0,%eax > 0x09d821a1: mov %edx,-0xe4(%ebp) > 0x09d821a7: mov 0x9e875f4,%edx > 0x09d821ad: mov %eax,-0xe0(%ebp) > 0x09d821b3: mov %eax,-0xd8(%ebp) > 0x09d821b9: mov -0x100(%ebp),%eax > 0x09d821bf: mov %edx,-0xdc(%ebp) > 0x09d821c5: mov %edx,-0xd4(%ebp) > 0x09d821cb: mov %eax,0x4(%esp) > 0x09d821cf: call *0xd84(%ebx) > 0x09d821d5: mov 0x9e8a750,%ecx > 0x09d821db: mov %eax,-0xf0(%ebp) > 0x09d821e1: mov (%ecx),%ecx > 0x09d821e3: mov %edx,-0xec(%ebp) > 0x09d821e9: mov 0x54(%ecx),%esi > 0x09d821ec: mov 0x20(%esi),%esi > 0x09d821ef: mov %esi,0x54(%ecx) > 0x09d821f2: jmp 0x9d808b2 > 0x09d821f7: lea 0x0(%esi,%eiz,1),%esi > 0x09d821fe: xchg %ax,%ax > 0x09d82200: mov 0x9e87950,%eax > 0x09d82205: mov 0x9e87954,%edx > 0x09d8220b: mov %eax,(%esp) > 0x09d8220e: mov %edx,0x4(%esp) > 0x09d82212: call *0x1358(%ebx) > 0x09d82218: mov %edx,-0xec(%ebp) > 0x09d8221e: or %eax,%edx > 0x09d82220: mov %eax,-0xf0(%ebp) > 0x09d82226: je 0x9d82308 > 0x09d8222c: mov 0x9e87690,%eax > 0x09d82231: mov 0x9e87694,%edx > 0x09d82237: mov %eax,(%esp) > 0x09d8223a: mov %edx,0x4(%esp) > 0x09d8223e: call *0x1358(%ebx) > 0x09d82244: mov %eax,-0xf0(%ebp) > 0x09d8224a: mov 0x9e875a8,%eax > 0x09d8224f: mov %edx,-0xec(%ebp) > 0x09d82255: mov 0x9e875ac,%edx > 0x09d8225b: mov %eax,(%esp) > 0x09d8225e: mov %edx,0x4(%esp) > 0x09d82262: call *0x1358(%ebx) > 0x09d82268: mov %edi,0x4(%esp) > 0x09d8226c: mov %eax,-0xe8(%ebp) > 0x09d82272: mov %edx,-0xe4(%ebp) > 0x09d82278: movl $0x2,(%esp) > 0x09d8227f: call *0x1318(%ebx) > 0x09d82285: mov %edx,-0xec(%ebp) <<<<<<<<<<<<<<<<<<<< So EDI is bunk at this point. Can you go back a bit further to where it's initialized? > (gdb) info registers > eax 0x30 48 > ecx 0x6a54fe8 111497192 > edx 0x8 8 > ebx 0x187b8c0 25671872 > esp 0x826650 0x826650 > ebp 0x826778 0x826778 > esi 0x4002d2b0 1073926832 > edi 0x28 40 That value should be between 0x826650 and 0x826778. Pip