Title: SIGABRT in profiler (pthread_getcpuclockid → abort) · Issue #5492 · getsentry/sentry-java · GitHub
Open Graph Title: SIGABRT in profiler (pthread_getcpuclockid → abort) · Issue #5492 · getsentry/sentry-java
X Title: SIGABRT in profiler (pthread_getcpuclockid → abort) · Issue #5492 · getsentry/sentry-java
Description: Environment SDK: io.sentry:sentry-android 8.29.0 (NDK integration enabled by default) Platform: Android (production), self-hosted Sentry Steps to Reproduce Initialize SentryAndroid with transaction-based profiling enabled: options.traces...
Open Graph Description: Environment SDK: io.sentry:sentry-android 8.29.0 (NDK integration enabled by default) Platform: Android (production), self-hosted Sentry Steps to Reproduce Initialize SentryAndroid with transaction...
X Description: Environment SDK: io.sentry:sentry-android 8.29.0 (NDK integration enabled by default) Platform: Android (production), self-hosted Sentry Steps to Reproduce Initialize SentryAndroid with transaction...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/5492
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SIGABRT in profiler (pthread_getcpuclockid → abort)","articleBody":"### Environment\n- SDK: io.sentry:sentry-android 8.29.0 (NDK integration enabled by default)\n- Platform: Android (production), self-hosted Sentry\n\n### Steps to Reproduce\n\n1. Initialize SentryAndroid with transaction-based profiling enabled:\n options.tracesSampleRate = 0.1\n options.profilesSampleRate = 1.0\n2. Ship to a broad production user base (mixed OS versions / OEM devices), including Android 16.\n3. During normal usage, the profiler periodically samples thread CPU time.\n4. Intermittently (non-deterministic), the process aborts via SIGABRT while the profiler\n reads the CPU clock of a thread.\n\n### Expected Result\n\nThe profiler should not crash the host process when sampling thread CPU time.\n\n### Actual Result\n\nFatal native crash captured via the NDK signal handler.\n- Error: SIGABRT: Abort\n- mechanism: signalhandler, handled: no, level: fatal, platform: native\n- Crash path: abort ← pthread_getcpuclockid ← art::Thread::GetCpuNanoTime\n- Crash thread: \"SentryExecutorServiceThreadFactory-0\" (Sentry profiler/executor thread)\n- Event trace context shows client_sample_rate: 0.1, confirming profiling/tracing was active.\nScale (single self-hosted project):\n- ~3,059 occurrences / ~1,285 impacted users\n- First seen: 2024-01-28, last seen: 2026-06-01 (still ongoing)\n- Still reproducing on the latest builds and on Android 16 / current-gen Samsung devices.\nMitigation already applied on our side:\nWe have REMOVED both options below to disable profiling, which stops the crash path:\n options.tracesSampleRate = 0.1\n options.profilesSampleRate = 1.0\n\nQuestions for the maintainers:\n1. If we switch to the new UI Profiling API (profileSessionSampleRate + profileLifecycle)\n instead of the (deprecated) transaction-based profilesSampleRate, will this crash NOT\n reproduce — or is UI Profiling still affected since it also relies on the Android Tracer?\n2. On SDK 8.43.0, with both tracesSampleRate and profilesSampleRate removed (profiling\n fully disabled), is there any remaining code path that could still trigger this SIGABRT?\n\n### Product Area\n\nUnknown\n\n### Link\n\nhttps://sentry.dailyshot.co/organizations/dailyshot/issues/6179/events/76ff3d6ee45a46c53f68b909da413fd7/?environment=production&project=4&query=is%3Aunresolved%20release.package%3Ashaker.bar.com%20level%3Afatal&referrer=next-event&sort=freq&stream_index=0\n\n### DSN\n\n_No response_\n\n### Version\n\n_No response_","author":{"url":"https://github.com/minwoo52","@type":"Person","name":"minwoo52"},"datePublished":"2026-06-01T10:59:30Z","url":"https://github.com/getsentry/sentry-java/issues/5492"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb0807a3-d648-aba4-7e7c-f592dba3e945 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A64C:23D7A:97587C:CD9C3A:6B0480D6 |
| html-safe-nonce | b17ccb9b080f08fa4fd0e4235c943a2cd938df1867133c0b4fe4acd1c5774b41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjRDOjIzRDdBOjk3NTg3QzpDRDlDM0E6NkIwNDgwRDYiLCJ2aXNpdG9yX2lkIjoiMjIzNTIzNDgzMDk5NDY2OTc4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | efd76749255dc85284e143cea63779800a786f7f4d4460009d51e92519441e63 |
| hovercard-subject-tag | issue:4571381259 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/5492/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72fc236de3492c8f7cd382499ecf7c7513cf4f281c102e9b239e2be5ad3ae19f/getsentry/sentry-java/issues/5492 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72fc236de3492c8f7cd382499ecf7c7513cf4f281c102e9b239e2be5ad3ae19f/getsentry/sentry-java/issues/5492 |
| og:image:alt | Environment SDK: io.sentry:sentry-android 8.29.0 (NDK integration enabled by default) Platform: Android (production), self-hosted Sentry Steps to Reproduce Initialize SentryAndroid with transaction... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | minwoo52 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width