Your message dated Sun, 3 Jul 2016 11:22:15 +0200
with message-id <[email protected]>
and subject line closing bugs reported against ancient python versions
has caused the Debian Bug report #529449,
regarding pdb: should flush output buffer on prompt
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
529449: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529449
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python2.5
Version: 2.5.4-1
Severity: normal
Tags: patch

As a result of i/o buffering, pdb is unable to debug some programs:

$ cat foo
#!/usr/bin/python

import os

for i in range(1001):
    pass

os._exit(1)
$ yes s | pdb foo | tail | grep .
(Pdb) > /tmp/foo(5)<module>()
-> for i in range(1001):
(Pdb) > /tmp/foo(6)<module>()
-> pass
(Pdb) > /tmp/foo(5)<module>()
-> for i in range(1001):
(Pdb) > /tmp/foo(6)<module>()
-> pass
(Pdb) > /tmp/foo(5)<module>()
-> for i in range(100
$

(See #529429 for a real world example. PYTHONUNBUFFERED can be used as a
workaroud. Output is not necessarily deterministic.)

Please flush the output buffer on prompt. The attached patch fixes the problem.

Attachment: pdb-flush.patch
Description: application/octetstream


--- End Message ---
--- Begin Message ---
This bug has been reported against an ancient version of
python (2.5/3.1), that was last released with Debian 6.0 (squeeze). But
even squeeze-lts has now reached end-of-life and is no longer supported.
The bug is assumed to be fixed (or no longer relevant) in newer python
releases and therefore I'm closing this report now. If the problem is
still reproducible in the currently supported versions (python2.7,
python3.5/python3.6), feel free to provide more information, reopen
and reassign this bug report.


Andreas

--- End Message ---

Reply via email to