Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939403 - dev-lang/python-3.13.0_rc2: fails one test with LTO on ppc64 (FAIL: test_recursion_limit (test.test_threading.ThreadingExceptionTests.test_recursion_limit))
Summary: dev-lang/python-3.13.0_rc2: fails one test with LTO on ppc64 (FAIL: test_recu...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto 931888
  Show dependency tree
 
Reported: 2024-09-10 00:57 UTC by Piotr Kubaj
Modified: 2024-09-11 22:01 UTC (History)
3 users (show)

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


Attachments
emerge --info (file_939403.txt,18.36 KB, text/plain)
2024-09-10 00:58 UTC, Piotr Kubaj
Details
build.log (build.log,382.93 KB, text/x-log)
2024-09-10 01:00 UTC, Piotr Kubaj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj 2024-09-10 00:57:32 UTC
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-3.13.0_rc2/work/Python-3.13.0rc2/Lib/test/test_threading.py", line 1633, in test_recursion_limit
    self.assertEqual(p.returncode, 0, "Unexpected error: " + stderr.decode())
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: -11 != 0 : Unexpected error: 


Reproducible: Always
Comment 1 Piotr Kubaj 2024-09-10 00:58:34 UTC
Created attachment 902497 [details]
emerge --info
Comment 2 Piotr Kubaj 2024-09-10 01:00:01 UTC
Created attachment 902498 [details]
build.log
Comment 3 matoro archtester 2024-09-10 06:44:58 UTC
Does this still reproduce with:

* plain CFLAGS?  (-O2 -pipe)
* glibc?
Comment 4 Piotr Kubaj 2024-09-10 11:57:15 UTC
I'm not sure about glibc, but it seems like LTO is causing this error.

Still even with plain CFLAGS I'm getting another error:
ERROR: test_makedev (test.test_posix.PosixTester.test_makedev)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-3.13.0_rc2/work/Python-3.13.0rc2/Lib/test/test_posix.py", line 730, in test_makedev
    self.assertEqual(posix.major(NODEV), NODEV)
                     ~~~~~~~~~~~^^^^^^^
OverflowError: can't convert negative int to unsigned

Should I report it as a separate bug?
Comment 5 matoro archtester 2024-09-10 14:55:07 UTC
(In reply to Piotr Kubaj from comment #4)
> I'm not sure about glibc, but it seems like LTO is causing this error.
> 
> Still even with plain CFLAGS I'm getting another error:
> ERROR: test_makedev (test.test_posix.PosixTester.test_makedev)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/var/tmp/portage/dev-lang/python-3.13.0_rc2/work/Python-3.13.0rc2/Lib/test/
> test_posix.py", line 730, in test_makedev
>     self.assertEqual(posix.major(NODEV), NODEV)
>                      ~~~~~~~~~~~^^^^^^^
> OverflowError: can't convert negative int to unsigned
> 
> Should I report it as a separate bug?

Yes, separate failure needs to be a separate bug.

Can you remove all of the extra flags and try with just plain flags plus -flto=auto?  A lot of those come from the old lto-overlay which is supposed to be no longer necessary.
Comment 6 Piotr Kubaj 2024-09-11 10:05:21 UTC
-O2 -pipe -flto=auto also fails.