From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Error with -O3 but not -O2: "Wrong type argument: listp".
Date: Sun, 29 Jan 2006 19:57:33 -0500 [thread overview]
Message-ID: <E1F3NML-0000R2-IC@fencepost.gnu.org> (raw)
In-Reply-To: <7wy810kq79.fsf@ece.lsu.edu> (message from David Koppelman on Sat, 28 Jan 2006 15:17:14 -0600)
I've encountered errors in temacs, the same one described by Clemens
Schueller, when make bootstrap is run with "-O3" optimization; -O0,
-O1, and -O2 work fine. The errors vary with build options but they
all start with "Wrong type argument: listp":
Wrong type argument: listp, -134393892
Wrong type argument: listp, 0
Wrong type argument: listp, [-134218836 [-134218836 #0 gmake[2]: *** [bootstrap-emacs] Segmentation fault
Wrong type argument: listp, []
The first step is to run under GDB with a breakpoint at
Fsignal and see where the error is signaled. Then just keep
debugging, tracing things back till you see what caused the
behavior.
What makes this hard is that the bug may not be in the Emacs sources.
It could be that some code was miscompiled.
I can try compiling at -O2 and try out one of the -O3 optimizations at
a time, if that would help.
As evidence, it is unlikely to prove anything. There's no chance
anyone could guess which code is miscompiled just by knowing which
optimization did it. You will still need to find the miscompiled
line by debugging.
The only way that this is likely to help
is if you can turn off some optimization
that impedes understanding of the machine code.
Having it out of the way would make the job easier.
next prev parent reply other threads:[~2006-01-30 0:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-28 21:17 Error with -O3 but not -O2: "Wrong type argument: listp" David Koppelman
2006-01-29 4:50 ` Eli Zaretskii
2006-01-29 11:47 ` Romain Francoise
2006-01-29 19:25 ` Xavier Maillard
2006-01-29 12:46 ` Andreas Schwab
2006-01-29 18:12 ` David Koppelman
2006-01-30 18:46 ` Richard M. Stallman
2006-01-30 0:57 ` Richard M. Stallman [this message]
2006-01-30 15:58 ` David Koppelman
2006-01-30 19:21 ` Eli Zaretskii
2006-01-30 23:25 ` Richard M. Stallman
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=E1F3NML-0000R2-IC@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/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.