Blizzard / Blizzard/node-rdkafka

segfault in sails app on Node 18

Open
#1,010 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

**Environment Information**
- Alpine 3.17
- 18
- NPM Version [e.g. 5.4.2]:
- C++ Toolchain [e.g. Visual Studio, llvm, g++]:
- node-rdkafka version 2.15.0

I have a sails app that creates a producer in api/service. But I immediately get a segfault when the producer tries to connect to ana ccessible host. I do not get this when running the same app on a dev system that is not using alpine.

I installed hte system dependencies outlined in the Docker readme of this repo for alpine.

Contributor guide

Open the contributing guide

Research direction

Start with the Docker README's Alpine dependency instructions and reproduce the producer connection on Alpine 3.17 with Node 18 and node-rdkafka 2.15.0, comparing it with the non-Alpine system. Review the native binding and librdkafka connection path using the missing NPM version and C++ toolchain details. Done means identifying a reproducible cause and confirming the producer no longer segfaults in the stated environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kafka, node.js
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.