justins-engineering / vzw-nidd-serv

A dockerized middleware server based on NGIX Unit that transforms and exchanges data between an IoT device and Verizon
Apache License 2.0
1 stars 1 forks source link

`app process exited on signal 11 (core dumped)` after completeing request #4

Open bandogora opened 4 months ago

bandogora commented 4 months ago

The C application dumps its core after completing a request response. This happens every time.

This doesn't actually affect much since the request is completed and Unit starts a new process when a new request is received.

I'm not sure if this is an app issue, or a Unit issue.

bandogora commented 4 months ago

This seems to be related to using the unit response buffer. https://github.com/justins-engineering/vzw-nidd-serv/blob/9ffd6eaff58c8c52e8fea2758cec4fa04d5c4501/src/request_handler.c#L106-L122

The issue doesn't happen when calling nxt_unit_response_write. https://github.com/justins-engineering/vzw-nidd-serv/blob/9ffd6eaff58c8c52e8fea2758cec4fa04d5c4501/src/request_handler.c#L145

bandogora commented 1 month ago

Probably related to https://github.com/nginx/unit/issues/1125