Open
[缺陷]: bcal demo/use 示例代码 lock/lock/unlock 不配对,非递归互斥量自死锁 #13
Kunlun_luxiaomuAdd on 3 hours ago
3 hours ago Added label: sig/sig-hardware
openUBMC-robot
3 hours ago Comments:
3 hours ago Comments:
欢迎来到 openUBMC 社区
Hey @Xixi_0922 , 感谢你对社区的贡献.
机器人使用手册
有关指令的使用,可以点击 说明文档 或 论坛 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。您可以自助配置此仓库的 PR 合并规则,更多详情,请参阅机器人自助配置使用手册。
联系指引
有疑问可以联系 SIG: sig-hardware ,
维护者是: @changxingOpenUBMC, @nathanael, @xiaoxinglxs, @yelvsub ,


openUBMC-robot
3 hours ago Comments:
3 hours ago Comments:
Issue 工作流介绍
社区的需求和缺陷的工作流状态处于纳管中。
| 类型 | 上个状态 | 下个状态 | 评论命令 | 谁可以操作 |
|---|---|---|---|---|
| 需求 | 待办的 | 已接纳 | /todo2accepted | SIG组: sig-release-management (maintainer) |
| 需求 | 已接纳 | 开发中 | /accepted2developing | 仓库成员角色: Maintainer, Committer, Contributor, Owner |
| 需求 | 开发中 | 待验收 | /developing2UAT | 仓库成员角色: Maintainer, Committer, Contributor, Owner |
| 需求 | 待验收 | 已完成 | /UAT2done | SIG组: sig-QA (maintainer,committer) |
| 需求 | 待办的 | 已挂起 | /todo2suspended | SIG组: sig-release-management (maintainer) |
| 需求 | 已挂起 | 已接纳 | /suspended2accepted | SIG组: sig-release-management (maintainer) |
| 需求 | 待办的 | 已拒绝 | /todo2rejected | SIG组: sig-release-management (maintainer) |
| 需求 | 已拒绝 | 已接纳 | /rejected2accepted | SIG组: sig-release-management (maintainer) |


3 hours ago Modify description of issue
3 hours ago changed custom category from 需求 to 缺陷
3 hours ago changed custom priority from 无优先级 to 主要
3 hours ago changed custom priority from 主要 to 主要
3 hours ago changed custom priority from 主要 to 次要
3 hours ago changed custom priority from 次要 to 次要
3 hours ago Associated pull request
3 hours ago changed custom priority from 次要 to 主要
[缺陷]: bcal demo/use 示例代码 lock/lock/unlock 不配对,非递归互斥量自死锁
版本分支
openUBMC main
问题发现版本*
openUBMC 26.12
严重程度*
中
复现类型*
必现(执行 demo/use 示例的写路径即触发)
环境信息*
使用CLI命令(ipmcget -d version)查询版本信息,将查询到的所有版本信息附上,如果不涉及环境填写NA
NA(代码静态分析发现,不依赖特定硬件环境)
预置条件*
BMC 运行正常;bcal 微服务已部署;编译并运行 demo/use 示例程序
复现步骤*
实际结果及影响*
线程在第二次 lock() 上永久阻塞,死锁不可自愈;首个 lock 的配对 unlock(原 61 行)执行永不可达,lock/lock/unlock 不配对。demo 示例无法正常运行。
预期结果*
lock/unlock 一一配对(错误分支已覆盖),demo 正常完成 init → write → read 流程,无死锁。
问题定位情况*
定位到 demo/use/src/main.cpp main():