[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

test_gdb pass again on AMD64 Fedora Rawhide 3.x with "GNU gdb (GDB) Fedora 
10.1-2.fc34":

https://buildbot.python.org/all/#/builders/285/builds/348
0:02:52 load avg: 11.34 [242/426] test_gdb passed (1 min 28 sec) (...)

I close the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington


miss-islington  added the comment:


New changeset c7cf66d2fe1b85cc02153be6422dfc5e34811638 by Miss Islington (bot) 
in branch '3.9':
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
https://github.com/python/cpython/commit/c7cf66d2fe1b85cc02153be6422dfc5e34811638


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington


miss-islington  added the comment:


New changeset 8e8f82dd9459b9f62c21480528d737cffd6146bc by Miss Islington (bot) 
in branch '3.8':
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
https://github.com/python/cpython/commit/8e8f82dd9459b9f62c21480528d737cffd6146bc


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22509
pull_request: https://github.com/python/cpython/pull/23641

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22508
pull_request: https://github.com/python/cpython/pull/23640

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 066394018a8463643cc63d933493f0afa99d72cc by Victor Stinner in 
branch 'master':
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
https://github.com/python/cpython/commit/066394018a8463643cc63d933493f0afa99d72cc


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22505
pull_request: https://github.com/python/cpython/pull/23637

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-09-07 Thread STINNER Victor


STINNER Victor  added the comment:

https://bugzilla.redhat.com/show_bug.cgi?id=1866884 "AArch64: sometimes, gdb 
fails to load symbols of a dynamic library with a pending breakpoint": gdb bug 
has been confirmed.

--
title: test_gdb fails on AMD64 Fedora Rawhide 3.x -> test_gdb fails on AMD64 
Fedora Rawhide 3.x [gdb 9.2 bug]

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset 5e12a5b82230cfa34a9c32f58467770e2076313c by Miss Islington (bot) 
in branch '3.9':
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
https://github.com/python/cpython/commit/5e12a5b82230cfa34a9c32f58467770e2076313c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


miss-islington  added the comment:


New changeset 87bc22051fcfcf181160d06a57ac2b16ee071f8f by Miss Islington (bot) 
in branch '3.8':
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
https://github.com/python/cpython/commit/87bc22051fcfcf181160d06a57ac2b16ee071f8f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20916
pull_request: https://github.com/python/cpython/pull/21770

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset e27a51c11e10d5df79b3e48dc3e7bfedfad5a794 by Victor Stinner in 
branch 'master':
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
https://github.com/python/cpython/commit/e27a51c11e10d5df79b3e48dc3e7bfedfad5a794


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +20915
pull_request: https://github.com/python/cpython/pull/21769

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +20912
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21768

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-07 Thread STINNER Victor


STINNER Victor  added the comment:

Since I identified a gdb regression in gdb 9.2, I wrote PR 21768 to skip 
test_gdb on gdb >= 9.2 until the bug is fixed:
https://bugzilla.redhat.com/show_bug.cgi?id=1866884

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-06 Thread STINNER Victor


STINNER Victor  added the comment:

I reported https://bugzilla.redhat.com/show_bug.cgi?id=1866884 to gdb: "Arch64: 
sometimes, gdb fails to load symbols of a dynamic library with a pending 
breakpoint".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-06 Thread STINNER Victor


STINNER Victor  added the comment:

More logs on the AArch64 issue.

It seems like *sometimes*, gdb fails to parse debug symbols of 
_testcapi.cpython-310d-aarch64-linux-gnu.so, whereas most of the time, "bt" 
shows symbols as expected.

stdout+stderr when the bug happens.

###
Function "meth_fastcall" not defined.
Breakpoint 1 (meth_fastcall) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
   1069559: opening 
file=/home/vstinner/python/master/build/lib.linux-aarch64-3.10-pydebug/_testcapi.cpython-310d-aarch64-linux-gnu.so
 [0]; direct_opencount=1
   1069559: 

Program received signal SIGTRAP, Trace/breakpoint trap.
?? () from 
/home/vstinner/python/master/build/lib.linux-aarch64-3.10-pydebug/_testcapi.cpython-310d-aarch64-linux-gnu.so
#0  ?? () from 
/home/vstinner/python/master/build/lib.linux-aarch64-3.10-pydebug/_testcapi.cpython-310d-aarch64-linux-gnu.so
#1  ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Unable to locate python frame
###

Extract of a successful run:
###
Function "meth_fastcall" not defined.
Breakpoint 1 (meth_fastcall) pending.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Breakpoint 1, meth_fastcall (self=, args=, 
nargs=0) at /home/vstinner/python/master/Modules/_testcapimodule.c:5255
5255{
#0  meth_fastcall (self=, args=, nargs=0) at 
/home/vstinner/python/master/Modules/_testcapimodule.c:5255
#1  cfunction_vectorcall_FASTCALL (func=, args=, nargsf=, 
kwnames=) at Objects/methodobject.c:424
#2  _PyObject_VectorcallTstate (tstate=, callable=, args=, 
nargsf=9223372036854775808, kwnames=0x0) at ./Include/cpython/abstract.h:114
###


I can reproduce the issue with command "./script.sh" using the following files.


script.sh:
---
$ cat script.sh 
OUT=$(mktemp)
while true; do
  gdb --batch -x cmds -args ./python -S x.py < /dev/null 2>&1 | tee $OUT 
  grep -q -F '

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-06 Thread STINNER Victor


STINNER Victor  added the comment:

I looked at the aarch64 failure on Fedora Rawhide using GCC and the master 
branch.

When I run "./python -m test -v test_gdb  -m test_pycfunction" multiple times, 
I get a different error at each run, and sometimes the test pass, whereas 
nothing changes between the runs.

* gcc (GCC) 10.2.1 20200723 (Red Hat 10.2.1-1) [gcc-10.2.1-1.fc33.aarch64]
* GNU gdb (GDB) Fedora 9.2-2.fc33 [gdb-9.2-2.fc33.aarch64]

When gdb fails to rebuild the stack file, it logs the message: "opening 
file=(...)/_testcapi.cpython-310d-aarch64-linux-gnu.so [0]; direct_opencount=1".

It seems to be an issue in gdb, not in Python.

I modified test_gdb.py to get subprocess arguments and output (out/err).


== Logs of a success ==

args=('gdb', '--batch', '-nx', '-iex', 'add-auto-load-safe-path 
/home/vstinner/python/master/python-gdb.py', '--eval-command=set breakpoint 
pending yes', '--eval-command=break meth_fastcall', '--eval-command=set print 
address off', '--eva
l-command=run', '--eval-command=set print entry-values no', 
'--eval-command=bt', '--eval-command=py-bt', '--args', 
'/home/vstinner/python/master/python', '-S', '-c', '\nimport _testcapi\ndef 
foo():\n_testcapi.meth_fastcall()\ndef bar(
):\nfoo()\nbar()\n')

  
--out-- 

  
Breakpoint 1 (meth_fastcall) pending.   

  
[Thread debugging using libthread_db enabled]   

  
Using host libthread_db library "/lib64/libthread_db.so.1". 

  


  
Breakpoint 1, meth_fastcall (self=, args=, 
nargs=0) at /home/vstinner/python/master/Modules/_testcapimodule.c:5255 

  
5255{   

  
#0  meth_fastcall (self=, args=, nargs=0) at 
/home/vstinner/python/master/Modules/_testcapimodule.c:5255 

#1  cfunction_vectorcall_FASTCALL (func=, args=, nargsf=, 
kwnames=) at Objects/methodobject.c:424  

#2  _PyObject_VectorcallTstate (tstate=, callable=, args=, 
nargsf=9223372036854775808, kwnames=0x0) at ./Include/cpython/abstract.h:114
  
#3  PyObject_Vectorcall (kwnames=0x0, nargsf=9223372036854775808, args=, 
callable=) at ./Include/cpython/abstract.h:123
  
#4  call_function (tstate=, pp_stack=, oparg=0, kwnames=0x0) at 
Python/ceval.c:5121 

  
#5  _PyEval_EvalFrameDefault (tstate=, f=Frame 0x883070, for file , 
line 4, in foo (), throwflag=) at Python/ceval.c:3516

  
#6  _PyEval_EvalFrame (throwflag=0, f=Frame 0x883070, for file , line 
4, in foo (), tstate=) at ./Include/internal/pycore_ceval.h:40  

#7  function_code_fastcall (tstate=, co=, args=, nargs=0, 
globals=) at Objects/call.c:329  

 
#8  _PyFunction_Vectorcall (func=, stack=, 
nargsf=, kwnames=) at Objects/call.c:366  

 
#9  _PyObject_VectorcallTstate (tstate=, callable=, args=, nargsf=9223372036854775808, 

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-04 Thread STINNER Victor


STINNER Victor  added the comment:

I failed to reproduce the issue on an up-to-date Fedora Rawhide with 
gdb-9.2-2.fc33.x86_64 ("GNU gdb (GDB) Fedora 9.2-2.fc33").

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-04 Thread STINNER Victor


STINNER Victor  added the comment:

Other failures on a different architecture, aarch64 Fedora Rawhide Clang 3.9:

https://buildbot.python.org/all/#/builders/687/builds/152

"gdb_version: GNU gdb (GDB) Fedora 9.2-2.fc33"

"Stderr:
Unable to fetch general registers.: No such process.
Selected thread is running."

https://buildbot.python.org/all/#/builders/687/builds/160

"gdb_version: GNU gdb (GDB) Fedora 9.2-2.fc33"

"Stderr:
Unable to fetch general registers.: No such process.
Selected thread is running."

See also bpo-40746: "test_gdb failing on 32-bit armv7l when built with GCC -Og 
(fail on Raspbian on 3.9, regression from 3.8)".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-04 Thread STINNER Victor


STINNER Victor  added the comment:

> https://buildbot.python.org/all/#builders/1/builds/1194

pythoninfo:

sys.version: 3.10.0a0 (heads/master:da4e09fff6, Aug  4 2020, 03:30:43)  [GCC 
10.2.1 20200723 (Red Hat 10.2.1-1)]

gdb_version: GNU gdb (GDB) Fedora 9.2-2.fc33

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x

2020-08-04 Thread STINNER Victor


New submission from STINNER Victor :

https://buildbot.python.org/all/#builders/1/builds/1194

0:07:05 load avg: 16.74 [421/423/1] test_gdb failed (2 min 29 sec) -- running: 
test_capi (1 min 28 sec), test_lib2to3 (1 min 22 sec)
(...)
==
FAIL: test_dicts (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of dictionaries
--
Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64/build/Lib/test/test_gdb.py",
 line 332, in test_dicts
self.assertGdbRepr({'foo': 'bar'}, "{'foo': 'bar'}")
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64/build/Lib/test/test_gdb.py",
 line 308, in assertGdbRepr
gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')')
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64/build/Lib/test/test_gdb.py",
 line 284, in get_gdb_repr
self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
AssertionError: Unexpected gdb output: 'Breakpoint 1 at 0x5fbc79: file 
Python/bltinmodule.c, line 1173.\n[Thread debugging using libthread_db 
enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n'
Breakpoint 1 at 0x5fbc79: file Python/bltinmodule.c, line 1173.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".


Stderr:
Couldn't get registers: No such process.
Selected thread is running.

==
FAIL: test_pycfunction (test.test_gdb.PyBtTests) [_testcapi.meth_noargs]
Verify that "py-bt" displays invocations of PyCFunction instances
--
Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64/build/Lib/test/test_gdb.py",
 line 912, in test_pycfunction
self.assertIn(f'

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com