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 15:35:58 +0800 Message-ID: <87txhpfa1t.fsf@ericabrahamsen.net> 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 1379057778 28107 80.91.229.3 (13 Sep 2013 07:36:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2013 07:36:18 +0000 (UTC) To: 15364@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 09:36:21 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 1VKNvR-00034Z-1e for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 09:36:21 +0200 Original-Received: from localhost ([::1]:45237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNvQ-0007Zn-Ko for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 03:36:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNvH-0007Yh-NR for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:36:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKNv8-0007j5-P8 for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:36:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNv8-0007j0-L8 for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VKNv7-0005yD-Qo for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:36: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 07:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137905774922925 (code B ref -1); Fri, 13 Sep 2013 07:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2013 07:35:49 +0000 Original-Received: from localhost ([127.0.0.1]:60651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKNut-0005xe-Cg for submit@debbugs.gnu.org; Fri, 13 Sep 2013 03:35:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51620) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKNuo-0005xN-Cv for submit@debbugs.gnu.org; Fri, 13 Sep 2013 03:35:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKNud-0007bE-BD for submit@debbugs.gnu.org; Fri, 13 Sep 2013 03:35:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNud-0007bA-1L for submit@debbugs.gnu.org; Fri, 13 Sep 2013 03:35:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNuX-0007Vt-JK for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:35:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKNuS-0007aP-6G for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:35:25 -0400 Original-Received: from mail-pd0-f170.google.com ([209.85.192.170]:53658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKNuR-0007a3-EU for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 03:35:20 -0400 Original-Received: by mail-pd0-f170.google.com with SMTP id x10so902981pdj.15 for ; Fri, 13 Sep 2013 00:35:18 -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:subject:user-agent:date:message-id :mime-version:content-type:content-transfer-encoding; bh=C9JKJbh6S5IGrslasK63mSaxHDSPIQ6jmxAK+AG+oac=; b=CgiAwbSyzzzT2JuVI5zAu/R7Y0ZbsAlcIJDOBvleMOnENDHzNKXM2j4GYtRvCE3Kgc /sPmT3gqGLwMUqZKLdM3vU/0IzZoCDAADBOHilfYtg4N7VrcTcFmnriyPyftHR1A42BC RQv6Gb6LQNhiL9pP0ilbwepx1Q+mbB79TS7TqxpghBTBSamVuN46RMtr9WYV6v0Pkk/z eDdaHiHLOTOCuuL4A4UaFWrfXNUCiP6dUUtHEvqb3CkGtbEMWYKcj5OuDnLqRbHxUzw2 uya/+lpOqgfAfX4AXxt47OslHUwuOOjzq+5ME0Yj7+XItpmmHhDToShCL35WxSASlh6j BRtw== X-Gm-Message-State: ALoCoQlc8ca1F29aFV4qnZxhXKaJqhj0EeaSxggQJaIOSxuN5PRlPp4Gzb+Y+88w1cVH9kobRITj X-Received: by 10.66.170.138 with SMTP id am10mr13531299pac.51.1379057718176; Fri, 13 Sep 2013 00:35:18 -0700 (PDT) Original-Received: from localhost ([114.250.108.218]) by mx.google.com with ESMTPSA id im4sm9809077pbc.34.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 00:35:17 -0700 (PDT) User-Agent: Notmuch/0.16+60~gf3dc5be (http://notmuchmail.org) Emacs/24.3.1 (i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:78322 Archived-At: 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 I am using the most recent version of the library found at that link. 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 "=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" ) The file is 12,934 lines long, all of those lines contained within the one sexp. I'm not very familiar with the gdb debugger, but what I did was: 1. use my installed arch emacs as a "controlling" emacs 2. open a dired buffer on the src/ directory of the git emacs repository 3. run M-x gud-gdb 4. elect to run bootstrap-emacs with the -Q option 5. get the new emacs instance 6. load wubi, then load my local wubi files (by setting `wubi-phrases-file-el' and then calling (wubi-load-local-phrases)) 7. bootstrap-emacs hangs, segfault notice in the controlling emacs 8. call "backtrace" in the controlling emacs, get backtrace 9. post backtrace here: http://paste.lisp.org/+2Z7O I'll also post the full backtrace below, in case that's easier. Anyway, I hope that's enough. Feel free to contact me if more info is necessary. Thanks, Eric #0 0xb6788fa6 in free () from /usr/lib/libc.so.6 #1 0x081682db in xfree (block=3D) at alloc.c:694 #2 free_save_value (save=3D156799600) at alloc.c:3449 #3 0x08181847 in unbind_to (count=3D45, value=3D138824258) at eval.c:3350 #4 0x08181b34 in apply_lambda (fun=3D, args=3D) at eval.c:2974 #5 0x08181e04 in eval_sub (form=3Dform@entry=3D148591934) at eval.c:2301 #6 0x081a2ffd in readevalloop (readcharfun=3Dreadcharfun@entry=3D151547637= , stream=3Dstream@entry=3D0x0, sourcename=3D150342985, sourcename@entry=3D1= 50345625,=20 printflag=3Dfalse, unibyte=3Dunibyte@entry=3D138824258, readfun=3D13882= 4258, start=3D138824258, end=3D138824258) at lread.c:1876 #7 0x081a40ab in Feval_buffer (buffer=3D151547637, printflag=3D138824258, = filename=3D150345625, unibyte=3D138824258, do_allow_print=3D138824282) at l= read.c:1937 #8 0x08182a66 in Ffuncall (nargs=3D6, args=3D0xbfffeba4) at eval.c:2872 #9 0x081b4c63 in exec_byte_code (bytestr=3D0, vector=3D-1459075518, maxdep= th=3D24, args_template=3D138824258, nargs=3Dnargs@entry=3D0, args=3D0xbfffe= bac) at bytecode.c:905 #10 0x0818257d in funcall_lambda (fun=3D136815701, nargs=3Dnargs@entry=3D4,= arg_vector=3Darg_vector@entry=3D0xbfffece0) at eval.c:3090 #11 0x081828ab in Ffuncall (nargs=3Dnargs@entry=3D5, args=3Dargs@entry=3D0x= bfffecdc) at eval.c:2917 #12 0x0818441f in call4 (fn=3D140650794, arg1=3Darg1@entry=3D150345625, arg= 2=3Darg2@entry=3D150345625, arg3=3D138824258, arg4=3D138824258) at eval.c:2= 704 #13 0x081a3ddd in Fload (file=3D148537361, noerror=3D138824258, nomessage= =3D138824258, nosuffix=3D138824258, must_suffix=3D138824258) at lread.c:1294 #14 0x08182a66 in Ffuncall (nargs=3D2, args=3D0xbfffeeb8) at eval.c:2872 #15 0x081b4c63 in exec_byte_code (bytestr=3D0, vector=3D-1459075518, maxdep= th=3D12, args_template=3Dargs_template@entry=3D1028, nargs=3Dnargs@entry=3D= 1, args=3D0x1) at bytecode.c:905 #16 0x081825fe in funcall_lambda (fun=3D136911261, nargs=3Dnargs@entry=3D1,= arg_vector=3Darg_vector@entry=3D0xbfffefd8) at eval.c:3024 #17 0x081828ab in Ffuncall (nargs=3D2, args=3D0xbfffefd4) at eval.c:2917 #18 0x081b4c63 in exec_byte_code (bytestr=3D0, vector=3D-1459075518, maxdep= th=3D12, args_template=3D138824258, nargs=3Dnargs@entry=3D0, args=3D0xbfffe= fd0) at bytecode.c:905 #19 0x0818257d in funcall_lambda (fun=3Dfun@entry=3D138856861, nargs=3Dnarg= s@entry=3D0, arg_vector=3Darg_vector@entry=3D0xbffff0a0) at eval.c:3090 #20 0x08181b04 in apply_lambda (fun=3D, args=3D) at eval.c:2965 #21 0x08181e04 in eval_sub (form=3Dform@entry=3D142694910) at eval.c:2301 #22 0x08185184 in Feval (form=3D142694910, lexical=3D138824258) at eval.c:2= 044 #23 0x08182ac0 in Ffuncall (nargs=3D3, args=3D0xbffff1f8) at eval.c:2859 #24 0x081b4c63 in exec_byte_code (bytestr=3D0, vector=3D-1459075518, maxdep= th=3D16, args_template=3D138824258, nargs=3Dnargs@entry=3D0, args=3D0xbffff= 1f0) at bytecode.c:905 #25 0x0818257d in funcall_lambda (fun=3D137482253, nargs=3Dnargs@entry=3D1,= arg_vector=3Darg_vector@entry=3D0xbffff328) at eval.c:3090 #26 0x081828ab in Ffuncall (nargs=3D2, args=3D0xbffff324) at eval.c:2917 #27 0x081b4c63 in exec_byte_code (bytestr=3D0, vector=3D-1459075518, maxdep= th=3D12, args_template=3D138824258, nargs=3Dnargs@entry=3D0, args=3D0xbffff= 320) at bytecode.c:905 #28 0x0818257d in funcall_lambda (fun=3D137482693, nargs=3Dnargs@entry=3D1,= arg_vector=3Darg_vector@entry=3D0xbffff494) at eval.c:3090 #29 0x081828ab in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x= bffff490) at eval.c:2917 #30 0x0817f0d1 in Fcall_interactively (function=3D140622058, record_flag=3D= 138824258, keys=3D138855333) at callint.c:836 #31 0x08182aa9 in Ffuncall (nargs=3D4, args=3D0xbffff5bc) at eval.c:2863 #32 0x081b4c63 in exec_byte_code (bytestr=3D0, vector=3D-1459075518, maxdep= th=3D52, args_template=3Dargs_template@entry=3D4100, nargs=3Dnargs@entry=3D= 1,=20 args=3D0xbffff5b8) at bytecode.c:905 #33 0x081825fe in funcall_lambda (fun=3D137173413, nargs=3Dnargs@entry=3D1,= arg_vector=3Darg_vector@entry=3D0xbffff6fc) at eval.c:3024 #34 0x081828ab in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x= bffff6f8) at eval.c:2917 #35 0x08182c27 in call1 (fn=3D138855074, arg1=3D140622058) at eval.c:2655 #36 0x08120fdf in command_loop_1 () at keyboard.c:1562 #37 0x08181082 in internal_condition_case (bfun=3Dbfun@entry=3D0x8120cc0 , handlers=3D138861698, hfun=3Dhfun@entry=3D0x81186c0 ) at eval.c:1339 #38 0x08114245 in command_loop_2 (ignore=3D138824258) at keyboard.c:1163 #39 0x08180fa7 in internal_catch (tag=3D138859722, func=3Dfunc@entry=3D0x81= 14220 , arg=3D138824258) at eval.c:1113 #40 0x08118222 in command_loop () at keyboard.c:1142 #41 recursive_edit_1 () at keyboard.c:781 #42 0x081184e3 in Frecursive_edit () at keyboard.c:845 #43 0x08059418 in main (argc=3D, argv=3D0xbffffb54) at emacs= .c:1570