You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gdb callback
#0 0x00007ffff6873598 in __memcpy_ssse3_back () from /lib64/libc.so.6 #1 0x00007ffff72dda74 in std::string::append(std::string const&) () from /lib64/libstdc++.so.6 #2 0x00007ffff1c8eb38 in driverHandleDestructor () at /home/media/compute-runtime/level_zero/core/source/linux/driver_teardown.cpp:31
void attribute((destructor)) driverHandleDestructor() {
std::string loaderLibraryName= "lib" + L0::loaderLibraryFilename + ".so.1";
L0::setDriverTeardownHandleInLoader(loaderLibraryName);
L0::globalDriverTeardown();
}
after triage, found variable L0::loaderLibraryFilename is released during driverHandleDestructor, so segment fault happen. it works, when using std::string loaderLibraryName = "libze_loader.so.1";
maybe registering atexit callback is better.
The text was updated successfully, but these errors were encountered:
ran xpu-smi on dGPU environemnt, met segement fault. centos7.4 met this issue, ubuntu20.04 works well.
levelzero source:
repository: https://github.com/intel/compute-runtime
branch: releases/23.22
revision: e75654a
xpu-smi discovery
+-----------+--------------------------------------------------------------------------------------+
| Device ID | Device Information |
+-----------+--------------------------------------------------------------------------------------+
| 0 | Device Name: Intel(R) Data Center GPU Flex 140 |
| | Vendor Name: Intel(R) Corporation |
| | UUID: 00000000-0000-0000-9e34-11e0b30e7c0a |
| | PCI BDF Address: 0000:9e:00.0 |
| | DRM Device: /dev/dri/card0 |
| | Function Type: physical |
+-----------+--------------------------------------------------------------------------------------+
| 1 | Device Name: Intel(R) Data Center GPU Flex 140 |
| | Vendor Name: Intel(R) Corporation |
| | UUID: 00000000-0000-0000-f033-d4dbd6c46f8f |
| | PCI BDF Address: 0000:a2:00.0 |
| | DRM Device: /dev/dri/card1 |
| | Function Type: physical |
+-----------+--------------------------------------------------------------------------------------+
Segmentation fault (core dumped)
gdb callback
#0 0x00007ffff6873598 in __memcpy_ssse3_back () from /lib64/libc.so.6
#1 0x00007ffff72dda74 in std::string::append(std::string const&) () from /lib64/libstdc++.so.6
#2 0x00007ffff1c8eb38 in driverHandleDestructor () at /home/media/compute-runtime/level_zero/core/source/linux/driver_teardown.cpp:31
void attribute((destructor)) driverHandleDestructor() {
std::string loaderLibraryName= "lib" + L0::loaderLibraryFilename + ".so.1";
L0::setDriverTeardownHandleInLoader(loaderLibraryName);
L0::globalDriverTeardown();
}
after triage, found variable L0::loaderLibraryFilename is released during driverHandleDestructor, so segment fault happen. it works, when using std::string loaderLibraryName = "libze_loader.so.1";
maybe registering atexit callback is better.
The text was updated successfully, but these errors were encountered: