[Bug 830221] New: If I use japanese-egg-wnn, XEmacs crashes with SIGABRT in kill() at ../sysdeps/unix/syscall-template.S:81
https://bugzilla.novell.com/show_bug.cgi?id=830221 https://bugzilla.novell.com/show_bug.cgi?id=830221#c0 Summary: If I use japanese-egg-wnn, XEmacs crashes with SIGABRT in kill() at ../sysdeps/unix/syscall-template.S:81 Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 3 Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bkbin005@rinku.zaq.ne.jp QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=548551) --> (http://bugzilla.novell.com/attachment.cgi?id=548551) stderr, strace, and GDB backtrace files User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36 I am testing openSUSE 13.1 Milestone 3 x86_64 with KDE desktop in VirtualBox 4.2.16 r86992 on Windows 7 SP1 64 bit . Host information: https://dl.dropboxusercontent.com/u/86335040/DxDiag17.txt . When I use XEmacs, FreeWnn, and japanese-egg-wnn, XEmacs crashes with SIGABRT in kill() at ../sysdeps/unix/syscall-template.S:81 . XEmacs 21.5 (beta33) "horseradish" [Lucid] (x86_64-suse-linux, Mule) of Sat Jul 6 2013 on build17 xemacs-21.5.33-3.11.x86_64 rpm -qf /usr/share/xemacs/mule-packages/lisp/egg-its/egg-wnn.elc xemacs-packages-20130319-1.3.noarch I attached the stderr, strace, and GDB backtrace files . Reproducible: Always Steps to Reproduce: 0. Install openSUSE to Japanese Environment . 1. Start jserver . 2. >strace -o strace.txt xemacs 2>stderr.txt 3. Select *scratch* window 4. Press C-\ . 5. Select "Input method:" to japanese-egg-wnn . 6. Input next line to *scratch* window (cons "漢字" "日本語") Actual Results: XEmacs crashes with SIGABRT in kill() at ../sysdeps/unix/syscall-template.S:81 . Expected Results: XEmacs should not crash . Please see also: http://lists.opensuse.org/opensuse-ja/2013-07/msg00113.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c2
Mitsutoshi NAKANO
rpm -qf /usr/bin/emacs emacs-24.3-4.2.x86_64
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c4
--- Comment #4 from Mitsutoshi NAKANO
rpm -qa xemacs xemacs-21.5.33-68.55.x86_64 rpm -qa xemacs-packages xemacs-packages-20130319-44.34.noarch
But I reproduced the issue . I attached the stderr, strace, and GDB backtrace files again . I will use IBus + Mozc . And I will use GNU Emacs . Thanks . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c5
--- Comment #5 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c6
--- Comment #6 from Mitsutoshi NAKANO
1) does it work fine in 12.3?
I reproduced the issue in openSUSE 12.3 .
rpm -qa xemacs xemacs-21.5.33-2.1.2.x86_64 rpm -qa xemacs-packages xemacs-packages-20121119-2.1.1.noarch rpm -qa fwnn fwnn-1.1.1a021-14.1.2.x86_64
2) what is your fwnn version? did you try one from M17N?
rpm -qa fwnn fwnn-1.1.1a021-15.12.x86_64
I updated to wnn-1.1.1a021-24.28.x86_64.rpm .
rpm -Uvh wnn-1.1.1a021-24.28.x86_64.rpm
I reproduced this issue .
3) does it work fine in English locale 13.1 MS3?
LANG=C xemacs I reproduced this issue .
4) what is kihon.h, your personal dictionary? does it work if you delete it?
http://docs.oracle.com/cd/E19455-01/806-2800/6jc09qd0b/index.html By default, /var/lib/wnn/ja/dic/usr/$USER/kihon.h does not exist . If this file does not exist, XEmacs crashes . I made this file manually (sudo touch kihon.h) , XEmacs does not crash ! This problem was solved ! Sorry and Thank you !
5) does it work without starting jserver?
XEmacs does not crash, but error occured, and I could not input Japanese Kanji Characters . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c7
--- Comment #7 from Dr. Werner Fink
By default, /var/lib/wnn/ja/dic/usr/$USER/kihon.h does not exist . If this file does not exist, XEmacs crashes . I made this file manually (sudo touch kihon.h) , XEmacs does not crash !
Does this mean that the directory /var/lib/wnn/ja/dic/usr/$USER exists but have to become root to touch this file? What are the permissions and ownerships below /var/lib/wnn/ja/dic/usr/ (ls -lAR) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c8
--- Comment #8 from Mitsutoshi NAKANO
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c9
--- Comment #9 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c10
--- Comment #10 from Mitsutoshi NAKANO
Does Japanese input work after creating this file? No, I can input Japanese characters "Kana", but I can not input Chinese characters "Kanji" (I get "98:BAD ERRORNO!!!") I get same message too .
By the way, XEmacs can use system XIM input method if you want (it should use it automatically if set up), bypassing built-in input method.
Well, almost all Japanese people use IBus+Mozc . But some people want spare IM when main IM breaks . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c11
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c12
--- Comment #12 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c13
--- Comment #13 from Ailin Nemui
Cc: XEmacs Beta
This code has worked fine for forever. That, combined with the analysis below, leads me to believe you have a broken compiler. GCC 4.8.1 by any chance?
Here's what gdb reports about the crash:
Fatal error: assertion failed, file alloc.c, line 2870, length >= 0 && fullsize > 0 #9 0x0000000000464b12 in make_string ( contents=contents@entry=0x7fff63302250 "mes_id = 203: Message not found.\n \"usr/mitsutoshi/kihon.h\" mes_id = 203: Message not found.\nmes_id = 203: Message not found.\n", length=-1) at alloc.c:3213 val = <optimized out> #10 0x0000000000552c60 in yes_or_no ( s=s@entry=0x7fff633024e0 "mes_id = 203: Message not found.\n \"usr/mitsutoshi/kihon.h\" mes_id = 203: Message not found.\nmes_id = 203: Message not found.\n") at mule-wnnfns.c:2125 yes = <optimized out> str = 140734857487584 gcpro1 = {next = 0x100, var = 0x7fa8a0accd7d, nvars = 1664099224} mbuf = "mes_id = 203: Message not found.\n \"usr/mitsutoshi/kihon.h\" mes_id = 203: Message not found.\nmes_id = 203: Message not found.\n\000\000\000\000#0c\004\000\000\000\360\"0c\377\177\000\000\000\000\377\377", '\000'
, "\377\377\377\377\000\000\000\000 \312%\236\250\177", '\000' , "@#0c\377\177\000\000"... charset = <optimized out> len = <optimized out> Here's the code that triggers the assertion:
for (len = 0; (mbuf[len]) && (len < 512); len++); for (; (mbuf[len] != '(') && (len > 0); len--); { Lisp_Object yes, str; struct gcpro gcpro1;
str = make_string (mbuf, len); GCPRO1 (str); yes = call1 (Qyes_or_no_p, str); UNGCPRO; if (NILP (yes)) return 0; else return (1); }
In the call to make_string, len = -1. I don't see how a correct compilation can get there. Note that both loops have no body. (The braces are simply there to allow 'yes', 'str', and 'gcpro1' to be local variables of very limited scope.) So somehow len starts at 0, weakly increases to a number at most 511, weakly decreases to at least 0. (And no, make_string doesn't tweak len before passing to make_unit_string; I checked.)
Steve
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c14
--- Comment #14 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c15
--- Comment #15 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c16
--- Comment #16 from Mitsutoshi NAKANO
LANG=C rpm -qi xemacs Name : xemacs Version : 21.5.33 Release : 68.57 Architecture: x86_64 Install Date: Tue Jul 23 07:23:18 2013 Group : Productivity/Editors/Emacs Size : 31135422 License : GPL-3.0+ Signature : DSA/SHA1, Sun Jul 21 14:57:40 2013, Key ID f4cce1f4d15ee595 Source RPM : xemacs-21.5.33-68.57.src.rpm Build Date : Sun Jul 21 14:56:10 2013 Build Host : build09 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/M17N URL : http://www.xemacs.org Summary : XEmacs Description : This is the current version of XEmacs, formerly known as Lucid-Emacs. It is related to other versions of Emacs, in particular GNU Emacs. Its emphasis is on modern graphical user interface support and an open software development model, similar to Linux.
LANG=C rpm -qi xemacs-packages Name : xemacs-packages Version : 20130319 Release : 44.34 Architecture: noarch Install Date: Fri Jul 19 19:11:31 2013 Group : Productivity/Editors/Emacs Size : 80976650 License : GPL-3.0+ Signature : DSA/SHA1, Thu Jul 18 10:53:34 2013, Key ID f4cce1f4d15ee595 Source RPM : xemacs-packages-20130319-44.34.src.rpm Build Date : Thu Jul 18 10:50:48 2013 Build Host : cloud112 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/M17N URL : http://www.xemacs.org Summary : XEmacs Packages Description : A collection of additional lisp packages for XEmacs. You must install
Lisp macros are not necessarily interchangeable between GNU-Emacs and XEmacs. This is mainly important for translated .elc files and the key macros. Distribution: M17N / openSUSE_Factory this package when you want to use the XEmacs package, they are needed for most non-trivial XEmacs functions. Sorry . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c17
--- Comment #17 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c18
--- Comment #18 from Mitsutoshi NAKANO
rpm -qi xemacs Name : xemacs Version : 21.5.33.hg52b9fe8f44c0 Release : 123.1 Architecture: x86_64 Install Date: 2013年07月23日 16時35分54秒 Group : Productivity/Editors/Emacs Size : 31150228 License : GPL-3.0+ Signature : DSA/SHA1, 2013年07月22日 23時08分15秒, Key ID ade602b30d043ba6 Source RPM : xemacs-21.5.33.hg52b9fe8f44c0-123.1.src.rpm Build Date : 2013年07月22日 23時06分50秒 Build Host : build30 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/home:ailin_nemui URL : http://www.xemacs.org Summary : XEmacs Description : This is the current version of XEmacs, formerly known as Lucid-Emacs. It is related to other versions of Emacs, in particular GNU Emacs. Its emphasis is on modern graphical user interface support and an open software development model, similar to Linux.
Lisp macros are not necessarily interchangeable between GNU-Emacs and XEmacs. This is mainly important for translated .elc files and the key macros. Distribution: home:ailin_nemui:branches:M17N / openSUSE_Factory -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c19
--- Comment #19 from Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c20
--- Comment #20 from Mitsutoshi NAKANO
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c21
Ailin Nemui
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c22
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c23
--- Comment #23 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c24
Mitsutoshi NAKANO
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c25
--- Comment #25 from Mitsutoshi NAKANO
LANG=C rpm -qi xemacs Name : xemacs Version : 21.5.33 Release : 4.1 Architecture: x86_64 Install Date: Wed Jul 24 17:53:22 2013 Group : Productivity/Editors/Emacs Size : 31135522 License : GPL-3.0+ Signature : RSA/SHA256, Tue Jul 23 21:56:33 2013, Key ID b88b2fd43dbdc284 Source RPM : xemacs-21.5.33-4.1.src.rpm Build Date : Tue Jul 23 21:55:14 2013 Build Host : cloud115 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://www.xemacs.org Summary : XEmacs Description : This is the current version of XEmacs, formerly known as Lucid-Emacs. It is related to other versions of Emacs, in particular GNU Emacs. Its emphasis is on modern graphical user interface support and an open software development model, similar to Linux.
Lisp macros are not necessarily interchangeable between GNU-Emacs and XEmacs. This is mainly important for translated .elc files and the key macros. Distribution: openSUSE Factory -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c26
--- Comment #26 from Mitsutoshi NAKANO
https://bugzilla.novell.com/show_bug.cgi?id=830221
https://bugzilla.novell.com/show_bug.cgi?id=830221#c27
Mitsutoshi NAKANO
participants (1)
-
bugzilla_noreply@novell.com