all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Meyering <jim@meyering.net>
To: Emacs development discussions <emacs-devel@gnu.org>
Subject: latest-from-bzr segfaults easily
Date: Wed, 25 May 2011 13:41:18 +0200	[thread overview]
Message-ID: <87mxibc8ip.fsf@rho.meyering.net> (raw)

The latest is not usable for me on Fedora 15, x86_64.

How to reproduce using emacs built from the latest bzr
sources of about 5 hours ago:

First, get a cloned copy of the dash sources:
(you can probably use C source file, but this is particularly reliable)

   git clone git://git.kernel.org/pub/scm/utils/dash/dash.git && cd dash

Then, run this and type `C-s sh_':

  $ /p/p/emacs-2011-05-25.08h03/bin/emacs -q src/error.c
  Fatal error (11)zsh: abort (core dumped)


Here's a partial stack trace:

#0  0x00000000005591b6 in mark_object (arg=<optimized out>)
    at /h/j/w/co/emacs/trunk/src/alloc.c:5344
#1  0x000000000055b6c1 in mark_maybe_pointer (p=<optimized out>)
    at /h/j/w/co/emacs/trunk/src/alloc.c:4097
#2  mark_memory (offset=0, end=0x7fffffff1d10, start=<optimized out>)
    at /h/j/w/co/emacs/trunk/src/alloc.c:4147
#3  mark_stack () at /h/j/w/co/emacs/trunk/src/alloc.c:4395
#4  Fgarbage_collect () at /h/j/w/co/emacs/trunk/src/alloc.c:4982
#5  0x0000000000570f85 in Ffuncall (nargs=4, args=0x7fffffff1de0)
    at /h/j/w/co/emacs/trunk/src/eval.c:2975
#6  0x00000000005a947e in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=<optimized out>, nargs=<optimized out>, args=<optimized out>)
    at /h/j/w/co/emacs/trunk/src/bytecode.c:783
#7  0x0000000000570b99 in funcall_lambda (fun=16680341, nargs=0, arg_vector=
    0x7fffffff1fa8) at /h/j/w/co/emacs/trunk/src/eval.c:3272
#8  0x0000000000570f2b in Ffuncall (nargs=1, args=0x7fffffff1fa0)
    at /h/j/w/co/emacs/trunk/src/eval.c:3100
#9  0x00000000005a947e in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=<optimized out>, nargs=<optimized out>, args=<optimized out>)
    at /h/j/w/co/emacs/trunk/src/bytecode.c:783
#10 0x0000000000570b99 in funcall_lambda (fun=23897685, nargs=2, arg_vector=
    0x7fffffff2168) at /h/j/w/co/emacs/trunk/src/eval.c:3272
#11 0x0000000000570f2b in Ffuncall (nargs=3, args=0x7fffffff2160)
    at /h/j/w/co/emacs/trunk/src/eval.c:3100
#12 0x00000000005a947e in exec_byte_code (bytestr=<optimized out>,

in src/alloc.c,

   │5336      switch (SWITCH_ENUM_CAST (XTYPE (obj)))                           │
   │5337        {                                                               │
   │5338        case Lisp_String:                                               │
   │5339          {                                                             │
   │5340            register struct Lisp_String *ptr = XSTRING (obj);           │
   │5341            if (STRING_MARKED_P (ptr))                                  │
   │5342              break;                                                    │
   │5343            CHECK_ALLOCATED_AND_LIVE (live_string_p);                   │
  >│5344            MARK_INTERVAL_TREE (ptr->intervals);                        │
   │5345            MARK_STRING (ptr);                                          │

(gdb) p *ptr
$2 = {
  size = 6221254864074593878,
  size_byte = 6221254864074593878,
  intervals = 0x5656565656565656,
  data = 0x5656565656565656 <Address 0x5656565656565656 out of bounds>
}



             reply	other threads:[~2011-05-25 11:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 11:41 Jim Meyering [this message]
2011-05-25 16:23 ` latest-from-bzr segfaults easily Eli Zaretskii
2011-05-25 17:18 ` Paul Eggert
2011-05-25 18:48   ` Jim Meyering
2011-05-27  9:17     ` Jim Meyering

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=87mxibc8ip.fsf@rho.meyering.net \
    --to=jim@meyering.net \
    --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.