Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) when configuring Modbus in Node-RED Docker #468

Open
mariacomsa opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
bug community could be done by the community modbus-serial issue pull request welcome send your pull request and contribute to the project

Comments

@mariacomsa
Copy link

Which node-red-contrib-modbus version are you using?

5.31.0

What happened?

I am using Node-RED with Docker. When I configure the node-red-contrib-modbus module, a segmentation fault error occurs. The error message is as follows:
Captura
This issue can be resolved by running npm run rebuild inside the Docker volume at data/node_modules/@serialport/bindings-cpp.

Server

Modbus-Server Node

How can this be reproduced?

  1. Use Node-RED with Docker.
  2. Install node-red-contrib-modbus version 5.31.0.
  3. Configure the Modbus settings.
  4. Observe the segmentation fault error as shown in the attached screenshot.
  5. Disable the flow or node that uses the node-red-contrib-modbus library by editing the flows.json file to allow the container to restart.
  6. After the container restarts, run npm run rebuild in the Docker volume at data/node_modules/@serialport/bindings-cpp.
  7. Re-enable the flow or node and verify the configuration.

What did you expect to happen?

I expected the Modbus configuration to work without causing a segmentation fault error. Ideally, there should be no need to manually rebuild the @serialport/bindings-cpp module inside the Docker volume

Other Information

No response

@mariacomsa mariacomsa added the bug label Jun 12, 2024
@biancode biancode added pull request welcome send your pull request and contribute to the project community could be done by the community modbus-serial issue labels Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug community could be done by the community modbus-serial issue pull request welcome send your pull request and contribute to the project
Projects
None yet
Development

No branches or pull requests

3 participants