Skip to content
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

Compile errors in components/esp_gdbstub/src/gdbstub.c with latest dev/master branch (IDFGH-1574) #3834

Closed
kvbulusu opened this issue Jul 26, 2019 · 5 comments
Assignees
Labels
Status: In Progress Work is in progress

Comments

@kvbulusu
Copy link

Environment
Development Kit: ESP32-LyraT
Module or chip used: ESP32-WROOM-32
IDF version (run git describe --tags to find it): v4.0-dev-1338-g842432fb6
Build System: Make
Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc (crosstool-NG esp32-2019r1) 8.2.0
Operating System: Linux
Power Supply: USB

Problem Description:
Error while compiling.
esp-idf/components/esp_gdbstub/src/gdbstub.c: In function 'esp_gdbstub_handle_command':
esp-idf/components/esp_gdbstub/src/gdbstub.c:213:13: error: 'handle' may be used uninitialized in this function [-Werror=maybe-uninitialized]
esp_gdbstub_tcb_to_regfile(handle, &s_scratch.regfile);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@github-actions github-actions bot changed the title Compile errors in components/esp_gdbstub/src/gdbstub.c with latest dev/master branch Compile errors in components/esp_gdbstub/src/gdbstub.c with latest dev/master branch (IDFGH-1574) Jul 26, 2019
@igrr
Copy link
Member

igrr commented Jul 26, 2019

Hi @kvbulusu, could you please attach your sdkconfig file?

@kvbulusu
Copy link
Author

Hi @kvbulusu, could you please attach your sdkconfig file?
Here you go..
sdkconfig.txt

@michaeltintiuc
Copy link

Confirming to have the same issue, sdkconfig

@michaeltintiuc
Copy link

This seems to work nicely as a temporary workaround:

-            TaskHandle_t handle;
+            TaskHandle_t handle = NULL;

@mahavirj
Copy link
Member

@michaeltintiuc @kvbulusu Fixed with 5203a15

igrr pushed a commit that referenced this issue Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Work is in progress
Projects
None yet
Development

No branches or pull requests

4 participants