Search found 21 matches

by ememberus
Tue Jun 13, 2017 8:12 pm
Forum: Report Bugs
Topic: (RTOS_SDK) Memory Leak on mbedtls/lwip
Replies: 11
Views: 9574

Re: (RTOS_SDK) Memory Leak on mbedtls/lwip

Should "between each internet disconnection/re-connection" already imply that it goes on and on forever?
Is there a reason to interpret it differently?
by ememberus
Fri Jun 02, 2017 12:11 am
Forum: Report Bugs
Topic: SSL client freezes after bad certificate error
Replies: 8
Views: 4884

Re: SSL client freezes after bad certificate error

If you are curious, my code is in:

viewtopic.php?f=66&t=4245

This code runs only libssl client, which, apart from SSL server, seems to have its own bugs.
I believe, the client should work without any certificates.
Therefore, lack of certificates does not explain these crashes.
by ememberus
Thu Jun 01, 2017 12:02 am
Forum: Report Bugs
Topic: SSL client freezes after bad certificate error
Replies: 8
Views: 4884

Re: SSL client freezes after bad certificate error

Hello, thank you for your helpful response.
It looks like I have a problem with built-in TCP stack.
What can you recommend that can be built from source?
Thank you in advance!
by ememberus
Wed May 31, 2017 3:24 am
Forum: Report Bugs
Topic: SSL client freezes after bad certificate error
Replies: 8
Views: 4884

Re: SSL client freezes after bad certificate error

Hi I realized that too - it looks like the internal event loop is running (i.e. resetting watchdog timer), but it is not receiving any events to process. Feels to me like a bug in the connection FSM. Looking at some crash logs I also strongly suspect that periodic crashes in my test occur because NU...
by ememberus
Wed May 31, 2017 2:54 am
Forum: Report Bugs
Topic: memory leak in secure connection
Replies: 8
Views: 5753

Re: memory leak in secure connection

Hi
I link with libssl.a and run either on WeMos or ESP12,
i.e. not using mbed.
by ememberus
Wed May 24, 2017 12:18 pm
Forum: Report Bugs
Topic: SSL client freezes after bad certificate error
Replies: 8
Views: 4884

SSL client freezes after bad certificate error

Test code and instructions are in this thread: http://bbs.espressif.com/viewtopic.php?f=66&t=4245 Running the test caused CPU to permanently freeze. No exception was logged, so my guess it is a deadlock or something else of the kind. Why watchdog did not kick in remains a mystery. Free heap was ...
by ememberus
Fri May 12, 2017 1:19 am
Forum: Report Bugs
Topic: memory leak in secure connection
Replies: 8
Views: 5753

Re: memory leak in secure connection

Correction to my previous post:
a successful connect may sometimes release allocated heap memory.
A CPU reboot will obviously clear all prior heap allocations.
by ememberus
Fri May 12, 2017 1:14 am
Forum: Report Bugs
Topic: memory leak in secure connection
Replies: 8
Views: 5753

Re: memory leak in secure connection

This startup log also shows TCP reconnect failures. While dns_check_cb reads WiFi status as "connected", TCP client is repeatedly unable to connect and free heap memory slowly goes down. Once rebooted, the board immediately connects to AP and to remote server. Sometimes this releases alloc...
by ememberus
Thu May 11, 2017 10:04 pm
Forum: Report Bugs
Topic: ESP NOT ABLE TO CONNECT TO WIFI : STA DISCONNECT: 201
Replies: 3
Views: 3945

Re: ESP NOT ABLE TO CONNECT TO WIFI : STA DISCONNECT: 201

I also experience similar issue (in addition to memory leaks and crashes): http://bbs.espressif.com/viewtopic.php?f=66&t=4245 My code is attached therein, so you can use it as your testbed. The problem with connection happens when RF connection is unstable. The initial connection is typically sm...
by ememberus
Wed May 10, 2017 9:10 am
Forum: Report Bugs
Topic: memory leak in secure connection
Replies: 8
Views: 5753

Re: memory leak in secure connection

It is hard to say whether leak is happening in your test or not - I had to modify your code to simulate my conditions, but so far it did not produce anything conclusive. Results seem very strange, though. First connection opens quickly, but all others that follow are very unstable, crashing CPU from...

Go to advanced search