| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
Yes, this should be a macro.
Yeah I think is still possible to have this sequence of events:
we can try to think how to tackle this in a separate issue, there are some mitigations we can do |
Sorry, something went wrong.
|
I have pushed 1348756 making this a macro |
Sorry, something went wrong.
|
Thanks @maurycy for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, something went wrong.
|
GH-151612 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot aarch64 Android 3.x (tier-3) has failed when building commit a8d74c0. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1594/builds/5113 Summary of the results of the build (if available): Click to see traceback logsremote: Enumerating objects: 20, done.
remote: Counting objects: 8% (1/12)
remote: Counting objects: 16% (2/12)
remote: Counting objects: 25% (3/12)
remote: Counting objects: 33% (4/12)
remote: Counting objects: 41% (5/12)
remote: Counting objects: 50% (6/12)
remote: Counting objects: 58% (7/12)
remote: Counting objects: 66% (8/12)
remote: Counting objects: 75% (9/12)
remote: Counting objects: 83% (10/12)
remote: Counting objects: 91% (11/12)
remote: Counting objects: 100% (12/12)
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 16% (1/6)
remote: Compressing objects: 33% (2/6)
remote: Compressing objects: 50% (3/6)
remote: Compressing objects: 66% (4/6)
remote: Compressing objects: 83% (5/6)
remote: Compressing objects: 100% (6/6)
remote: Compressing objects: 100% (6/6), done.
remote: Total 20 (delta 8), reused 6 (delta 6), pack-reused 8 (from 2)
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to 'a8d74c062fe3c5cb2962dde8bee83704fcfa1bc9'.
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 a8d74c062fe gh-151436: Fix missing `tstate->last_profiled_frame` updates (#151437)
Switched to and reset branch 'main'
configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
../../configure: line 4112: pkg-config: command not found
configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
../../Python/fileutils.c:458:1: warning: unused function 'decode_current_locale' [-Wunused-function]
458 | decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen,
| ^~~~~~~~~~~~~~~~~~~~~
../../Python/fileutils.c:677:1: warning: unused function 'encode_current_locale' [-Wunused-function]
677 | encode_current_locale(const wchar_t *text, char **str,
| ^~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
../../Modules/_localemodule.c:195:1: warning: unused function 'is_all_ascii' [-Wunused-function]
195 | is_all_ascii(const char *str)
| ^~~~~~~~~~~~
1 warning generated.
../../Modules/pwdmodule.c:69:16: warning: unused variable 'pwd_db_mutex' [-Wunused-variable]
69 | static PyMutex pwd_db_mutex = {0};
| ^~~~~~~~~~~~
1 warning generated.
../../Modules/_hacl/Lib_Memzero0.c:66:6: warning: "Your platform does not support any safe implementation of memzero -- consider a pull request!" [-W#warnings]
66 | #warning "Your platform does not support any safe implementation of memzero -- consider a pull request!"
| ^
1 warning generated.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 8784 100 8784 0 0 38971 0 --:--:-- --:--:-- --:--:-- 38867
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2894 100 2894 0 0 81003 0 --:--:-- --:--:-- --:--:-- 82685
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 43504 100 43504 0 0 973k 0 --:--:-- --:--:-- --:--:-- 988k
+ Exception Group Traceback (most recent call last):
| File "<frozen runpy>", line 198, in _run_module_as_main
| File "<frozen runpy>", line 88, in _run_code
| File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Platforms/Android/__main__.py", line 1059, in <module>
| main()
| File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Platforms/Android/__main__.py", line 1035, in main
| asyncio.run(result)
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 194, in run
| return runner.run(main)
| ^^^^^^^^^^^^^^^^
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run
| return self._loop.run_until_complete(task)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
| return future.result()
| ^^^^^^^^^^^^^^^
| File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Platforms/Android/__main__.py", line 726, in run_testbed
| async with asyncio.TaskGroup() as tg:
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
| raise me from None
| ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
| return await fut
| ^^^^^^^^^
| File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Platforms/Android/__main__.py", line 488, in find_device
| await asyncio.sleep(1)
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 665, in sleep
| return await future
| ^^^^^^^^^^^^
| asyncio.exceptions.CancelledError
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/Users/android/buildarea/3.x.mhsmith-android-aarch64/build/Platforms/Android/__main__.py", line 541, in logcat_task
| serial = await wait_for(find_device(context, initial_devices), startup_timeout)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
| async with timeouts.timeout(timeout):
| File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
| raise TimeoutError from exc_val
| TimeoutError
+------------------------------------ |
Sorry, something went wrong.
|
Did you measure the performance impact of this? The profiler is specified as being zero overhead, but this clearly adds overhead to every yield |
Sorry, something went wrong.
Yes I measure and performance is neutral. You can measure yourself if you want to double check of course. Same as #142137 (comment)
No, it only does something when the value of the last profile frame is 0 (which is only true when profiling) otherwise is a perfectly predictable branch |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Please see #151436 for more details.
The issue is fixed, drv_a is back:
0,5% (48/9996 = 0,48%) is roughly correct, since it shouldn't be exactly linear.
I can try to come up with reproduction for each miss.
Should it be a helper?
If you ask me, the whole mechanism smells me of ABA...