-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Regression: sntp_init() crashes when network not yet initialized. (IDFGH-1691) #3931
Comments
github-actions
bot
changed the title
Regression: sntp_init() crashes when network not yet initialized.
Regression: sntp_init() crashes when network not yet initialized. (IDFGH-1691)
Aug 16, 2019
Thanks for reporting the issue. Would you please help provide more details as suggested in the issue template? Thanks. @vonnieda |
Thanks @Alvin1Zhang, I have updated the issue with the template data. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
git describe --tags
to find it):3.0: 6cb8d16
3.1: 9196bc7
3.2: 90747cc
xtensa-esp32-elf-gcc --version
to find it): xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0Problem Description
Using ESP-IDF 3.2 (from today) and calling sntp_init() before WiFi is initialized, there is a crash:
I am using the example at https://github.com/espressif/esp-idf/tree/release/v3.2/examples/protocols/sntp
The crash can be triggered simply by commenting out lines 96-99 which initializes WiFi.
I see in #944 that others have experienced this, and came to the conclusion that networking must be initialized, but this was not the case in ESP-IDF 3.1 or 3.0. It only happens in 3.2.
Expected Behavior
SNTP initializes without requiring the TCP adapter to have been initialized, and works correctly once TCP is initialized.
Actual Behavior
Crash.
Steps to repropduce
Code to reproduce this issue
https://github.com/espressif/esp-idf/tree/release/v3.2/examples/protocols/sntp
Other items if possible
build
folder (note this may contain all the code details and symbols of your project.)The text was updated successfully, but these errors were encountered: