Pablo Galindo Salgado
27434c68f8
gh-138122: Skip threads on EPERM in blocking mode profiler (GH-143368)
...
When using blocking mode in the remote debugging profiler, ptrace calls
to seize threads can fail with EPERM if the thread has exited between
listing and attaching, is in a special kernel state, or is already being
traced. Previously this raised a RuntimeError that was caught by the
Python sampling loop,and retried indefinitely since EPERM is
a persistent condition that will not resolve on its own.
Treat EPERM the same as ESRCH by returning 1 (skip this thread) instead
of -1 (fatal error). This allows profiling to continue with the threads
that can be traced rather than entering an endless retry loop printing
the same error message repeatedly.
2026-01-03 15:37:16 +01:00
..
2025-12-25 19:08:43 +02:00
2025-12-16 10:52:20 +02:00
2025-10-16 05:25:51 +00:00
2025-12-15 15:13:58 +01:00
2025-10-08 12:10:58 +02:00
2026-01-03 15:37:16 +01:00
2026-01-01 11:55:05 +01:00
2025-11-26 15:40:45 -05:00
2025-12-11 23:30:39 +09:00
2025-12-11 14:41:03 -05:00
2025-11-14 23:17:59 +05:30
2025-11-12 20:50:08 +05:30
2025-11-03 11:36:37 -08:00
2025-10-14 10:03:55 -07:00
2025-10-14 22:55:00 +09:00
2025-12-31 12:50:50 +02:00
2025-09-26 19:44:36 -07:00
2025-08-18 18:29:00 +01:00
2026-01-03 13:27:02 +05:30
2025-09-02 21:29:05 +01:00
2025-12-15 12:47:04 -05:00
2025-10-30 15:31:47 +01:00
2025-12-25 09:13:39 +00:00
2025-11-21 11:22:31 -05:00
2025-09-11 09:56:20 +02:00
2025-09-15 16:24:34 +02:00
2025-10-08 19:49:54 +05:30
2025-10-22 11:16:28 -04:00
2025-12-29 18:30:51 +01:00
2025-10-28 10:28:32 +01:00
2025-10-22 11:16:28 -04:00
2025-12-14 09:45:36 +01:00
2025-07-03 15:21:41 +05:30
2025-10-19 22:24:28 +03:00
2025-10-19 22:24:28 +03:00
2025-08-18 18:29:00 +01:00
2025-10-30 10:32:08 +00:00
2025-10-16 09:54:41 +02:00
2025-11-05 18:37:06 +01:00
2025-11-12 02:01:55 +05:30
2025-06-25 13:03:05 +02:00
2025-12-05 19:17:01 +02:00
2025-11-19 09:37:09 +02:00
2025-06-30 11:14:31 +00:00
2025-11-05 18:00:32 +00:00
2025-10-04 19:43:17 -05:00
2025-12-30 19:45:44 -05:00
2025-06-27 15:15:11 +00:00
2025-11-13 16:31:31 +05:30
2025-10-22 09:14:48 +09:00
2025-08-18 18:29:00 +01:00
2025-07-11 15:18:35 +02:00
2025-12-17 16:33:09 +01:00
2025-10-11 22:58:14 +02:00
2025-12-29 15:10:42 +00:00
2025-11-24 13:26:35 +01:00
2025-11-05 12:31:42 +01:00
2025-11-12 07:21:43 +00:00
2026-01-02 10:51:05 +01:00
2025-08-18 18:29:00 +01:00
2025-07-20 20:49:00 +02:00
2025-05-26 10:56:31 +02:00
2025-12-31 12:50:50 +02:00
2025-12-17 08:35:08 +00:00
2025-10-23 05:49:27 -04:00
2025-12-17 17:09:57 +02:00
2026-01-01 22:03:05 -08:00
2025-10-08 12:10:58 +02:00
2025-12-04 09:21:51 -05:00
2025-08-16 15:16:04 +02:00
2025-11-08 12:17:59 +02:00
2025-08-07 16:32:17 -07:00
2025-11-22 21:59:14 +00:00
2025-08-19 21:28:28 +01:00
2025-07-14 11:18:41 -07:00
2025-08-01 10:45:40 -07:00
2025-10-01 13:15:58 +05:30
2025-10-15 09:48:21 -04:00
2025-05-28 20:11:09 +03:00
2025-09-18 09:25:01 +00:00
2025-10-31 16:13:43 +02:00
2025-11-12 13:44:49 +01:00
2025-10-08 12:10:58 +02:00
2025-12-27 10:33:56 +00:00
2025-12-20 10:37:10 +03:00
2025-08-18 18:29:00 +01:00
2025-10-26 13:45:32 +00:00
2025-12-22 23:35:23 -05:00
2025-08-19 08:52:45 +02:00
2025-09-23 21:31:42 +03:00
2025-11-25 12:51:24 +00:00
2025-07-21 13:47:26 -04:00
2025-12-22 23:57:20 +00:00
2025-10-08 12:10:58 +02:00
2025-10-08 12:10:58 +02:00
2025-10-08 12:10:58 +02:00
2025-09-23 21:31:42 +03:00
2025-11-22 18:07:21 +01:00
2025-09-17 17:18:04 +00:00
2025-11-13 13:21:32 +02:00
2025-07-21 09:24:42 -07:00
2025-08-18 18:29:00 +01:00
2025-11-05 18:37:06 +01:00
2025-09-11 09:58:39 -07:00
2025-10-30 10:18:12 +00:00
2025-09-11 09:58:39 -07:00
2025-10-27 11:39:42 +01:00
2025-12-12 13:14:42 -05:00