From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Nikishkin Newsgroups: gmane.emacs.bugs Subject: bug#39081: 26.3; Emacs hangs if external SCIM input method is killed Date: Sun, 12 Jan 2020 14:40:32 +0800 Message-ID: References: <87lfqey1xj.fsf@delllaptop.lockywolf.net> <83blra8lnb.fsf@gnu.org> <83wo9y71gt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="214921"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 39081@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 12 07:43:21 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqWw0-000bjZ-97 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 07:41:16 +0100 Original-Received: from localhost ([::1]:35696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqWvy-0004Rn-RU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 01:41:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48865) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqWvn-0004RS-LF for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 01:41:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqWvm-0000r9-3t for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 01:41:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqWvl-0000qZ-UR for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 01:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqWvl-0001wd-Sq for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 01:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Nikishkin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2020 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39081 X-GNU-PR-Package: emacs Original-Received: via spool by 39081-submit@debbugs.gnu.org id=B39081.15788112537454 (code B ref 39081); Sun, 12 Jan 2020 06:41:01 +0000 Original-Received: (at 39081) by debbugs.gnu.org; 12 Jan 2020 06:40:53 +0000 Original-Received: from localhost ([127.0.0.1]:56975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqWvc-0001wA-Kz for submit@debbugs.gnu.org; Sun, 12 Jan 2020 01:40:52 -0500 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:45059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqWva-0001vm-Ie for 39081@debbugs.gnu.org; Sun, 12 Jan 2020 01:40:51 -0500 Original-Received: by mail-ed1-f44.google.com with SMTP id v28so5595936edw.12 for <39081@debbugs.gnu.org>; Sat, 11 Jan 2020 22:40:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=oLC5NDBGCCXCfJcy7mAQnMbZirIXf+XyzDJQKwOjq9M=; b=NNI4h/swOrMIVzi//MTy9FIYXvS/CCFEau3YuLUZr7qqI4korDJpUjYKSasHM8oDBc mdLiSb5uJZbjhRsy5fTTwi2zArg1X4Po/oU/mNT9Mo4r1z+qVGse0SEdW7nEECLzdqXs +azsfe/lFBzFAFwAIFGD2jrw1L9rlcBzfVm3NVBkv1/yxDleVsuc/QY5LI14Pvzf926E IqRbDplT3O4Y3MUiDJlG8HMDbEJhPRcxszR1cOy4sfWpHpiL7mncIyT4P/6yWawvs0w7 kkRb7iOIoZRA9bVJdBM6J8dauy7ppnEKWh9embPedP4fBw786h8pZUbQC74nOl10hPNl Gd6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=oLC5NDBGCCXCfJcy7mAQnMbZirIXf+XyzDJQKwOjq9M=; b=LUTfofKh6FfCAJvKsooDInzqrUNn8dFdikywuiH9VRM6KNreXQhw+OtO4+JtmunnvC su0e1QDf38VyDlmP0TIZhf4dsSifYQIr/5nvLVIZwtEk+P7vyiZrYBRz6+FttYGSeKeX CTChZxJ+fZkD7ckpGaQgXCOYuc82ovB+1oDNwz5gjqxIraODvABgdNa2tqdwsWQUfr7M hihIP32mV5bekJZwZuylBt+E85k7I7vKhZB7TcArjc5QIPY4rJCNWCu5imXjFMYw1waC i6ymCYKCnK4tgusDQhb7LhMjgllqncHGfGzAqFVbC28l0hHS4snSl3wkeY+/16O7yjqD HXyA== X-Gm-Message-State: APjAAAVYO5D7hgligJbMaTR2Ou1MsOdHxlfTxLY0ZC9tF2BuP7qWnfFi FZAx2nurYDeQAkXzxnpfsshE9reALRsQzIlHet8= X-Google-Smtp-Source: APXvYqxHWt97ONP5hdEodHeekt+nL47ipshZkyyjfQHn/T0SYPsRAnS3St7NlWBMdBD7WVxPUGwup/5X9jgDfTgiaao= X-Received: by 2002:aa7:d9c6:: with SMTP id v6mr11410077eds.107.1578811244603; Sat, 11 Jan 2020 22:40:44 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174496 Archived-At: Below is the thread apply all bt result for a hanged, unoptimized, Emacs. I attached gdb after start, but before killing SCIM: lockywolf@delllaptop:~$ pgrep emacs 1437 lockywolf@delllaptop:~$ gdb -p $(pgrep emacs) /usr/share/gdb/python/gdb/command/prompt.py:48: SyntaxWarning: "is not" with a literal. Did you mean "!=3D"? if self.value is not '': /usr/share/gdb/python/gdb/command/prompt.py:60: SyntaxWarning: "is not" with a literal. Did you mean "!=3D"? if self.value is not '': GNU gdb (GDB) 8.3.1 Copyright (C) 2019 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 "x86_64-slackware-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 1437 [New LWP 1438] [New LWP 1439] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007f395c99807e in pselect () from /lib64/libc.so.6 (gdb) thread apply all bt Thread 3 (Thread 0x7f3959446700 (LWP 1439)): #0 0x00007f395c995e9f in poll () at /lib64/libc.so.6 #1 0x00007f395e79acee in () at /usr/lib64/libglib-2.0.so.0 #2 0x00007f395e79b053 in g_main_loop_run () at /usr/lib64/libglib-2.0.so.0 #3 0x00007f395e9d0666 in () at /usr/lib64/libgio-2.0.so.0 #4 0x00007f395e7c298d in () at /usr/lib64/libglib-2.0.so.0 #5 0x00007f395cf6306b in start_thread () at /lib64/libpthread.so.0 #6 0x00007f395c9a172f in clone () at /lib64/libc.so.6 Thread 2 (Thread 0x7f395a466700 (LWP 1438)): #0 0x00007f395c995e9f in poll () at /lib64/libc.so.6 #1 0x00007f395e79acee in () at /usr/lib64/libglib-2.0.so.0 #2 0x00007f395e79ae0f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #3 0x00007f395e79ae61 in () at /usr/lib64/libglib-2.0.so.0 #4 0x00007f395e7c298d in () at /usr/lib64/libglib-2.0.so.0 #5 0x00007f395cf6306b in start_thread () at /lib64/libpthread.so.0 --Type for more, q to quit, c to continue without paging-- #6 0x00007f395c9a172f in clone () at /lib64/libc.so.6 Thread 1 (Thread 0x7f395af20c80 (LWP 1437)): #0 0x00007f395c99807e in pselect () at /lib64/libc.so.6 #1 0x00000000005c5bd0 in really_call_select (arg=3D0x7ffff4d2e960) at thread.c:586 #2 0x00000000005c66a7 in thread_select (func=3D, max_fds=3Dmax_fds@entry=3D20, rfds=3Drfds@entry=3D0x7ffff4d2ea10, wfds=3Dwfds@entry=3D0x7ffff4d2ea90, efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffff4d2f010, sigmask=3D0x0) at thread.c:616 #3 0x00000000005e0e34 in xg_select (fds_lim=3D20, rfds=3Drfds@entry=3D0x7ffff4d2f120, wfds=3Dwfds@entry=3D0x7ffff4d2f1a0, efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7ffff4d2f010, sigmask=3Dsigmask@entry=3D0x0) at xgselect.c:117 #4 0x00000000005a6db3 in wait_reading_process_output (time_limit=3Dtime_limit@entry=3D15, nsecs=3Dnsecs@entry=3D0, read_kbd=3Dread_kbd@entry=3D-1, do_display=3Ddo_display@entry=3Dtrue, wait_for_cell=3Dwait_for_cell@entry=3D0x0, wait_proc=3Dwait_proc@entry=3D0x= 0, just_wait_proc=3D0) at process.c:5571 #5 0x000000000042d82f in sit_for (timeout=3Dtimeout@entry=3D0x3e, reading=3Dreading@e--Type for more, q to quit, c to continue without paging-- ntry=3Dtrue, display_option=3Ddisplay_option@entry=3D1) at lisp.h:1032 #6 0x00000000005032e8 in read_char (commandflag=3D1, map=3D0x3f872e3, prev_event=3D0x0, used_mouse_menu=3D0x7ffff4d2f9db, end_time=3D0x0) at lisp.h:1147 #7 0x000000000050380e in read_key_sequence (keybuf=3D, prompt=3D0x0, dont_downcase_last=3D, can_return_switch_frame=3Dtrue, fix_current_buffer=3Dtrue, prevent_redisplay=3D) at keyboard.c:9553 #8 0x0000000000504e8e in command_loop_1 () at lisp.h:1032 #9 0x0000000000568d37 in internal_condition_case (bfun=3Dbfun@entry=3D0x504cb0 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@entry=3D0x4fbee0 )= at eval.c:1355 #10 0x00000000004f6cfc in command_loop_2 (ignore=3Dignore@entry=3D0x0) at lisp.h:1032 #11 0x0000000000568c91 in internal_catch (tag=3Dtag@entry=3D0xd4d0, func=3Dfunc@entry=3D0x4f6ce0 , arg=3Darg@entry=3D0x0) at eval.c:1116 #12 0x00000000004f6ca4 in command_loop () at lisp.h:1032 #13 0x00000000004fbaf6 in recursive_edit_1 () at keyboard.c:714 #14 0x00000000004fbe20 in Frecursive_edit () at keyboard.c:786 #15 0x0000000000423f25 in main (argc=3D1, argv=3D0x7ffff4d2fed8) at emacs.c= :2054 (gdb) =D0=B2=D1=81, 12 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 14:34, Eli Zaretsk= ii : > > On January 12, 2020 8:05:06 AM GMT+02:00, Vladimir Nikishkin wrote: > > Okay, I rebuild Emacs from git with debug information, and after a few > > attempts, Emacs crashed, printing "This is a GTK bug". > > I am not sure why optimized Emacs hangs instead of crashing. > > Maybe this bug can be closed (or maybe there is an interleaving > > between two bugs) > > Please run Emacs under GDB, and when it crashes, please show the backtrac= e. I'd like to see the details of this crash, perhaps this is some known p= roblem. Those details might also explain the difference in behavior betwee= n the optimized and debug builds. > > Thanks. --=20 Yours sincerely, Vladimir Nikishkin