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

From connection to crash, a complete process #1549

Open
SeaAndSand opened this issue Dec 25, 2024 · 1 comment
Open

From connection to crash, a complete process #1549

SeaAndSand opened this issue Dec 25, 2024 · 1 comment

Comments

@SeaAndSand
Copy link

Runtime environment: arm-linux
Version: 1.3.13

Code:https://github.com/SeaAndSand/mqtt_test/blob/main/mqtt_client.c
err.log:https://github.com/SeaAndSand/mqtt_test/blob/main/err.log

Why did it crash?

[16:31:19.839]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[4]: 20241225 163118.957 5 mqtt_client_local_ems <- PUBLISH msgid: 0 qos: 0 retained: 0 payload len(153): { "head": { "SID": "
[16:31:19.839]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163118.957 Calling messageArrived for client mqtt_client_local_ems, queue depth 0
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163118.957 m->c->connect_state = 0
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[1]: 20241225 163118.957 queueChar: index is now 1, headerlen 1
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[1]: 20241225 163118.957 queueChar: index is now 2, headerlen 2
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[1]: 20241225 163118.957 queueChar: index is now 3, headerlen 3
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[4]: 20241225 163118.957 6 1c8776585421 <- PUBLISH msgid: 9 qos: 2 retained: 0 payload len(836): {"head":{"SID":"HUAS
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163118.957 Calling messageArrived for client 1c8776585421, queue depth 0
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[4]: 20241225 163119.653 6 1c8776585421 -> PUBREC msgid: 9 (0)
[16:31:19.840]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163119.653 Socket error Broken pipe(32) in writev - putdatas for socket 5
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[4]: 20241225 163119.653 5 mqtt_client_local_ems -> PUBLISH msgid: 23 qos: 2 retained: 0 rc -1 payload len(836): {"head":{"SID":"HUAS
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163119.653 Calling command failure for client mqtt_client_local_ems
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: [tcp://localhost:1883] [mqtt_client_local_ems] Failed to send message
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163119.653 Socket error Broken pipe(32) in writev - putdatas for socket 5
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[4]: 20241225 163119.653 5 mqtt_client_local_ems -> DISCONNECT (-1)
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163119.653 Removed socket 5
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163119.653 Removed socket 5
[16:31:19.841]Dec 25 16:31:19 myimx6ek200-ecu user.info app_mqtt_bridge[1305]: Trace[3]: 20241225 163119.653 0 inflight messages deleted for client mqtt_client_local_ems

@icraggs
Copy link
Contributor

icraggs commented Dec 26, 2024

I can't tell from this information. Is the scenario different at all from issue #1541? It evidently ends on a disconnection so there's obviously a connection problem, but I would need more - like where exactly did it crash for instance.

I can't build the application to try it out myself because there are header files and some functions not included.

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

No branches or pull requests

2 participants