Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941296 - dev-lang/python-3.12.6_p4 fails GDB-related tests
Summary: dev-lang/python-3.12.6_p4 fails GDB-related tests
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-12 01:44 UTC by Jonathan Lovelace
Modified: 2024-10-31 11:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-lang:python-3.12.6_p4:20241012-005204.log (dev-lang:python-3.12.6_p4:20241012-005204.log,269.53 KB, text/x-log)
2024-10-12 01:44 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,9.16 KB, text/plain)
2024-10-12 01:44 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2024-10-12 01:44:20 UTC
Created attachment 905184 [details]
dev-lang:python-3.12.6_p4:20241012-005204.log

=dev-lang/python3.12.6_p4 fails its test phase for me, specifically a number of tests having to do with GDB. (I also tried 3.12.7_p1 and got similar failures.) If I rebuild GDB with USE=-python, the dev-lang/python tests pass, but I'm getting segfaults in libpython3.12.so.1.0 during another package's build, so I thought this might be revealing some deeper issue.

Here's some sample output from one of the tests:

======================================================================
FAIL: test_basic_command (test.test_gdb.test_misc.PyListTests.test_basic_command)
Verify that the "py-list" command works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-3.12.6_p4/work/Python-3.12.6/Lib/test/test_gdb/test_misc.py", line 38, in test_basic_command
    self.assertListing('   5    \n'
  File "/var/tmp/portage/dev-lang/python-3.12.6_p4/work/Python-3.12.6/Lib/test/test_gdb/test_misc.py", line 31, in assertListing
    self.assertEndsWith(actual, expected)
  File "/var/tmp/portage/dev-lang/python-3.12.6_p4/work/Python-3.12.6/Lib/test/test_gdb/util.py", line 285, in assertEndsWith
    self.assertTrue(actual.endswith(exp_end),
AssertionError: False is not true : 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, builtin_id () from /var/tmp/portage/dev-lang/python-3.12.6_p4/work/Python-3.12.6/libpython3.12.so.1.0\nUnable to locate gdb frame for python bytecode interpreter\n' did not end with '   5    \n   6    def bar(a, b, c):\n   7        baz(a, b, c)\n   8    \n   9    def baz(*args):\n >10        id(42)\n  11    \n  12    foo(1, 2, 3)\n'
Comment 1 Jonathan Lovelace 2024-10-12 01:44:43 UTC
Created attachment 905185 [details]
emerge-info.txt
Comment 2 Jonathan Lovelace 2024-10-26 13:06:53 UTC
I'm now also seeing failures of test.test_gdb.* tests in =dev-lang/python-3.11.10_p1. (I'm not sure what's trying to pull that SLOT in now, since it was depcleaned some time ago, but thought it was worth mentioning.)
Comment 3 Jonathan Lovelace 2024-10-31 11:20:44 UTC
And these tests also fail for me in =dev-lang/python-3.13.0.