-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Segmentation Fault when calling Provider Host CPU #9874
Comments
Can you try with the latest released version and see if you still run into this issue? Can you also add the code to repo this issue? |
It was a mix of a couple of things but I managed to fix it. The latest version (1.10.0 using wget on linux) worked when compiling on the same platform so that helped. Also the cross compilation fix mentioned in the release notes. Thanks anyway. You may close the issue. |
Hi ~
Here is the ldd infos:
|
I am trying to use the C++ API to run an inference session but I keep running into a segmentation fault which links to the g_host _cpu pointer in provider_bridge_provider.cc.
Specs:
onnxruntime version: 1.8.2
OS: Ubuntu 18.0.4 (no sudo rights)
CPP version: c++14
Stack trace:
Program received signal SIGSEGV, Segmentation fault.
__static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
at /home/onnxruntime/onnxruntime/core/providers/shared_library/provider_bridge_provider.cc:64
64 ProviderHostCPU& g_host_cpu = g_host->GetProviderHostCPU();
(gdb) backtrace
#0 0x00007fffb1c5ba56 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
at /home/onnxruntime/onnxruntime/core/providers/shared_library/provider_bridge_provider.cc:64
#1 0x00007fffb1c5ba56 in _GLOBAL__sub_I_provider_bridge_provider.cc(void) ()
at /home/onnxruntime/onnxruntime/core/providers/shared_library/provider_bridge_provider.cc:577
#2 0x00007ffff7de38d3 in call_init (env=0x7fffffffd988, argv=0x7fffffffd978, argc=1, l=)
at dl-init.c:72
#3 0x00007ffff7de38d3 in _dl_init (main_map=0x7ffff7ffe170, argc=1, argv=0x7fffffffd978, env=0x7fffffffd988) at dl-init.c:119
#4 0x00007ffff7dd40ca in _dl_start_user () at /lib64/ld-linux-x86-64.so.2
#5 0x0000000000000001 in ()
#6 0x00007fffffffdd35 in ()
#7 0x0000000000000000 in ()
The text was updated successfully, but these errors were encountered: