From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuanle Song Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3124: 23.0.92; emacs crash when start scim in shell Date: Sun, 26 Apr 2009 20:52:52 -0500 Message-ID: Reply-To: Yuanle Song , 3124@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1240815651 18041 80.91.229.12 (27 Apr 2009 07:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 07:00:51 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 27 08:58:49 2009 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LyIlu-0004bE-N4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2009 06:48:51 +0200 Original-Received: from localhost ([127.0.0.1]:54620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyIkV-0008Ps-D4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2009 00:47:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyGK7-0002Om-3t for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2009 22:11:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyGK2-0002OK-42 for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2009 22:11:58 -0400 Original-Received: from [199.232.76.173] (port=37737 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyGK1-0002OA-Tx for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2009 22:11:53 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59054) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LyGK1-0005GW-DS for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2009 22:11:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3R2BoMl029282; Sun, 26 Apr 2009 19:11:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3R203n9024905; Sun, 26 Apr 2009 19:00:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Yuanle Song Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 27 Apr 2009 02:00:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3124 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124079718523550 (code B ref -1); Mon, 27 Apr 2009 02:00:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Apr 2009 01:53:05 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3R1r1Nc023542 for ; Sun, 26 Apr 2009 18:53:02 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:34527 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LyG1k-00007i-Pq for emacs-pretest-bug@gnu.org; Sun, 26 Apr 2009 21:53:00 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LyG1i-0003QX-8Q for emacs-pretest-bug@gnu.org; Sun, 26 Apr 2009 21:53:00 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]:37807) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyG1h-0003QN-Sh for emacs-pretest-bug@gnu.org; Sun, 26 Apr 2009 21:52:58 -0400 Original-Received: by an-out-0708.google.com with SMTP id b38so1388240ana.21 for ; Sun, 26 Apr 2009 18:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject :message-id:date; bh=5gvbbJfzw9f4TX6YCWHy8+1u+cCRfw8yhNZ8wJMYjkI=; b=Dv5dlBuZmx55VKX31ef8ECTiU6cwXx8p39MwUe0vHJR++dJZ8MMfD4hPbSS8NYtVhh l6ODcDtfNOK40VegFA8yf3Qp9g9pDcNezsP/ntpWsQwEwvvo0PG/b03c8hk634Di8N3s K1AAjY3qYbIqOFR9RZ2Iv+gjsoQhT3yxcIP7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:message-id:date; b=DUD7dX9yeGVvNQrxRgABjpaWEbK6DWP3o/zoNa/XMGgzcaBFOLCqGh4YuY7YfQDz6r tiMHaqhXBKm6hgJrBw5PZMGtjm93aYZECfMK3Mi0GMXaBff4DABA3TfUmVKrls0fTTI1 Anj8ITCAjVdcMCEj+qrIVNopyu71K/jrj+QMw= Original-Received: by 10.100.58.19 with SMTP id g19mr3314890ana.150.1240797175478; Sun, 26 Apr 2009 18:52:55 -0700 (PDT) Original-Received: from sylecn.sylecn (resnet-50-116.dorm.utexas.edu [129.116.50.116]) by mx.google.com with ESMTPS id d38sm8424134and.4.2009.04.26.18.52.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Apr 2009 18:52:54 -0700 (PDT) Original-Received: from sylecn by sylecn.sylecn with local (Exim 4.69) (envelope-from ) id 1LyG1c-0007gz-GN for emacs-pretest-bug@gnu.org; Sun, 26 Apr 2009 20:52:52 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 26 Apr 2009 22:11:58 -0400 X-Mailman-Approved-At: Mon, 27 Apr 2009 00:47:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27458 gmane.emacs.pretest.bugs:24330 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: //Problem: //scim doesn't work on latest emacs cvs version. Summary: The latest emacs gtk version started in locale en_US.UTF-8 crashes whenever scim is started! How to reproduce: 1. start emacs gtk version in en_US.UTF-8 locale $ env LANG=en_US.UTF-8 emacs & I found that this bug disappear when emacs is started in zh_CN.UTF-8 locale. 2. start emacs shell M-x shell 3. start scim in emacs shell Note that you should quit scim if it is already started in X. You can do that by right click on the scim icon in notification area and click quit. type "scim -d" in emacs shell 4. expected result: Scim start successfully with output similar to: ~ $ scim -d Smart Common Input Method 1.4.7 Launching a SCIM daemon with Socket FrontEnd... Loading simple Config module ... Creating backend ... Loading socket FrontEnd module ... Starting SCIM as daemon ... Launching a SCIM process with x11... Loading socket Config module ... Creating backend ... Loading x11 FrontEnd module ... GTK Panel of SCIM 1.4.7 Starting SCIM as daemon ... SCIM has been successfully launched. ~ $ 5. what happend Scim is started, but emacs crashed with Segmentation fault. gdb bt full and xbacktrace attached. emacs is compiled with -g -O2, if -O0 is appreciated please tell me to recompile. Additional info: * If emacs is started with -nw option in a terminal. "scim -d" casue no error and is able to start successfully. emacs won't crash. * If emacs gtk version is started. Then scim is started at terminal outside emacs. emacs crash with segmentation fault. * I have used emacs-snapshot package for debian before. It crashes when scim is started at emacs shell as well. The difference is scim is not start when emacs-snapshot crashes. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/23.0.92/etc/DEBUG for instructions. In GNU Emacs 23.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-04-26 on sylecn Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--infodir=/home/sylecn/helps/info' '--without-xaw3d' '--without-toolkit-scroll-bars'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. ===File ~/texts/bugs/gdb-bt-xbacktrace-output=============== ~/fromsource/build/emacs/src $ gdb /usr/local/bin/emacs GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = dumb Breakpoint 1 at 0x8124046: file /home/sylecn/fromsource/emacs/src/emacs.c, line 432. Breakpoint 2 at 0x8140e09: file /home/sylecn/fromsource/emacs/src/sysdep.c, line 1146. (gdb) c The program is not being run. (gdb) start Breakpoint 3 at 0x8124498: file /home/sylecn/fromsource/emacs/src/emacs.c, line 788. Starting program: /usr/local/bin/emacs [Thread debugging using libthread_db enabled] [New Thread 0xb6ead750 (LWP 29501)] [Switching to Thread 0xb6ead750 (LWP 29501)] main (argc=1, argv=0xbfb2cc94) at /home/sylecn/fromsource/emacs/src/emacs.c:788 788 { (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0xb75aafef in XSetICValues () from /usr/lib/libX11.so.6 (gdb) bt full #0 0xb75aafef in XSetICValues () from /usr/lib/libX11.so.6 No symbol table info available. #1 0x080ec393 in xic_set_preeditarea (w=0x9ff6860, x=0, y=152) at /home/sylecn/fromsource/emacs/src/xfns.c:2357 attr = spot = { x = 10, y = 167 } #2 0x080dbac5 in xim_instantiate_callback (display=0x868f200, client_data=0x8493920 "", call_data=0x0) at /home/sylecn/fromsource/emacs/src/xterm.c:8284 w = (struct window *) 0x0 f = (struct frame *) 0x9fd8fb0 tail = dpyinfo = #3 0xb75cdb9d in ?? () from /usr/lib/libX11.so.6 No symbol table info available. #4 0x0868f200 in ?? () No symbol table info available. #5 0x08493920 in ?? () No symbol table info available. #6 0x00000000 in ?? () No symbol table info available. (gdb) xbacktrace (gdb) q The program is running. Exit anyway? (y or n) y ~/fromsource/build/emacs/src $ ============================================================