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 15:45:59 +0800 Message-ID: <87h75bh0zs.fsf@localhost> References: <87a6b3wkzs.fsf@localhost> <87ilprihg0.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="16649"; 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 09:46:11 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 1nuUfj-0004E4-Dd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 May 2022 09:46:11 +0200 Original-Received: from localhost ([::1]:47846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuUfi-00030w-7Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 May 2022 03:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuUfa-00030e-6B for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 03:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuUfZ-0003Ok-S8 for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 03:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuUfZ-0007lv-Ke for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 03:46:01 -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 07:46:01 +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.165363753129835 (code B ref 55672); Fri, 27 May 2022 07:46:01 +0000 Original-Received: (at 55672) by debbugs.gnu.org; 27 May 2022 07:45:31 +0000 Original-Received: from localhost ([127.0.0.1]:60826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuUf4-0007l9-TA for submit@debbugs.gnu.org; Fri, 27 May 2022 03:45:31 -0400 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:33789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuUf2-0007ku-Q5 for 55672@debbugs.gnu.org; Fri, 27 May 2022 03:45:30 -0400 Original-Received: by mail-pj1-f43.google.com with SMTP id qe5-20020a17090b4f8500b001e26126abccso1963566pjb.0 for <55672@debbugs.gnu.org>; Fri, 27 May 2022 00:45:28 -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=F4zdSAeTR36pMQGtwaCuHIm/Tn7UMjDmn2Qi2wsQT3g=; b=E2fkGvvEtzKqBXpv0kL8iPyUIfj5LroGFN/uwr1IG5u9FbCX0wdbzoE6rA2Ft9eFN5 /4rb52ncvAlrJhswu0IQEYXVltYkzbMtn1kEhV/fKrnVjQWjkUYj0iVZIdIHthTUGmFg r8ZR4YITN8sR9Shm2if+Uq/6RAKfTr/183BZ2OoZJlygtvwERTajFKSNpEhx5BWgpW4r eHJOlopJRRtSp/lK8EQgnWH5mTs1seMXjnK5jsNcJZc2tPKYUfAs90w6L/4lEFO7u0ox 7SD6kVKAXqTCXOk4oqMKFKGLs31ifmO1yRZQkYKTa8d0m0Guddz1sPpBAlWSzeLe9rjI Bzpg== 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=F4zdSAeTR36pMQGtwaCuHIm/Tn7UMjDmn2Qi2wsQT3g=; b=kikwYs+wrpvXSvca8X30Ie+OtvEZj0VzLw9qjLJNmXwI3fVOeeyh921g5r+1xJzE4f vgQEmUKvC0mXCmytlce4u75RrXYI0Q1vK2ASK6WU+EKR3agt/Hv3F8OtIGVaGpQV8LEc BjdSOXlrMCD/pHPKMqvD6aCX4nXRfSlvnYgrF+JTmAMw3lrQdSM+iegYXWYATddRrIZc I8/KxPQx3wco6dgwLC8w70DM+ERPynY5mozvAMvtV9la9w++BXVogDnFJBn7fRzogA/s dgoM6GWWMWCa+wVvrbkr+kItk84qNj24Y0L3q9QdAlxrQ/K0DAikwG0dsNnR1q/npW9z AmzA== X-Gm-Message-State: AOAM53240AhZHsqjxcoqMIMbCoGExwsaURxHqshZ0GO5h8TVDRSUul1k M9+wt9qxmJS8+vrhiRbtp9X47R+88ER49YPw63g= X-Google-Smtp-Source: ABdhPJzGhFXQWFBp7oq8pNmcvpHf0i/OkNBRQkZNTKveGkwa/9diYBUdE5z+0lz/hI9JVUth4CnHmw== X-Received: by 2002:a17:90b:1e4f:b0:1e0:b91:39ef with SMTP id pi15-20020a17090b1e4f00b001e00b9139efmr6911506pjb.51.1653637522601; Fri, 27 May 2022 00:45:22 -0700 (PDT) Original-Received: from localhost ([104.223.86.8]) by smtp.gmail.com with ESMTPSA id w23-20020aa78597000000b0050dc7628150sm2747264pfn.42.2022.05.27.00.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 00:45:21 -0700 (PDT) In-Reply-To: <87ilprihg0.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:233158 Archived-At: Po Lu writes: > Ihor Radchenko writes: >> I am experiencing Emacs crashes/flickering on Linux with the >> following: > > Then please show a backtrace from such a crash generated by gdb. After compiling Emacs with the following configure flags: ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type CFLAGS='-O0 -g3' --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --with-pdumper --enable-acl --with-dbus --with-modules --without-gameuser --with-libgmp --without-gpm --with-native-compilation --with-json --without-kerberos --without-kerberos5 --without-lcms2 --with-xml2 --without-mailutils --with-selinux --without-sqlite3 --with-gnutls --without-libsystemd --with-threads --with-wide-int --with-zlib --with-sound=oss --with-x --without-pgtk --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-xpm --with-xft --with-cairo --with-harfbuzz --without-libotf --without-m17n-flt --with-x-toolkit=no --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --without-webp --with-imagemagick --with-dumping=pdumper I got the following backtrace after waiting for deferred native-comp to finish and executing (let ((process-connection-type nil)) (start-process-shell-command "1" nil "xdg-open ~/.bashrc")) multiple times in scratch buffer: > gdb --args ./emacs -Q -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 -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 17839)] [Detaching after vfork from child process 17907] <- flickering [Detaching after vfork from child process 18197] <- flickering [Detaching after vfork from child process 18326] <- flickering [Detaching after vfork from child process 18419] <- flickering [Detaching after vfork from child process 18542] <- flickering [Detaching after vfork from child process 18654] Thread 1 "emacs" hit Breakpoint 2, x_error_quitter (display=0x555559323390, event=0x7fffffffa210) at xterm.c:21573 21573 { (gdb) (gdb) quit A debugging session is active. Inferior 1 [process 17832] will be killed. Quit anyway? (y or n) y Best, Ihor