From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aleksandar =?UTF-8?Q?Popadi=C4=87?= Newsgroups: gmane.emacs.bugs Subject: bug#54353: 29.0.50; macOS: gdb over ssh into docker stalls Date: Sat, 12 Mar 2022 12:42:05 +0100 Message-ID: <25bc7bf1-6633-4d4e-b62d-939c71f22b87@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0f754b69495147ed8dd4ec3ad4a8ce05 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18119"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997 To: 54353@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 12 17:06:24 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 1nT4G8-0004Zd-FA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 17:06:24 +0100 Original-Received: from localhost ([::1]:39730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT4G7-00015F-0k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 11:06:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT4Fn-00014v-Go for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2022 11:06:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nT4Fm-0000lq-Ac for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2022 11:06:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nT4Fl-0005ae-Sn for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2022 11:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aleksandar =?UTF-8?Q?Popadi=C4=87?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Mar 2022 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54353 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.164710114821451 (code B ref -1); Sat, 12 Mar 2022 16:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2022 16:05:48 +0000 Original-Received: from localhost ([127.0.0.1]:40664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT4FX-0005Zu-PF for submit@debbugs.gnu.org; Sat, 12 Mar 2022 11:05:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT09E-0004zL-6W for submit@debbugs.gnu.org; Sat, 12 Mar 2022 06:43:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT09D-0004Jc-WF for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2022 06:43:00 -0500 Original-Received: from mailoutvs27.siol.net ([185.57.226.218]:53842 helo=mail.siol.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT09B-0007RO-AN for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2022 06:42:59 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 0D53252BD25 for ; Sat, 12 Mar 2022 12:42:53 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Original-Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id il9qVzJpiBwA for ; Sat, 12 Mar 2022 12:42:52 +0100 (CET) Original-Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 8863552BD35 for ; Sat, 12 Mar 2022 12:42:52 +0100 (CET) Original-Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) (Authenticated sender: popadic) by mail.siol.net (Zimbra) with ESMTPA id 30C6252BD2E for ; Sat, 12 Mar 2022 12:42:51 +0100 (CET) Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id C682827C0054 for ; Sat, 12 Mar 2022 06:42:50 -0500 (EST) Original-Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Sat, 12 Mar 2022 06:42:50 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddvgedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehmtderre erreejnecuhfhrohhmpeetlhgvkhhsrghnuggrrhgprfhophgrughitgcuoegrlhgvkhhs rghnuggrrhdrphhophgrughitgesshhiohhlrdhnvghtqeenucggtffrrghtthgvrhhnpe evkeeujefhteeutefftdegkeethfejudejuddvieevieekgeehgfeiudejudfhhfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhgvkhhsrg hnuggrrhhpohhprgguihgtodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdek ledtjeejtdejvddqudelgeelkedtgedtqdgrlhgvkhhsrghnuggrrhdrphhophgrughitg eppehsihholhdrnhgvthesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 79EAB1923831; Sat, 12 Mar 2022 06:42:50 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=185.57.226.218; envelope-from=aleksandar.popadic@siol.net; helo=mail.siol.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 12 Mar 2022 11:05:45 -0500 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:228249 Archived-At: --0f754b69495147ed8dd4ec3ad4a8ce05 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable I am not sure if this is an emacs bug or not, but I would be grateful fo= r at least some pointers on how to debug this. =20 The issue is that emacs will stall upon hitting a breakpoint until I pre= ss C-g. (tramp backtrace is pasted below) Here is the setup and steps to reproduce: - macOS v12.2.1 (stuck with it for work) running emacs built from master - SSH server running in a docker container (minimal Dockerfile to reprod= uce is attached below) - run emacs with: ./emacs -Q --eval '(setq tramp-verbose 10)' - C-x C-f: /ssh:test@localhost#2222:test.c (password is test) - M-x gdb: gdb -i=3Dmi /ssh:test@localhost#2222:test - set breakpoints on 3 lines within test.c with C-x C-a C-b - in *gud-gdb*: run --> breakpoint is hit, all is fine - continue --> emacs stalls - after pressing C-g, it unstalls It works if I connect to an ssh server that is not in a docker container= . It also works if I use my personal Debian GNU/Linux machine instead of= a mac. In tramp debug buffer, I see the following: 11:58:17.969961 tramp-accept-process-output (10) #=20 backtrace() tramp-error((tramp-file-name "ssh" "test" nil "localhost" "2222" "/hom= e/test/test.c" nil) quit "") tramp-signal-hook-function(quit nil) accept-process-output(# nil n= il t) tramp-accept-process-output(#) tramp-wait-for-regexp(# nil "= \\(^\\|\0\\)[^#$\n]*///f743817e0468bdcc00a56151a4c9b874...") tramp-wait-for-output(#) tramp-send-command((tramp-file-name "ssh" "test" nil "localhost" "2222= " "/home/test/test.c" nil) "test -e /home/test/test.c 2>/dev/null; echo = tramp_...") tramp-send-command-and-check((tramp-file-name "ssh" "test" nil "localh= ost" "2222" "/home/test/test.c" nil) "test -e /home/test/test.c") tramp-sh-handle-file-exists-p("/ssh:test@localhost#2222:/home/test/tes= t.c") apply(tramp-sh-handle-file-exists-p "/ssh:test@localhost#2222:/home/te= st/test.c") tramp-sh-file-name-handler(file-exists-p "/ssh:test@localhost#2222:/ho= me/test/test.c") apply(tramp-sh-file-name-handler file-exists-p "/ssh:test@localhost#22= 22:/home/test/test.c") tramp-file-name-handler(file-exists-p "/ssh:test@localhost#2222:/home/= test/test.c") file-exists-p("/ssh:test@localhost#2222:/home/test/test.c") gud-file-name("/home/test/test.c") gud-find-file("/home/test/test.c") gud-display-line("/home/test/test.c" 2) gud-display-frame() gdb-frame-handler() gdb-handle-reply(29) gdb-done-or-error("29" done "frame=3D{level=3D\"0\",addr=3D\"0x000055e= 839174131\",func=3D\"m..." t) gdb-done("29" "frame=3D{level=3D\"0\",addr=3D\"0x000055e839174131\",fu= nc=3D\"m..." t) gdbmi-bnf-incomplete-record-result("29" (gdb-done . progressive)) #f(compiled-function () #)() gdbmi-bnf-result-and-async-record-impl() gdbmi-bnf-async-record() gdbmi-bnf-out-of-band-record() gdbmi-bnf-output() gud-gdbmi-marker-filter("cx\",\"edx\",\"esi\",\"edi\",\"ebp\",\"esp\",= \"r8d\",\"r9d\",\"r10...") apply(gud-gdbmi-marker-filter "cx\",\"edx\",\"esi\",\"edi\",\"ebp\",\"= esp\",\"r8d\",\"r9d\",\"r10...") gud-marker-filter("cx\",\"edx\",\"esi\",\"edi\",\"ebp\",\"esp\",\"r8d\= ",\"r9d\",\"r10...") gud-filter(# "cx\",\"edx\",\"esi\",\"edi\",\"ebp\",\= "esp\",\"r8d\",\"r9d\",\"r10...") 11:58:17.970127 tramp-accept-process-output (1) # Quit: "Quit", "" In *Messages* I would see: Quit: "Quit", "" error in process filter: Quit [2 times] WARNING! Discarding GDB handler with token #29 I don't know if the following is related as I observe it also in cases w= hen it works. In *input/output of test* buffer, i see: &"warning: GDB: Failed to set controlling terminal: Operation not permit= ted\n" In GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.3.0, NS appkit-2113= .30 Version 12.2.1 (Build 21D62)) of 2022-03-09 built on apopadic.local Repository revision: fab840e381db8b5fd226f59d976abd3e4f16bec4 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.2.1 Configured using: 'configure --with-ns --with-mailutils --with-imagemagick --with-cairo --with-modules --with-xml2 --with-gnutls --with-json --with-rsvg --disable-silent-rules --disable-ns-self-contained --without-dbus' Configured features: ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM ZLIB Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: shell-dirtrack-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search 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 gud vc-hg vc-git diff-mode vc-bzr help-fns radix-tree cl-print backtrace help-mode find-func vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs noutline outline easy-mmode tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib password-cache json map seq gv subr-x byte-opt bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 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 simple abbrev obarray cl-preloaded nadvice 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 kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 183353 15572) (symbols 48 11873 1) (strings 32 38355 2131) (string-bytes 1 1370631) (vectors 16 23415) (vector-slots 8 311949 29985) (floats 8 212 243) (intervals 56 30433 0) (buffers 992 20)) Best regards Aleksandar Popadi=C4=87 --0f754b69495147ed8dd4ec3ad4a8ce05 Content-Disposition: attachment;filename="Dockerfile" Content-Type: application/octet-stream; name="Dockerfile" Content-Transfer-Encoding: BASE64 RlJPTSB1YnVudHU6bGF0ZXN0CgpSVU4gYXB0IHVwZGF0ZSAmJiBcCiBhcHQgaW5zdGFsbCBv cGVuc3NoLXNlcnZlciBnY2MgZ2RiIHN1ZG8gLXkKClJVTiB1c2VyYWRkIC1ybSAtZCAvaG9t ZS90ZXN0IC1zIC9iaW4vYmFzaCAtZyByb290IC1HIHN1ZG8gdGVzdCAmJiBcCiBlY2hvICd0 ZXN0OnRlc3QnIHwgY2hwYXNzd2QKIApSVU4gZWNobyAnaW50IG1haW4odm9pZCkge1xuXAoJ aW50IGEgPSAxO1xuXAoJaW50IGIgPSAyO1xuXAoJcmV0dXJuIGEgLSBiO1xuXAp9JyA+IC9o b21lL3Rlc3QvdGVzdC5jICYmIFwKZ2NjIC1nIC1PMCAvaG9tZS90ZXN0L3Rlc3QuYyAtbyAv aG9tZS90ZXN0L3Rlc3QKClJVTiBzZXJ2aWNlIHNzaCBzdGFydApFWFBPU0UgMjIKQ01EIFsi L3Vzci9zYmluL3NzaGQiLCAiLUQiXQo= --0f754b69495147ed8dd4ec3ad4a8ce05--