-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
serialport/bindings-cpp
#111Labels
Description
SerialPort Version
10.3.0
Node Version
v14.19.0
Electron Version
No response
Platform
Linux raspberrypi 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l GNU/Linux
Architecture
ARM
Hardware or chipset of serialport
QinHeng Electronics CH340
What steps will reproduce the bug?
I've created a repository at https://github.com/avakarev/serialport-docker-rpi to reproduce the issue.
Clone it and then:
make run-v9 # v9.2.8 on rpi
Using serialport ^9.2.8
serialport/stream opening path: /dev/ttyUSB0 +0ms
serialport/binding-abstract open +0ms
serialport/bindings/poller Creating poller +0ms
serialport/stream opened path: /dev/ttyUSB0 +10ms
port successfully opened
make docker-run-v9 # v9.2.8 on rpi in docker container
Using serialport ^9.2.8
2022-02-23T17:19:07.255Z serialport/stream opening path: /dev/ttyUSB0
2022-02-23T17:19:07.256Z serialport/binding-abstract open
2022-02-23T17:19:07.266Z serialport/bindings/poller Creating poller
2022-02-23T17:19:07.267Z serialport/stream opened path: /dev/ttyUSB0
port successfully opened
make run-v10 # v10.3.0 on rpi
Using serialport ^10.3.0
serialport/stream opening path: /dev/ttyUSB0 +0ms
serialport/bindings-cpp open +0ms
serialport/bindings-cpp/poller Creating poller +0ms
serialport/stream opened path: /dev/ttyUSB0 +11ms
port successfully opened
make docker-run-v10 # v10.3.0 on rpi in docker container
Using serialport ^10.3.0
2022-02-23T17:20:48.142Z serialport/stream opening path: /dev/ttyUSB0
2022-02-23T17:20:48.144Z serialport/bindings-cpp open
make[1]: *** [Makefile:8: _docker_run] Error 139
What happens?
serialport exits with 139 and have no stacktrace despite DEBUG=serialport*
What should have happened?
serialport should successfully open given port
Additional information
The alpine base image v12 used in demo repo is kinda outdated, but same behavior is met with alpine v14 and v15
Original discussion started at Koenkk/zigbee2mqtt#11545
Koenkk, KlausHans, lpc921, tms0, kpine and 1 more