microsoft / microsoft/onnxruntime
[Build] Heap overflow caused by the onnx runtime
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
the CXX wrapper cause sanitizer error and segfault...
this is cause many unexpected behaviors until I enabled the address sanitizer.
### Urgency
Yes since I'm blocked on a production product
### Target platform
Linux
### Build script
Cmake
set(ONNXRUNTIME_DIR lib/onnxruntime)
target_link_directories(qvision_core PUBLIC ${ONNXRUNTIME_DIR}/lib)
target_link_libraries(qvision_core onnxruntime)
target_include_directories(qvision_core PUBLIC ${ONNXRUNTIME_DIR}/include)
### Error / output
==63002==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x748e0e5fe848 at pc 0x748e3fefa47c bp 0x748df2df9920 sp 0x748df2df90c8
READ of size 4915200 at 0x748e0e5fe848 thread T12
#0 0x748e3fefa47b in memcpy /usr/src/debug/gcc/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc:115
#1 0x748e3f498884 (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x698884) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#2 0x748e3f49c504 (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x69c504) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#3 0x748e3f43c9e0 (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x63c9e0) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#4 0x748e3f6aacea (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x8aacea) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#5 0x748e3f6ab93a (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x8ab93a) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#6 0x748e3f6aba70 (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x8aba70) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#7 0x748e3f97ce0c (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0xb7ce0c) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#8 0x748e3f99c5dd (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0xb9c5dd) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#9 0x748e3f0c5e8e (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x2c5e8e) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#10 0x748e3f0c6d9d (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x2c6d9d) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
#11 0x748e3f031b00 (/home/DxUr/WORK/QVision/core/lib/onnxruntime/lib/libonnxruntime.so.1.17.1+0x231b00) (BuildId: 447ab91a6114db18ea788c5a7e9d57a54ebbd080)
### Visual Studio Version
N/A
### GCC / Compiler Version
13
Contributor guide
Assessment
This issue has not been assessed yet.