heap-buffer-overflow running address sanitizer on Min with float16 #21558
Labels
core runtime
issues related to core runtime
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
I ran into asan errors when adding tests of the min and max operators with the CPU provider and float16 data with NaNs: #21492
Not being able to add tests for this blocked fixing of NaN propagation in the Min and Max operators with float16 on CPU and GPU (see #19984 (comment) too).
I originally assumed this was related to the NaNs in the input, but it looks like it was actually due to the shape of the data used, so possibly the Min and Max NaN propagation with float16 can be fixed and tests added that have different data shapes to work around this. This is still a concerning bug though, and also caused crashes of the web builds.
To reproduce
Add a new test that runs
Min
with 3x3 float16 data (adamreeve@37839ba):Build with address sanitizer enabled:
Run the new test with asan:
Output is:
Urgency
No response
Platform
Linux
OS Version
Fedora 40
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
5d78b9a
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: