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

Disabling optimization ("-O0") for debugging causes stack overflow (IDFGH-14298) #15089

Open
3 tasks done
gamename opened this issue Dec 24, 2024 · 0 comments
Open
3 tasks done
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@gamename
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3.1

Espressif SoC revision.

ESP32-S3 (QFN56) (revision v0.1)

Operating System used.

macOS

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32-S3-DevKitC-1 v1.0

Power Supply used.

USB

What is the expected behavior?

While debugging, lots of vars had been "optimized away". So, I turned off optimization ("-O0") via menuconfig and recompiled.

I expected the firmware to run and allow me to debug via vscode.

What is the actual behavior?

A stack overflow crash during boot. Could not debug.

Steps to reproduce.

  1. Turn off optimization (Compiler Options -> Optimization Level -> Debug without optimization (-O0))

  2. idf.py build flash monitor

Debug Logs.

Executing action: all (aliases: build)
Running ninja in directory /Users/tennis/src/C2DS-egg/build
Executing "ninja all"...
[0/1] Re-running CMake...CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

-- Component directory /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/common does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/tennis/src/C2DS-egg/components/esp-aws-iot does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/tennis/src/C2DS-egg/components/mp3 does not contain a CMakeLists.txt file. No component will be added
-- Building ESP-IDF components for target esp32s3
NOTICE: Processing 4 dependencies:
NOTICE: [1/4] espressif/cbor (0.6.0~1)
NOTICE: [2/4] espressif/esp_secure_cert_mgr (2.5.0)
NOTICE: [3/4] espressif/led_strip (3.0.0)
NOTICE: [4/4] idf (5.3.1)
-- Project sdkconfig file /Users/tennis/src/C2DS-egg/sdkconfig
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_STRING_BUFFER_LENGTH defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:264
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:97
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_DELAY_BETWEEN_SUB_PUB_UNSUB_LOOPS_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:270
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:103
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_MAX_COMMAND_SEND_BLOCK_TIME_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:109
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:276
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_QOS_LEVEL defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:115
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:282
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_NUM_TASKS_TO_CREATE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:122
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:289
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_TASK_PRIORITY defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:295
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:128
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_TASK_STACK_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:301
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:134
info: INFO: Symbol GRI_OTA_DEMO_MAX_FILE_PATH_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:143
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:387
info: INFO: Symbol GRI_OTA_DEMO_MAX_STREAM_NAME_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:393
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:149
info: INFO: Symbol GRI_OTA_DEMO_TASK_DELAY_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:155
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:399
info: INFO: Symbol GRI_OTA_DEMO_MQTT_TIMEOUT_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:405
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:161
info: INFO: Symbol GRI_OTA_DEMO_AGENT_TASK_PRIORITY defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:167
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:411
info: INFO: Symbol GRI_OTA_DEMO_AGENT_TASK_STACK_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:415
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:171
info: INFO: Symbol GRI_OTA_DEMO_DEMO_TASK_PRIORITY defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:175
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:419
info: INFO: Symbol GRI_OTA_DEMO_DEMO_TASK_STACK_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:179
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:423
info: INFO: Symbol GRI_OTA_MAX_NUM_DATA_BUFFERS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:439
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:183
info: INFO: Symbol DEVICE_SHADOW_LOG_ERROR defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:5
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:5
info: INFO: Symbol DEVICE_SHADOW_LOG_WARN defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:9
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:9
info: INFO: Symbol DEVICE_SHADOW_LOG_INFO defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:13
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:13
info: INFO: Symbol DEVICE_SHADOW_LOG_DEBUG defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:17
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:17
/var/folders/x2/4lbk1sy91jv_j1811qfzb02h0000gn/T/kconfgen_tmplr6qbcd6:1: warning: malformed string literal in assignment to IDF_TARGET (defined at /Users/tennis/esp/esp-idf-v5.3.1/Kconfig:64). Assignment ignored.
Loading defaults file /Users/tennis/src/C2DS-egg/sdkconfig.defaults...
warning: unknown kconfig symbol 'GRI_ENABLE_SIMPLE_PUB_SUB_DEMO' assigned to 'y' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'GRI_ENABLE_TEMPERATURE_LED_PUB_SUB_DEMO' assigned to 'y' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_DATA_OVER_HTTP' assigned to 'n' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_DATA_OVER_MQTT' assigned to 'y' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_DATA_OVER_MQTT_PRIMARY' assigned to 'y' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_PRIMARY_DATA_PROTOCOL' assigned to '1' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'LOG2_FILE_BLOCK_SIZE' assigned to '12' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'MAX_NUM_BLOCKS_REQUEST' assigned to '8' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'ALLOW_DOWNGRADE' assigned to '0' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_DATA_OVER_MQTT' assigned to 'y' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_DATA_OVER_HTTP' assigned to 'n' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_DATA_OVER_MQTT_PRIMARY' assigned to 'y' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
warning: unknown kconfig symbol 'OTA_PRIMARY_DATA_PROTOCOL' assigned to '1' in /Users/tennis/src/C2DS-egg/sdkconfig.defaults
-- Compiler supported targets: xtensa-esp-elf
CMake Deprecation Warning at /Users/tennis/esp/esp-idf-v5.3.1/components/mbedtls/mbedtls/CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- App "CoopCopEgg" version: 525a9f0-dirty
-- Adding linker script /Users/tennis/src/C2DS-egg/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /Users/tennis/src/C2DS-egg/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/soc/esp32s3/ld/esp32s3.peripherals.ld
CMake Deprecation Warning at components/gecl-rgb-led-manager/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Deprecation Warning at components/gecl-time-sync-manager/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Components: Device-Defender-for-AWS-IoT-embedded-sdk Device-Shadow-for-AWS-IoT-embedded-sdk Fleet-Provisioning-for-AWS-IoT-embedded-sdk Jobs-for-AWS-IoT-embedded-sdk app_trace app_update aws-iot-core-mqtt-file-streams-embedded-c backoffAlgorithm bootloader bootloader_support bt cmock console coreHTTP coreJSON coreMQTT coreMQTT-Agent corePKCS11 cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_vfs_console esp_wifi espcoredump espressif__cbor espressif__esp_secure_cert_mgr espressif__led_strip esptool_py fatfs freertos gecl-rgb-led-manager gecl-time-sync-manager hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread ota partition_table perfmon protobuf-c protocomm pthread qrcode sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi wifi_provisioning wpa_supplicant xtensa
-- Component paths: /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Defender-for-AWS-IoT-embedded-sdk /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Fleet-Provisioning-for-AWS-IoT-embedded-sdk /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Jobs-for-AWS-IoT-embedded-sdk /Users/tennis/esp/esp-idf-v5.3.1/components/app_trace /Users/tennis/esp/esp-idf-v5.3.1/components/app_update /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/backoffAlgorithm /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader_support /Users/tennis/esp/esp-idf-v5.3.1/components/bt /Users/tennis/esp/esp-idf-v5.3.1/components/cmock /Users/tennis/esp/esp-idf-v5.3.1/components/console /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreJSON /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreMQTT /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreMQTT-Agent /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/corePKCS11 /Users/tennis/esp/esp-idf-v5.3.1/components/cxx /Users/tennis/esp/esp-idf-v5.3.1/components/driver /Users/tennis/esp/esp-idf-v5.3.1/components/efuse /Users/tennis/esp/esp-idf-v5.3.1/components/esp-tls /Users/tennis/esp/esp-idf-v5.3.1/components/esp_adc /Users/tennis/esp/esp-idf-v5.3.1/components/esp_app_format /Users/tennis/esp/esp-idf-v5.3.1/components/esp_bootloader_format /Users/tennis/esp/esp-idf-v5.3.1/components/esp_coex /Users/tennis/esp/esp-idf-v5.3.1/components/esp_common /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_ana_cmpr /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_cam /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_dac /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_gpio /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_gptimer /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_i2c /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_i2s /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_isp /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_jpeg /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_ledc /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_mcpwm /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_parlio /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_pcnt /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_ppa /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_rmt /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_sdio /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_sdm /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_sdmmc /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_sdspi /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_spi /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_touch_sens /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_tsens /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_uart /Users/tennis/esp/esp-idf-v5.3.1/components/esp_driver_usb_serial_jtag /Users/tennis/esp/esp-idf-v5.3.1/components/esp_eth /Users/tennis/esp/esp-idf-v5.3.1/components/esp_event /Users/tennis/esp/esp-idf-v5.3.1/components/esp_gdbstub /Users/tennis/esp/esp-idf-v5.3.1/components/esp_hid /Users/tennis/esp/esp-idf-v5.3.1/components/esp_http_client /Users/tennis/esp/esp-idf-v5.3.1/components/esp_http_server /Users/tennis/esp/esp-idf-v5.3.1/components/esp_https_ota /Users/tennis/esp/esp-idf-v5.3.1/components/esp_https_server /Users/tennis/esp/esp-idf-v5.3.1/components/esp_hw_support /Users/tennis/esp/esp-idf-v5.3.1/components/esp_lcd /Users/tennis/esp/esp-idf-v5.3.1/components/esp_local_ctrl /Users/tennis/esp/esp-idf-v5.3.1/components/esp_mm /Users/tennis/esp/esp-idf-v5.3.1/components/esp_netif /Users/tennis/esp/esp-idf-v5.3.1/components/esp_netif_stack /Users/tennis/esp/esp-idf-v5.3.1/components/esp_partition /Users/tennis/esp/esp-idf-v5.3.1/components/esp_phy /Users/tennis/esp/esp-idf-v5.3.1/components/esp_pm /Users/tennis/esp/esp-idf-v5.3.1/components/esp_psram /Users/tennis/esp/esp-idf-v5.3.1/components/esp_ringbuf /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom /Users/tennis/esp/esp-idf-v5.3.1/components/esp_system /Users/tennis/esp/esp-idf-v5.3.1/components/esp_timer /Users/tennis/esp/esp-idf-v5.3.1/components/esp_vfs_console /Users/tennis/esp/esp-idf-v5.3.1/components/esp_wifi /Users/tennis/esp/esp-idf-v5.3.1/components/espcoredump /Users/tennis/src/C2DS-egg/managed_components/espressif__cbor /Users/tennis/src/C2DS-egg/managed_components/espressif__esp_secure_cert_mgr /Users/tennis/src/C2DS-egg/managed_components/espressif__led_strip /Users/tennis/esp/esp-idf-v5.3.1/components/esptool_py /Users/tennis/esp/esp-idf-v5.3.1/components/fatfs /Users/tennis/esp/esp-idf-v5.3.1/components/freertos /Users/tennis/src/C2DS-egg/components/gecl-rgb-led-manager /Users/tennis/src/C2DS-egg/components/gecl-time-sync-manager /Users/tennis/esp/esp-idf-v5.3.1/components/hal /Users/tennis/esp/esp-idf-v5.3.1/components/heap /Users/tennis/esp/esp-idf-v5.3.1/components/http_parser /Users/tennis/esp/esp-idf-v5.3.1/components/idf_test /Users/tennis/esp/esp-idf-v5.3.1/components/ieee802154 /Users/tennis/esp/esp-idf-v5.3.1/components/json /Users/tennis/esp/esp-idf-v5.3.1/components/log /Users/tennis/esp/esp-idf-v5.3.1/components/lwip /Users/tennis/src/C2DS-egg/main /Users/tennis/esp/esp-idf-v5.3.1/components/mbedtls /Users/tennis/src/C2DS-egg/components/mqtt /Users/tennis/esp/esp-idf-v5.3.1/components/newlib /Users/tennis/esp/esp-idf-v5.3.1/components/nvs_flash /Users/tennis/esp/esp-idf-v5.3.1/components/nvs_sec_provider /Users/tennis/esp/esp-idf-v5.3.1/components/openthread /Users/tennis/src/C2DS-egg/components/ota /Users/tennis/esp/esp-idf-v5.3.1/components/partition_table /Users/tennis/esp/esp-idf-v5.3.1/components/perfmon /Users/tennis/esp/esp-idf-v5.3.1/components/protobuf-c /Users/tennis/esp/esp-idf-v5.3.1/components/protocomm /Users/tennis/esp/esp-idf-v5.3.1/components/pthread /Users/tennis/src/C2DS-egg/components/qrcode /Users/tennis/esp/esp-idf-v5.3.1/components/sdmmc /Users/tennis/esp/esp-idf-v5.3.1/components/soc /Users/tennis/esp/esp-idf-v5.3.1/components/spi_flash /Users/tennis/esp/esp-idf-v5.3.1/components/spiffs /Users/tennis/esp/esp-idf-v5.3.1/components/tcp_transport /Users/tennis/esp/esp-idf-v5.3.1/components/touch_element /Users/tennis/esp/esp-idf-v5.3.1/components/ulp /Users/tennis/esp/esp-idf-v5.3.1/components/unity /Users/tennis/esp/esp-idf-v5.3.1/components/usb /Users/tennis/esp/esp-idf-v5.3.1/components/vfs /Users/tennis/esp/esp-idf-v5.3.1/components/wear_levelling /Users/tennis/src/C2DS-egg/components/wifi /Users/tennis/esp/esp-idf-v5.3.1/components/wifi_provisioning /Users/tennis/esp/esp-idf-v5.3.1/components/wpa_supplicant /Users/tennis/esp/esp-idf-v5.3.1/components/xtensa
-- Configuring done (3.3s)
-- Generating done (0.6s)
-- Build files have been written to: /Users/tennis/src/C2DS-egg/build
[0/1] Re-running CMake...
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /Users/tennis/src/C2DS-egg/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader_support /Users/tennis/esp/esp-idf-v5.3.1/components/efuse /Users/tennis/esp/esp-idf-v5.3.1/components/esp_app_format /Users/tennis/esp/esp-idf-v5.3.1/components/esp_bootloader_format /Users/tennis/esp/esp-idf-v5.3.1/components/esp_common /Users/tennis/esp/esp-idf-v5.3.1/components/esp_hw_support /Users/tennis/esp/esp-idf-v5.3.1/components/esp_rom /Users/tennis/esp/esp-idf-v5.3.1/components/esp_system /Users/tennis/esp/esp-idf-v5.3.1/components/esptool_py /Users/tennis/esp/esp-idf-v5.3.1/components/freertos /Users/tennis/esp/esp-idf-v5.3.1/components/hal /Users/tennis/esp/esp-idf-v5.3.1/components/log /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader/subproject/main /Users/tennis/esp/esp-idf-v5.3.1/components/bootloader/subproject/components/micro-ecc /Users/tennis/esp/esp-idf-v5.3.1/components/newlib /Users/tennis/esp/esp-idf-v5.3.1/components/partition_table /Users/tennis/esp/esp-idf-v5.3.1/components/soc /Users/tennis/esp/esp-idf-v5.3.1/components/spi_flash /Users/tennis/esp/esp-idf-v5.3.1/components/xtensa
-- Configuring done (4.4s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/tennis/src/C2DS-egg/build/bootloader
[94/96] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /Users/tennis/src/C2DS-egg/build/bootloader/bootloader.bin
[95/96] cd /Users/tennis/src/C2DS-egg/build/bootloader/esp-idf/esptool_py && /Users/tennis/.espressif...ck_sizes.py --offset 0xb000 bootloader 0x0 /Users/tennis/src/C2DS-egg/build/bootloader/bootloader.bin
Bootloader binary size 0x4900 bytes. 0x6700 bytes (59%) free.
[1016/1189] Building C object esp-idf/aws-iot-core-mqtt-file-streams-embedded-c/CMakeFiles/__idf_aws-...streams-embedded-c.dir/aws-iot-core-mqtt-file-streams-embedded-c/source/MQTTFileDownloader_cbor.c.obj
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/aws-iot-core-mqtt-file-streams-embedded-c/source/MQTTFileDownloader_cbor.c: In function 'CBOR_Decode_GetStreamResponseMessage':
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/aws-iot-core-mqtt-file-streams-embedded-c/source/MQTTFileDownloader_cbor.c:117:50: warning: passing argument 2 of 'cbor_value_get_int' from incompatible pointer type [-Wincompatible-pointer-types]
  117 |         cborResult = cbor_value_get_int( &value, ( int32_t * ) fileId );
      |                                                  ^~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  int32_t * {aka long int *}
In file included from /Users/tennis/src/C2DS-egg/managed_components/espressif__cbor/port/include/cbor.h:1,
                 from /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/aws-iot-core-mqtt-file-streams-embedded-c/source/MQTTFileDownloader_cbor.c:17:
/Users/tennis/src/C2DS-egg/managed_components/espressif__cbor/port/include/../../tinycbor/src/cbor.h:437:75: note: expected 'int *' but argument is of type 'int32_t *' {aka 'long int *'}
  437 | CBOR_INLINE_API CborError cbor_value_get_int(const CborValue *value, int *result)
      |                                                                      ~~~~~^~~~~~
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/aws-iot-core-mqtt-file-streams-embedded-c/source/MQTTFileDownloader_cbor.c:135:50: warning: passing argument 2 of 'cbor_value_get_int' from incompatible pointer type [-Wincompatible-pointer-types]
  135 |         cborResult = cbor_value_get_int( &value, ( int32_t * ) blockId );
      |                                                  ^~~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  int32_t * {aka long int *}
/Users/tennis/src/C2DS-egg/managed_components/espressif__cbor/port/include/../../tinycbor/src/cbor.h:437:75: note: expected 'int *' but argument is of type 'int32_t *' {aka 'long int *'}
  437 | CBOR_INLINE_API CborError cbor_value_get_int(const CborValue *value, int *result)
      |                                                                      ~~~~~^~~~~~
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/aws-iot-core-mqtt-file-streams-embedded-c/source/MQTTFileDownloader_cbor.c:153:50: warning: passing argument 2 of 'cbor_value_get_int' from incompatible pointer type [-Wincompatible-pointer-types]
  153 |         cborResult = cbor_value_get_int( &value, ( int32_t * ) blockSize );
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  int32_t * {aka long int *}
/Users/tennis/src/C2DS-egg/managed_components/espressif__cbor/port/include/../../tinycbor/src/cbor.h:437:75: note: expected 'int *' but argument is of type 'int32_t *' {aka 'long int *'}
  437 | CBOR_INLINE_API CborError cbor_value_get_int(const CborValue *value, int *result)
      |                                                                      ~~~~~^~~~~~
[1037/1189] Building C object esp-idf/aws-iot-core-mqtt-file-streams-embedded-c/CMakeFiles/__idf_aws-iot-core-mqtt-file-streams-embedded-c.dir/port/ota_pal.c.obj
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/port/ota_pal.c: In function 'otaPal_CheckFileSignature':
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/port/ota_pal.c:478:56: warning: passing argument 4 of 'CRYPTO_SignatureVerificationFinal' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  478 |                                            pFileContext->signature, pFileContext->signatureLen ) == pdFALSE )
      |                                            ~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/port/ota_pal.c:31:
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/corePKCS11/port/iot_crypto.h:104:57: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'const char *'
  104 |                                               uint8_t * pucSignature,
      |                                               ~~~~~~~~~~^~~~~~~~~~~~
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/port/ota_pal.c: In function 'otaPal_CloseFile':
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/port/ota_pal.c:532:58: warning: passing argument 1 of 'asn1_to_raw_ecdsa' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  532 |                 mainErr = asn1_to_raw_ecdsa( pFileContext->signature, pFileContext->signatureLen, sec_boot_sig->raw_ecdsa_sig );
      |                                              ~~~~~~~~~~~~^~~~~~~~~~~
/Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/aws-iot-core-mqtt-file-streams-embedded-c/port/ota_pal.c:109:52: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'const char *'
  109 | static OtaPalStatus_t asn1_to_raw_ecdsa( uint8_t * signature,
      |                                          ~~~~~~~~~~^~~~~~~~~
[1083/1189] Building C object esp-idf/ota/CMakeFiles/__idf_ota.dir/ota_over_mqtt.c.obj
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c: In function 'receivedJobDocumentHandler':
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c:691:29: warning: initialization of 'const char **' from incompatible pointer type 'char **' [-Wincompatible-pointer-types]
  691 |     const char **jobIdptr = &jobId;
      |                             ^
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c: In function 'processOTAEvents':
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c:1072:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1072 |             nextEvent.eventId = OtaAgentEventRequestFileBlock;
      |             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c:1074:9: note: here
 1074 |         case OtaAgentEventCloseFile:
      |         ^~~~
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c: At top level:
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c:478:24: warning: 'prvMQTTUnsubscribe' defined but not used [-Wunused-function]
  478 | static OtaMqttStatus_t prvMQTTUnsubscribe(const char *pTopicFilter, uint16_t topicFilterLength, uint8_t ucQoS) {
      |                        ^~~~~~~~~~~~~~~~~~
/Users/tennis/src/C2DS-egg/components/ota/ota_over_mqtt.c:341:13: warning: 'prvMatchClientIdentifierInTopic' defined but not used [-Wunused-function]
  341 | static bool prvMatchClientIdentifierInTopic(const char *pTopic, size_t topicNameLength, const char *pClientIdentifier,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1180/1189] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
/Users/tennis/src/C2DS-egg/main/main.c: In function 'prvInitializeNetworkContext':
/Users/tennis/src/C2DS-egg/main/main.c:145:50: warning: passing argument 1 of 'esp_secure_cert_get_device_cert' from incompatible pointer type [-Wincompatible-pointer-types]
  145 |     xEspErrRet = esp_secure_cert_get_device_cert(&xNetworkContext.pcClientCert, &xNetworkContext.pcClientCertSize);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  const char **
In file included from /Users/tennis/src/C2DS-egg/main/main.c:47:
/Users/tennis/src/C2DS-egg/managed_components/espressif__esp_secure_cert_mgr/include/esp_secure_cert_read.h:70:50: note: expected 'char **' but argument is of type 'const char **'
   70 | esp_err_t esp_secure_cert_get_device_cert(char **buffer, uint32_t *len);
      |                                           ~~~~~~~^~~~~~
/Users/tennis/src/C2DS-egg/main/main.c:186:47: warning: passing argument 1 of 'esp_secure_cert_get_priv_key' from incompatible pointer type [-Wincompatible-pointer-types]
  186 |     xEspErrRet = esp_secure_cert_get_priv_key(&xNetworkContext.pcClientKey, &xNetworkContext.pcClientKeySize);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               const char **
/Users/tennis/src/C2DS-egg/managed_components/espressif__esp_secure_cert_mgr/include/esp_secure_cert_read.h:157:47: note: expected 'char **' but argument is of type 'const char **'
  157 | esp_err_t esp_secure_cert_get_priv_key(char **buffer, uint32_t *len);
      |                                        ~~~~~~~^~~~~~
/Users/tennis/src/C2DS-egg/main/main.c: At top level:
/Users/tennis/src/C2DS-egg/main/main.c:111:13: warning: 'prvStartEnabledDemos' declared 'static' but never defined [-Wunused-function]
  111 | static void prvStartEnabledDemos(void);
      |             ^~~~~~~~~~~~~~~~~~~~
[1181/1189] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/mqtt_subscriptions.c.obj
/Users/tennis/src/C2DS-egg/main/mqtt_subscriptions.c:532:13: warning: 'prvUnsubscribeToTopic' defined but not used [-Wunused-function]
  532 | static void prvUnsubscribeToTopic(MQTTQoS_t xQoS, char *pcTopicFilter, EventGroupHandle_t xMqttEventGroup) {
      |             ^~~~~~~~~~~~~~~~~~~~~
/Users/tennis/src/C2DS-egg/main/mqtt_subscriptions.c:364:13: warning: 'prvPublishToTopic' defined but not used [-Wunused-function]
  364 | static void prvPublishToTopic(MQTTQoS_t xQoS, char *pcTopicName, char *pcPayload, EventGroupHandle_t xMqttEventGroup) {
      |             ^~~~~~~~~~~~~~~~~
/Users/tennis/src/C2DS-egg/main/mqtt_subscriptions.c:112:13: warning: 'topicBuf' defined but not used [-Wunused-variable]
  112 | static char topicBuf[subpubunsubconfigNUM_TASKS_TO_CREATE][subpubunsubconfigSTRING_BUFFER_LENGTH];
      |             ^~~~~~~~
[1185/1189] Generating ld/sections.ld
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_STRING_BUFFER_LENGTH defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:97
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:264
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_DELAY_BETWEEN_SUB_PUB_UNSUB_LOOPS_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:103
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:270
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_MAX_COMMAND_SEND_BLOCK_TIME_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:276
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:109
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_QOS_LEVEL defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:115
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:282
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_NUM_TASKS_TO_CREATE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:289
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:122
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_TASK_PRIORITY defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:128
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:295
info: INFO: Symbol GRI_SUB_PUB_UNSUB_DEMO_TASK_STACK_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:134
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:301
info: INFO: Symbol GRI_OTA_DEMO_MAX_FILE_PATH_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:387
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:143
info: INFO: Symbol GRI_OTA_DEMO_MAX_STREAM_NAME_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:149
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:393
info: INFO: Symbol GRI_OTA_DEMO_TASK_DELAY_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:155
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:399
info: INFO: Symbol GRI_OTA_DEMO_MQTT_TIMEOUT_MS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:405
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:161
info: INFO: Symbol GRI_OTA_DEMO_AGENT_TASK_PRIORITY defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:167
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:411
info: INFO: Symbol GRI_OTA_DEMO_AGENT_TASK_STACK_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:415
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:171
info: INFO: Symbol GRI_OTA_DEMO_DEMO_TASK_PRIORITY defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:419
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:175
info: INFO: Symbol GRI_OTA_DEMO_DEMO_TASK_STACK_SIZE defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:423
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:179
info: INFO: Symbol GRI_OTA_MAX_NUM_DATA_BUFFERS defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:439
    /Users/tennis/src/C2DS-egg/main/Kconfig.projbuild:183
info: INFO: Symbol DEVICE_SHADOW_LOG_ERROR defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:5
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:5
info: INFO: Symbol DEVICE_SHADOW_LOG_WARN defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:9
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:9
info: INFO: Symbol DEVICE_SHADOW_LOG_INFO defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:13
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:13
info: INFO: Symbol DEVICE_SHADOW_LOG_DEBUG defined in multiple locations (see below). Please check if this is a correct behavior or a random name match:
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/coreHTTP/Kconfig:17
    /Users/tennis/src/C2DS-egg/components/esp-aws-iot/libraries/Device-Shadow-for-AWS-IoT-embedded-sdk/Kconfig:17
[1187/1189] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /Users/tennis/src/C2DS-egg/build/CoopCopEgg.bin
[1188/1189] cd /Users/tennis/src/C2DS-egg/build/esp-idf/esptool_py && /Users/tennis/.espressif/python...rc/C2DS-egg/build/partition_table/partition-table.bin /Users/tennis/src/C2DS-egg/build/CoopCopEgg.bin
CoopCopEgg.bin binary size 0x1a8bb0 bytes. Smallest app partition is 0x680000 bytes. 0x4d7450 bytes (74%) free.
Executing action: flash
Serial port /dev/cu.usbmodem21101
Connecting...
Detecting chip type... ESP32-S3
Running ninja in directory /Users/tennis/src/C2DS-egg/build
Executing "ninja flash"...
[1/5] cd /Users/tennis/src/C2DS-egg/build/esp-idf/esptool_py && /Users/tennis/.espressif/python_env/i...rc/C2DS-egg/build/partition_table/partition-table.bin /Users/tennis/src/C2DS-egg/build/CoopCopEgg.bin
CoopCopEgg.bin binary size 0x1a8bb0 bytes. Smallest app partition is 0x680000 bytes. 0x4d7450 bytes (74%) free.
[1/1] cd /Users/tennis/src/C2DS-egg/build/bootloader/esp-idf/esptool_py && /Users/tennis/.espressif/p...ck_sizes.py --offset 0xb000 bootloader 0x0 /Users/tennis/src/C2DS-egg/build/bootloader/bootloader.bin
Bootloader binary size 0x4900 bytes. 0x6700 bytes (59%) free.
[4/5] cd /Users/tennis/esp/esp-idf-v5.3.1/components/esptool_py && /opt/homebrew/bin/cmake -D IDF_PAT...is/src/C2DS-egg/build -P /Users/tennis/esp/esp-idf-v5.3.1/components/esptool_py/run_serial_tool.cmake
esptool.py --chip esp32s3 -p /dev/cu.usbmodem21101 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x0 bootloader/bootloader.bin 0x20000 CoopCopEgg.bin 0xb000 partition_table/partition-table.bin 0x19000 ota_data_initial.bin
esptool.py v4.8.1
Serial port /dev/cu.usbmodem21101
Connecting...
Chip is ESP32-S3 (QFN56) (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:5b:40:4c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 16MB
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00020000 to 0x001c8fff...
Flash will be erased from 0x0000b000 to 0x0000bfff...
Flash will be erased from 0x00019000 to 0x0001afff...
SHA digest in image updated
Compressed 18688 bytes to 11820...
Writing at 0x00000000... (100 %)
Wrote 18688 bytes (11820 compressed) at 0x00000000 in 0.4 seconds (effective 402.5 kbit/s)...
Hash of data verified.
Compressed 1739696 bytes to 908563...
Writing at 0x001c5452... (100 %)
Wrote 1739696 bytes (908563 compressed) at 0x00020000 in 18.8 seconds (effective 740.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 202...
Writing at 0x0000b000... (100 %)
Wrote 3072 bytes (202 compressed) at 0x0000b000 in 0.1 seconds (effective 455.8 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 31...
Writing at 0x00019000... (100 %)
Wrote 8192 bytes (31 compressed) at 0x00019000 in 0.1 seconds (effective 641.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory /Users/tennis/src/C2DS-egg
Executing "/Users/tennis/.espressif/python_env/idf5.3_py3.13_env/bin/python /Users/tennis/esp/esp-idf/tools/idf_monitor.py -p /dev/cu.usbmodem21101 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 --revision 0 /Users/tennis/src/C2DS-egg/build/CoopCopEgg.elf -m '/Users/tennis/.espressif/python_env/idf5.3_py3.13_env/bin/python' '/Users/tennis/esp/esp-idf/tools/idf.py'"...
--- esp-idf-monitor 1.5.0 on /dev/cu.usbmodem21101 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40056f5c
--- 0x40056f5c: memcpy in ROM

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2810,len:0x11b8
load:0x403c8700,len:0x4
load:0x403c8704,len:0xab8
load:0x403cb700,len:0x2c2c
entry 0x403c8890
I (397) cpu_start: Multicore app
I (406) cpu_start: Pro cpu start user code
I (406) cpu_start: cpu freq: 160000000 Hz
I (406) app_init: Application information:
I (409) app_init: Project name:     CoopCopEgg
I (414) app_init: App version:      525a9f0-dirty
I (420) app_init: Compile time:     Dec 24 2024 07:49:48
I (426) app_init: ELF file SHA256:  7e2d91b0f...
I (431) app_init: ESP-IDF:          v5.3.1-dirty
I (436) efuse_init: Min chip rev:     v0.0
I (441) efuse_init: Max chip rev:     v0.99 
I (446) efuse_init: Chip rev:         v0.1
I (451) heap_init: Initializing. RAM available for dynamic allocation:
I (458) heap_init: At 3FCBEC90 len 0002AA80 (170 KiB): RAM
I (464) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (470) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (476) heap_init: At 600FE100 len 00001EE8 (7 KiB): RTCRAM
I (484) spi_flash: detected chip: gd
I (487) spi_flash: flash io: dio
I (491) sleep: Configure to isolate all GPIO pins in sleep state
I (498) sleep: Enable automatic switching of GPIO sleep configuration
I (505) coexist: coex firmware version: 4482466
I (510) coexist: coexist rom version e7ae62f
I (04:32:57.326) main_task: Started on CPU0
I (04:32:57.336) main_task: Calling app_main()
E (04:32:57.337) intr_alloc: No free interrupt inputs for UART0 interrupt (flags 0xE)
HINT: For troubleshooting instructions related to interrupt allocation, run 'idf.py docs -sp api-reference/system/intr_alloc.html'
I (04:32:57.344) esp_secure_cert: Pre-provisioned partition information:
I (04:32:57.350) esp_secure_cert: partition format: CUST_FLASH, partition name: esp_secure_cert
W (04:32:57.360) mmap: paddr block is mapped already, vaddr_start: 0x3c190000, size: 0x10000
W (04:32:57.369) mmap: paddr block is mapped already, vaddr_start: 0x3c190000, size: 0x10000
W (04:32:57.378) mmap: paddr block is mapped already, vaddr_start: 0x3c190000, size: 0x10000
W (04:32:57.387) mmap: paddr block is mapped already, vaddr_start: 0x3c190000, size: 0x10000
I (04:32:57.417) MAIN: Application version number: 0.0.0
I (04:32:57.418) core_mqtt_agent_manager: Starting coreMQTT-Agent manager.
I (04:32:57.420) core_mqtt_agent_manager: coreMQTT-Agent network manager event group created.
I (04:32:57.430) core_mqtt_agent_manager: Registering MQTT Agent Event Handler
I (04:32:57.438) core_mqtt_agent_manager: MQTT Agent event handler registered successfully.
I (04:32:57.447) core_mqtt_agent_manager: MQTT Agent task started.
I (04:32:57.453) core_mqtt_agent_manager: coreMQTT-Agent started.
I (04:32:57.460) core_mqtt_agent_manager: Starting MQTT connection task.
I (04:32:57.467) core_mqtt_agent_manager: Setting initial state of network connection.
I (04:32:57.476) MAIN: coreMQTT-Agent network manager started.
I (04:32:57.483) RGB_LED_MGR: RGB LED queue created
I (04:32:57.488) core_mqtt_agent_manager: Registering MQTT Agent Event Handler
I (04:32:57.496) core_mqtt_agent_manager: MQTT Agent event handler registered successfully.
I (04:32:57.505) ota_over_mqtt: OTA over MQTT demo, Application version 0.0.0
I (04:32:57.511) core_mqtt_agent_manager: Registering MQTT Agent Event Handler
I (04:32:57.521) core_mqtt_agent_manager: MQTT Agent event handler registered successfully.
I (04:32:57.530) mqtt_subscriptions: Creating task LedColorTask
I (04:32:57.536) mqtt_subscriptions: Subscribing to topic farm/coop/led/color
I (04:32:57.544) mqtt_subscriptions: Callback function: 0x42013be4
--- 0x42013be4: prvLedColorHandler at /Users/tennis/src/C2DS-egg/main/mqtt_subscriptions.c:613

I (04:32:57.551) mqtt_subscriptions: Enter: Subscribing to topic farm/coop/led/color
I (04:32:57.560) mqtt_subscriptions: Do-Loop: Subscribing to topic farm/coop/led/color
I (04:32:57.570) pp: pp rom version: e7ae62f
I (04:32:57.573) net80211: net80211 rom version: e7ae62f
I (1011) wifi:wifi driver task: 3fcd19a0, prio:23, stack:6656, core=0
I (1021) wifi:wifi firmware version: ccaebfa
I (1031) wifi:wifi certification version: v7.0
I (1031) wifi:config NVS flash: enabled
I (1031) wifi:config nano formating: disabled
I (1031) wifi:Init data frame dynamic rx buffer num: 32
I (1041) wifi:Init static rx mgmt buffer num: 5
I (1041) wifi:Init management short buffer num: 32
I (1041) wifi:Init dynamic tx buffer num: 32
I (1051) wifi:Init static tx FG buffer num: 2
I (1051) wifi:Init static rx buffer size: 1600
I (1061) wifi:Init static rx buffer num: 10
I (1061) wifi:Init dynamic rx buffer num: 32
I (04:32:57.640) wifi_init: rx ba win: 6
I (04:32:57.644) wifi_init: accept mbox: 6
I (04:32:57.649) wifi_init: tcpip mbox: 32
I (04:32:57.654) wifi_init: udp mbox: 6
I (04:32:57.658) wifi_init: tcp mbox: 6
I (04:32:57.663) wifi_init: tcp tx win: 5760
I (04:32:57.667) wifi_init: tcp rx win: 5760
I (04:32:57.672) wifi_init: tcp mss: 1440
I (04:32:57.677) wifi_init: WiFi IRAM OP enabled
I (04:32:57.682) wifi_init: WiFi RX IRAM OP enabled
I (04:32:57.688) wifi_prov_scheme_ble: BT memory released
I (04:32:57.694) app_wifi: Already provisioned, starting Wi-Fi STA
I (04:32:57.702) wifi_prov_scheme_ble: BTDM memory released
I (04:32:57.709) phy_init: phy_version 680,a6008b2,Jun  4 2024,16:41:10
I (1181) wifi:mode : sta (f4:12:fa:5b:40:4c)
I (1181) wifi:enable tsf
I (3591) wifi:new:<3,0>, old:<1,0>, ap:<255,255>, sta:<3,0>, prof:1, snd_ch_cfg:0x0
I (3591) wifi:state: init -> auth (0xb0)
I (3631) wifi:state: auth -> assoc (0x0)
I (3641) wifi:state: assoc -> run (0x10)
I (3761) wifi:connected with disconnected_iot, aid = 47, channel 3, BW20, bssid = 76:fe:ce:47:5c:f6
I (3761) wifi:security: WPA2-PSK, phy: bgn, rssi: -55
I (3761) wifi:pm start, type: 1

I (3761) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3771) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 25000, mt_pti: 14, mt_time: 10000
I (3801) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (04:33:01.352) core_mqtt_agent_manager: WiFi connected.
I (04:33:01.353) app_wifi: Connected with IP Address:192.168.0.125
I (04:33:01.356) esp_netif_handlers: sta ip: 192.168.0.125, mask: 255.255.255.0, gw: 192.168.0.1
I (4791) wifi:<ba-add>idx:0 (ifx:0, 76:fe:ce:47:5c:f6), tid:0, ssn:5, winSize:64
I (04:33:01.372) main_task: Returned from app_main()
I (4831) wifi:<ba-add>idx:1 (ifx:0, 76:fe:ce:47:5c:f6), tid:2, ssn:1, winSize:64

***ERROR*** A stack overflow in task CoreMqttAgentConnectionTask has been detected.


Backtrace: 0x4037612e:0x3fcc9f40 0x40384081:0x3fcc9f70 0x403857e2:0x3fcc9fa0 0x4038824f:0x3fcca0a0 0x403859dc:0x3fcca0e0 0x403859d2:0x0000002f |<-CORRUPTED
--- 0x4037612e: panic_abort at /Users/tennis/esp/esp-idf-v5.3.1/components/esp_system/panic.c:463
0x40384081: esp_system_abort at /Users/tennis/esp/esp-idf-v5.3.1/components/esp_system/port/esp_system_chip.c:92
0x403857e2: vApplicationStackOverflowHook at /Users/tennis/esp/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:554
0x4038824f: vTaskSwitchContext at /Users/tennis/esp/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/tasks.c:3701 (discriminator 7)
0x403859dc: _frxt_dispatch at /Users/tennis/esp/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:451
0x403859d2: _frxt_int_exit at /Users/tennis/esp/esp-idf-v5.3.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:246

More Information.

No response

@gamename gamename added the Type: Bug bugs in IDF label Dec 24, 2024
@github-actions github-actions bot changed the title Disabling optimization ("-O0") for debugging causes stack overflow Disabling optimization ("-O0") for debugging causes stack overflow (IDFGH-14298) Dec 24, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

2 participants