From: Justin Schell <justinmschell@gmail.com>
To: Andrea Corallo <akrl@sdf.org>
Cc: 45701@debbugs.gnu.org, contact@jimeh.me
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 [thread overview]
Message-ID: <CAPDfab4KWoQNqxHf7PE1UFvp0772D8+3ekh_k+9+fx0GRPL4Kw@mail.gmail.com> (raw)
In-Reply-To: <CAPDfab4dsrXpMjJaszX1dHedEkOq9rm4TAuKQQFxKvBucGp3Tg@mail.gmail.com>
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 <justinmschell@gmail.com> 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
next prev parent reply other threads:[~2021-02-08 20:57 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-06 19:16 bug#45701: 28.0.50; [feature/native-comp] (33b8ce8) `M-x report-emacs-bug` error: "Wrong type argument: stringp, nil" Justin Schell
2021-01-06 19:28 ` Eli Zaretskii
2021-01-06 20:21 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-06 20:46 ` Justin Schell
2021-01-06 20:48 ` Jim Myhrberg
2021-01-06 23:54 ` Jim Myhrberg
2021-01-07 0:45 ` Justin Schell
2021-01-07 22:45 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-08 0:20 ` Justin Schell
2021-01-08 11:18 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-08 14:47 ` Justin Schell
2021-01-08 15:37 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-01 21:13 ` akrl--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-01 21:51 ` Justin Schell
2021-02-01 22:21 ` akrl--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-01 23:10 ` Justin Schell
2021-02-02 9:05 ` akrl--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-03 1:30 ` Justin Schell
2021-02-03 20:31 ` akrl--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-03 20:36 ` Justin Schell
2021-02-08 20:49 ` Justin Schell
2021-02-08 20:57 ` Justin Schell [this message]
2021-02-09 20:43 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-09 21:10 ` Justin Schell
2021-02-09 21:23 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-09 21:33 ` Justin Schell
2021-02-10 3:18 ` Jim Myhrberg
2021-02-10 4:40 ` Justin Schell
2021-02-10 9:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPDfab4KWoQNqxHf7PE1UFvp0772D8+3ekh_k+9+fx0GRPL4Kw@mail.gmail.com \
--to=justinmschell@gmail.com \
--cc=45701@debbugs.gnu.org \
--cc=akrl@sdf.org \
--cc=contact@jimeh.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.