René's URL Explorer Experiment


Title: fix(core): retry TASK_PROCESS_SIGSEGV under the user's retry policy by matt-aitken · Pull Request #3552 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(core): retry TASK_PROCESS_SIGSEGV under the user's retry policy by matt-aitken · Pull Request #3552 · triggerdotdev/trigger.dev

X Title: fix(core): retry TASK_PROCESS_SIGSEGV under the user's retry policy by matt-aitken · Pull Request #3552 · triggerdotdev/trigger.dev

Description: Closes TRI-9234 What this changes SIGSEGV crashes (TASK_PROCESS_SIGSEGV) will now be retried when an attempt fails, in line with the task's configured retry settings (retry.maxAttempts etc.) — the same path SIGTERM and uncaught exceptions already use. Previously SIGSEGV was hard-classified as non-retriable and failed the run on the first segfault, ignoring the user's retry policy. Tasks without a retry policy still fail fast on the first SIGSEGV. Behaviour is unchanged for OOM kills (separate machine-bump retry path) and SIGKILL_TIMEOUT. Deploy Only the webapp needs to ship. The retry decision lives entirely in the webapp: V2 path: internal-packages/run-engine (bundled into the webapp) V1 path: apps/webapp/app/v3/services/completeAttempt.server.ts No supervisor, CLI, SDK, or customer-task-image changes required. Customers do not need to redeploy. The @trigger.dev/core changeset is just keeping the public package in sync — the published npm version isn't what makes the fix work. Why retry SIGSEGV in Node tasks is frequently non-deterministic across processes: Native addon races (sharp, canvas, better-sqlite3, node-rdkafka, bcrypt, …) — libuv thread-pool work stepping on V8 handles. Different heap layout / thread schedule on a fresh process → retry often succeeds. JIT / GC interaction — V8 turbofan deopt or GC during a native callback. Timing-dependent. Near-OOM in native code — when RSS approaches the cgroup limit, native allocations fail and poorly-written addons dereference NULL → SIGSEGV instead of clean OOM-kill. Host / hardware issues — bit flips, kernel quirks. Retry lands on a different host. The genuinely deterministic case (a user-code bug always tripping the same addon) is real, but a subset — and maxAttempts bounds the damage. Pre-existing inconsistency this resolves shouldRetryError returned false for TASK_PROCESS_SIGSEGV → fail_run. shouldLookupRetrySettings already listed TASK_PROCESS_SIGSEGV as retry-config-aware — but that branch was unreachable because shouldRetryError short-circuited first in retrying.ts:86-90. We already retry TASK_RUN_UNCAUGHT_EXCEPTION (clearly a user-code bug) under the user's retry policy; refusing to retry SIGSEGV was the odd one out. Test plan pnpm exec vitest run test/errors.test.ts in packages/core — 26/26 pass (4 new) pnpm run build --filter @trigger.dev/core CI green on PR 🤖 Generated with Claude Code

Open Graph Description: Closes TRI-9234 What this changes SIGSEGV crashes (TASK_PROCESS_SIGSEGV) will now be retried when an attempt fails, in line with the task's configured retry settings (retry.maxAttempts etc.) — ...

X Description: Closes TRI-9234 What this changes SIGSEGV crashes (TASK_PROCESS_SIGSEGV) will now be retried when an attempt fails, in line with the task's configured retry settings (retry.maxAttempts etc....

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/3552

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fd2d78d4-1553-bce1-6b93-9aef6e457abc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA78C:3FB3E8:2CB0045:3FE16C1:6AFAE417
html-safe-nonce8c19192d811fca6034d686fc962cf91e40a5b2e59a5243407d1a1c55c0839076
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzhDOjNGQjNFODoyQ0IwMDQ1OjNGRTE2QzE6NkFGQUU0MTciLCJ2aXNpdG9yX2lkIjoiNDk2NzcwNDgwMTUwOTU2NTQ2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0fde137dd93e7719cf3ab553d2221ffd9cab1bd1dec3ff37d836106b96c6f277
hovercard-subject-tagpull_request:3662924308
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/3552/files
twitter:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
og:image:altCloses TRI-9234 What this changes SIGSEGV crashes (TASK_PROCESS_SIGSEGV) will now be retried when an attempt fails, in line with the task's configured retry settings (retry.maxAttempts etc.) — ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/3552/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3552%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3552%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
matt-aitkenhttps://github.com/matt-aitken
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/tri-9234-retry-task_process_sigsegv-errors-respecting-user-retryhttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-9234-retry-task_process_sigsegv-errors-respecting-user-retry
Conversation 3 https://github.com/triggerdotdev/trigger.dev/pull/3552
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/3552/commits
Checks 48 https://github.com/triggerdotdev/trigger.dev/pull/3552/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/3552/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
fix(core): retry TASK_PROCESS_SIGSEGV under the user's retry policy https://github.com/triggerdotdev/trigger.dev/pull/3552/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/3552/files
cdfe334 fix(core): retry TASK_PROCESS_SIGSEGV under the user's retry policy matt-aitken May 11, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3552/commits/cdfe3343b56d84cbe99000f51655a7495d4cf880
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/3552/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
retry-sigsegv.md https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-b5abd8a1e498511bd3b6eb01dd61ec4d8cb30d2e2cb62ee701cb42c2a1140ea0
errors.ts https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
errors.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-ecf8c55da7e20f102b5fe44c70c7f81174d8a230e0f742e142c09a828d1c00bf
.changeset/retry-sigsegv.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-b5abd8a1e498511bd3b6eb01dd61ec4d8cb30d2e2cb62ee701cb42c2a1140ea0
View file https://github.com/triggerdotdev/trigger.dev/blob/cdfe3343b56d84cbe99000f51655a7495d4cf880/.changeset/retry-sigsegv.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3552/{{ revealButtonHref }}
packages/core/src/v3/errors.tshttps://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
View file https://github.com/triggerdotdev/trigger.dev/blob/cdfe3343b56d84cbe99000f51655a7495d4cf880/packages/core/src/v3/errors.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3552/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
packages/core/test/errors.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-ecf8c55da7e20f102b5fe44c70c7f81174d8a230e0f742e142c09a828d1c00bf
View file https://github.com/triggerdotdev/trigger.dev/blob/cdfe3343b56d84cbe99000f51655a7495d4cf880/packages/core/test/errors.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3552/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-ecf8c55da7e20f102b5fe44c70c7f81174d8a230e0f742e142c09a828d1c00bf
https://github.com/triggerdotdev/trigger.dev/pull/3552/files#diff-ecf8c55da7e20f102b5fe44c70c7f81174d8a230e0f742e142c09a828d1c00bf
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3552/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.