classification
Title: test_gdb failure on Debian Wheezy for Z
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: BreamoreBoy, David.Edelsohn, python-dev, serhiy.storchaka, vstinner
Priority: normal Keywords:

Created on 2014-11-11 01:53 by David.Edelsohn, last changed 2015-02-14 23:00 by serhiy.storchaka. This issue is now closed.

Messages (6)
msg230997 - (view) Author: David Edelsohn (David.Edelsohn) * Date: 2014-11-11 01:53
I added a Buildbot on another zLinux system running Debian Wheezy and it shows a different GDB error message: linux-vdso64.so.  Can you please add something like the following to allow test_gdb to pass?

diff -r 524a004e93dd Lib/test/test_gdb.py
--- a/Lib/test/test_gdb.py	Mon Nov 10 23:15:56 2014 +0200
+++ b/Lib/test/test_gdb.py	Mon Nov 10 20:51:49 2014 -0500
@@ -169,6 +169,8 @@
             'linux-vdso.so',
             'warning: Could not load shared library symbols for '
             'linux-gate.so',
+            'warning: Could not load shared library symbols for '
+            'linux-vdso64.so',
             'Do you need "set solib-search-path" or '
             '"set sysroot"?',
             'warning: Source file is more recent than executable.',
msg235962 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-02-14 10:21
The inline patch seems fine to my eyes but who would usually comment on a proposed change to test_gdb.py?
msg235973 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-02-14 14:39
Could you please show tests logs David?
msg235989 - (view) Author: David Edelsohn (David.Edelsohn) * Date: 2015-02-14 20:28
The errors are of the form:

======================================================================
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 "/mnt/DREAMStorage/dje/cpython-buildarea/3.x.edelsohn-zwheezy-z/build/Lib/test/test_gdb.py", line 470, in test_NULL_ob_type
    'set v->ob_type=0')
  File "/mnt/DREAMStorage/dje/cpython-buildarea/3.x.edelsohn-zwheezy-z/build/Lib/test/test_gdb.py", line 441, in assertSane
    cmds_after_breakpoint=cmds_after_breakpoint)
  File "/mnt/DREAMStorage/dje/cpython-buildarea/3.x.edelsohn-zwheezy-z/build/Lib/test/test_gdb.py", line 227, in get_gdb_repr
    import_site=import_site)
  File "/mnt/DREAMStorage/dje/cpython-buildarea/3.x.edelsohn-zwheezy-z/build/Lib/test/test_gdb.py", line 205, in get_stack_trace
    self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['warning: Could not load shared library symbols for linux-vdso64.so.1.'] != []

First list contains 1 additional elements.
First extra element 0:
warning: Could not load shared library symbols for linux-vdso64.so.1.

- ['warning: Could not load shared library symbols for linux-vdso64.so.1.']
+ []
msg235990 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-02-14 20:37
Thanks. The patch LGTM.
msg235992 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-02-14 20:49
New changeset ae5d868513fd by Serhiy Storchaka in branch '3.4':
Issue #22844: Fized test_gdb failure on Debian Wheezy for Z.
https://hg.python.org/cpython/rev/ae5d868513fd

New changeset df696b544b3c by Serhiy Storchaka in branch 'default':
Issue #22844: Fized test_gdb failure on Debian Wheezy for Z.
https://hg.python.org/cpython/rev/df696b544b3c

New changeset eb3a6243af33 by Serhiy Storchaka in branch '2.7':
Issue #22844: Fized test_gdb failure on Debian Wheezy for Z.
https://hg.python.org/cpython/rev/eb3a6243af33
History
Date User Action Args
2015-02-14 23:00:46serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: commit review -> resolved
2015-02-14 20:49:35python-devsetnosy: + python-dev
messages: + msg235992
2015-02-14 20:37:51serhiy.storchakasetassignee: serhiy.storchaka
messages: + msg235990
stage: commit review
2015-02-14 20:28:16David.Edelsohnsetmessages: + msg235989
2015-02-14 14:39:25serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg235973
2015-02-14 10:21:59BreamoreBoysetnosy: + BreamoreBoy
messages: + msg235962
2014-11-11 01:53:08David.Edelsohncreate