Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By bastian.h.jaeger
#89054 Hi,

I would need some help reading a crash trace. My application is publishing data over MQTT with TLS/SSL enabled. Occasionally there are connection issues but since I added encryption it seems to crash and I am not sure why.
I added printing of heap memory, as I read that TLS might use to much space.

With the EspStackTraceDecoder I converted the crash information, but I am not able do read the trace and find the issue. Can anyone help?

Serial output:
Code: Select all214557 [INFO]  ALARM 07 Oct 2020 20:41:06
214559 [INFO]  ESP.getFreeHeap() = 12480
217543 [INFO]  ALARM 07 Oct 2020 20:41:09
217545 [INFO]  ESP.getFreeHeap() = 12480
220540 [INFO]  ALARM 07 Oct 2020 20:41:12
220542 [INFO]  ESP.getFreeHeap() = 12480
223557 [INFO]  ALARM 07 Oct 2020 20:41:15
223559 [INFO]  ESP.getFreeHeap() = 12480
226541 [INFO]  ALARM 07 Oct 2020 20:41:18
226543 [INFO]  ESP.getFreeHeap() = 9280
229539 [INFO]  ALARM 07 Oct 2020 20:41:21
229541 [INFO]  ESP.getFreeHeap() = 9280
232549 [INFO]  ALARM 07 Oct 2020 20:41:24
232552 [INFO]  ESP.getFreeHeap() = 9280
[onMqttDisconnect]  disconnected 0
233794 [INFO]  ESP.getFreeHeap() = 27184
233794 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
[onMqttDisconnect]  disconnected 0
233830 [INFO]  ESP.getFreeHeap() = 27264
233831 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
[onMqttDisconnect]  disconnected 0
233845 [INFO]  ESP.getFreeHeap() = 30656
233845 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
[onMqttDisconnect]  disconnected 0
233854 [INFO]  ESP.getFreeHeap() = 30656
233854 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
[onMqttDisconnect]  disconnected 0
233874 [INFO]  ESP.getFreeHeap() = 30656
233874 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
[onMqttDisconnect]  disconnected 0
233886 [INFO]  ESP.getFreeHeap() = 30656
233886 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
[onMqttDisconnect]  disconnected 0
233896 [INFO]  ESP.getFreeHeap() = 30656
233896 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..
233899 [INFO]   [setupWifiAndMqtt] was called.
233903 [INFO]  MQTT connecting 'h2891062.stratoserver.net'
[MqttHandler]  OTA Start: 0x77000 OTA End: 0x100000
[begin]  OTA Start: 0x77000 OTA End: 0x100000
[begin]  setCredentials
[begin]  Setup Complete
[connect_mqtt]  connecting..
233924 [INFO]  [waitForMqttConnected] connecting...
[onMqttDisconnect]  disconnected 0
233931 [INFO]  ESP.getFreeHeap() = 29840
233935 [INFO]  FORCE DISCONNECT
[connect_mqtt]  connecting..

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (29):
epc1=0x4000e1cc epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000404 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffe5d0 end: 3fffffb0 offset: 0190
3fffe760:  3fffa634 00000102 3fffa664 40238ed6 
3fffe770:  3fffa634 3fffa664 00000101 40239ace 
3fffe780:  00020000 3fff7684 00000020 00000081 
3fffe790:  3fffa694 3fffa67c 00000080 00000000 
3fffe7a0:  00000020 3fff7684 00000081 00000081 
3fffe7b0:  00000000 00000001 00000001 40239116 
3fffe7c0:  3fffa64c 3fff7684 00000000 000000ff 
3fffe7d0:  3fffa664 00000101 3fffa664 000000ff 
3fffe7e0:  3fffa664 3fff7684 3fff7684 40239d99 
3fffe7f0:  00000002 00000001 3fffec7c 40238f44 
3fffe800:  00000200 00000200 3fffa3e4 3fffa604 
3fffe810:  3fff75ec 00000200 3fff7684 4023af81 
3fffe820:  3fffa3e4 3fff7704 00000003 4023ec18 
3fffe830:  3fff4f76 00000012 00000020 00000000 
3fffe840:  00000200 3fff4f76 3fffec7c 4023f0b5 
3fffe850:  3fff7704 3fffa3e4 3ffeac5a 4023efd0 
3fffe860:  3fff75ac 00000012 00000000 4023ede2 
3fffe870:  40101146 3fff75ac 3fff4f76 0000012a 
3fffe880:  00000004 3fff75ac 3fff4f76 402377a4 
3fffe890:  d8d79dd8 63e6d3cf 9646176b 5185e3e4 
3fffe8a0:  df4d275f 636212d4 057baaed 0f55f62a 
3fffe8b0:  0df4dce1 9d8c10af 78d3c60e a4fe4934 
3fffe8c0:  4b9d290f 6eaa13dd 10bbc8b1 6a14cdf6 
3fffe8d0:  00000000 00000000 00000000 00000000 
3fffe8e0:  00000000 00000000 00000000 00000000 
3fffe8f0:  00000000 00000000 00000000 00000000 
3fffe900:  00000000 00000000 00000000 00000000 
3fffe910:  00000000 00000000 00000000 00000000 
3fffe920:  00000000 00000000 00000000 00000000 
3fffe930:  00000000 00000000 00000000 00000000 
3fffe940:  00000000 00000000 00002bc0 00000000 
3fffe950:  00000000 00000000 00015eaf 05780000 
3fffe960:  00000000 00000000 000af002 000000af 
3fffe970:  00000000 00000000 bc424bd1 5e00457a 
3fffe980:  00002bc0 00000000 004c002d b8000100 
3fffe990:  0002bd5e 0af00000 02413164 42e5bf04 
3fffe9a0:  0020d007 0000020d b5e00faf 300ae680 
3fffe9b0:  f189ef4d 780135da f10817bb 8162f99e 
3fffe9c0:  c17e19b0 74000600 acba2cc1 16d5373d 
3fffe9d0:  0a770be2 d37f85a2 35a669e2 f8e2d1f8 
3fffe9e0:  520b3937 abd87040 096faf53 81ca9224 
3fffe9f0:  6207ea07 3b8f32ca 06dcc029 8bba16cd 
3fffea00:  8ccf3068 297485aa 4ae9380e aee205e6 
3fffea10:  9fcf713a f695bda7 7a3b21d6 c868a33e 
3fffea20:  bc6eef0b 1270e5b5 6c1494c3 81811570 
3fffea30:  fd2e37c4 cc1db4e2 638ed0e2 d20a623a 
3fffea40:  7129832f 125938f6 e96eab0c e13c995f 
3fffea50:  0ed67d54 de45b98a 8403faa3 cd65ad1c 
3fffea60:  108627db febeddd4 5df02ec8 ffbfd736 
3fffea70:  a9c5648d 2dd2c462 fe0989fe 16ae8838 
3fffea80:  21e9e786 25e411c6 43bb1486 518a58b8 
3fffea90:  3957a8f8 8ab02e09 43764e7c 38ba8b98 
3fffeaa0:  acb6d3fc b727681b 9b3705c0 5fa8087a 
3fffeab0:  60a2edfe ced7b871 da5c14ed ba8fd332 
3fffeac0:  010d4685 09d9df63 a02e24a6 fa35eb04 
3fffead0:  795d2641 421efafa 53be71c4 c0bd1394 
3fffeae0:  1c2e3e6a ca7d96ad 207c1847 b3099621 
3fffeaf0:  a1fd4009 74d76997 0f52b0c1 ceaced9e 
3fffeb00:  6790551e ddbaef02 e4137473 70b701bc 
3fffeb10:  7f917df8 8f841406 8d8fb238 9477bff2 
3fffeb20:  f75f2df2 ab079bf5 b2dad64f c4634ae7 
3fffeb30:  48913ad3 8e3bb49c c8b34e10 15036a9f 
3fffeb40:  8650369b a964c8d6 a9d05b96 2c10b971 
3fffeb50:  00000070 00040000 000005f0 00000000 
3fffeb60:  00000240 00000000 c3dd1fa3 5a57534a 
3fffeb70:  5584ed10 590adc4c 2cebc4bc fe3b4f8e 
3fffeb80:  f109e324 72e6923d a46b150a 94b2c26c 
3fffeb90:  f7b7101e dedce567 353673c6 e4410e21 
3fffeba0:  83909e40 9652dec3 0103026b 00800100 
3fffebb0:  00000000 00000000 00000000 00000000 
3fffebc0:  00000000 30110000 964d944b 80b7b29a 
3fffebd0:  9dcbc9f7 13cc30e8 f43c733c 00000000 
3fffebe0:  00000000 00000000 00000000 00000000 
3fffebf0:  00000000 00000000 00000000 00000000 
3fffec00:  00000000 00000000 00000000 00000000 
3fffec10:  00000000 00000000 00000000 00000000 
3fffec20:  00000000 00000000 d8d79dd8 63e6d3cf 
3fffec30:  9646176b 5185e3e4 df4d275f 636212d4 
3fffec40:  057baaed 0f55f62a 0df4dce1 9d8c10af 
3fffec50:  78d3c60e a4fe4934 4b9d290f 6eaa13dd 
3fffec60:  10bbc8b1 6a14cdf6 00000391 00000371 
3fffec70:  000004f3 00000002 000005b9 00000350 
3fffec80:  000003a5 40229cb9 3fff2930 00000d00 
3fffec90:  00000000 3fff67d0 000004f3 00000002 
3fffeca0:  3fff9f14 00000000 00000004 00000000 
3fffecb0:  40101146 b17be779 00000002 00000001 
3fffecc0:  3fff67d0 3fff47d9 0000079d 402353b5 
3fffecd0:  00000d4f 3fff6924 00000d56 3fff67cc 
3fffece0:  3fff67dc 00000007 00820011 3fff6978 
3fffecf0:  000005b9 a3594458 af917baf 6fc1ea61 
3fffed00:  a03bd1a6 3fff6364 2f65ad6f 3fff47d9 
3fffed10:  00000d56 00000d56 3fff6924 40236a13 
3fffed20:  d731a721 cade0895 f6859abb a2cf0fe7 
3fffed30:  77790cfe 00000242 00000020 40100eb3 
3fffed40:  00000033 3fff550c 3fff550c 3fff6364 
3fffed50:  00000000 00000ce3 3fff678c 40206d36 
3fffed60:  3fff52ed 3fff71c4 0000000d 3fff47d9 
3fffed70:  3fff47d9 00000d56 3fff6924 3fff47d9 
3fffed80:  00000d56 00000d56 3fff6924 40236388 
3fffed90:  3fff0000 9ab807bc 00000014 3fff669c 
3fffeda0:  3fff66a0 3fff7154 3fff669c 402333b4 
3fffedb0:  3fff1bf4 00000000 00000000 3fff669c 
3fffedc0:  3fffee10 0000000b 00000010 402333da 
3fffedd0:  3fff1bf4 00000000 00000000 01000000 
3fffede0:  3fffee10 3fff71c4 3fff6924 402364f0 
3fffedf0:  3fff1bf4 3fff9f14 3fff669c 3fff669c 
3fffee00:  00000000 3fff71c4 3fff678c 40206b09 
3fffee10:  00000000 00000000 4bc6a7f0 00000000 
3fffee20:  3fff7154 00000000 401006e2 828f5c28 
3fffee30:  00000000 3fff1a58 0000111c 00000001 
3fffee40:  3fff4380 3fff1a58 3fff71c4 4021b743 
3fffee50:  3fff669c 00000001 00000022 4022c16b 
3fffee60:  40000f68 00000030 00000010 3fff1a74 
3fffee70:  3fff669c 3fff1a58 3fff1a59 4021b76c 
3fffee80:  3fff669c 3fff1a58 3fff1a59 4022d6a0 
3fffee90:  000054b8 00000000 00000020 40100ee8 
3fffeea0:  3fff1bf4 17b2a8c0 3fff23cc 3fff23e4 
3fffeeb0:  00000000 00000000 00000020 3fff1cf0 
3fffeec0:  3fff1bf4 3fff71e2 3fff71c4 4023310a 
3fffeed0:  00000014 3fff1bf4 00000281 3fff23e4 
3fffeee0:  00000000 3fff232c 00000020 40100eb3 
3fffeef0:  4025542c 3fff2604 3fff232c 3fff23e4 
3fffef00:  00000008 3fff1bf4 3fff71c4 4022a2d9 
3fffef10:  3fffdc80 3fff232c 3fff2604 4022a0f8 
3fffef20:  4025f93a 3fff232c 3fff2604 4025f94b 
3fffef30:  3fff71d4 3fff71c4 00000000 3fffdcc0 
3fffef40:  40254f26 00000000 3fff2604 4025b14b 
3fffef50:  40000f49 3fffdab0 3fffdab0 40000f49 
3fffef60:  40000e19 00000005 0007678b 00000000 
3fffef70:  00000000 aa55aa55 000000ed 40104ded 
3fffef80:  40104df3 0007678b 00000000 06aa72bb 
3fffef90:  4010000d 22519d40 3034ab25 4e17b906 
3fffefa0:  40253f2c 3fffef3c 40253edd 3ffffe08 
3fffefb0:  3fffffc0 00000000 00000000 feefeffe 
3fffefc0:  feefeffe feefeffe feefeffe feefeffe 
3fffefd0:  feefeffe feefeffe feefeffe feefeffe 
3fffefe0:  feefeffe feefeffe feefeffe feefeffe 
3fffeff0:  feefeffe feefeffe feefeffe feefeffe 
3ffff000:  feefeffe feefeffe feefeffe feefeffe 
3ffff010:  feefeffe feefeffe feefeffe feefeffe 
3ffff020:  feefeffe feefeffe feefeffe feefeffe 
3ffff030:  feefeffe feefeffe feefeffe feefeffe 
3ffff040:  feefeffe feefeffe feefeffe feefeffe 
3ffff050:  feefeffe feefeffe feefeffe feefeffe 
3ffff060:  feefeffe feefeffe feefeffe feefeffe 
3ffff070:  feefeffe feefeffe feefeffe feefeffe 
3ffff080:  feefeffe feefeffe feefeffe feefeffe 
3ffff090:  feefeffe feefeffe feefeffe feefeffe 
3ffff0a0:  feefeffe feefeffe feefeffe feefeffe 
3ffff0b0:  feefeffe feefeffe feefeffe feefeffe 
3ffff0c0:  feefeffe feefeffe feefeffe feefeffe 
3ffff0d0:  feefeffe feefeffe feefeffe feefeffe 
3ffff0e0:  feefeffe feefeffe feefeffe feefeffe 
3ffff0f0:  feefeffe feefeffe feefeffe feefeffe 
3ffff100:  feefeffe feefeffe feefeffe feefeffe 
3ffff110:  feefeffe feefeffe feefeffe feefeffe 
3ffff120:  feefeffe feefeffe feefeffe feefeffe 
3ffff130:  feefeffe feefeffe feefeffe feefeffe 
3ffff140:  feefeffe feefeffe feefeffe feefeffe 
3ffff150:  feefeffe feefeffe feefeffe feefeffe 
3ffff160:  feefeffe feefeffe feefeffe feefeffe 
3ffff170:  feefeffe feefeffe feefeffe feefeffe 
3ffff180:  feefeffe feefeffe feefeffe feefeffe 
3ffff190:  feefeffe feefeffe feefeffe feefeffe 
3ffff1a0:  feefeffe feefeffe feefeffe feefeffe 
3ffff1b0:  feefeffe feefeffe feefeffe feefeffe 
3ffff1c0:  feefeffe feefeffe feefeffe feefeffe 
3ffff1d0:  feefeffe feefeffe feefeffe feefeffe 
3ffff1e0:  feefeffe feefeffe feefeffe feefeffe 
3ffff1f0:  feefeffe feefeffe feefeffe feefeffe 
3ffff200:  feefeffe feefeffe feefeffe feefeffe 
3ffff210:  feefeffe feefeffe feefeffe feefeffe 
3ffff220:  feefeffe feefeffe feefeffe feefeffe 
3ffff230:  feefeffe feefeffe feefeffe feefeffe 
3ffff240:  feefeffe feefeffe feefeffe feefeffe 
3ffff250:  feefeffe feefeffe feefeffe feefeffe 
3ffff260:  feefeffe feefeffe feefeffe feefeffe 
3ffff270:  feefeffe feefeffe feefeffe feefeffe 
3ffff280:  feefeffe feefeffe feefeffe feefeffe 
3ffff290:  feefeffe feefeffe feefeffe feefeffe 
3ffff2a0:  feefeffe feefeffe feefeffe feefeffe 
3ffff2b0:  feefeffe feefeffe feefeffe feefeffe 
3ffff2c0:  feefeffe feefeffe feefeffe feefeffe 
3ffff2d0:  feefeffe feefeffe feefeffe feefeffe 
3ffff2e0:  feefeffe feefeffe feefeffe feefeffe 
3ffff2f0:  feefeffe feefeffe feefeffe feefeffe 
3ffff300:  feefeffe feefeffe feefeffe feefeffe 
3ffff310:  feefeffe feefeffe feefeffe feefeffe 
3ffff320:  feefeffe feefeffe feefeffe feefeffe 
3ffff330:  feefeffe feefeffe feefeffe feefeffe 
3ffff340:  feefeffe feefeffe feefeffe feefeffe 
3ffff350:  feefeffe feefeffe feefeffe feefeffe 
3ffff360:  feefeffe feefeffe feefeffe feefeffe 
3ffff370:  feefeffe feefeffe feefeffe feefeffe 
3ffff380:  feefeffe feefeffe feefeffe feefeffe 
3ffff390:  feefeffe feefeffe feefeffe feefeffe 
3ffff3a0:  feefeffe feefeffe feefeffe feefeffe 
3ffff3b0:  feefeffe feefeffe feefeffe feefeffe 
3ffff3c0:  feefeffe feefeffe feefeffe feefeffe 
3ffff3d0:  feefeffe feefeffe feefeffe feefeffe 
3ffff3e0:  feefeffe feefeffe feefeffe feefeffe 
3ffff3f0:  feefeffe feefeffe feefeffe feefeffe 
3ffff400:  feefeffe feefeffe feefeffe feefeffe 
3ffff410:  feefeffe feefeffe feefeffe feefeffe 
3ffff420:  feefeffe feefeffe feefeffe feefeffe 
3ffff430:  feefeffe feefeffe feefeffe feefeffe 
3ffff440:  feefeffe feefeffe feefeffe feefeffe 
3ffff450:  feefeffe feefeffe feefeffe feefeffe 
3ffff460:  feefeffe feefeffe feefeffe feefeffe 
3ffff470:  feefeffe feefeffe feefeffe feefeffe 
3ffff480:  feefeffe feefeffe feefeffe feefeffe 
3ffff490:  feefeffe feefeffe feefeffe feefeffe 
3ffff4a0:  feefeffe feefeffe feefeffe feefeffe 
3ffff4b0:  feefeffe feefeffe feefeffe feefeffe 
3ffff4c0:  feefeffe feefeffe feefeffe feefeffe 
3ffff4d0:  feefeffe feefeffe feefeffe feefeffe 
3ffff4e0:  feefeffe feefeffe feefeffe feefeffe 
3ffff4f0:  feefeffe feefeffe feefeffe feefeffe 
3ffff500:  feefeffe feefeffe feefeffe feefeffe 
3ffff510:  feefeffe feefeffe feefeffe feefeffe 
3ffff520:  feefeffe feefeffe feefeffe feefeffe 
3ffff530:  feefeffe feefeffe feefeffe feefeffe 
3ffff540:  feefeffe feefeffe feefeffe feefeffe 
3ffff550:  feefeffe feefeffe feefeffe feefeffe 
3ffff560:  feefeffe feefeffe feefeffe feefeffe 
3ffff570:  feefeffe feefeffe feefeffe feefeffe 
3ffff580:  feefeffe feefeffe feefeffe feefeffe 
3ffff590:  feefeffe feefeffe feefeffe feefeffe 
3ffff5a0:  feefeffe feefeffe feefeffe feefeffe 
3ffff5b0:  feefeffe feefeffe feefeffe feefeffe 
3ffff5c0:  feefeffe feefeffe feefeffe feefeffe 
3ffff5d0:  feefeffe feefeffe feefeffe feefeffe 
3ffff5e0:  feefeffe feefeffe feefeffe feefeffe 
3ffff5f0:  feefeffe feefeffe feefeffe feefeffe 
3ffff600:  feefeffe feefeffe feefeffe feefeffe 
3ffff610:  feefeffe feefeffe feefeffe feefeffe 
3ffff620:  feefeffe feefeffe feefeffe feefeffe 
3ffff630:  feefeffe feefeffe feefeffe feefeffe 
3ffff640:  feefeffe feefeffe feefeffe feefeffe 
3ffff650:  feefeffe feefeffe feefeffe feefeffe 
3ffff660:  feefeffe feefeffe feefeffe feefeffe 
3ffff670:  feefeffe feefeffe feefeffe feefeffe 
3ffff680:  00000005 00000000 00000020 40100368 
3ffff690:  feefeffe feefeffe 00000005 40101a34 
3ffff6a0:  3ffeb0c5 40104ce7 3ffeeab0 feefeffe 
3ffff6b0:  401025cb 3ffeeab0 feefeffe feefeffe 
3ffff6c0:  0000000f 092ce1a6 3ffef598 401027ac 
3ffff6d0:  3ffeb970 00000000 00000000 feefeffe 
3ffff6e0:  0000000f 092ce1a6 40102c6e 00000100 
3ffff6f0:  3ffeb970 7fffffff 00002200 00000001 
3ffff700:  00000001 00000080 04000000 feefeffe 
3ffff710:  3ffeb970 00000004 4023d835 092ce1a6 
3ffff720:  3ffeb964 2c9f0300 4000050c 3fffc278 
3ffff730:  40102990 3fffc200 00000022 40253d77 
3ffff740:  40243d47 00000030 00000018 ffffffff 
3ffff750:  00000000 3fff26b4 3ffedf3c 00000000 
3ffff760:  00000001 00000000 00000008 00000002 
3ffff770:  00000000 00000000 00000000 3ffee830 
3ffff780:  3ffefce8 00000000 3fff29cc 00000030 
3ffff790:  8597ee76 dc53a876 058378e5 c7c849f0 
3ffff7a0:  152321b2 0edb8a75 5463801a 0eb311d4 
3ffff7b0:  d4739a1e 714ea1db c97b5824 00000030 
3ffff7c0:  3a4800c8 07080708 07080708 07080708 
3ffff7d0:  07080708 07080708 07080708 00000014 
3ffff7e0:  3fff13c8 001279ef 00000005 40251631 
3ffff7f0:  3fff13c8 001279ef 0000020f 4024fe11 
3ffff800:  3ffea76c 00000017 ffffffff ffffffff 
3ffff810:  0f868ae5 64c9c211 40bd8724 0c71d2af 
3ffff820:  900b2c0d 2ef2b649 cd6c0098 ae552bf3 
3ffff830:  7752ae92 036948ae 0026335b adcdc80b 
3ffff840:  0413fe61 35dd1ed5 8cbc14b3 e2be5f53 
3ffff850:  7cf4a38a c3dcbee0 5606049f 6b4b5f70 
3ffff860:  e95f020c 3ffff940 b842ced0 7dc9e02c 
3ffff870:  a912d487 4f0dca6e 171375dc 2a199620 
3ffff880:  c97d0a54 8c20f2bb 9d67c11e b8bb4403 
3ffff890:  69a7a52c 67ed7d67 20e9232c 3173485a 
3ffff8a0:  00000008 3ffff920 00000008 3ffff940 
3ffff8b0:  00000000 7e7961de df06b866 efd5a18c 
3ffff8c0:  6f310e1b 3ffff940 c8f5069b 3ffffa6c 
3ffff8d0:  00000003 3fff4ae0 3ffff940 4023e14d 
3ffff8e0:  00000080 00000000 00000000 00000000 
3ffff8f0:  00000000 00000000 00000000 00000000 
3ffff900:  00000000 00000000 00000000 00000000 
3ffff910:  00000000 00000000 00000000 00000000 
3ffff920:  00000000 00030000 3fff1bf4 3ffffa6c 
3ffff930:  00000003 3ffffa78 00000003 4023a588 
3ffff940:  00000080 00000000 b6426219 bf9ca33b 
3ffff950:  00000000 4000444e df1d73c1 d1bee99a 
3ffff960:  00000000 400041bc 60000200 3fff219c 
3ffff970:  00000100 40004b14 00000040 003a55c0 
3ffff980:  00000100 3fff215c 3fffc718 003a5600 
3ffff990:  00000040 00000000 40106104 00000040 
3ffff9a0:  3fff215c 003a5600 00000040 003a5600 
3ffff9b0:  3fffc718 3fff215c 00000020 40100368 
3ffff9c0:  003a55c0 40216fdc 003a55c0 3fff215c 
3ffff9d0:  3ffeb0c5 40104ce7 3ffeea88 5c5c5c5c 
3ffff9e0:  401025cb 3ffeea88 28efe6a6 003a55c0 
3ffff9f0:  003a5600 003a5600 00000040 4021a291 
3ffffa00:  3ffeb964 00000000 00000000 001b9a97 
3ffffa10:  0000000f 0ceac0e1 40102c6e 00000100 
3ffffa20:  3ffeb964 7fffffff 23002200 00000001 
3ffffa30:  00000001 00004208 3fff4710 00000270 
3ffffa40:  00000000 4000444e 3fff6790 0ceac0e1 
3ffffa50:  00000000 4000422e 60000200 3fff219c 
3ffffa60:  00000100 40004aa0 000000c0 003a5740 
3ffffa70:  00000100 3fff215c 3fffc718 003a5740 
3ffffa80:  00000040 00e8a101 40106104 00000040 
3ffffa90:  3fff215c 003a5780 00000040 003a5780 
3ffffaa0:  3fffc718 3fff215c 40106104 00000040 
3ffffab0:  003a5740 40216fdc 003a5740 3fff215c 
3ffffac0:  3fffc718 3fff215c 0000022f 40235908 
3ffffad0:  003a5700 40216fdc 003a5700 003a5740 
3ffffae0:  003a5780 003a5780 402561b7 00000000 
3ffffaf0:  ffffffff 00000000 3ffeb211 00000000 
3ffffb00:  40256206 3ffee830 3fff29cc 00000001 
3ffffb10:  40256312 3ffee830 3fff29cc 3ffee830 
3ffffb20:  00000005 00000005 00000008 3fff6778 
3ffffb30:  3ffeb0c2 402552bf 3ffee830 00000020 
3ffffb40:  00000002 00000000 0000000a 00000000 
3ffffb50:  00000002 00000000 0000000a 00000000 
3ffffb60:  3fff6792 40105337 3fff2930 3fff1830 
3ffffb70:  00000000 a0000000 00000000 0000001c 
3ffffb80:  00002000 40229cb9 00002000 00000000 
3ffffb90:  3ffffcf0 00000000 3ffffcf0 4022473e 
3ffffba0:  0000a000 3ffffc93 3ffeeab0 00000000 
3ffffbb0:  3fff1c2c 3fff1bf4 4021fd31 00000007 
3ffffbc0:  3ffffcf0 00000007 3ffffcf0 4022473e 
3ffffbd0:  3ffffc50 3ffe9243 3ffffc00 00000000 
3ffffbe0:  0000000f 0d505afa 40102c6e 40224674 
3ffffbf0:  3ffffcf0 3ffe9243 3ffffc50 4021fe5c 
3ffffc00:  00000007 00004208 3ffef598 00000001 
3ffffc10:  00000000 00000001 3ffffcf0 4022473e 
3ffffc20:  3ffffc93 3ffea40a 00000000 3fff675c 
3ffffc30:  3fff675c 3fff1c00 3fff1bf4 3ffea40a 
3ffffc40:  00000000 3ffea40b 3ffffcf0 40224928 
3ffffc50:  00000000 00000007 00000000 00000000 
3ffffc60:  00000007 00000001 00302073 0000001c 
3ffffc70:  00000014 3fff669c 000000ff 00000000 
3ffffc80:  00000006 3fff1ba0 3fff1bf4 33333230 
3ffffc90:  00343239 00000000 00000000 3fff669c 
3ffffca0:  3fff67d4 3fff1bf4 00000000 402333b4 
3ffffcb0:  3ffffe20 3ffffdf0 00000008 3ffe8344 
3ffffcc0:  00000007 00000001 00000000 402333da 
3ffffcd0:  3fff1bf4 00000000 00000000 3ffe9026 
3ffffce0:  3fff10ec 3ffe8344 00000040 40221b9d 
3ffffcf0:  3ffffda1 3ffffd70 0000003e ffff0208 
3ffffd00:  3ffffda0 0000003f 3fff6720 00000000 
3ffffd10:  00000000 00000008 3fff10ec 3fff1bf4 
3ffffd20:  00000002 00000011 3fff669c 3fff1bf4 
3ffffd30:  00000000 000022b3 3fff669c 4022a794 
3ffffd40:  4021b81c 3ffffd70 000a0d00 000022b3 
3ffffd50:  3ffffda1 00000000 6961000a 4021a891 
3ffffd60:  3ffffda1 00000008 3fff10ec 40221be0 
3ffffd70:  3ffffe20 3ffffdf0 00000008 00000001 
3ffffd80:  3fff10ec 00000008 3ffffda0 40217384 
3ffffd90:  000022b3 00000001 3fff4380 40217804 
3ffffda0:  6961000a 726f4674 7474714d 6e6e6f43 
3ffffdb0:  65746365 63205d64 656e6e6f 6e697463 
3ffffdc0:  2e2e2e67 3fff4400 3fff4380 40212db2 
3ffffdd0:  4010544d 045c35e5 3fff10ec 402180d4 
3ffffde0:  401054fa 3fff13a0 045c35e5 00000000 
3ffffdf0:  401056d1 045c35e5 3fff1340 00000000 
3ffffe00:  3fff03d0 3fff1340 000000c8 3fff1340 
3ffffe10:  3ffe902a 3ffe9026 40218ccc 3fffefa0 
3ffffe20:  3fff1340 3ffe902a 3ffe9026 40219c76 
3ffffe30:  3ffe902a 00000001 3fff10ec 4020ab2e 
3ffffe40:  39383268 32363031 7274732e 736f7461 
3ffffe50:  65767265 656e2e72 00000074 00000000 
3ffffe60:  697022b3 65746172 00000000 00000000 
3ffffe70:  00000000 00000000 00000000 00000000 
3ffffe80:  69500000 65746172 6f6e6e49 69746176 
3ffffe90:  32316e6f 00000033 00000000 00000000 
3ffffea0:  6c6c0000 00000000 4bc6a7f0 00000000 
3ffffeb0:  00000001 00000000 00000000 3ffffec0 
3ffffec0:  00000000 3fffff10 3fff667c 3fff1234 
3ffffed0:  3fffdad0 00000000 3fff10ec 4020ae4a 
3ffffee0:  401056d1 045b1a66 3fff1340 00000000 
3ffffef0:  3fff03d0 3fff1340 000001f4 3fff1234 
3fffff00:  3fffdad0 3fff1340 000001f4 40218cd8 
3fffff10:  40219c81 000001f4 3fff1234 40219c76 
3fffff20:  3ffe85b0 00000000 00000000 4020eeb2 
3fffff30:  3fff6cf4 3fff6d3c 3fffff50 4020736d 
3fffff40:  402617e0 00000001 00000000 4020c20c 
3fffff50:  4021cd98 00000000 000003e8 402198c9 
3fffff60:  00000000 00000000 00000000 00000000 
3fffff70:  3fff10b4 00000060 00000000 4020f4de 
3fffff80:  3fff448c 00000001 3ffe85b0 3fff1234 
3fffff90:  3fffdad0 00000000 3fff10ec 4020f041 
3fffffa0:  3fffdad0 00000000 3fff11f4 40218df0 
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------


