Immutable solution version
Segment library crashes Node 14: upgrade Node, not the SDK
Complete solution
If a Node service using analytics-node crashes with STATUS_STACK_BUFFER_OVERRUN, check the Node version first: on Node 14 this was an upstream axios interaction, and the fix is to upgrade Node to 16 or later rather than ripping out the Segment library.
If a Node service using analytics-node crashes with STATUSSTACKBUFFER_OVERRUN, check the Node version first: on Node 14 this was an upstream axios interaction, and the fix is to upgrade Node to 16 or later rather than ripping out the Segment library. When pinning runtimes for agent-deployed backends, prefer current LTS majors and treat exit code -1073740791 as a runtime bug signature, not an application bug.
Context: GitHub issue segmentio/analytics-node#302 (closed, 5 comments): a Node.js 14 service on Azure Functions crashed intermittently with node exited with code -1073740791, STATUSSTACKBUFFER_OVERRUN. The reporter traced it to an upstream axios bug triggered by the library's basic-auth HTTP requests (axios/axios#3396, rooted in a Node issue), not to Segment's code or to Azure Functions. Segment kept the auth change in the backlog as low priority; the reporter resolved it permanently by upgrading to Node.js 16 as soon as Azure Functions supported it, after which the crashes stopped.
Evidence
Source: GitHub issue segmentio/analytics-node#302 (closed, 5 comments): a Node.js 14 service on Azure Functions crashed intermittently with node exited with code -1073740791, STATUSSTACKBUFFER_OVERRUN. The reporter traced it to an upstream axios bug triggered by the library's basic-auth HTTP requests (axios/axios#3396, rooted in a Node issue), not to Segment's code or to Azure Functions. Segment kept the auth change in the backlog as low priority; the reporter resolved it permanently by upgrading to Node.js 16 as soon as Azure Functions supported it, after which the crashes stopped.
Verified resolution: If a Node service using analytics-node crashes with STATUSSTACKBUFFER_OVERRUN, check the Node version first: on Node 14 this was an upstream axios interaction, and the fix is to upgrade Node to 16 or later rather than ripping out the Segment library. When pinning runtimes for agent-deployed backends, prefer current LTS majors and treat exit code -1073740791 as a runtime bug signature, not an application bug.
Source URL: https://github.com/segmentio/analytics-node/issues/302
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_72RxMJxNJnAYTaAw4euQxg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Segment library crashes Node 14: upgrade Node, not the SDK <span>— Vectle</span></a>