"debug build" for at least one image
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- docker, python
- Bereich
- build-system, devops
Rechercherichtung
Beginne damit zu prüfen, wie das slim-bullseye-Image erstellt wird und wo dessen ./configure-Optionen und LDFLAGS gesetzt werden. Prüfe die vorgeschlagenen Python-Debug-Build-Flags, die GDB-Installation und die GDB-Erweiterungen anhand des bestehenden Image-Prozesses. Als erledigt gilt die Aufgabe, wenn das Projekt ein dokumentiertes Debug-Image oder eine klare, von einem Maintainer genehmigte Alternative zur Erstellung von Core-Dumps und Backtraces hat.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- Dockerfile
- Sterne
- 2.8k
- Forks
- 1.1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus docker-library/python
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
docker-library/python#1151 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
docker-library/python#1150 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 54/100
docker-library/python#1147 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
docker-library/python#1082 · 10 Kommentare · 40 Reaktionen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
docker-library/python#1076 · 5 Kommentare · 1 Reaktion ·
Alle Issues in docker-library/python
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
The-Swarm-Corporation/swarms-rs#167 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 2 Tagen
-
CONTRIBUTING.md and the release checklist still describe tag-based versioning and a `develop` branchOffendocs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
developmentseed/titiler-cmr#355 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag