GNU bug report logs - #6099
23.1; pdb can't invoke python directly

Previous Next

Packages: emacs, ns;

Reported by: David Abrahams <dave <at> boostpro.com>

Date: Tue, 4 May 2010 16:17:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 23.1

Done: Fabián Ezequiel Gallina <fabian <at> anue.biz>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6099 in the body.
You can then email your comments to 6099 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6099; Package emacs. (Tue, 04 May 2010 16:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Abrahams <dave <at> boostpro.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 04 May 2010 16:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Abrahams <dave <at> boostpro.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; pdb can't invoke python directly
Date: Tue, 04 May 2010 12:17:07 -0400
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


1. `M-! echo 'print ".hello"' > foo.py RET
2. `M-x pdb RET python -m pdb foo.py RET'

I get a *gud* buffer with no prompt.  If I create a little executable
script, “bar”

    #!/bin/sh
    python -m pdb foo.py

and then `M-x pdb RET ./bar RET'

Everything works as expected.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2009-08-16 on black.local
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--with-ns''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  show-paren-mode: t
  server-mode: t
  global-auto-revert-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x b : SPC <right> <return> g n n n n n n n n n <return> 
C-x C-k <tab> k y e s <return> C-x C-p q u i t <return> 
q u i t <return> M-x M-p M-p M-p M-p M-p M-p <return> 
<return> c <return> C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-n C-n C-n C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-e C-n C-n C-, C-, C-, C-, C-, C-, 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-e C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-e C-n C-n C-n C-n C-n C-n C-p C-p 
C-p C-n C-n C-n C-a C-. C-. C-. C-. C-x C-n C-x C-f 
<M-backspace> i n <backspace> <backspace> p i p <tab> 
r e q <return> C-x C-k C-x C-f M-p <tab> <return> C-x 
C-g 9 8 3 <return> C-p C-p C-p C-p C-e C-n C-n C-n 
C-p C-, C-, C-, C-. C-. C-, C-p C-, C-, C-x C-b C-x 
C-b C-x C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-x C-n C-n C-. C-. C-. C-. C-, C-, C-, C-, 
M-x r e p o r t - e m <tab> b u <tab> <return>

Recent messages:
Mark saved where search started
Mark set
pdbtrack: Traceback cue not found
Reverting buffer `pkg_resources.py'.
Mark set [2 times]
pdbtrack: line 161, file /Users/dave/work/pipsync/int/pip/commands/install.py
Mark set
pdbtrack: Traceback cue not found
(New file)
Mark set


-- 
Dave Abrahams           Meet me at BoostCon: http://www.boostcon.com
BoostPro Computing
http://www.boostpro.com






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6099; Package emacs. (Mon, 23 Aug 2010 00:30:03 GMT) Full text and rfc822 format available.

Message #8 received at 6099 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: David Abrahams <dave <at> boostpro.com>
Cc: 6099 <at> debbugs.gnu.org
Subject: Re: 23.1; pdb can't invoke python directly
Date: Sun, 22 Aug 2010 20:30:48 -0400
> 1. `M-! echo 'print ".hello"' > foo.py RET
> 2. `M-x pdb RET python -m pdb foo.py RET'
>
> I get a *gud* buffer with no prompt.
>
> In GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
>  of 2009-08-16 on black.local

I'm afraid I can't reproduce this.  I get a *gud-pdb* buffer, as
expected.  Maybe this is operating system specific.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6099; Package emacs. (Mon, 23 Aug 2010 01:09:02 GMT) Full text and rfc822 format available.

Message #11 received at 6099 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Dave Abrahams <dave <at> boostpro.com>
Cc: 6099 <at> debbugs.gnu.org
Subject: Re: 23.1; pdb can't invoke python directly
Date: Sun, 22 Aug 2010 21:09:41 -0400
Dave Abrahams <dave <at> boostpro.com> writes:

> Let me try to fix the instructions for reproducing this, though:
>
> 1. `M-! echo 'print "hello"' > foo.py RET'
> 2. `M-S-: (pdb "python -m pdb foo.py") RET'
>
> Now hit return.  *gud-pdb* does _not_ contain ">>>"

I get a buffer containing

  Current directory is ~/
  > /home/cyd/foo.py(1)<module>()
  -> print "hello"
  (Pdb) 

With "(Pdb)" as the prompt.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6099; Package emacs. (Mon, 23 Aug 2010 04:53:02 GMT) Full text and rfc822 format available.

Message #14 received at 6099 <at> debbugs.gnu.org (full text, mbox):

From: Dave Abrahams <dave <at> boostpro.com>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 6099 <at> debbugs.gnu.org
Subject: Re: 23.1; pdb can't invoke python directly
Date: Sun, 22 Aug 2010 20:53:27 -0800
On Sun, Aug 22, 2010 at 5:09 PM, Chong Yidong <cyd <at> stupidchicken.com> wrote:
> Dave Abrahams <dave <at> boostpro.com> writes:
>
>> Let me try to fix the instructions for reproducing this, though:
>>
>> 1. `M-! echo 'print "hello"' > foo.py RET'
>> 2. `M-S-: (pdb "python -m pdb foo.py") RET'
>>
>> Now hit return.  *gud-pdb* does _not_ contain ">>>"
>
> I get a buffer containing
>
>  Current directory is ~/
>  > /home/cyd/foo.py(1)<module>()
>  -> print "hello"
>  (Pdb)
>
> With "(Pdb)" as the prompt.

Oh, well I don't.  Perhaps it is indeed platform specific.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6099; Package emacs,ns. (Thu, 24 Jan 2013 01:56:02 GMT) Full text and rfc822 format available.

Message #17 received at 6099 <at> debbugs.gnu.org (full text, mbox):

From: Fabián Ezequiel Gallina <fabian <at> anue.biz>
To: 6099 <at> debbugs.gnu.org
Date: Wed, 23 Jan 2013 22:55:24 -0300
I just quickly tested this in the emacs-24 branch and worked for me, I'm 
closing this. Feel free to reopen if you find it happening again.




bug closed, send any further explanations to 6099 <at> debbugs.gnu.org and David Abrahams <dave <at> boostpro.com> Request was from Fabián Ezequiel Gallina <fabian <at> anue.biz> to control <at> debbugs.gnu.org. (Thu, 24 Jan 2013 01:56:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 21 Feb 2013 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.