This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bkabrda
Recipients bkabrda
Date 2014-10-30.11:51:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414669906.53.0.952011236022.issue22765@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch fixes two test_gdb problems that can occur under some circumstances:

- With new GDB (I think version >= 7.4.0, but I'm not sure about the precise version), GDB sometimes prints "entry-values" for variables, which can lead to failures like: "AssertionError: 'v@entry=()' != '()'". The cure for that is using "set print entry-values no" in GDB. I think this is also the root cause of issue 17126.

- While building on ppc64 little endian for Fedora, we experienced GDB printing program counter for the first frame, which breaks regular expressions matching in tests, e.g. instead of

#0 in PyObject_Print

the lines can look like

#0 0x00003fffb7dd1798 in PyObject_Print

I've talked to Fedora's GDB maintainer and I've been told that this can happen and it's not a GDB bug - GDB does not guarantee this. Therefore the second part of the attached patch turns printing program counters for *all* frames using "set print address off" to achieve same GDB output everywhere.
History
Date User Action Args
2014-10-30 11:51:46bkabrdasetrecipients: + bkabrda
2014-10-30 11:51:46bkabrdasetmessageid: <1414669906.53.0.952011236022.issue22765@psf.upfronthosting.co.za>
2014-10-30 11:51:46bkabrdalinkissue22765 messages
2014-10-30 11:51:46bkabrdacreate