Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.11] gh-121957: Emit audit events for python -i and python -m asyncio #122118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Jul 22, 2024

@ambv ambv merged commit d542a9b into python:3.11 Jul 22, 2024
22 checks passed
@ambv ambv deleted the gh-121957-py311 branch July 22, 2024 15:13
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.11 has failed when building commit d542a9b.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#builders/962/builds/1517) and take a look at the build logs.
  4. Check if the failure is related to this commit (d542a9b) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#builders/962/builds/1517

Failed tests:

  • test.test_multiprocessing_spawn.test_processes
  • test.test_multiprocessing_fork.test_processes
  • test.test_multiprocessing_forkserver.test_processes

Failed subtests:

  • test_empty_authkey - test.test_multiprocessing_forkserver.test_processes.WithProcessesTestListener.test_empty_authkey
  • test_empty_authkey - test.test_multiprocessing_fork.test_processes.WithProcessesTestListener.test_empty_authkey
  • test_empty_authkey - test.test_multiprocessing_spawn.test_processes.WithProcessesTestListener.test_empty_authkey

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/_test_multiprocessing.py", line 3483, in test_empty_authkey
    with listener.accept() as d:
         ^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line 482, in accept
    deliver_challenge(c, self._authkey)
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line 756, in deliver_challenge
    digest = hmac.new(authkey, message, 'md5').digest()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 184, in new
    return HMAC(key, msg, digestmod)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 60, in __init__
    self._init_hmac(key, msg, digestmod)
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 67, in _init_hmac
    self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no reason supplied


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/_test_multiprocessing.py", line 3474, in run
    client = self.connection.Client(addr, authkey=authkey)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line 525, in Client
    answer_challenge(c, authkey)
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/multiprocessing/connection.py", line 772, in answer_challenge
    digest = hmac.new(authkey, message, 'md5').digest()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 184, in new
    return HMAC(key, msg, digestmod)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 60, in __init__
    self._init_hmac(key, msg, digestmod)
  File "/home/buildbot/buildarea/3.11.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/hmac.py", line 67, in _init_hmac
    self._hmac = _hashopenssl.hmac_new(key, msg, digestmod=digestmod)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no reason supplied
ERROR

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Arch Linux Usan 3.11 has failed when building commit d542a9b.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#builders/964/builds/1262) and take a look at the build logs.
  4. Check if the failure is related to this commit (d542a9b) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#builders/964/builds/1262

Summary of the results of the build (if available):

