Skip to content

ESP Exception Decoder False Positives #11932

@Xylopyrographer

Description

@Xylopyrographer

Board

ESP32-S3 Dev Module

Device Description

Nothing attached.

Hardware Configuration

Bare board. Nothing attached.

Version

v3.3.2

Type

Bug

IDE Name

VSCode with pioarduino

Operating System

macOS 15.7

Flash frequency

80 MHz

PSRAM enabled

yes

Upload speed

115200

Description

When a platformio.ini file enables the esp32_exception_decoder:

monitor_filters = 
    esp32_exception_decoder

and the serial output sends a variable that starts with 0x, the exception decoder will output a line not related to an error.

For example:

[   138][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 19 already has type USB_DM (45) with bus 0x3fc976bc
  #0  0x3fc976bc in ?? at /Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/HWCDC.cpp:619

[   138][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 20 already has type USB_DP (46) with bus 0x3fc976bc
  #0  0x3fc976bc in ?? at /Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/HWCDC.cpp:619

the lines that start with #0 are not valid.

The bug is seen when printing pointers (%p).

If you format the pointer as something like addr_%08x the #0 lines do not appear. But note, if addr_ is replaced with 0x the bug is still triggered.

Sketch

Any sketch.
But in the `platformio.ini` file, set `-DCORE_DEBUG_LEVEL=` to 4 or 5.

Debug Message

See description above.

Other Steps to Reproduce

If you comment out:

monitor_filters = 
    esp32_exception_decoder

in the platformio.ini, the bug does not show.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions