Your message dated Mon, 14 May 2012 00:24:16 +0300
with message-id <[email protected]>
and subject line Re: reassign 360848 to python2.7-dev, reassign 387039 to 
python2.7-dev, reassign 530175 to python2.7-dev ...
has caused the Debian Bug report #563077,
regarding python2.5-dev: pylocals in gdbinit uses f->f_nlocals which does not 
exist
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.)


-- 
563077: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563077
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python2.5-dev
Version: 2.5.4-3
Severity: minor
File: /usr/share/doc/python2.5/gdbinit

In the python2.5-dev package, /usr/share/doc/python2.5/gdbinit is
a GNU Debugger script that defines various commands for debugging
Python.  One of those commands is "pylocals", which is supposed
to display the local variables of the Python frame that is being
evaluated in PyEval_EvalFrameEx.  The command reads the parameter
PyFrameObject *f from the C stack and then attempts to loop over
the Python local variables that *f describes.

The command does not work because it tries to read f->f_nlocals
and PyFrameObject has no such member.  I guess from the comments
that (f->f_valuestack - f->f_localsplus) should be used instead.
That gave reasonable-looking results when I tried it, but I
haven't really verified that it's right.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python2.5-dev depends on:
ii  python2.5                     2.5.4-3    An interactive high-level object-o

Versions of packages python2.5-dev recommends:
ii  gcc                           4:4.3.4-2  The GNU C compiler
ii  libc6-dev [libc-dev]          2.10.2-2   GNU C Library: Development Librari

python2.5-dev suggests no packages.

-- no debconf information

Attachment: pgpFWw8m6L3lX.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: python2.6
Version: 2.6.5~rc2-1

David Prévot <[email protected]> writes:

> # Those old python2.4-dev and python2.5-dev bugs may or may not still
> # apply to python2.7-dev, but reassigning them where people can
> # actually handle them and close those that don't apply any more…
> # Good luck!

In python2.7/2.7.3~rc2-2.1, /usr/share/doc/python2.7/gdbinit.gz
defines a pylocals command that does not read f->f_nlocals.
It also appears to succeed in displaying the values of
multiple Python local variables, i.e. it doesn't read other
undefined members either, so the bug I reported has been
fixed.

(I did not test whether the output of pylocals was actually
correct.  Also, pylocals occasionally segfaulted the python
process when I ran it from a breakpoint at the beginning of
PyEval_EvalFrameEx.  I guess it would be safer to run pylocals
From a breakpoint in an application-defined function called by
Python.)

The relevant change in Misc/gdbinit was made between
python2.6/2.6.4-6 and python2.6/2.6.5~rc2-1.  Both of those
appear in the Debian changelog of python2.7/2.7.3~rc2-2.1.
I hope that marking the bug as fixed in 2.6.5~rc2-1 will let
debbugs see that the current versions include the fix.

Attachment: pgptzuM2UTtcQ.pgp
Description: PGP signature


--- End Message ---

Reply via email to