all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 15364@debbugs.gnu.org
Subject: bug#15364: 24.3; git emacs segfault on loading local wubi phrases
Date: Fri, 13 Sep 2013 17:22:11 +0800	[thread overview]
Message-ID: <87d2odf54s.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <834n9pi0kh.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Sep 2013 11:32:30 +0300")


On 09/13/13 16:32 PM, Eli Zaretskii wrote:
>> From: Eric Abrahamsen <eric@ericabrahamsen.net>
>> Date: Fri, 13 Sep 2013 15:35:58 +0800
>> 
>> I'm sending this report from emacs as it exists in archlinux's package
>> system, but it's actually for the git version of emacs (updated "Fri Sep
>> 13 15:21:28 2013")
>> 
>> I find that git emacs segfaults when loading a local phrase file for the
>> wubi input method, which is an alternate Chinese-language input method
>> you can find here: http://daiyuwen.freeshell.org/gb/wubi/wubi.html
>
> That page is in Chinese, and I cannot find a link there for
> downloading the input method.  Can you post a download link?

Sorry! There's the code.

http://daiyuwen.freeshell.org/gb/wubi/wubi.tar.gz

cg>> Loading the library works fine, but wubi provides for keeping your own
>> file of input phrases, so as to customize input. In my case the file
>> looks like this:
>> 
>> ;;;; Generated by Wubi input method. Please don't modify it.
>> 
>> (wubi-batch-add nil
>> "派出所"
>> "外国人"
>> "工期"
>> ...
>> "心里有数"
>> "纠结"
>> "拍摄"
>> 
>> )
>> 
>> The file is 12,934 lines long, all of those lines contained within the
>> one sexp.
>
> Please also post the minimal phrase file that still causes the crash.

It seems the problem is more complicated. You're supposed to put your
custom phrases in a plain text file, one phrase per line, which file is
pointed to by the variable wubi-phrases-file. When
`wubi-load-local-phrases' is called, it turns that text file into an .el
file, the name of which is pointed to by wubi-phrases-file-el. So far as
I can tell, emacs segfaults when these two files have the same name, ie:

(setq wubi-phrases-file "~/.emacs.d/my-wubi-phrases.txt")
(setq wubi-phrases-file-el "~/.emacs.d/my-wubi-phrases.el")

I moved "my-wubi-phrases.el" to "my-wubi-phrases-short.el", to start
testing if a shorter file would prevent the crash, only to find that all
it took was re-naming the file to allow it to load safely.

So now it seems highly likely that the crash I thought I was
experiencing isn't at all the one I'm actually experiencing. I'll
happily do whatever's necessary, but I have the sense I'm barking up the
wrong tree.

>> Anyway, I hope that's enough. Feel free to contact me if more info is
>> necessary.
>
> We also need the details of your Emacs version and its configuration,
> you can provide all that by using the report-emacs-bug command from
> the same Emacs binary which crashes.
>
> Thanks.

I'm still sending this email from the arch emacs binary, but here's the
data from report-emacs-bug from the git emacs that crashes:


In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.8.4)
 of 2013-09-13 on pellet
Windowing system distributor `The X.Org Foundation', version 11.0.11402000
Configured using:
 `configure --with-gif=no'

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t - e m a c s <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)





  reply	other threads:[~2013-09-13  9:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-13  7:35 bug#15364: 24.3; git emacs segfault on loading local wubi phrases Eric Abrahamsen
2013-09-13  8:32 ` Eli Zaretskii
2013-09-13  9:22   ` Eric Abrahamsen [this message]
2013-09-13  9:43     ` Eli Zaretskii
2013-09-14  8:47       ` Eric Abrahamsen
2013-09-14 10:05         ` Eli Zaretskii
2019-08-28 15:17           ` Lars Ingebrigtsen
2019-08-28 15:48             ` 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=87d2odf54s.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=15364@debbugs.gnu.org \
    --cc=eliz@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.