You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To investigate this issue further, we need more information. Otherwise, this might take much more time than it should.
If you could run the sample with the debugger, it'd give us all we need. I found this instruction on how to debug a Greengrass component: https://dev.to/iotbuilders/debugging-cc-greengrass-components-using-vscode-1nbh
They even use the same example.
I have got the following error message when I used gdb form the above step.
Failed to establish IPC connection: Failed with EVENT_STREAM_RPC_CRT_ERROR, the CRT error was Unknown Error Code
This looks more like a configuration issue. I am re-checking at my end.
Also please let me know if any Backtrace or something is needed here
Yeah, that's strange. Maybe the cmd options weren't passed?
If you'll manage to catch the segfault in the debugger, the backtrace and maybe local variables should suffice.
Describe the bug
The sample application fails to create a GreengrassCoreIpcClient object and gives a seg-fault when deployed, with the error message
Component_status: Errored
RUN_ERROR: An error occurred while running the component with error code: 139
Code:
Expected Behavior
The code should be in running state and the user should be able to see messages published by the Aws-Iot Core in the logs
Current Behavior
Getting Error with code: 139
And a segfault in the run.
ERROR LOG:
$:/greengrass/v2/logs# cat com.example.HelloWorld.log
2025-04-15T08:35:38.938Z [INFO] (pool-3-thread-26) com.example.HelloWorld: shell-runner-start. {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=STARTING, command=["/greengrass/v2/packages/artifacts/com.example.HelloWorld/1.0.4/HelloWorld"]}
2025-04-15T08:35:38.961Z [INFO] (Copier) com.example.HelloWorld: Run script exited. {exitCode=0, serviceName=com.example.HelloWorld, currentState=RUNNING}
2025-04-15T08:43:23.245Z [INFO] (pool-3-thread-29) com.example.HelloWorld: shell-runner-start. {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=STARTING, command=["/greengrass/v2/packages/artifacts/com.example.HelloWorld/1.0.5/HelloWorld"]}
2025-04-15T08:43:23.400Z [WARN] (Copier) com.example.HelloWorld: stderr. Segmentation fault (core dumped). {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=RUNNING}
2025-04-15T08:43:23.406Z [INFO] (Copier) com.example.HelloWorld: Run script exited. {exitCode=139, serviceName=com.example.HelloWorld, currentState=RUNNING}
2025-04-15T08:43:23.419Z [INFO] (pool-3-thread-30) com.example.HelloWorld: shell-runner-start. {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=STARTING, command=["/greengrass/v2/packages/artifacts/com.example.HelloWorld/1.0.5/HelloWorld"]}
2025-04-15T08:43:23.586Z [WARN] (Copier) com.example.HelloWorld: stderr. Segmentation fault (core dumped). {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=RUNNING}
2025-04-15T08:43:23.591Z [INFO] (Copier) com.example.HelloWorld: Run script exited. {exitCode=139, serviceName=com.example.HelloWorld, currentState=RUNNING}
2025-04-15T08:43:23.596Z [INFO] (pool-3-thread-30) com.example.HelloWorld: shell-runner-start. {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=STARTING, command=["/greengrass/v2/packages/artifacts/com.example.HelloWorld/1.0.5/HelloWorld"]}
2025-04-15T08:43:23.746Z [WARN] (Copier) com.example.HelloWorld: stderr. Segmentation fault (core dumped). {scriptName=services.com.example.HelloWorld.lifecycle.Run, serviceName=com.example.HelloWorld, currentState=RUNNING}
2025-04-15T08:43:23.749Z [INFO] (Copier) com.example.HelloWorld: Run script exited. {exitCode=139, serviceName=com.example.HelloWorld, currentState=RUNNING}
Reproduction Steps
CMakeLists.txt
build the code using the above cmake and deploy it as a component to the greengrass device.
Possible Solution
No response
Additional Information/Context
Using the following openssl version: OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
SDK version used
v0.31.0
Environment details (OS name and version, etc.)
Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered: