From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Newsgroups: gmane.emacs.bugs Subject: bug#54667: 29.0.50; posix_spawn breaks emacs-gdb Date: Fri, 1 Apr 2022 12:51:43 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30237"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 To: 54667@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 01 12:54:36 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 1naEvK-0007ek-Sn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 12:54:34 +0200 Original-Received: from localhost ([::1]:56428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naEvJ-0004OS-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 06:54:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naEss-0000Sr-98 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 06:52:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naEsr-00057K-WE for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 06:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naEsr-0005aN-Qe for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 06:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Apr 2022 10:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54667 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164881031821449 (code B ref -1); Fri, 01 Apr 2022 10:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2022 10:51:58 +0000 Original-Received: from localhost ([127.0.0.1]:40984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naEso-0005Zt-2X for submit@debbugs.gnu.org; Fri, 01 Apr 2022 06:51:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naEsm-0005Zj-80 for submit@debbugs.gnu.org; Fri, 01 Apr 2022 06:51:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naEsl-0000PA-VQ for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 06:51:55 -0400 Original-Received: from [2a00:1450:4864:20::631] (port=45812 helo=mail-ej1-x631.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naEsk-00055Y-1c for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 06:51:55 -0400 Original-Received: by mail-ej1-x631.google.com with SMTP id i16so4937629ejk.12 for ; Fri, 01 Apr 2022 03:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=U/bCCmtDG3t5XgBnZvFUuOFKxaKJouMIGMJK6WbYoqw=; b=b7Xf2jWzv8rH3ECMelutzoXpRYxyMUSJ8Yr14mwf/0MmN5vLJqSHUgKyPMcGn1/9/A kzNjWAw1MN5M3DzO+/MGYIurVcGMU7HfAXFKsDhuNi9V694ADVKkOiF05gqdyGKd9JsY n8HUHGv+b/1hebRwuIwclaqyvYNhtgS6A1nJNzvlnc/6mIxCIpfWp3Z5xGEmjGMhcjCU vuGric+wuKlVabkNGKqO2QZPtcdEhDMp84D9FlNR00IwJh+Ide7OEwEAwl+A+zv0SrQR vCZpilgGfx80bS5fi1rsAn6fg0u9bxFyejQhXVLrBvLPl3osiQLRtUyrCL1Ycme60+k9 dezw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=U/bCCmtDG3t5XgBnZvFUuOFKxaKJouMIGMJK6WbYoqw=; b=EWH3yRXI52II+war3R8eJFsFQaiD2qIX2lMQ5i0GeyYq7kgDV+caarhBNMw4TkP6at C4iimHy1o7Q30thKi5XpQq6Y7Cc3vBpXhP8FTfg4udwkIUkltLu671ZzB9YOYvMLMRgC 0P/tK1OKhReK+tJfwZKJy0VEr9yHyXTCgrNJJmdkzgYPhh9NBPFQMZuWH8NJLdJgeowX EuzLc/LpuwUWsEWdLBRNgOhXU5kFP7SxHuQrciQIKdH+4QWSXLHAmxOQ/OKDkeR3kf+W GzTcfoK5WKg1KqSIUzvTAEWXvE8QlQYK4gzWIKIOL6+1Fqd1b1QzAF4z9dEVrU0qJerk htGw== X-Gm-Message-State: AOAM532HWMqInv6S8smmatSO5GQ6Nsh0l4XB3TSNGIBZMiHu7yVfeiED 6je/ksd+y08Q1oexgAkYcCk= X-Google-Smtp-Source: ABdhPJwCqDLZPBjMsljnD2bK2HezJsG+o+KWZNp57CVBqSGrxjFkLt/iEKc8bWmmgaMugs/VoiHZJA== X-Received: by 2002:a17:907:1b27:b0:6d9:ceb6:7967 with SMTP id mp39-20020a1709071b2700b006d9ceb67967mr9235898ejc.186.1648810305043; Fri, 01 Apr 2022 03:51:45 -0700 (PDT) Original-Received: from [192.168.8.4] (netacc-gpn-104-27-105.pool.telenor.hu. [91.104.27.105]) by smtp.gmail.com with ESMTPSA id b3-20020aa7d483000000b00419209d4c85sm1032152edr.66.2022.04.01.03.51.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Apr 2022 03:51:44 -0700 (PDT) Content-Language: sv-FI X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::631 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=geza.herman@gmail.com; helo=mail-ej1-x631.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:229213 Archived-At: There's a gdb frontend: https://github.com/weirdNox/emacs-gdb With the emacs commit "a60053f836 Use posix_spawn if possible.", emacs-gdb doesn't work properly: when starting an executable, gdb says that it's running, but in reality, it doesn't start. The process itself is started, gdb attaches to it, but the process still not run for some reason. You can reproduce this: 1. install emacs-gdb 2. M-x gdb-executable, enter any executable, like "/bin/ls". emacs-gdb should open a new frame. 3. Then press f5 (this executes gdb-run-or-continue), this should start the process in gdb. Before the mentioned commit, this worked, and "ls" was run properly. But with this commit, "ls" isn't started. I checked this with a recent master (bd5d136777ef30f36807c7e690413846ed38fce1), and still happens. Adding #undef USABLE_POSIX_SPAWN #define USABLE_POSIX_SPAWN 0 to callproc.c at line 49 fixes the issue. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)  of 2022-04-01 built on zetor Repository revision: bd5d136777ef30f36807c7e690413846ed38fce1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid Configured using:  'configure --with-native-compilation --without-compress-install  --with-xinput2' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings:   value of $LC_ALL: C.UTF-8   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=none   locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect:   gdb-keys-mode: t   tooltip-mode: t   global-eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   abbrev-mode: t Load-path shadows: /home/geza/.emacs.d/elpa/transient-20220216.2303/transient hides /usr/local/share/emacs/29.0.50/lisp/transient ~/.emacs.d/lisp/emacs-gdb/gdb-mi hides /usr/local/share/emacs/29.0.50/lisp/progmodes/gdb-mi Features: (shadow sort mail-extr emacsbug message yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils gdb-mi comp comp-cstr warnings rx cl-extra gdb-module hydra lv comint ansi-color ring help-fns radix-tree cl-print debug backtrace help-mode find-func finder-inf info helm-easymenu advice package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 186444 9283)  (symbols 48 14946 0)  (strings 32 49762 3465)  (string-bytes 1 1931765)  (vectors 16 27008)  (vector-slots 8 517036 11837)  (floats 8 65 232)  (intervals 56 890 0)  (buffers 992 20))