Decoded crash trace:
Code: Select allException Cause: 29  [StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores]

0x4000e1cc: ?? ??:0
0x40238ed6: check at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/bigint.c:1177
0x40239ace: bi_divide at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/bigint.c:439
0x40239116: bi_initialize at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/bigint.c:101
0x40239d99: bi_barrett at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/bigint.c:1273
0x40238f44: comp_right_shift at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/bigint.c:562
0x4023af81: RSA_private at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/rsa.c:222
0x4023ec18: asn1_next_obj at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/asn1.c:128
 (inlined by) asn1_get_int at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/asn1.c:185
0x4023f0b5: asn1_signature at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/asn1.c:566
0x4023efd0: asn1_name at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/asn1.c:525
0x4023ede2: asn1_next_obj at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/asn1.c:128
 (inlined by) asn1_name at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/asn1.c:483
0x40101146: calloc at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/umm_malloc/umm_malloc.cpp:908
0x402377a4: x509_new at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/x509.c:117
0x40229cb9: glue2esp_linkoutput at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-esp/lwip-esp.c:264
0x40101146: calloc at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/umm_malloc/umm_malloc.cpp:908
0x402353b5: process_certificate at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/tls1.c:2189
0x40236a13: send_cert_verify at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/tls1_clnt.c:515
 (inlined by) do_clnt_handshake at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/tls1_clnt.c:118
0x40100eb3: free at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/umm_malloc/umm_malloc.cpp:398
0x40206d36: ax_port_read at /home/user/dev/esp_proj/.pio/libdeps/sensor_cube_debug/ESPAsyncTCP_ID305/src/tcp_axtls.c:582
0x40236388: basic_read at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/tls1.c:1499
0x402333b4: ip4_output_if_src at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/ip4.c:1589
0x402333da: autoip_start_probing at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/autoip.c:301
0x402364f0: ssl_read at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/tls1.c:330
0x40206b09: tcp_ssl_read at /home/user/dev/esp_proj/.pio/libdeps/sensor_cube_debug/ESPAsyncTCP_ID305/src/tcp_axtls.c:378
0x401006e2: millis at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_wiring.cpp:188
0x4021b743: AsyncClient::_connected(void*, long) at /home/user/dev/esp_proj/.pio/libdeps/sensor_cube_debug/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:289
0x4022c16b: tcp_receive at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp_in.c:1328 (discriminator 1)
0x40000f68: ?? ??:0
0x4021b76c: AsyncClient::_connected(void*, long) at /home/user/dev/esp_proj/.pio/libdeps/sensor_cube_debug/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:296
0x4022d6a0: tcp_input at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp_in.c:534
0x40100ee8: malloc at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/umm_malloc/umm_malloc.cpp:552
0x4023310a: ip4_input at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/ip4.c:1491
0x40100eb3: free at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/umm_malloc/umm_malloc.cpp:398
0x4025542c: ppCheckTxIdle at ??:?
0x4022a2d9: ethernet_output at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/netif/ethernet.c:272
0x4022a0f8: esp2glue_netif_set_up1down0 at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-lwip/lwip-git.c:478
0x4025f93a: create_msg at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-lwip/esp-dhcpserver.c:316
0x4025f94b: create_msg at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-lwip/esp-dhcpserver.c:323
0x40254f26: ppPeocessRxPktHdr at ??:?
0x4025b14b: ets_snprintf at ??:?
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0
0x40000e19: ?? ??:0
0x40104ded: call_user_start_local at ??:?
0x40104df3: call_user_start_local at ??:?
0x4010000d: call_user_start at ??:?
0x40253f2c: wifi_fpm_set_sleep_type at ??:?
0x40253edd: cont_run at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/cont.S:119
0x40100368: ets_post at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:177
0x40101a34: pp_post at ??:?
0x40104ce7: lmacRxDone at ??:?
0x401025cb: rcReachRetryLimit at ??:?
0x401027ac: rcReachRetryLimit at ??:?
0x40102c6e: wDev_ProcessFiq at ??:?
0x4023d835: SHA256_Process at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/sha256.c:186
0x4000050c: ?? ??:0
0x40102990: wDev_ProcessFiq at ??:?
0x40253d77: bsec_sin at ??:?
0x40243d47: ieee80211_send_nulldata at ??:?
0x40251631: bsec_ChannelHub_updateOutputSamplIntvl at ??:?
0x4024fe11: bsec_Bsec_applyUpdateSubscription$part$0 at Bsec.c:?
0x4023e14d: SHA256_Final at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/sha256.c:275 (discriminator 3)
0x4023a588: ax_hmac_sha256 at xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/hmac.c:131
0x4000444e: ?? ??:0
0x400041bc: ?? ??:0
0x40004b14: ?? ??:0
0x40106104: spi_flash_write at ??:?
0x40100368: ets_post at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:177
0x40216fdc: EspClass::flashRead(unsigned int, unsigned int*, unsigned int) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.cpp:733
0x40104ce7: lmacRxDone at ??:?
0x401025cb: rcReachRetryLimit at ??:?
0x4021a291: flash_hal_write(unsigned int, unsigned int, unsigned char const*) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/flash_hal.cpp:140
0x40102c6e: wDev_ProcessFiq at ??:?
0x4000444e: ?? ??:0
0x4000422e: ?? ??:0
0x40004aa0: ?? ??:0
0x40106104: spi_flash_write at ??:?
0x40106104: spi_flash_write at ??:?
0x40216fdc: EspClass::flashRead(unsigned int, unsigned int*, unsigned int) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.cpp:733
0x40235908: send_change_cipher_spec at xtensa-lx106-elfhome/earle/src/axtls-8266/ssl/tls1.c:1630
0x40216fdc: EspClass::flashRead(unsigned int, unsigned int*, unsigned int) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.cpp:733
0x402561b7: pp_attach at ??:?
0x40256206: pp_attach at ??:?
0x40256312: pp_attach at ??:?
0x402552bf: ppTxPkt at ??:?
0x40105337: wdt_feed at ??:?
0x40229cb9: glue2esp_linkoutput at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/glue-esp/lwip-esp.c:264
0x4022473e: __ssprint_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:250
0x4021fd31: _printf_i at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c:206
0x4022473e: __ssprint_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:250
0x40102c6e: wDev_ProcessFiq at ??:?
0x40224674: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:197
0x4021fe5c: _printf_i at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c:249 (discriminator 1)
0x4022473e: __ssprint_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:250
0x40224928: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c:555 (discriminator 2)
0x402333b4: ip4_output_if_src at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/ip4.c:1589
0x402333da: autoip_start_probing at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/ipv4/autoip.c:301
0x40221b9d: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c:40
0x4022a794: tcp_free_ooseq at /local/users/gauchard/arduino/arduino_esp8266/esp8266-lwip/tools/sdk/lwip2/builder/lwip2-src/src/core/tcp.c:2392
0x4021b81c: AsyncClient::_poll(tcp_pcb*) at /home/user/dev/esp_proj/.pio/libdeps/sensor_cube_debug/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:430
0x4021a891: uart_wait_tx_empty at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/uart.cpp:526
0x40221be0: sprintf_P at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/sys/xtensa/stdio_pgmspace.c:20
0x40217384: HardwareSerial::flush() at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/HardwareSerial.cpp:110
0x40217804: Print::print(__FlashStringHelper const*) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Print.cpp:108
0x40212db2: AsyncMqttClient::disconnect(bool) at /home/user/dev/esp_proj/.pio/libdeps/sensor_cube_debug/AsyncMqttClient_ID346/src/AsyncMqttClient.cpp:735
0x4010544d: wdt_feed at ??:?
0x402180d4: String::changeBuffer(unsigned int) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.cpp:176
0x401054fa: wdt_feed at ??:?
0x401056d1: ets_timer_arm_new at ??:?
0x40218ccc: esp_get_cycle_count at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_features.h:92
 (inlined by) ?? at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.h:181
 (inlined by) esp_yield_within_cont at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:111
 (inlined by) __yield at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:130
