Running bindiff export does not result in `.BinExport` file being created
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
首先在 Envoy 二进制文件上使用 /opt/bindiff/bin/bindiff --export 进行复现,并检查 main_plugin.cc 中提到的 IDA 导出路径。比较通过 opensnoop 观察到的文件,并查看 ~/.bindiff/logs/bindiff_idapro.log;当针对所报告的 IDA 和 Bindiff 版本创建出预期的 .BinExport 文件时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I'm trying to diff an envoy file containing debug symbols against an optimized release image. I initially tried to diff them against each other through the IDA plugin window and received the "Exporting the secondary database failed." error.
After looking into the source a bit, I tried to run the /opt/bindiff/bin/bindiff directly to isolate what the problem is. It appears that the .BinExport files aren't being created by IDA. Please see my reproduction steps below and let me know if I can provide any more helpful context!
To Reproduce
- Download envoy v1.31.1
docker pull envoyproxy/envoy:v1.31-latest
container_sha=$(docker create envoyproxy/envoy:v1.31-latest)
docker cp ${container_sha}:/usr/local/bin/envoy ./
- Open binary in IDA and wait for initial analysis to complete
- Save IDA database file and close IDA
- Run bindiff export from the command line --
/opt/bindiff/bin/bindiff --export directory/containing/envoy-binary/ - See that no
.BinExportfile is created
Expected behavior
That a .BinExport file is created and I'm able to diff a file with debug symbols and the optimized release.
Environment (please complete the following information):
- OS and version: Ubuntu 22 VM
- Locale: US English
- Disassembler and version: IDA Free 8.4
- Bindiff v8 -- installed
.debfrom release page
Additional context
I noticed that bindiff is running the following ida64 command. I tried running that directly on my machine and used opensnoop to track what files ida64 is writing. Attached below are the commands I ran and the output from opensnoop. The ~/.bindiff/logs/bindiff_idapro.log file also doesn't contain much information.
- 主要语言
- Java
- 星标
- 3.2k
- 派生
- 240
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/bindiff 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
-
question
难度 3/5 1-2 天 新手友好度 42/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 1/5 1 小时以内 新手友好度 55/100
-
难度 5/5 一周以上 新手友好度 15/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
OpenAPITools/openapi-generator#25014 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
openhab/openhab-core#5847 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 88/100
apache/parquet-java#3820 ·
维护者通常 1 天内回复