tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.69k stars 471 forks source link

Crash during connection attempt to MQTT broker in Azure Event Grid #2110

Open wohlfrom opened 2 days ago

wohlfrom commented 2 days ago

What happened?

When configuring secure TLS MQTT connection to Azure Event Grid the ESP crashed during connection and enters a reboot loop until MQTT is disabled in OpenDTU again.

To Reproduce Bug

Create a MQTT broker in Azure Event Grid following this tutorial Configure OpenDTU with the server *.germanywestcentral-1.ts.eventgrid.azure.net After saving the configuration and first attempt is made to connect to the MQTT broker the crash occurs.

Expected Behavior

Succesfull connection or failure message that no successful connection was made.

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

v24.6.10

Relevant log/trace output

15:38:01.346 > [  6449][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 236760
15:38:01.355 > [  6457][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
15:38:01.387 > [  6493][V][ssl_client.cpp:146] start_ssl_client(): Seeding the random number generator
15:38:01.399 > [  6502][V][ssl_client.cpp:155] start_ssl_client(): Setting up the SSL/TLS structure...
15:38:01.405 > [  6510][V][ssl_client.cpp:178] start_ssl_client(): Loading CA cert
15:38:01.418 > [  6521][V][ssl_client.cpp:234] start_ssl_client(): Loading CRT cert
15:38:01.419 > [  6530][V][ssl_client.cpp:243] start_ssl_client(): Loading private key
15:38:01.436 > [  6541][V][ssl_client.cpp:254] start_ssl_client(): Setting hostname for TLS session...
15:38:01.436 > [  6550][V][ssl_client.cpp:269] start_ssl_client(): Performing the SSL/TLS handshake...
15:38:01.806 > Guru Meditation Error: Core  1 panic'ed (Unhandled debug exception). 
15:38:01.814 > Debug exception reason: Stack canary watchpoint triggered (mqttclient)

Anything else?

No response

Please confirm the following