Skip to content

Low-level I/O connect system call failed by Memory allocation failure. #56

Description

@mingshi2807

Hello there,

We have tested several BLE IMU sensors of MbientLab in which libblepp is wrapped in driver level, during these tests, we have encountered systematically one low level I/O problem after about 10-15 min :

  • In BLE driver level, one system call of socket connect() is failed by a memory allocation issue.
  • Then, getaddrinfo() function is failed indeed, then the error exception handler of netdb.h and socket_ops.ipp is triggered by this what() : Cannot allocate memory.
  • Which corresponds # define EAI_MEMORY -10 /* Memory allocation failure. */ in netdb.h and
  • no_memory in socket_ops.ipp

Please find below the trace error when the exception is triggered :

error 1591608658.880516: Error on line: 296 (src/blestatemachine.cc): Cannot allocate memory
terminate called after throwing an instance of 'BLEPP::SocketConnectFailed'
what():  Cannot allocate memory
2020-06-08 11:30:58 sigHandler: Unhandled signal 6, terminating

This issue became more frequent and significant in these cases below :

  • with increasing number of sensors, in our case : 15 sensors.
  • put the sensors on the human body instead of test bench

In this context, we would be very grateful if you could perhaps give some help of debugging or responses about this question.

Best regards,
Ming

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions