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.

classification
Title: test_gdb failures on Ubuntu 14.10
Type: Stage: resolved
Components: Tests Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: barry, cheryl.sabella, dmalcolm, flupke, sYnfo, vstinner
Priority: normal Keywords: patch

Created on 2014-09-02 20:40 by barry, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_gdb.patch vstinner, 2014-10-09 11:48 review
Messages (7)
msg226280 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2014-09-02 20:40
Lots of them, just like this:

======================================================================
FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with NULL ob_type is handled gracefully
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/barry/projects/python/cpython/Lib/test/test_gdb.py", line 449, in test_NULL_ob_type
    'set v->ob_type=0')
  File "/home/barry/projects/python/cpython/Lib/test/test_gdb.py", line 420, in assertSane
    cmds_after_breakpoint=cmds_after_breakpoint)
  File "/home/barry/projects/python/cpython/Lib/test/test_gdb.py", line 206, in get_gdb_repr
    import_site=import_site)
  File "/home/barry/projects/python/cpython/Lib/test/test_gdb.py", line 184, in get_stack_trace
    self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ["Got object file from memory but can't read symbols: File truncated."] != []

First list contains 1 additional elements.
First extra element 0:
Got object file from memory but can't read symbols: File truncated.

- ["Got object file from memory but can't read symbols: File truncated."]
+ []
msg227614 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2014-09-26 13:06
I'm seeing the same, it could be an Ubuntu issue:

https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1348275
msg228684 - (view) Author: Matěj Stuchlík (sYnfo) Date: 2014-10-06 14:05
Suddenly started to see the same error on Fedora rawhide [0].

[0] https://kojipkgs.fedoraproject.org//work/tasks/3551/7773551/build.log
msg228800 - (view) Author: Matěj Stuchlík (sYnfo) Date: 2014-10-08 17:07
FYI I'm seeing the error with the new 3.4.2 release as well.

https://kojipkgs.fedoraproject.org//work/tasks/599/7800599/build.log
msg228860 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-10-09 11:48
Is it only a warning or python-gdb.py doesn't work at all? If it's a warning, attached test_gdb.patch should fix it.
msg228864 - (view) Author: Matěj Stuchlík (sYnfo) Date: 2014-10-09 12:06
While with Python3.5's test_gdb does fail when building in Koji [0], it seems to pass fine in our other build system - Copr [1]. Comparing the two [2][3], it seems the only big difference is the kernel version - 2.6.32 in Copr and 3.16.3 in Koji. Not sure how relevant this is, just something I noticed.

[0] https://kojipkgs.fedoraproject.org//work/tasks/700/7810700/build.log
[1] http://copr-be.cloud.fedoraproject.org/results/churchyard/python3-nightly/fedora-21-i386/python3-3.5.0-0.117.20141009hgf7124c167603.fc20/build.log
[2] https://kojipkgs.fedoraproject.org//work/tasks/700/7810700/root.log
[3] http://copr-be.cloud.fedoraproject.org/results/churchyard/python3-nightly/fedora-21-i386/python3-3.5.0-0.117.20141009hgf7124c167603.fc20/root.log
msg338767 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2019-03-24 23:14
I'm going to close this issue as out of date since Ubuntu 14.10 is an older release and this doesn't seem to happen on later releases.  Please reopen if it's still an issue.
History
Date User Action Args
2022-04-11 14:58:07adminsetgithub: 66523
2019-03-24 23:14:16cheryl.sabellasetstatus: open -> closed

nosy: + cheryl.sabella
messages: + msg338767

resolution: out of date
stage: resolved
2014-10-14 15:14:58skrahsetnosy: - skrah
2014-10-09 12:06:29sYnfosetmessages: + msg228864
2014-10-09 11:48:51vstinnersetfiles: + test_gdb.patch

nosy: + vstinner
messages: + msg228860

keywords: + patch
2014-10-08 17:07:20sYnfosetmessages: + msg228800
2014-10-06 14:05:03sYnfosetnosy: + sYnfo
messages: + msg228684
2014-09-26 13:06:02skrahsetnosy: + skrah
messages: + msg227614
2014-09-08 12:40:06flupkesetnosy: + flupke
2014-09-03 00:44:36pitrousetnosy: + dmalcolm
2014-09-02 20:54:48barrysetversions: + Python 3.4
2014-09-02 20:40:31barrycreate