unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: "Liang Wang" <netcasper@gmail.com>
Cc: Dan Nicolaescu <dann@ics.uci.edu>, emacs-devel@gnu.org
Subject: Re: annoying behavior of emacs --daemon
Date: Tue, 04 Nov 2008 22:49:18 +0900	[thread overview]
Message-ID: <buowsfjeh41.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <a161d0b60811040503v6eb5c78ak97fa96e8cbb8b5b6@mail.gmail.com> (Liang Wang's message of "Tue, 4 Nov 2008 21:03:49 +0800")

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

"Liang Wang" <netcasper@gmail.com> writes:
>> Hmm, it seems to segfault in xlib, though I'm not sure why.  I'm using
>> a gtk emacs; are you also?
>
> I got same problem.  And I found a patch at
> http://www.nabble.com/segfault-when-using-XIM-with-multi-tty-on-gnu-linux-td18966793.html.
>  It works for me.

Ah, that patch fixes the problem for me too!  Thank you!

[I've attached a version of the patch which applies correctly
(nabble mucks up the whitespace).]

-Miles


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch to fix xlib crash --]
[-- Type: text/x-diff, Size: 487 bytes --]

--- orig/src/xterm.c
+++ mod/src/xterm.c
@@ -8319,9 +8319,11 @@
 	XUnregisterIMInstantiateCallback (dpyinfo->display, dpyinfo->xrdb,
 					  NULL, EMACS_CLASS,
 					  xim_instantiate_callback, NULL);
-#endif /* not HAVE_X11R6_XIM */
+#else /* not HAVE_X11R6_XIM */
+      /* if we have X11R6 xim, this causes a double-free */
       if (dpyinfo->display)
 	XCloseIM (dpyinfo->xim);
+#endif /* not HAVE_X11R6_XIM */
       dpyinfo->xim = NULL;
       XFree (dpyinfo->xim_styles);
     }

[-- Attachment #3: Type: text/plain, Size: 127 bytes --]



-- 
`Suppose Korea goes to the World Cup final against Japan and wins,' Moon said.
`All the past could be forgiven.'   [NYT]

  reply	other threads:[~2008-11-04 13:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  5:48 annoying behavior of emacs --daemon Miles Bader
2008-11-04  6:34 ` Dan Nicolaescu
2008-11-04  7:28   ` Miles Bader
2008-11-04  8:55     ` Dan Nicolaescu
2008-11-04  9:47       ` Miles Bader
2008-11-04 13:03         ` Liang Wang
2008-11-04 13:49           ` Miles Bader [this message]
2008-11-04 16:48             ` Chong Yidong
2008-11-04 15:12         ` Dan Nicolaescu
2008-11-04 15:51           ` Miles Bader
2008-11-04  9:24     ` unclear [was: annoying] " Stephen J. Turnbull
2008-11-04 16:55       ` unclear Chong Yidong
2008-11-05 17:57         ` unclear Ulrich Mueller

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=buowsfjeh41.fsf@dhapc248.dev.necel.com \
    --to=miles@gnu.org \
    --cc=dann@ics.uci.edu \
    --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 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).