0x40219c76: init at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_wiring.cpp:215
0x4020ab2e: waitForMqttConnected() at /home/user/dev/esp_proj/src/ConnectionInterface.cpp:566 (discriminator 1)
0x4020ae4a: setupWifiAndMqtt() at /home/user/dev/esp_proj/src/ConnectionInterface.cpp:510
0x401056d1: ets_timer_arm_new at ??:?
0x40218cd8: esp_yield_within_cont at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:112
 (inlined by) __yield at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:130
0x40219c81: init at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_wiring.cpp:215
0x40219c76: init at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_wiring.cpp:215
0x4020eeb2: dynamicSleep() at /home/user/dev/esp_proj/src/main.cpp:137
0x4020736d: fs::File::~File() at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:52
0x402617e0: phy_get_check_flag at ??:?
0x4020c20c: Esp8266Env::Sensor::LogHandler::logSensorMessage(SensorMessage const&) at /home/user/dev/esp_proj/src/LogHandler.cpp:303 (discriminator 1)
0x4021cd98: AsyncClient::space() at ??:?
0x402198c9: Twi::writeTo(unsigned char, unsigned char*, unsigned int, unsigned char) at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_si2c.cpp:361
0x4020f4de: Esp8266Env::Sensor::Bh1749Handler::  () at /home/user/dev/esp_proj/src/peripherals/bh1749nuc/Bh1749Handler.cpp:51
0x4020f041: espInit() at /home/user/dev/esp_proj/src/main.cpp:277
0x40218df0: user_init at /home/user/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:330
User avatar
By StanJ
#89196 Yes, the crypto is too big, but I'm not expert with WiFi so I can't tell you *why* it's blowing up or what part is causing the issue. I've seen lots of people with the same problem, though. Generally it's 'cos you're trying to store a crypto key or cert on the heap/stack, and you just can't do that with a tiny stack. You have to pass the pointer to the key or cert, not the value.

A few years from now I'll have a better answer for you, but I'm still learning C myself. :oops:

You'll need to at least provide a link to your code for someone to figure out where the oopsie is.