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

[Build] Heap overflow caused by the onnx runtime #21283

Open
DxUr opened this issue Jul 8, 2024 · 1 comment
Open

[Build] Heap overflow caused by the onnx runtime #21283

DxUr opened this issue Jul 8, 2024 · 1 comment
Assignees
Labels
build build issues; typically submitted using template

Comments

@DxUr
Copy link

DxUr commented Jul 8, 2024

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

@DxUr DxUr added the build build issues; typically submitted using template label Jul 8, 2024
@yufenglee
Copy link
Member

Could you please share more detailed repro steps? Where can we get the qvision_core?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

3 participants