Giter Site home page Giter Site logo

Comments (7)

ionelmc avatar ionelmc commented on July 30, 2024

It would appear the problem is that gdb depends on: file gdbserver libc6-dbg libexpat1 libmagic1 libpython2.7 libpython2.7-minimal libpython2.7-stdlib mime-support. Looks like gdb is rigged to work with the python from the repositories, not whatever is available.

What's a nice way to sort this out?

from python.

tianon avatar tianon commented on July 30, 2024

Is this related in some way to #89?

from python.

ionelmc avatar ionelmc commented on July 30, 2024

Perhaps that could provide a solution, no idea. I'm not that versed in gdb features.

from python.

vEpiphyte avatar vEpiphyte commented on July 30, 2024

@ionelmc / @tianon

I have a python docker image built with modifications from the current 3.6.3 dockerfile (i'll be making that a public repo today). This does require doing a debug build of python, and running the container with SYS_PTRACE capability. These both increase repo size and decrease container security. The container size increase is unavoidable; but the use of sys_ptrace is only needed when you know you will need to attach to the container.

I'll update this issue when I have a the exemplar repository available.

cc: @jennolsen84

from python.

vEpiphyte avatar vEpiphyte commented on July 30, 2024

My example repo is here https://github.com/vertexproject/pydebug. After pulling the images built from docker-cloud there is pretty negligible size difference.

vertexproject/pydebug                                           3.6-slim                                   dc5245838148        About an hour ago   174MB
vertexproject/pydebug                                           3.6.3-slim                                 a18b561907c6        About an hour ago   174MB
python                                                          3.6-slim                                   a79297999298        4 weeks ago         156MB
python                                                          3.6.3-slim                                 a79297999298        4 weeks ago         156MB

from python.

tianon avatar tianon commented on July 30, 2024

#251 seems to imply that this potentially might require compiling GDB from source in order to actually fix it, which is really nasty (and I hope not the case) 😞

from python.

tianon avatar tianon commented on July 30, 2024

Closing, since this seems to be something we can't easily enable (without possibly compiling GDB from source, which is kind of nasty and we don't want to embed GDB itself in the image). Sorry!

from python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.