all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alp Aker <alptekin.aker@gmail.com>
To: Liang Wang <netcasper@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, cyd@gnu.org, emacs-devel@gnu.org
Subject: Re: crash on MacOSX
Date: Sat, 18 Aug 2012 21:40:21 -0400	[thread overview]
Message-ID: <CACxch4qke-OGqER__5eHYP1-ufqqgUaca0hcPhxVK1c=8cYqsg@mail.gmail.com> (raw)
In-Reply-To: <CAO+NnCZBvTsXVd=QNwSK6wwbzsbjSwa8d9Za1jPAPxNxaNqNQA@mail.gmail.com>

> This bug is not always reproducible when I debug it inside gdb.
[...]
> There are two ways to work around this bug.  One is to revert r109641
[...]
> I'm not sure if it is related to this patch directly.  Since, the
> other way is to compile nsfont.m with -g3 -O0.
[..]
> I tried ./configure --with-ns CC=clang LD=clang.  And then I don't see
> this problem.  It could be a compiler bug.

One problem with r109641 that *might* explain your observations is
that it introduced code that initialized a static string using a char
array that wasn't null terminated.  This would result in the string's
containing an unexpected number of extra characters (possibly
non-ascii, as well), but the number and identity of the unexpected
chars would vary between emacs instances. Compiling with -g3 -O0,
however, leads to the same extra chars appearing in the string across
different invocations of emacs, and when compiling with Clang the
string has only the expected characters.

This might not explain the exception you're seeing (there are likely
other issues with 109641; e.g., the #ifdef NS_IMPL_COCOA portion of
ns_ascii_average_width is, I'm fairly sure, incorrect, but I haven't
sorted out yet what the correct thing for it to do is).  But please
try building 109677 and see if that fixes the problem for you.



  reply	other threads:[~2012-08-19  1:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18  4:35 crash on MacOSX Liang Wang
2012-08-18 10:33 ` Liang Wang
2012-08-18 11:33   ` Eli Zaretskii
2012-08-18 12:00     ` Liang Wang
2012-08-19  1:40       ` Alp Aker [this message]
2012-08-19  3:13         ` Liang Wang
     [not found]       ` <CACxch4qke-OGqER@mail.gmail.com>
2012-08-20 16:37         ` Adrian Robert
2012-08-18 12:32 ` Liang Wang

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='CACxch4qke-OGqER__5eHYP1-ufqqgUaca0hcPhxVK1c=8cYqsg@mail.gmail.com' \
    --to=alptekin.aker@gmail.com \
    --cc=cyd@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=netcasper@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 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.