-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Full configuration leads to server side memory errors #2069
Labels
Comments
First test reporting memory errors for me is
|
@sbutcher-arm This fails for 2.7 and 2.1, too, so it looks like an old problem going unnoticed so far. |
ARM Internal Ref: IOTSSL-2569 |
hanno-becker
pushed a commit
to hanno-becker/mbedtls
that referenced
this issue
Oct 9, 2018
If `MBEDTLS_MEMORY_BUFFER_ALLOC_C` is configured and Mbed TLS' custom buffer allocator is used for calloc() and free(), the read buffer used by the server example application is allocated from the buffer allocator, but freed after the buffer allocator has been destroyed. If memory backtracing is enabled, this leaves a memory leak in the backtracing structure allocated for the buffer, as found by valgrind. Fixes Mbed-TLS#2069.
hanno-becker
pushed a commit
to hanno-becker/mbedtls
that referenced
this issue
Oct 9, 2018
If `MBEDTLS_MEMORY_BUFFER_ALLOC_C` is configured and Mbed TLS' custom buffer allocator is used for calloc() and free(), the read buffer used by the server example application is allocated from the buffer allocator, but freed after the buffer allocator has been destroyed. If memory backtracing is enabled, this leaves a memory leak in the backtracing structure allocated for the buffer, as found by valgrind. Fixes Mbed-TLS#2069.
hanno-becker
pushed a commit
to hanno-becker/mbedtls
that referenced
this issue
Oct 9, 2018
If `MBEDTLS_MEMORY_BUFFER_ALLOC_C` is configured and Mbed TLS' custom buffer allocator is used for calloc() and free(), the read buffer used by the server example application is allocated from the buffer allocator, but freed after the buffer allocator has been destroyed. If memory backtracing is enabled, this leaves a memory leak in the backtracing structure allocated for the buffer, as found by valgrind. Fixes Mbed-TLS#2069.
This was referenced Oct 9, 2018
Merged
Fixed by #2070. |
simonbutcher
added a commit
that referenced
this issue
Oct 30, 2018
The fix for #2069 had accidentally been added to features, not bugfixes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Bug
OS
Mbed OS|linux|windows|
mbed TLS build:
Version: Commit 0592ea7
With a full configuration,
compat.sh
fails with multiple memory errors. To reproduce:./scripts/config.pl full
make clean; make
cd tests; ./compat.sh --memcheck
The result is a total of 78 server memory errors!
The text was updated successfully, but these errors were encountered: