all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Sascha Wilde <wilde@sha-bang.de>,
	Juanma Barranquero <lekktu@gmail.com>,
	ams@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: emacs from head segfaults when run with -nw
Date: Mon, 19 Apr 2010 15:31:57 +0300	[thread overview]
Message-ID: <83iq7nbp36.fsf@gnu.org> (raw)
In-Reply-To: <m2zl116hjj.fsf@sha-bang.de>

> From: Sascha Wilde <wilde@sha-bang.de>
> Date: Sat, 17 Apr 2010 20:49:20 +0200
> Cc: ams@gnu.org, emacs-devel@gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> wrote:
> >> From: Sascha Wilde <wilde@sha-bang.de>
> [...]
> > Thanks.  Can you show more of the backtrace?  I'd like to see if we
> > are marking a char-table here.
> >
> >> If it helps I can make an unoptimized build and send more complete
> >> debugging output...
> >
> > It would certainly help, if the unoptimized build crashes as well.
> 
> Took me some time to get the segfault, but finally I succeeded...  :-) 
> Ok, here we go:
> 
> Program received signal SIGSEGV, Segmentation fault.
> mark_object (arg=17) at /home/wilde/src/stdsrc/emacs/emacs-wilde.hg/src/alloc.c:5464
> 5464		if (STRING_MARKED_P (ptr))
> (gdb) bt
> #0  mark_object (arg=17) at /home/wilde/src/stdsrc/emacs/emacs-wilde.hg/src/alloc.c:5464
> #1  0x081c4da8 in mark_object (arg=139549338) at /home/wilde/src/stdsrc/emacs/emacs-wilde.hg/src/alloc.c:5572

I think I finally nailed it.  Thanks to all who offered ideas and
backtraces, and suffered silently while I was looking for the reason.

And yes, it was my fault :-(

Please try again and see if the crashes are gone now.  They are for
me, on MS-Windows.

For the record, here's how I found the culprit:

  . Start a new Emacs session under GDB with "start -Q -nw".

  . When it stopped at the beginning of `main', compare the contents
    of the corrupted entry in the offending char-table between the
    crashed and the new sessions.  Notice that the value in the new
    session was correct (nil).  (As I reported earlier, the value at
    the same address in the crashed session was like nil, but with one
    extra bit set.)

  . Put a hardware watchpoint on the value that was corrupted in the
    crashed session, and run the newly started session.  When the
    watchpoint was triggered, GDB had my bug staring at me.  The rest,
    as they say, is in the history DAG ;-)




  reply	other threads:[~2010-04-19 12:31 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-02 19:02 emacs from head segfaults when run with -nw Alfred M. Szmidt
2010-04-02 20:49 ` Dan Nicolaescu
2010-04-02 23:07   ` Juri Linkov
2010-04-02 23:48     ` Dan Nicolaescu
2010-04-03 10:42       ` Alfred M. Szmidt
2010-04-03 19:19         ` Dan Nicolaescu
2010-04-03 22:12       ` Juri Linkov
2010-04-03 23:56         ` Ken Hori
2010-04-04 11:06           ` Juri Linkov
2010-04-04  8:10         ` Jan Djärv
2010-04-05 17:22         ` Dan Nicolaescu
2010-04-14 15:05         ` Randal L. Schwartz
2010-04-18  2:35           ` Randal L. Schwartz
2010-04-18  3:05             ` Randal L. Schwartz
2010-04-19  2:07               ` bug#5946: Glenn Morris
2010-04-19  3:17                 ` bug#5946: Juanma Barranquero
2010-04-19  6:20                   ` bug#5946: Glenn Morris
2010-04-19  7:03                   ` bug#5946: Eli Zaretskii
2010-04-19  8:13                     ` bug#5946: Juanma Barranquero
2010-04-19  8:26                       ` bug#5946: Juanma Barranquero
2010-04-05  9:04 ` emacs from head segfaults when run with -nw Eli Zaretskii
2010-04-05 13:34   ` Alfred M. Szmidt
2010-04-05 14:06     ` Eli Zaretskii
2010-04-05 15:03       ` Alfred M. Szmidt
2010-04-05 15:24         ` Eli Zaretskii
2010-04-06 21:08           ` Alfred M. Szmidt
2010-04-07  3:06             ` Eli Zaretskii
2010-04-08 20:03               ` Alfred M. Szmidt
2010-04-05 16:49       ` Eli Zaretskii
2010-04-05 16:59         ` Juri Linkov
2010-04-05 21:39           ` Eli Zaretskii
2010-04-06  0:41             ` Stefan Monnier
2010-04-05 13:52   ` Stefan Monnier
2010-04-05 14:17     ` Eli Zaretskii
2010-04-05 20:00       ` Sean Sieger
2010-04-05 21:49         ` Eli Zaretskii
2010-04-06 18:49       ` Andreas Schwab
2010-04-07  3:25         ` Eli Zaretskii
2010-04-07  3:57           ` Stefan Monnier
2010-04-07  5:35             ` Eli Zaretskii
2010-04-07 11:11               ` Juanma Barranquero
2010-04-09 11:10               ` Eli Zaretskii
2010-04-10  1:25                 ` Stefan Monnier
2010-04-05 14:11   ` Chong Yidong
2010-04-05 14:19     ` Eli Zaretskii
2010-04-16 14:18   ` Juanma Barranquero
2010-04-16 21:06     ` Eli Zaretskii
2010-04-16 23:18       ` Juanma Barranquero
2010-04-17  7:55         ` Eli Zaretskii
2010-04-17 16:19           ` Juanma Barranquero
2010-04-17 16:37             ` Eli Zaretskii
2010-04-17 19:12               ` Juanma Barranquero
2010-04-17 19:18                 ` Eli Zaretskii
2010-04-17 19:20                   ` Juanma Barranquero
2010-04-17 21:02                     ` Eli Zaretskii
2010-04-16  8:26 ` Sascha Wilde
2010-04-16 21:01   ` Eli Zaretskii
2010-04-17 10:28     ` Sascha Wilde
2010-04-17 12:39       ` Eli Zaretskii
2010-04-17 18:49         ` Sascha Wilde
2010-04-19 12:31           ` Eli Zaretskii [this message]
2010-04-20 10:30             ` Sascha Wilde
2010-04-20 12:03               ` 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

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

  git send-email \
    --in-reply-to=83iq7nbp36.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=ams@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=wilde@sha-bang.de \
    /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.