all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Claus <claus.klingberg@gmail.com>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Recent trunk build crashes a lot under Win32
Date: Wed, 16 Apr 2008 09:41:23 +0900	[thread overview]
Message-ID: <wlej96pr64.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <jwv4pa3cauu.fsf-monnier+emacs@gnu.org>

>>>>> On Tue, 15 Apr 2008 13:01:40 -0400, Stefan Monnier <monnier@iro.umontreal.ca> said:

>> recent builds of current Emacs trunk (GNU Emacs 23.0.60.1
>> (i386-mingw-nt5.1.2600) of 2008-04-14) has been crashing a lot for
>> me (under Windows Vista SP1). In yesterdays build I get right after
>> startup upon trying to open any file:

> I fixed a bug recently in this code due to the fact that DECODE_FILE
> can call GC which can relocate Lisp strings's data.

I think you mean this part.

  1392		  if (!STRING_MULTIBYTE (tem))
  1393		    {
  1394		      /* FIXME: DECODE_FILE may GC, which may move SDATA(name),
  1395			 after which `nm' won't point to the right place any more.  */
  1396		      int offset = nm - SDATA (name);
  1397		      hdir = DECODE_FILE (tem);
  1398		      newdir = SDATA (hdir);
  1399		      nm = SDATA (name) + offset;
  1400		    }

But `nm' does not always point to the string data of `name' on some
platforms.

  1160	  nm = SDATA (name);
  1161	
  1162	#ifdef DOS_NT
  1163	  /* We will force directory separators to be either all \ or /, so make
  1164	     a local copy to modify, even if there ends up being no change. */
  1165	  nm = strcpy (alloca (strlen (nm) + 1), nm);

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp




  reply	other threads:[~2008-04-16  0:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-15 11:16 Recent trunk build crashes a lot under Win32 Claus
2008-04-15 11:54 ` Jason Rumney
2008-04-15 15:18   ` Claus
2008-04-15 16:24     ` Claus
2008-04-15 22:07       ` Jason Rumney
2008-04-15 15:07 ` Kyle M. Lee
2008-04-15 17:01 ` Stefan Monnier
2008-04-16  0:41   ` YAMAMOTO Mitsuharu [this message]
2008-04-18  2:26     ` Stefan Monnier
2008-04-19 20:28       ` Claus

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=wlej96pr64.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=claus.klingberg@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.