From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#34489: 25.2; pdb fails if directory contains '++' Date: Sun, 30 Jun 2019 18:13:19 +0200 Message-ID: References: <87r2c94flq.fsf@sipc87.si.ehu.es> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126002"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34489@debbugs.gnu.org To: a.soroa@ehu.eus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 30 18:14:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.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 1hhcSv-000Wdx-Vw for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2019 18:14:10 +0200 Original-Received: from localhost ([::1]:45614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhcSv-0002jW-0E for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2019 12:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44719) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhcSp-0002gz-CH for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 12:14:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhcSo-0001Ti-Dg for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 12:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33629) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhcSo-0001TT-8x for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 12:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hhcSo-0000vB-3H for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2019 12:14:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87r2c94flq.fsf@sipc87.si.ehu.es> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2019 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34489 X-GNU-PR-Package: emacs Original-Received: via spool by 34489-submit@debbugs.gnu.org id=B34489.15619112193489 (code B ref 34489); Sun, 30 Jun 2019 16:14:02 +0000 Original-Received: (at 34489) by debbugs.gnu.org; 30 Jun 2019 16:13:39 +0000 Original-Received: from localhost ([127.0.0.1]:47173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhcSR-0000uC-Gl for submit@debbugs.gnu.org; Sun, 30 Jun 2019 12:13:39 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:53815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhcSO-0000ty-UW for 34489@debbugs.gnu.org; Sun, 30 Jun 2019 12:13:37 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id x15so13456364wmj.3 for <34489@debbugs.gnu.org>; Sun, 30 Jun 2019 09:13:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=D7SOI9G5/bOxkIvGWud4BpmS1WNXoKe9aLQoUVSFYgk=; b=qrY43eySIAX0OGCVww9cuT7JfSwMcd6IG8V/yGkW8MT8BL/USZB6ZH4CerWNJeMrLj OcbSXDX5BZ+qqFW3glosW+DGbFHvz33oxmJu4KHl0mbi4+lRBBbI212G0vnV0NPOw+g6 yMy3Qv+e4b1F2U/l44ST4bjpAlyeAMheVSZUe2Q/VZROH4ZL0XrrSbjKWIA6mzqK5+5Y 58kQ5x8YaC1V+DeR2FTQ+pB7iME8hS+kJOjiLfPkU8zmho36ibhx3hGWwAkuPWZ5xwth KxhJu01R/buZTzWseOikLPyVjjAb3Ohcg78H0bmIKPdHo5okMym1LCtpn3iVX5fiNnVO bkKw== X-Gm-Message-State: APjAAAUlbdh3upwi3jFEn8Xc3/T5LNWIwSbMyFJ9+4hCUZW8CH04vUku 59mvr0OqBt6ErfpbfKF5qFEiPCMrN9YRrXlI4lQ= X-Google-Smtp-Source: APXvYqzWt/pBYWAR5ePcGxvC+Yrvdx2ufibLNGx5ja8bbqJcklE3R9Fkrx3FxNpn40r9momDwOXeiEJSlMKMPyZqnSI= X-Received: by 2002:a1c:b6d4:: with SMTP id g203mr13954948wmf.19.1561911210892; Sun, 30 Jun 2019 09:13:30 -0700 (PDT) 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161897 Archived-At: a.soroa@ehu.eus (a.soroa) writes: > 'pdb' command does not work if the directory where the python script is > contains the characters '++'. Here is a receipt > > $ mkdir /tmp/foo++ > $ cd /tmp/foo++ > $ echo "print(10)" > pp.py > $ emacs -Q > M-x pdb > Run pdb (like this): python3 -m pdb pp.py I am able to reproduce this on current master. The expected behaviour is to see TWO buffers in separate windows, first "*gud-pp.py" with the following content: Current directory is /tmp/foo++/ > /tmp/foo++/pp.py(1)() -> print(10) (Pdb) And the second a buffer visiting "pp.py". The symptom is that you only see ONE buffer "*gud-pp.py*" with the following content: Current directory is /tmp/foo++/ The bug (half) goes away as soon as I try to debug `gud-common-init' using M-x edebug-defun, but only when stepping through manually using "n" (and not when hitting "c"). Without this instrumentation, I get the bug as above. With it, I see the expected output in the "*gud-pp.py*" buffer (but *not* the expected "pp.py" buffer). I tried adding strategic calls to sit-for in gud-common-init and could get the same result as with M-x edebug-defun. Does anyone have any ideas what could cause this? Thanks, Stefan Kangas