From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Justin Schell Newsgroups: gmane.emacs.bugs Subject: bug#45701: 28.0.50; [feature/native-comp] (33b8ce8) `M-x report-emacs-bug` error: "Wrong type argument: stringp, nil" Date: Mon, 8 Feb 2021 12:57:13 -0800 Message-ID: References: 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="35104"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45701@debbugs.gnu.org, contact@jimeh.me To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 00:36:00 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 1l9G4V-0008z9-OT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 00:35:59 +0100 Original-Received: from localhost ([::1]:40246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9G4T-00089T-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Feb 2021 18:35:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Dbe-0000OB-74 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 15:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9Dbd-0002aB-Vo for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 15:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9Dbd-00040o-S7 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 15:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Justin Schell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Feb 2021 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45701 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 45701@debbugs.gnu.org, Jim Myhrberg Original-Received: via spool by submit@debbugs.gnu.org id=B.161281787115401 (code B ref -1); Mon, 08 Feb 2021 20:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2021 20:57:51 +0000 Original-Received: from localhost ([127.0.0.1]:52022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9DbS-00040L-Lb for submit@debbugs.gnu.org; Mon, 08 Feb 2021 15:57:50 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9DbP-00040C-R1 for submit@debbugs.gnu.org; Mon, 08 Feb 2021 15:57:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9DbO-0008U6-Eq for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 15:57:46 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:33059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9DbK-0002Rh-Ei for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 15:57:45 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id a25so19169290ljn.0 for ; Mon, 08 Feb 2021 12:57:41 -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=fwOxq6UOsv6J/wwy/0hgmgtdLe3xltttcq3TnQF5xJI=; b=rDaYGM0x3FJJos/sbhX6xL/p7wI7djuuTT+zBHdmpiTOttRaqfx4i2HlTT893SRzL/ EcBbRy9t4JRg65jUiTWHwWgHeM4X5JDrUrwZZSsD91Kz3d5E3IPqxD1wml86Y1CBclZY XAG198qbzGO/nJQpwK5u1dGThxarzgUQmlk8Fautsxg3tca9R0dzIVOOskoe9GYjyy8S Fhhpd1rD3Lc7+iFiAqklkw90Ylfqti3B9Whdaqo1ERLcvi3jzD5OfYBjhSj/gy0EK25w bNpFLz5RFLRQZPyQbnV9gWOtREMot6J4GLOFVIGHec0XehgJNXTnQ2b/l6IxOQyjUoa+ uaSQ== 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=fwOxq6UOsv6J/wwy/0hgmgtdLe3xltttcq3TnQF5xJI=; b=sIIc+IFasM6DQHgq1LSqFOPPxIEcxYH1GwwouVDzRFgCxwQZRWuDRw7FU+eyrEte7c PRNjCkyWgTJ+czi513xLEhKcu91m79kAagByX2uSSpyFcejN3LW2KfgCiyN2FIFkPE47 sRmWjcbkdztNnSjclODOfKNsvJtjDNJrHAUuuCJ7lX8GG1K8/iUV0xKSIA5mYpqEGMH+ uPznyjfpqEvQwCxoOeglJQKLrwzcPWuCvV7CR0TYuISJBrMP66wXmwGPFdo8OEknUcUo QgiVcD0Q/LuuouuXKDYceNT4eljdoAVhoAeIjoLKO8XauK/dZybUX6MU4XzGxsxfbUuT TkRA== X-Gm-Message-State: AOAM532+Yc3+DaU/pLh+vdGU4wrMHGPleepmpDgvQmdg8lMz0CReRZsq w/gZ5t4YcGi4f/vBiTMakSOhnqnAm2JqEhxIv7Y= X-Google-Smtp-Source: ABdhPJwRKD1TvNT7X/Q+Hz49C2e+y/yv+pIuNIcbZItb79IIN5vM2JkejA1aUj+WTl+iWSgfstUym7UHRiqrJxYuwvE= X-Received: by 2002:a2e:980a:: with SMTP id a10mr12335074ljj.280.1612817859505; Mon, 08 Feb 2021 12:57:39 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=justinmschell@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:199638 Archived-At: Also, here are backtraces from the first two times that the `wrong_type_argument` breakpoint was hit during startup: ``` Thread 2 hit Breakpoint 2, wrong_type_argument (predicate=XIL(0xd9), value=make_fixnum(35183774783506)) at data.c:143 143 xsignal2 (Qwrong_type_argument, predicate, value); (gdb) bt #0 wrong_type_argument (predicate=XIL(0xd9), value=make_fixnum(35183774783506)) at data.c:143 #1 0x0000000100222b2e in dump_discard_mem (mem=0x145bcca3d, size=5464967736) at pdumper.c:4650 #2 0x00007ffeefbfed20 in ?? () #3 0x0000000145bfd225 in ?? () #4 0x00007ffeefbfed10 in ?? () #5 0x000000010021f5a9 in HASH_VALUE (h=0x145bcca3d, idx=5464967736) at ./lisp.h:2380 #6 0x0000000145bcca38 in ?? () #7 0x0000000145bcca3d in ?? () #8 0x00007ffeefbfed40 in ?? () #9 0x000000010021a271 in thaw_hash_tables () at pdumper.c:5671 Backtrace stopped: frame did not save the PC (gdb) c Continuing. Thread 2 hit Breakpoint 2, wrong_type_argument (predicate=XIL(0x447), value=XIL(0x145bcca38)) at data.c:143 143 xsignal2 (Qwrong_type_argument, predicate, value); (gdb) bt #0 wrong_type_argument (predicate=XIL(0x447), value=XIL(0x145bcca38)) at data.c:143 #1 0x0000000100222b2e in dump_discard_mem (mem=0x145b7e085, size=5464645760) at pdumper.c:4650 #2 0xfffffffffffffffe in ?? () #3 0x0000000145bfd225 in ?? () #4 0x00007ffeefbfed10 in ?? () #5 0x000000010021f5a9 in HASH_VALUE (h=0x145b7e085, idx=5464645760) at ./lisp.h:2380 #6 0x0000000145b7e080 in ?? () #7 0x0000000145b7e085 in ?? () #8 0x00007ffeefbfed40 in ?? () #9 0x000000010021a271 in thaw_hash_tables () at pdumper.c:5671 Backtrace stopped: frame did not save the PC ``` On Mon, Feb 8, 2021 at 12:49 PM Justin Schell wrote: > > > I think the idea would be ~ to: > > > > - compile with debug symbols > > > > - start gdb loading emacs > > > > - source .gdbinit > > > > - add a breakpoint in 'wrong_type_argument' > > > > - run Emacs and let the error happen > > > > - At this point gdb should take control and you should be able to type > > 'bt' to obtain and report the backtrace > > Hi Andrea, > > So, I was able to build emacs with debug symbols and run via gdb as > directed above, but unfortunately, gdb doesn't hit the breakpoint when > I run `M-x report-emacs-bug`. gdb does break quite a few times (770 > times, to be exact) on `wrong_type_argument` during startup, though. I > looked at the emacs source a bit to try to put a breakpoint somewhere > that would be more fruitful, but I didn't really see where I would do > so. > > I did a screen capture of my reproducing the issue on this thread. > Perhaps you could take a look and would have an idea for what I might > be doing wrong or what to try next. See > https://github.com/schellj/emacs-native-comp-debug/blob/wrong-type-argument/emacs-native-comp-wrong-type-argument.mov > > Thanks, > Justin