unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: jorgen.schaefer@gmail.com, 21666@debbugs.gnu.org
Subject: bug#21666: 25.0.50; Random segfaults
Date: Sat, 17 Oct 2015 11:06:34 +0300	[thread overview]
Message-ID: <83vba55379.fsf@gnu.org> (raw)
In-Reply-To: <56217A1C.4010206@cs.ucla.edu>

> Cc: jorgen.schaefer@gmail.com, 21666@debbugs.gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Fri, 16 Oct 2015 15:28:44 -0700
> 
> On 10/16/2015 02:03 AM, Eli Zaretskii wrote:
> > Do I read the backtrace correctly to indicate that Fabs was called
> > with an argument that is a symbol, not a number?
> 
> No, Fabs's argument is 95, which means its tag is 7, which is 
> Lisp_Float. Applying XFLOAT to 95 yields (struct Lisp_Float *) 0x58, 
> which is not a valid pointer.
> 
> The new backtrace contains a call to Fmapcar, so it could well be that 
> the problem is mapcar-related. However, my hypothesis does not look 
> right, because this code has been patched so that sa_must_free is false, 
> which means mapcar's temporary array of Lisp_Object values is allocated 
> on the C stack and not via malloc. I'm afraid this means I am at a loss.

Stack corruption might be caused by overrunning the bounds of an
automatic array, or by calling a function that overwrites the bounds
of its array argument.  Maybe using some debugging libraries or GCC
options for these problems could catch the bad code?

Another idea is to look at values in addresses adjacent to the one
where this Lisp_Float was stored.  0x58 is a code of an ASCII
character (and so is 95 = 0x5F), so perhaps we have some ASCII text
around there.  If so, and if we can recognize that text, that could
give us some hints as to where to look for the villain.





  reply	other threads:[~2015-10-17  8:06 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-11  6:50 bug#21666: 25.0.50; Random segfaults Jorgen Schaefer
2015-10-12  0:30 ` Paul Eggert
2015-10-13 11:50 ` Jorgen Schaefer
2015-10-13 16:09   ` Paul Eggert
2015-10-15 11:05     ` Jorgen Schäfer
2015-10-16  8:03       ` Jorgen Schäfer
2015-10-16  8:05         ` Paul Eggert
2015-10-16  9:03           ` Eli Zaretskii
2015-10-16 22:28             ` Paul Eggert
2015-10-17  8:06               ` Eli Zaretskii [this message]
2015-10-23  9:41           ` Jorgen Schäfer
2015-10-23 10:04             ` Eli Zaretskii
2015-10-23 10:26               ` Eli Zaretskii
     [not found] ` <handler.21666.B.144458332816487.ack@debbugs.gnu.org>
2015-11-29 19:13   ` bug#21666: Acknowledgement (25.0.50; Random segfaults) Jorgen Schäfer
2016-03-09 10:14 ` bug#21666: Bug is indeed undo-list and GC related Jorgen Schäfer
2016-03-09 15:15   ` Eli Zaretskii
2016-03-09 15:21     ` Jorgen Schäfer
2016-03-09 15:43       ` Phillip Lord
2016-03-09 16:37       ` Eli Zaretskii
2016-03-09 16:46         ` Jorgen Schäfer
2016-03-12 14:43           ` Jorgen Schäfer
2016-03-12 16:22             ` Eli Zaretskii
2016-03-12 23:44               ` Phillip Lord
2016-03-13  9:26                 ` martin rudalics
2016-03-13 19:58                   ` Phillip Lord
2016-03-13 20:12                     ` martin rudalics
2016-03-14 19:56 ` bug#21666: Correction, emacs-25 *is* broken Jorgen Schäfer
2016-03-14 20:09   ` Eli Zaretskii
2016-03-14 20:21     ` Jorgen Schäfer
2016-03-14 20:53       ` Eli Zaretskii
2016-03-14 20:28   ` Phillip Lord
2016-03-14 20:41     ` Jorgen Schäfer
2018-06-12 23:01   ` bug#21666: 25.0.50; Random segfaults Noam Postavsky
2018-06-13  7:52     ` Jorgen Schäfer
2018-06-13 10:31       ` Noam Postavsky
2016-03-14 21:20 ` bug#21666: Backtrace Jorgen Schäfer
2016-03-14 22:19   ` Jorgen Schäfer
2016-03-15  3:36     ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83vba55379.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21666@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=jorgen.schaefer@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).