SerialPort Bindings Version
11.0.3 & 12.0.1
Node Version
16.20.1
Electron Version
No response
Platform
Alpine Docker container on Rasperry Pi Buster
Architecture
ARM
Hardware or chipset of serialport
NA
What steps will reproduce the bug?
- clone this repo (Docker file and minimal testcase) https://github.com/hardillb/node-serial-docker-test
- build docker container on Arm Linux (e.g. raspberry pi)
docker build -t node-serial-docker-test
- create virtual serial port with socat
sudo socat -d -d pty,rawer,echo=0,link=/dev/ttyUSB0 pty,rawer,echo=0,link=/dev/ttyUSB1
- start a shell in the container with
docker run -v /dev:/dev -it --entrypoint /bin/sh --ulimit core=-1 --privileged node-serial-docker-test
- run
node index.js will generate core file
Sample core file provided
core.gz
What happens?
Crashes on startup
What should have happened?
Not crash trying to open a port
Additional information
running npm run rebuild in the node_modules/@serialport/bindings-cpp fixes the problem which implies it's the pre-built binaries that are the problem.
re: node-red/node-red-nodes#1027
We need to run on 11.0.x as we need to maintain NodeJS 14 support (for a little while longer)
SerialPort Bindings Version
11.0.3 & 12.0.1
Node Version
16.20.1
Electron Version
No response
Platform
Alpine Docker container on Rasperry Pi Buster
Architecture
ARM
Hardware or chipset of serialport
NA
What steps will reproduce the bug?
docker build -t node-serial-docker-testsudo socat -d -d pty,rawer,echo=0,link=/dev/ttyUSB0 pty,rawer,echo=0,link=/dev/ttyUSB1docker run -v /dev:/dev -it --entrypoint /bin/sh --ulimit core=-1 --privileged node-serial-docker-testnode index.jswill generate core fileSample core file provided
core.gz
What happens?
Crashes on startup
What should have happened?
Not crash trying to open a port
Additional information
running
npm run rebuildin thenode_modules/@serialport/bindings-cppfixes the problem which implies it's the pre-built binaries that are the problem.re: node-red/node-red-nodes#1027
We need to run on 11.0.x as we need to maintain NodeJS 14 support (for a little while longer)