From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#55672: 29.0.50; Emacs crashes when calling start-process-shell-command xdg-open with process-connection-type set to nil Date: Fri, 27 May 2022 16:44:58 +0800 Message-ID: <87k0a7l5yt.fsf@localhost> References: <87a6b3wkzs.fsf@localhost> <87ilprihg0.fsf@yahoo.com> <87h75bh0zs.fsf@localhost> <877d67ieri.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55672@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 27 10:49:43 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuVfD-0004YD-1v for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 May 2022 10:49:43 +0200 Original-Received: from localhost ([::1]:58570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuVfB-0006oi-He for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 May 2022 04:49:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuVah-0006gA-92 for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 04:45:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuVag-0004QW-Rb for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 04:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuVag-0000s3-M6 for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 04:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 May 2022 08:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55672 X-GNU-PR-Package: emacs Original-Received: via spool by 55672-submit@debbugs.gnu.org id=B55672.16536410703291 (code B ref 55672); Fri, 27 May 2022 08:45:02 +0000 Original-Received: (at 55672) by debbugs.gnu.org; 27 May 2022 08:44:30 +0000 Original-Received: from localhost ([127.0.0.1]:60889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuVaA-0000r0-3r for submit@debbugs.gnu.org; Fri, 27 May 2022 04:44:30 -0400 Original-Received: from mail-pj1-f46.google.com ([209.85.216.46]:41804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuVa6-0000qk-1o for 55672@debbugs.gnu.org; Fri, 27 May 2022 04:44:29 -0400 Original-Received: by mail-pj1-f46.google.com with SMTP id l20-20020a17090a409400b001dd2a9d555bso3815818pjg.0 for <55672@debbugs.gnu.org>; Fri, 27 May 2022 01:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=5pZKv7Ds3IoiCYGlxim5FbbIpDsWf4s+exbqIHoUDEQ=; b=S99xm21LXuKsQhc2WXX6cnW4ePUmPlEvROUUxFhmuyZk6XgQBANtv6xlJ7KlaI7n76 tAh5Sqb6hrtSnt2ks829QPeCaNp53mojqik5WQmuWmjq3XqC6qV3Hphuwxx4U3Zhht8f Z3Mva8lzXCuJPvoYQnRd55Sx1rphskwNp96Tg4lOF/Kg3U7hB8DnK/pv9zWamn80GjuU 7eVMA/j/qXjArtfkjT+UhhTqJkdvxW0OHZviY1/mnhq4Sx+YdtmmACfxqDJmCaF9m2h4 CVGim1XkfxUIsbIVpKoEznNDScN64n0tBCJlt6Ys8GAi48k3/te9b27kq2LgvsidDxLO UhmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=5pZKv7Ds3IoiCYGlxim5FbbIpDsWf4s+exbqIHoUDEQ=; b=VJvNsAOue3+fd6MgFxtKGQGozrptSh3L2zl5jT+lkub2ARoE8UVZX6DrkO8aiRsHdA lHy29NFVMwV4S3RXgaa4VDPSqPy9EDO+iQLKumAtyNfP00zMaxECF3+RR9WPIOrFfQrw g5O53tIzC8iXVvfb7ULF9Fo8zWVA+eLT2ZrTbI7aa7MYwNBVLP2HIcMBZNDctG553xYm nd+LKvxY1JM2U1ob03ONInQ9+zOZx5RN9x6eHfe8UqosBRTYpMAsnAjsbnKtxDQjYhdK 5JmAfh9WD04+VkrT96at7UADLfu3Shsa4JZPczqv0qD3d6nuMNr6Ck3fxW+O4NlBMDgs Hb3A== X-Gm-Message-State: AOAM531/57O26N0RX+uDUS7P2fVLOtIB5XWoDWhSaT6zzUbsKsRbX8mp vSyvzJjySqoAZ0wtBcz8+LEDh2tQtckIM/eH3Vw= X-Google-Smtp-Source: ABdhPJwMPAUuXY6lg00b3dbm+UWpJlDVCay7jQ5oXpEH1L/LwLGCODy+6dvS7HHaSDhKbhZAhMdy1w== X-Received: by 2002:a17:902:f545:b0:163:90d0:adb7 with SMTP id h5-20020a170902f54500b0016390d0adb7mr3343291plf.147.1653641060022; Fri, 27 May 2022 01:44:20 -0700 (PDT) Original-Received: from localhost ([38.75.137.92]) by smtp.gmail.com with ESMTPSA id u71-20020a63854a000000b003c14af505f6sm620384pgd.14.2022.05.27.01.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 01:44:19 -0700 (PDT) In-Reply-To: <877d67ieri.fsf@yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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.io gmane.emacs.bugs:233162 Archived-At: Po Lu writes: > Please follow the instructions in the file etc/DEBUG on debugging X > errors, and show a complete backtrace (type "bt" at the gdb prompt). > Unless the error happens at a very early stage of display setup, you > should run Emacs with "-q -xrm Emacs.synchronous: true", to ensure that > X errors are reported immediately after the call that caused them, > instead of at the next synchronization point. Note that it is the first time I am using GDB. I appreciate the guidance. Following your latest instructions: > gdb --args ./emacs -Q -xrm 'Emacs.synchronous: true' -l ~/bug.el GNU gdb (Gentoo 12.1 vanilla) 12.1 Copyright (C) 2022 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-pc-linux-gnu". 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"... Reading symbols from ./emacs... 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 TERM = xterm-kitty Breakpoint 1 at 0x2083b5: file emacs.c, line 420. Breakpoint 2 at 0x1cc1d1: file xterm.c, line 21573. (gdb) run Starting program: /home/yantar92/Git/emacs/src/emacs -Q -xrm Emacs.synchronous:\ true -l /home/yantar92/bug.el [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7ffff049d640 (LWP 25230)] [Detaching after vfork from child process 25399] [Detaching after vfork from child process 25801] [Detaching after vfork from child process 25996] Thread 1 "emacs" hit Breakpoint 2, x_error_quitter (display=0x5555562ffee0, event=0x7fffffffa150) at xterm.c:21573 21573 { (gdb) (gdb) bt #0 x_error_quitter (display=0x5555562ffee0, event=0x7fffffffa150) at xterm.c:21573 #1 0x00005555557201b1 in x_error_handler (display=0x5555562ffee0, event=0x7fffffffa150) at xterm.c:21561 #2 0x00007ffff7ca3947 in _XError () at /usr/lib64/libX11.so.6 #3 0x00007ffff7ca03e7 in () at /usr/lib64/libX11.so.6 #4 0x00007ffff7ca0cda in _XEventsQueued () at /usr/lib64/libX11.so.6 #5 0x00007ffff7ca4195 in _XGetRequest () at /usr/lib64/libX11.so.6 #6 0x00007ffff7c99e20 in _XSetClipRectangles () at /usr/lib64/libX11.so.6 #7 0x00007ffff7c9a00e in XSetClipRectangles () at /usr/lib64/libX11.so.6 #8 0x00005555556fcf2a in x_set_clip_rectangles (f=0x555556bd6028, gc=0x5555560142a0, rectangles=0x7fffffffa4c0, n=1) at xterm.c:5136 #9 0x000055555570312a in x_draw_relief_rect (f=0x555556bd6028, left_x=36, top_y=15, right_x=69, bottom_y=50, hwidth=1, vwidth=1, raised_p=true, top_p=true, bot_p=true, left_p=false, right_p=false, clip_rect=0x7fffffffa4c0) at xterm.c:7832 #10 0x0000555555703b5d in x_draw_glyph_string_box (s=0x7fffffffb0b0) at xterm.c:8118 #11 0x0000555555705550 in x_draw_glyph_string (s=0x7fffffffb0b0) at xterm.c:8955 #12 0x000055555563709d in draw_glyphs (w=0x55555c11a420, x=373, row=0x5555562a3ca0, area=TEXT_AREA, start=0, end=13, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:29917 #13 0x000055555563ea1b in gui_write_glyphs (w=0x55555c11a420, updated_row=0x5555562a3ca0, start=0x55555e131de0, updated_area=TEXT_AREA, len=13) at xdisp.c:31951 #14 0x00005555555a207e in update_text_area (w=0x55555c11a420, updated_row=0x5555562a3ca0, vpos=0, partial_p=0x7fffffffb67d) at dispnew.c:3944 #15 0x00005555555a2c09 in update_window_line (w=0x55555c11a420, vpos=0, mouse_face_overwritten_p=0x7fffffffb6c8) at dispnew.c:4202 #16 0x00005555555a13ad in update_window (w=0x55555c11a420, force_p=true) at dispnew.c:3682 #17 0x00005555555a02b7 in update_frame (f=0x555556bd6028, force_p=true, inhibit_hairy_id_p=false) at dispnew.c:3229 #18 0x000055555560274f in redisplay_internal () at xdisp.c:16675 #19 0x0000555555603358 in redisplay_preserve_echo_area (from_where=12) at xdisp.c:16944 #20 0x00005555558eca26 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at process.c:5834 #21 0x00005555555a9238 in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at dispnew.c:6201 #22 0x000055555576a803 in read_char (commandflag=1, map=XIL(0x55555625bf23), prev_event=XIL(0), used_mouse_menu=0x7fffffffd3bd, end_time=0x0) at keyboard.c:2835 #23 0x0000555555780154 in read_key_sequence (keybuf=0x7fffffffd590, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9957 #24 0x0000555555765a92 in command_loop_1 () at keyboard.c:1399 #25 0x0000555555859268 in internal_condition_case (bfun=0x5555557655db , handlers=XIL(0x90), hfun=0x5555557649a9 ) at eval.c:1478 #26 0x0000555555765194 in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1140 #27 0x000055555585834b in internal_catch (tag=XIL(0xf5d0), func=0x55555576516a , arg=XIL(0x90)) at eval.c:1208 #28 0x0000555555765126 in command_loop () at keyboard.c:1118 #29 0x000055555576444b in recursive_edit_1 () at keyboard.c:727 #30 0x0000555555764677 in Frecursive_edit () at keyboard.c:810 #31 0x000055555575f9dc in main (argc=6, argv=0x7fffffffda38) at emacs.c:2488 Lisp Backtrace: "redisplay_internal (C function)" (0x0) (gdb) quit A debugging session is active. Inferior 1 [process 25227] will be killed. Quit anyway? (y or n) y Best, Ihor