"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
- 平均合并
- 3 天 1 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
docker-library/python#1080 · 8 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1121 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1082 · 10 条评论 · 36 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 55/100
docker-library/python#1076 · 6 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
docker-library/python#1071 · 7 条评论 ·
查看 docker-library/python 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
koalaman/shellcheck#3539 ·
-
kind/bug
难度 2/5 1-3 小时 新手友好度 88/100
kubernetes-sigs/prow#953 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
out-of-date
难度 1/5 1 小时以内 新手友好度 82/100
CachyOS/CachyOS-PKGBUILDS#1894 ·
-
难度 2/5 1-3 小时 新手友好度 68/100