Click to see traceback logs
remote: Enumerating objects: 4751, done.        
remote: Counting objects:   0% (1/2725)        
remote: Counting objects:   1% (28/2725)        
remote: Counting objects:   2% (55/2725)        
remote: Counting objects:   3% (82/2725)        
remote: Counting objects:   4% (109/2725)        
remote: Counting objects:   5% (137/2725)        
remote: Counting objects:   6% (164/2725)        
remote: Counting objects:   7% (191/2725)        
remote: Counting objects:   8% (218/2725)        
remote: Counting objects:   9% (246/2725)        
remote: Counting objects:  10% (273/2725)        
remote: Counting objects:  11% (300/2725)        
remote: Counting objects:  12% (327/2725)        
remote: Counting objects:  13% (355/2725)        
remote: Counting objects:  14% (382/2725)        
remote: Counting objects:  15% (409/2725)        
remote: Counting objects:  16% (436/2725)        
remote: Counting objects:  17% (464/2725)        
remote: Counting objects:  18% (491/2725)        
remote: Counting objects:  19% (518/2725)        
remote: Counting objects:  20% (545/2725)        
remote: Counting objects:  21% (573/2725)        
remote: Counting objects:  22% (600/2725)        
remote: Counting objects:  23% (627/2725)        
remote: Counting objects:  24% (654/2725)        
remote: Counting objects:  25% (682/2725)        
remote: Counting objects:  26% (709/2725)        
remote: Counting objects:  27% (736/2725)        
remote: Counting objects:  28% (763/2725)        
remote: Counting objects:  29% (791/2725)        
remote: Counting objects:  30% (818/2725)        
remote: Counting objects:  31% (845/2725)        
remote: Counting objects:  32% (872/2725)        
remote: Counting objects:  33% (900/2725)        
remote: Counting objects:  34% (927/2725)        
remote: Counting objects:  35% (954/2725)        
remote: Counting objects:  36% (981/2725)        
remote: Counting objects:  37% (1009/2725)        
remote: Counting objects:  38% (1036/2725)        
remote: Counting objects:  39% (1063/2725)        
remote: Counting objects:  40% (1090/2725)        
remote: Counting objects:  41% (1118/2725)        
remote: Counting objects:  42% (1145/2725)        
remote: Counting objects:  43% (1172/2725)        
remote: Counting objects:  44% (1199/2725)        
remote: Counting objects:  45% (1227/2725)        
remote: Counting objects:  46% (1254/2725)        
remote: Counting objects:  47% (1281/2725)        
remote: Counting objects:  48% (1308/2725)        
remote: Counting objects:  49% (1336/2725)        
remote: Counting objects:  50% (1363/2725)        
remote: Counting objects:  51% (1390/2725)        
remote: Counting objects:  52% (1417/2725)        
remote: Counting objects:  53% (1445/2725)        
remote: Counting objects:  54% (1472/2725)        
remote: Counting objects:  55% (1499/2725)        
remote: Counting objects:  56% (1526/2725)        
remote: Counting objects:  57% (1554/2725)        
remote: Counting objects:  58% (1581/2725)        
remote: Counting objects:  59% (1608/2725)        
remote: Counting objects:  60% (1635/2725)        
remote: Counting objects:  61% (1663/2725)        
remote: Counting objects:  62% (1690/2725)        
remote: Counting objects:  63% (1717/2725)        
remote: Counting objects:  64% (1744/2725)        
remote: Counting objects:  65% (1772/2725)        
remote: Counting objects:  66% (1799/2725)        
remote: Counting objects:  67% (1826/2725)        
remote: Counting objects:  68% (1853/2725)        
remote: Counting objects:  69% (1881/2725)        
remote: Counting objects:  70% (1908/2725)        
remote: Counting objects:  71% (1935/2725)        
remote: Counting objects:  72% (1962/2725)        
remote: Counting objects:  73% (1990/2725)        
remote: Counting objects:  74% (2017/2725)        
remote: Counting objects:  75% (2044/2725)        
remote: Counting objects:  76% (2071/2725)        
remote: Counting objects:  77% (2099/2725)        
remote: Counting objects:  78% (2126/2725)        
remote: Counting objects:  79% (2153/2725)        
remote: Counting objects:  80% (2180/2725)        
remote: Counting objects:  81% (2208/2725)        
remote: Counting objects:  82% (2235/2725)        
remote: Counting objects:  83% (2262/2725)        
remote: Counting objects:  84% (2289/2725)        
remote: Counting objects:  85% (2317/2725)        
remote: Counting objects:  86% (2344/2725)        
remote: Counting objects:  87% (2371/2725)        
remote: Counting objects:  88% (2398/2725)        
remote: Counting objects:  89% (2426/2725)        
remote: Counting objects:  90% (2453/2725)        
remote: Counting objects:  91% (2480/2725)        
remote: Counting objects:  92% (2507/2725)        
remote: Counting objects:  93% (2535/2725)        
remote: Counting objects:  94% (2562/2725)        
remote: Counting objects:  95% (2589/2725)        
remote: Counting objects:  96% (2616/2725)        
remote: Counting objects:  97% (2644/2725)        
remote: Counting objects:  98% (2671/2725)        
remote: Counting objects:  99% (2698/2725)        
remote: Counting objects: 100% (2725/2725)        
remote: Counting objects: 100% (2725/2725), done.        
remote: Compressing objects:   5% (1/18)        
remote: Compressing objects:  11% (2/18)        
remote: Compressing objects:  16% (3/18)        
remote: Compressing objects:  22% (4/18)        
remote: Compressing objects:  27% (5/18)        
remote: Compressing objects:  33% (6/18)        
remote: Compressing objects:  38% (7/18)        
remote: Compressing objects:  44% (8/18)        
remote: Compressing objects:  50% (9/18)        
remote: Compressing objects:  55% (10/18)        
remote: Compressing objects:  61% (11/18)        
remote: Compressing objects:  66% (12/18)        
remote: Compressing objects:  72% (13/18)        
remote: Compressing objects:  77% (14/18)        
remote: Compressing objects:  83% (15/18)        
remote: Compressing objects:  88% (16/18)        
remote: Compressing objects:  94% (17/18)        
remote: Compressing objects: 100% (18/18)        
remote: Compressing objects: 100% (18/18), done.        
Receiving objects:   0% (1/4751)
Receiving objects:   1% (48/4751)
Receiving objects:   2% (96/4751)
Receiving objects:   3% (143/4751)
Receiving objects:   4% (191/4751)
Receiving objects:   5% (238/4751)
Receiving objects:   6% (286/4751)
Receiving objects:   7% (333/4751)
Receiving objects:   8% (381/4751)
Receiving objects:   9% (428/4751)
Receiving objects:  10% (476/4751)
Receiving objects:  11% (523/4751)
Receiving objects:  12% (571/4751)
Receiving objects:  13% (618/4751)
Receiving objects:  14% (666/4751)
Receiving objects:  15% (713/4751)
Receiving objects:  16% (761/4751)
Receiving objects:  17% (808/4751)
Receiving objects:  18% (856/4751)
Receiving objects:  19% (903/4751)
Receiving objects:  20% (951/4751)
Receiving objects:  21% (998/4751)
Receiving objects:  22% (1046/4751)
Receiving objects:  23% (1093/4751)
Receiving objects:  24% (1141/4751)
Receiving objects:  25% (1188/4751)
Receiving objects:  26% (1236/4751)
Receiving objects:  27% (1283/4751)
Receiving objects:  28% (1331/4751)
Receiving objects:  29% (1378/4751)
Receiving objects:  30% (1426/4751)
Receiving objects:  31% (1473/4751)
Receiving objects:  32% (1521/4751)
Receiving objects:  33% (1568/4751)
Receiving objects:  34% (1616/4751)
Receiving objects:  35% (1663/4751)
Receiving objects:  36% (1711/4751)
Receiving objects:  37% (1758/4751)
Receiving objects:  38% (1806/4751)
Receiving objects:  39% (1853/4751)
Receiving objects:  40% (1901/4751)
Receiving objects:  41% (1948/4751)
Receiving objects:  42% (1996/4751)
Receiving objects:  43% (2043/4751)
Receiving objects:  44% (2091/4751)
Receiving objects:  45% (2138/4751)
Receiving objects:  46% (2186/4751)
Receiving objects:  47% (2233/4751)
Receiving objects:  48% (2281/4751)
Receiving objects:  49% (2328/4751)
Receiving objects:  50% (2376/4751)
Receiving objects:  51% (2424/4751)
Receiving objects:  52% (2471/4751)
Receiving objects:  53% (2519/4751)
Receiving objects:  54% (2566/4751)
Receiving objects:  55% (2614/4751)
Receiving objects:  56% (2661/4751)
Receiving objects:  57% (2709/4751)
Receiving objects:  58% (2756/4751)
Receiving objects:  59% (2804/4751)
Receiving objects:  60% (2851/4751)
Receiving objects:  61% (2899/4751)
Receiving objects:  62% (2946/4751)
Receiving objects:  63% (2994/4751)
Receiving objects:  64% (3041/4751)
Receiving objects:  65% (3089/4751)
Receiving objects:  66% (3136/4751)
Receiving objects:  67% (3184/4751)
Receiving objects:  68% (3231/4751)
Receiving objects:  69% (3279/4751)
Receiving objects:  70% (3326/4751)
Receiving objects:  71% (3374/4751)
Receiving objects:  72% (3421/4751)
Receiving objects:  73% (3469/4751)
Receiving objects:  74% (3516/4751)
Receiving objects:  75% (3564/4751)
Receiving objects:  76% (3611/4751)
Receiving objects:  77% (3659/4751)
Receiving objects:  78% (3706/4751)
Receiving objects:  79% (3754/4751)
Receiving objects:  80% (3801/4751)
Receiving objects:  81% (3849/4751)
Receiving objects:  82% (3896/4751)
Receiving objects:  83% (3944/4751)
Receiving objects:  84% (3991/4751)
Receiving objects:  85% (4039/4751)
Receiving objects:  86% (4086/4751)
Receiving objects:  87% (4134/4751)
Receiving objects:  88% (4181/4751)
Receiving objects:  89% (4229/4751)
Receiving objects:  90% (4276/4751)
Receiving objects:  91% (4324/4751)
Receiving objects:  92% (4371/4751)
Receiving objects:  93% (4419/4751)
Receiving objects:  94% (4466/4751)
Receiving objects:  95% (4514/4751)
Receiving objects:  96% (4561/4751)
Receiving objects:  97% (4609/4751)
Receiving objects:  98% (4656/4751)
Receiving objects:  99% (4704/4751)
remote: Total 4751 (delta 2707), reused 2714 (delta 2707), pack-reused 2026        
Receiving objects: 100% (4751/4751)
Receiving objects: 100% (4751/4751), 9.55 MiB | 40.93 MiB/s, done.
Resolving deltas:   0% (0/3610)
Resolving deltas:   1% (37/3610)
Resolving deltas:   2% (73/3610)
Resolving deltas:   3% (109/3610)
Resolving deltas:   4% (145/3610)
Resolving deltas:   5% (181/3610)
Resolving deltas:   6% (217/3610)
Resolving deltas:   7% (253/3610)
Resolving deltas:   8% (289/3610)
Resolving deltas:   9% (325/3610)
Resolving deltas:  10% (361/3610)
Resolving deltas:  11% (398/3610)
Resolving deltas:  12% (434/3610)
Resolving deltas:  13% (471/3610)
Resolving deltas:  14% (506/3610)
Resolving deltas:  15% (542/3610)
Resolving deltas:  16% (578/3610)
Resolving deltas:  17% (614/3610)
Resolving deltas:  18% (650/3610)
Resolving deltas:  19% (688/3610)
Resolving deltas:  20% (723/3610)
Resolving deltas:  21% (759/3610)
Resolving deltas:  22% (795/3610)
Resolving deltas:  23% (831/3610)
Resolving deltas:  24% (867/3610)
Resolving deltas:  25% (903/3610)
Resolving deltas:  26% (939/3610)
Resolving deltas:  27% (975/3610)
Resolving deltas:  28% (1011/3610)
Resolving deltas:  29% (1047/3610)
Resolving deltas:  30% (1083/3610)
Resolving deltas:  31% (1120/3610)
Resolving deltas:  32% (1156/3610)
Resolving deltas:  33% (1192/3610)
Resolving deltas:  34% (1228/3610)
Resolving deltas:  35% (1264/3610)
Resolving deltas:  36% (1300/3610)
Resolving deltas:  37% (1336/3610)
Resolving deltas:  38% (1372/3610)
Resolving deltas:  39% (1408/3610)
Resolving deltas:  40% (1444/3610)
Resolving deltas:  41% (1481/3610)
Resolving deltas:  42% (1517/3610)
Resolving deltas:  43% (1553/3610)
Resolving deltas:  44% (1589/3610)
Resolving deltas:  45% (1625/3610)
Resolving deltas:  46% (1661/3610)
Resolving deltas:  47% (1697/3610)
Resolving deltas:  48% (1733/3610)
Resolving deltas:  49% (1769/3610)
Resolving deltas:  50% (1805/3610)
Resolving deltas:  51% (1842/3610)
Resolving deltas:  52% (1878/3610)
Resolving deltas:  53% (1914/3610)
Resolving deltas:  54% (1950/3610)
Resolving deltas:  55% (1986/3610)
Resolving deltas:  56% (2022/3610)
Resolving deltas:  57% (2058/3610)
Resolving deltas:  58% (2094/3610)
Resolving deltas:  59% (2130/3610)
Resolving deltas:  60% (2166/3610)
Resolving deltas:  61% (2203/3610)
Resolving deltas:  62% (2239/3610)
Resolving deltas:  63% (2275/3610)
Resolving deltas:  64% (2311/3610)
Resolving deltas:  65% (2347/3610)
Resolving deltas:  66% (2383/3610)
Resolving deltas:  67% (2419/3610)
Resolving deltas:  68% (2455/3610)
Resolving deltas:  69% (2491/3610)
Resolving deltas:  70% (2527/3610)
Resolving deltas:  71% (2564/3610)
Resolving deltas:  72% (2600/3610)
Resolving deltas:  73% (2636/3610)
Resolving deltas:  74% (2672/3610)
Resolving deltas:  75% (2708/3610)
Resolving deltas:  76% (2744/3610)
Resolving deltas:  77% (2780/3610)
Resolving deltas:  78% (2816/3610)
Resolving deltas:  78% (2839/3610)
Resolving deltas:  79% (2852/3610)
Resolving deltas:  80% (2888/3610)
Resolving deltas:  81% (2925/3610)
Resolving deltas:  82% (2961/3610)
Resolving deltas:  83% (2997/3610)
Resolving deltas:  84% (3033/3610)
Resolving deltas:  85% (3069/3610)
Resolving deltas:  86% (3105/3610)
Resolving deltas:  87% (3141/3610)
Resolving deltas:  88% (3177/3610)
Resolving deltas:  89% (3213/3610)
Resolving deltas:  90% (3249/3610)
Resolving deltas:  90% (3252/3610)
Resolving deltas:  91% (3286/3610)
Resolving deltas:  92% (3322/3610)
Resolving deltas:  93% (3358/3610)
Resolving deltas:  94% (3394/3610)
Resolving deltas:  95% (3430/3610)
Resolving deltas:  96% (3466/3610)
Resolving deltas:  97% (3502/3610)
Resolving deltas:  98% (3538/3610)
Resolving deltas:  98% (3551/3610)
Resolving deltas:  99% (3574/3610)
Resolving deltas: 100% (3610/3610)
Resolving deltas: 100% (3610/3610), completed with 759 local objects.
From https://github.com/python/cpython
 * branch                  3.11       -> FETCH_HEAD
 * [new tag]               v3.12.4    -> v3.12.4
 * [new tag]               v3.13.0b2  -> v3.13.0b2
 * [new tag]               v3.13.0b3  -> v3.13.0b3
 * [new tag]               v3.13.0b4  -> v3.13.0b4
Note: switching to 'd542a9be51776e8d589363ee15164dec8dbd3a76'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at d542a9be51 [3.11] gh-121957: Emit audit events for python -i and python -m asyncio (GH-122118)
Switched to and reset branch '3.11'

Objects/object.c:2390:5: runtime error: call to function list_dealloc through pointer to incorrect function type 'void (*)(struct _object *)'
/buildbot/buildarea/3.11.pablogsal-arch-x86_64.clang-ubsan/build/Objects/listobject.c:346: note: list_dealloc defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/object.c:2390:5 in 
make: *** [Makefile:1212: Python/frozen_modules/importlib._bootstrap.h] Error 1

find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make: [Makefile:2611: clean-retain-profile] Error 1 (ignored)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants