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

posix_memalign failed to allocate memory #434

Closed
make-ing opened this issue Oct 27, 2023 · 2 comments
Closed

posix_memalign failed to allocate memory #434

make-ing opened this issue Oct 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@make-ing
Copy link

make-ing commented Oct 27, 2023

Describe the bug

The client immediately crashes after loading the configuration file with the following error message:
posix_memalign failed to allocate memoryAborted (core dumped)

To Reproduce

Steps to reproduce the behavior:

  1. clone the repo
  2. build the client
  3. setup a default configuration
  4. run the client

Expected behavior

I expect the client to keep running without any errors.

Actual behavior

The client immediately crashes we the above mentioned error.

Logs

N/A

Environment (please complete the following information):
Local notebook:

  • OS: Ubuntu
  • Version: 22.04
  • Architecture: x86-64

Raspberry Pi CM4:

  • OS: Raspbian (Debian)
  • Version: 12
  • Architecture: aarch64

source version:

Additional context

I tested it on the Raspberry Pi CM4 and my own Notebook running Ubuntu 22.04 as well as in the docker container all with the same results.

Config file:

{
      "endpoint":	"<REDACTED>.iot.eu-central-1.amazonaws.com",
      "cert":	"~/iot-client-tempt/certs/public",
      "key":	"~/iot-client-tempt/certs/private",
      "root-ca":	"~/iot-client-tempt/certs/root",
      "thing-name":	"<REDACTED>",
      "logging":	{
        "level":	"DEBUG",
        "type":	"FILE",
        "file": "/var/log/aws-iot-device-client/aws-iot-device-client.log",
        "enable-sdk-logging":	false,
        "sdk-log-level":	"TRACE",
        "sdk-log-file": "/var/log/aws-iot-device-client/sdk.log"
      },
      "jobs":	{
        "enabled":	true,
        "handler-directory": "/home/florian/.aws-iot-device-client/jobs"
      },
      "tunneling":	{
        "enabled":	true
      },
      "device-defender":	{
        "enabled":	false,
        "interval": 300
      },
      "fleet-provisioning":	{
        "enabled":	false,
        "template-name": "",
        "template-parameters": "",
        "csr-file": "",
        "device-key": ""
      },
      "samples": {
        "pub-sub": {
          "enabled": false,
          "publish-topic": "",
          "publish-file": "/home/florian/.aws-iot-device-client/pubsub/publish-file.txt",
          "subscribe-topic": "",
          "subscribe-file": "/home/florian/.aws-iot-device-client/pubsub/subscribe-file.txt"
        }
      },
      "config-shadow":	{
        "enabled":	false
      },
      "sample-shadow": {
        "enabled": false,
        "shadow-name": "",
        "shadow-input-file": "",
        "shadow-output-file": ""
      }
    }
@make-ing make-ing added the bug Something isn't working label Oct 27, 2023
@HarshGandhi-AWS
Copy link
Contributor

Hello @make-ing , last month in December we released a newer version of Device Client which resolves multiple pending issue like the one you have mentioned over here. Can you update the client version on your device and use the latest commit to see if the issue is resolved for you or not?

Regards,
Harsh Gandhi

@HarshGandhi-AWS
Copy link
Contributor

Hello @make-ing , its been a while since we heard back from you. We will close this issue now. I hope the previous comment answers your question and you are unblocked now.
If you have any other question regarding Device Client or if you are having any trouble using the software then please feel free to reopen this issue or create a new one.

Regards,
Harsh Gandhi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants