Skip to content

Conversation

@malor
Copy link
Contributor

@malormalor commented Feb 5, 2022

Since #687, the regular Debian images no longer ship DWARF symbols, which heavily limits the ability to use gdb and lldb for debugging.

Stripping debugging symbols makes perfect sense to reduce the size of Docker images, but when this optimization was first introduced in #483, the idea was to restrict its use to the slim and Alpine images. That was (unintentionally?) changed in #483, and now debugging symbols are also stripped in the regular Debian images. Undo that change.

Fixes#694 .

Copy link
Member

@tianontianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, nice catch!

Since #687, the regular Debian images no longer ship DWARF symbols, which heavily limits the ability to use gdb and lldb for debugging. Stripping debugging symbols makes perfect sense to reduce the size of Docker images, but when this optimization was first introduced in #483, the idea was to restrict its use to the slim and Alpine images. That was (unintentionally?) changed in #483, and now debugging symbols are also stripped in the regular Debian images. Undo that change.
@malormalor requested a review from tianonFebruary 7, 2022 19:32
Copy link
Member

@tianontianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@tianontianon merged commit 19739a9 into docker-library:masterFeb 7, 2022
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Feb 7, 2022
Changes: - docker-library/python@19739a9: Merge pull request docker-library/python#693 from malor/debian-debuggability - docker-library/python@1b6bc0c: Don't strip debugging symbols in the regular Debian images
@malormalor deleted the debian-debuggability branch February 8, 2022 08:13
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debian images no longer ship DWARF debugging symbols

2 participants

@malor@tianon