Bus fault on http_client_req in ncs 3.1.0

Getting a Precise data bus error - BUS FAULT, when sending a http POST request to an https sever over tls. Cannot decipher the exact instruction address as on enabling CONFIG_DEBUG_OPTIMIZATIONS+Y, my RAM overflows. Tried to trace the flow and see where the error might be getting triggered using breakpoints and my speculation in the sendall api call in http_client.c, http_client_req -> http_send_data->sendall().
When the api declares a struct for file decriptor,

static int sendall(int sock, const void *buf, size_t len,
const k_timepoint_t req_end_timepoint)
{
while (len) {
ssize_t out_len = zsock_send(sock, buf, len, 0);

if ((out_len == 0) || (out_len < 0 && errno == EAGAIN)) {
struct zsock_pollfd pfd;
int pollres;
k_ticks_t req_timeout_ticks =
sys_timepoint_timeout(req_end_timepoint).ticks;
int req_timeout_ms = k_ticks_to_ms_floor32(req_timeout_ticks);

This bus fault is getting triggered in ncs 3.1.0 but noy in ncs 2.9

Parents Reply Children
No Data
Related