"debug build" for at least one image
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, python
- 领域
- build-system, devops
调研方向
首先检查 slim-bullseye 镜像的构建方式,以及其 ./configure 选项和 LDFLAGS 的设置位置。根据现有镜像流程,检查提议的 Python 调试构建标志、GDB 安装和 GDB 扩展。完成的标准是:项目拥有已记录文档的调试镜像,或拥有一种明确且经 maintainer 批准的替代方案,用于生成 core dump 和 backtrace。
由索引模型根据 Issue 内容生成。
描述
Recently we had a C extension for python failing in production in an environment that we do not own ourselves. The data in that environment was causing the issues. Because for that reason, it was complicated to reproduce it in different environments, we looked into running a debug version of python in that environment to understand where it was crashing, but that turned out quite complicated to do.
In the end I managed to home in on the data issues, set up data locally to reproduce it and build a debug version of the slim-bullseye image that I could use as a source for our application image. This allowed us to dump a core and investigate the back traces.
Would it be helpful to have at least one image that contains a debug build of python in this stack, so that it's easier for developers to switch to that image and do this analysis?
An image that adds these lines to .,/configure
--with-pydebug \
CFLAGS="-g -O0" \
and sets LDFLAGS="" instead of LDFLAGS="-Wl,--strip-all"; \ ,
installs gdb and gdb extensions (# enable GDB to load debugging data: https://github.com/docker-library/python/pull/701)
If that's not a good idea, could you let me know what you'd recommend otherwise as a better process?
- 主要语言
- Dockerfile
- 星标
- 2.8k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
docker-library/python#1151 ·
-
难度 4/5 3-5 天 新手友好度 38/100
docker-library/python#1150 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 54/100
docker-library/python#1147 ·
-
难度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1082 · 10 条评论 · 40 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 55/100
docker-library/python#1076 · 5 条评论 · 1 个 reaction ·
查看 docker-library/python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
backlog
难度 2/5 1-3 小时 新手友好度 78/100
EchoTools/nevr-runtime#2956 ·
维护者通常 1 天内回复
-
Remove the last compiler warnings and build the core with -Werror in CI可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
vishwagw/Sky-Sim-drone-simulator-3.0#45 ·
维护者通常 1 天内回复