Open zhaowujie opened 1 year ago
We would need the model and exact input used to execute the model to try and reproduce the issue. Can you please provide these?
Hi, skottmckay. It's so wired. I write a simple testing program that invoke onnxruntime, and the problem with valgrind cannot be reproduced when I using the testing program even if I use the same onnx model.
Hello, I encounter the same issue but my valgrind report has more details:
==561223== Source and destination overlap in memcpy_chk(0x1ffeffe6a0, 0x1ffeffe6a0, 5)
==561223== at 0x4843BF0: __memcpy_chk (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==561223== by 0xF5B2DB: cpuinfo_linux_parse_cpulist (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0xF5747A: cpuinfo_linux_get_max_possible_processor (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0xF557A6: cpuinfo_x86_linux_init (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0x48644DE: __pthread_once_slow (pthread_once.c:116)
==561223== by 0xF54B9A: cpuinfo_initialize (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0xCC444B: onnxruntime::(anonymous namespace)::PosixEnv::PosixEnv() [clone .constprop.0] (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0xCC4B94: onnxruntime::Env::Default() (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0x3D2457: onnxruntime::Environment::Initialize(std::unique_ptr<onnxruntime::logging::LoggingManager, std::default_delete<onnxruntime::logging::LoggingManager> >, OrtThreadingOptions const*, bool) (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0x3D42DD: onnxruntime::Environment::Create(std::unique_ptr<onnxruntime::logging::LoggingManager, std::default_delete<onnxruntime::logging::LoggingManager> >, std::unique_ptr<onnxruntime::Environment, std::default_delete<onnxruntime::Environment> >&, OrtThreadingOptions const*, bool) (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0x38D913: OrtEnv::GetInstance(OrtEnv::LoggingManagerConstructionInfo const&, onnxruntime::common::Status&, OrtThreadingOptions const*) (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
==561223== by 0x3747FD: OrtApis::CreateEnvWithCustomLogger(void (*)(void*, OrtLoggingLevel, char const*, char const*, char const*, char const*), void*, OrtLoggingLevel, char const*, OrtEnv**) (in /mnt/development/dialogue-controller-cpp/cmake-build-release-linux-x86_64/silero_wav_vad_test)
I am using onnxruntime conan package 1.15.1, and I don't have this error in Debug, only in Release.
Did you manage to solve this ? I have been facing this problem for days with random seg fault
No, but I don't have seg fault.
Describe the issue
When I upgraded onnxruntime from 1.13.1 to 1.15.1, I used valgrind to test memory-related issues. valgrind caught memcpy_chk overlap in onnxruntime 1.15.1 as below
To reproduce
${EXE_PATH} indicates the executable that invoke the onnxruntime
Urgency
No response
Platform
Linux
OS Version
Ubuntu 18.04.4 LTS
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.15.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response