Skip to content

Cant enable and find core dumped #880

Open

Description

@vitassuper

When my Python program fails in a Docker container, no core dump or backtrace is generated. I tried enabling it using ulimit -c unlimited, but it didn't help. I cannot find a stack trace to determine why my program is crashing. All I get is a corrupted size vs. prev_size message.

Activity

  1. LaurentGoderre commented on Oct 18, 2023

    @LaurentGoderre
    Member

    Do you have an example that we can take a look at?

  2. vitassuper commented on Oct 19, 2023

    @vitassuper
    Author

    Do you have an example that we can take a look at?

    Here is my program https://github.com/vitassuper/flux-bot and screen below
    image

  3. LaurentGoderre commented on Oct 19, 2023

    @LaurentGoderre
    Member

    It would be helpful to add env vars to your docker compose to get it running quicky

    environment:
          - DEBUG_MODE=false
          - SQLALCHEMY_DATABASE_URI=postgres://root:root@postgres
          - SQLALCHEMY_DATABASE_DB=connector
          - POSTGRES_SERVER=postgres
          - POSTGRES_USER=root
          - POSTGRES_PASSWORD=root
          - POSTGRES_DB=trading_view_connector
          - APP_KEY=1234
          - TELEGRAM_BOT_TOKEN=1234
          - API_PASSWORD=1234
          - TELEGRAM_CHAT_ID=1234
          - TELEGRAM_CHAT_ID2=1234
  4. vitassuper commented on Oct 19, 2023

    @vitassuper
    Author

    It would be helpful to add env vars to your docker compose to get it running quicky

    environment:
          - DEBUG_MODE=false
          - SQLALCHEMY_DATABASE_URI=postgres://root:root@postgres
          - SQLALCHEMY_DATABASE_DB=connector
          - POSTGRES_SERVER=postgres
          - POSTGRES_USER=root
          - POSTGRES_PASSWORD=root
          - POSTGRES_DB=trading_view_connector
          - APP_KEY=1234
          - TELEGRAM_BOT_TOKEN=1234
          - API_PASSWORD=1234
          - TELEGRAM_CHAT_ID=1234
          - TELEGRAM_CHAT_ID2=1234

    Good to know, but I read tip from docker doc
    Don't use environment variables to pass sensitive information, such as passwords, in to your containers. Use [secrets](https://docs.docker.com/compose/use-secrets/) instead.
    Anyway, this is not the reason for my issue

  5. LaurentGoderre commented on Oct 19, 2023

    @LaurentGoderre
    Member

    Yeah I know, I was trying to get the app started to see if I can reproduce. It starts but I didn't configure it correctly so it just gives errors

  6. vitassuper commented on Oct 19, 2023

    @vitassuper
    Author

    Yeah I know, I was trying to get the app started to see if I can reproduce. It starts but I didn't configure it correctly so it just gives errors

    What errors did you get?

  7. LaurentGoderre commented on Dec 13, 2023

    @LaurentGoderre
    Member

    Screenshot 2023-12-13 at 10 31 40 AM

  8. blopker commented on Dec 26, 2023

    @blopker
    Contributor

    Maybe this is useful, but looking at the repo, flux-bot is using a slim variant. This variant strips debug info for file size, where the full fat images do not. Just found this out in #825 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions