From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#15364: 24.3; git emacs segfault on loading local wubi phrases Date: Fri, 13 Sep 2013 17:22:11 +0800 Message-ID: <87d2odf54s.fsf@ericabrahamsen.net> References: <87txhpfa1t.fsf@ericabrahamsen.net> <834n9pi0kh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1379064134 32148 80.91.229.3 (13 Sep 2013 09:22:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2013 09:22:14 +0000 (UTC) Cc: 15364@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 11:22:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VKPZw-0007WZ-E8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 11:22:16 +0200 Original-Received: from localhost ([::1]:45603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKPZw-0000RW-0n for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 05:22:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKPZn-0000RF-Ee for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 05:22:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKPZi-0002G5-Ec for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 05:22:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKPZi-0002G1-Ac for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 05:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VKPZh-0000Ht-Vt for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 05:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2013 09:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15364-submit@debbugs.gnu.org id=B15364.13790640871068 (code B ref 15364); Fri, 13 Sep 2013 09:22:01 +0000 Original-Received: (at 15364) by debbugs.gnu.org; 13 Sep 2013 09:21:27 +0000 Original-Received: from localhost ([127.0.0.1]:60802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKPZ8-0000H8-7f for submit@debbugs.gnu.org; Fri, 13 Sep 2013 05:21:26 -0400 Original-Received: from mail-pb0-f48.google.com ([209.85.160.48]:44374) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKPZ5-0000Gn-5K for 15364@debbugs.gnu.org; Fri, 13 Sep 2013 05:21:23 -0400 Original-Received: by mail-pb0-f48.google.com with SMTP id ma3so987648pbc.35 for <15364@debbugs.gnu.org>; Fri, 13 Sep 2013 02:21:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=5jmj44o9mHlX6gn8Fi/jw4/EXB7bWVN8MUbr8MFU548=; b=dIX/QRK8MNuXLzv3CslY1VhkZ045HAWFq9bANVQJ/Pj9TZ+7QlTbfifviy+GDOnpNZ BPjJMjyRVptI2GU4ZmOeTHAiJPAu+8hLaapm0LNRPveScjbPNq0rz44BLRKIxMfr1UvL iKKcAp++jcem3iTNGnyf8rREiR8m10TmP2vgEdYB8gmrHD5rkU7jo1+48MtKIOigoukJ y+oW9eRsfxEkkAtysXJZar98gX0V0OEqvnmK0VJ2KQ4Ah3xA7dtSuCsxqKwjeUBf2jjN Oz6mZz0924wKeABa1Kql3iid+ahffvRPTwJZoNoem+ArxMk5Xv8+3ZyTxjKZL2+1bGyq FByQ== X-Gm-Message-State: ALoCoQlIyOcGXL2m63hEDK6wkBAVv4zEVj+7aPg1TLmzJ5cJyAey2jmmQKvDRmWQdcXHy25ubvpe X-Received: by 10.66.171.13 with SMTP id aq13mr14286693pac.30.1379064077053; Fri, 13 Sep 2013 02:21:17 -0700 (PDT) Original-Received: from localhost ([114.250.108.218]) by mx.google.com with ESMTPSA id hx1sm10407104pbb.35.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 02:21:15 -0700 (PDT) In-Reply-To: <834n9pi0kh.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Sep 2013 11:32:30 +0300") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78328 Archived-At: On 09/13/13 16:32 PM, Eli Zaretskii wrote: >> From: Eric Abrahamsen >> Date: Fri, 13 Sep 2013 15:35:58 +0800 >>=20 >> 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") >>=20 >> 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: >>=20 >> ;;;; Generated by Wubi input method. Please don't modify it. >>=20 >> (wubi-batch-add nil >> "=E6=B4=BE=E5=87=BA=E6=89=80" >> "=E5=A4=96=E5=9B=BD=E4=BA=BA" >> "=E5=B7=A5=E6=9C=9F" >> ... >> "=E5=BF=83=E9=87=8C=E6=9C=89=E6=95=B0" >> "=E7=BA=A0=E7=BB=93" >> "=E6=8B=8D=E6=91=84" >>=20 >> ) >>=20 >> 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=3Dno' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dfcitx 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 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)