Testing fails with segmentation fault
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cmake, cpp, ubuntu
- 领域
- testing-qa
调研方向
使用列出的 Ubuntu 设置,通过 CMake 构建并运行 ./bin/tests 来复现该报告。先从 test/loader_api.cpp 和 LoaderAPI 失败开始,然后检查在 segmentation fault 之前 LoaderInit 测试从哪里开始。完成标准是 loader 测试能够运行,且不再出现报告中的 zeInit 失败或 segmentation fault。
由索引模型根据 Issue 内容生成。
描述
OS: Ubuntu 24.04, freshly provisioned
Hardware: i7-1185G7, i9-12900 (reproduced on both)
Level Zero version: 1.19.2
Setup:
I am working to get the level-zero version in Ubuntu bumped to 1.19.2, which is why I'm installing from a PPA
sudo apt install -y build-essential cmake
sudo add-apt-repository ppa:mckeesh/testing
sudo apt -y update
sudo apt install libze1=1.19.2-0ubuntu1
git clone https://github.com/oneapi-src/level-zero
cd level-zero/
git checkout v1.19.2
mkdir build
cd build/
cmake -DBUILD_L0_LOADER_TESTS=yes ..
make -j`nproc`
./bin/tests
Result:
Running main() from /home/ubuntu/level-zero/build/_deps/googletest-src/googletest/src/gtest_main.cc
[==========] Running 15 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 1 test from LoaderAPI
[ RUN ] LoaderAPI.GivenLevelZeroLoaderPresentWhenCallingzeGetLoaderVersionsAPIThenValidVersionIsReturned
/home/ubuntu/level-zero/test/loader_api.cpp:26: Failure
Expected equality of these values:
ZE_RESULT_SUCCESS
Which is: 0
zeInit(0)
Which is: 2013265921
Found 1 versions
component.component_name: loader
component.component_lib_version.major: 1
component.spec_version: 65548
component.component_lib_name: loader
[ FAILED ] LoaderAPI.GivenLevelZeroLoaderPresentWhenCallingzeGetLoaderVersionsAPIThenValidVersionIsReturned (0 ms)
[----------] 1 test from LoaderAPI (0 ms total)
[----------] 11 tests from LoaderInit
[ RUN ] LoaderInit.GivenLevelZeroLoaderPresentWhenCallingZeInitDriversWithTypesUnsupportedWithFailureThenSupportedTypesThenSuccessReturned
Segmentation fault (core dumped)
- 主要语言
- C++
- 星标
- 335
- 派生
- 140
- 平均合并
- 12 小时 32 分钟
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oneapi-src/level-zero 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
oneapi-src/level-zero#495 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
oneapi-src/level-zero#485 ·
-
难度 1/5 1 小时以内 新手友好度 76/100
oneapi-src/level-zero#447 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
oneapi-src/level-zero#482 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
oneapi-src/level-zero#419 ·
查看 oneapi-src/level-zero 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
google/libultrahdr#485 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
godotengine/godot#123776 ·
-
bug
难度 1/5 1 小时以内 新手友好度 60/100
-
good first issue
难度 1/5 1 小时以内 新手友好度 90/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 75/100
ros2/common_interfaces#344 ·